/* ============================================================
   Scutis Oil & Gas Services — Design System v3 (Emerson-inspired)
   Bold, corporate, high-contrast.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink:        #0B1B2E;
  --ink-2:      #142A44;
  --ink-soft:   #1E3552;
  --paper:      #FAFAF8;
  --paper-2:    #F1EFE9;
  --accent:     #B8934A;
  --accent-hi:  #CBA961;
  --muted:      #6B7280;
  --muted-2:    #8A919B;
  --line:       rgba(11,27,46,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.font-display {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.marker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.marker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.rule { height: 1px; background: var(--line); border: 0; }
.rule-gold { height: 1px; width: 40px; background: var(--accent); border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.7rem; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 999px; transition: all 260ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(11,27,46,0.08); }
.btn-primary:hover { background: var(--ink-2); box-shadow: 0 4px 14px rgba(11,27,46,0.2); transform: translateY(-1px); }
.btn-gold { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(184,147,74,0.15); }
.btn-gold:hover { background: var(--accent-hi); box-shadow: 0 4px 14px rgba(184,147,74,0.32); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(11,27,46,0.18); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(250,250,248,0.28); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Nav */
.nav-link {
  position: relative; font-size: 0.82rem; color: var(--ink); text-decoration: none;
  padding: 0.4rem 0; font-weight: 500; letter-spacing: 0.005em; transition: color 200ms ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 260ms cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--accent); }

/* Standard tile */
.tile {
  background: #fff; border-radius: 3px; padding: 2rem;
  transition: all 300ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 0 1px rgba(11,27,46,0.06);
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(11,27,46,0.06), 0 12px 28px rgba(11,27,46,0.1);
}

/* NEW: Category card — Emerson-style big card with photo gradient */
.cat-card {
  position: relative; overflow: hidden; border-radius: 3px;
  background: var(--ink-2); color: #fff; min-height: 340px;
  padding: 2rem; display: flex; flex-direction: column; justify-content: space-between;
  transition: all 320ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 0 1px rgba(11,27,46,0.06);
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(11,27,46,0.1) 0%, rgba(11,27,46,0.85) 100%);
  z-index: 1;
}
.cat-card > * { position: relative; z-index: 2; }
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(11,27,46,0.06), 0 18px 36px rgba(11,27,46,0.18);
}
.cat-card .cat-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.cat-card:hover .cat-bg { transform: scale(1.04); }
.cat-card.gold { background: var(--accent); color: var(--ink); }
.cat-card.gold::before {
  background: linear-gradient(165deg, rgba(184,147,74,0.05) 0%, rgba(184,147,74,0.4) 100%);
}

/* Dark section card */
.tile-dark {
  background: rgba(255,255,255,0.04); border-radius: 3px; padding: 1.6rem;
  transition: all 300ms cubic-bezier(.2,.7,.2,1);
  border: 1px solid rgba(255,255,255,0.08);
}
.tile-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(184,147,74,0.4); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Grain overlay for dark sections */
.grain::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,0.012) 0px, transparent 2px),
    repeating-radial-gradient(circle at 73% 61%, rgba(255,255,255,0.018) 0px, transparent 2px);
  background-size: 6px 6px, 7px 7px;
  pointer-events: none; opacity: 0.8;
}

/* Number pill */
.section-num {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.14em; color: var(--accent); font-weight: 600;
  background: rgba(184,147,74,0.1); padding: 0.22rem 0.55rem; border-radius: 999px; line-height: 1;
}

/* Prose */
.prose-scutis p { margin-bottom: 1.1rem; line-height: 1.75; color: var(--ink-soft); }
.prose-scutis p:last-child { margin-bottom: 0; }
.prose-scutis strong { color: var(--ink); font-weight: 600; }

/* Chip */
.chip {
  display: inline-block; padding: 0.3rem 0.7rem; font-size: 0.68rem;
  letter-spacing: 0.02em; border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; background: transparent; line-height: 1.5; transition: all 200ms ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Input */
.input {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid rgba(11,27,46,0.14);
  background: #fff; font-size: 0.88rem; color: var(--ink); border-radius: 4px;
  transition: all 200ms ease; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,27,46,0.06); }
.input::placeholder { color: var(--muted-2); }

/* Footer */
.footer-copy {
  background: var(--ink); color: rgba(255,255,255,0.65);
  font-size: 0.78rem; text-align: center; padding: 1.1rem 1rem; letter-spacing: 0.02em;
}
.footer-credit {
  background: #060B14; color: rgba(255,255,255,0.35);
  font-size: 0.68rem; text-align: center; padding: 0.9rem 1rem; letter-spacing: 0.05em;
}
.footer-credit a { color: rgba(255,255,255,0.6); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 1px; transition: all 200ms ease; }
.footer-credit a:hover { color: #fff; border-bottom-color: var(--accent); }

/* Typography scale */
.h-hero    { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.03em; }
.h-section { font-size: clamp(2rem, 4vw, 3rem);   line-height: 1.1;  letter-spacing: -0.025em; }
.h-page    { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -0.03em; }
