/* ============================================================================
   DELTA OPERATIONS — agency application page
   Brand system: near-black + violet, lifted from the agency hub
   (deltaoperations.vercel.app). Token names are inherited from the reference
   implementation, so "silver" here means the violet accent family.
   ========================================================================== */

:root {
  /* --- ground --- */
  --ink:        #07050c;
  --ink-2:      #0a0711;
  --panel:      #0e0b17;
  --panel-2:    #151020;
  --panel-3:    #1c1629;

  /* --- lines --- */
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.13);
  --line-hot:   rgba(255,255,255,0.28);

  /* --- silver --- */
  --silver:     #c4b5fd;
  --silver-hi:  #ffffff;
  --silver-mid: #a78bfa;
  --silver-dim: #7c6aa8;

  --text:       #efecf6;
  --muted:      #938ca6;
  --faint:      #645d78;

  /* brushed-metal fill for display type + rules */
  /* Brushed metal, but the darkest stop stays well above the background —
     a gradient that dips to #7f858f on black eats the thin strokes. */
  --brush: linear-gradient(168deg,
              #ffffff 0%, #f5f3ff 16%, #d4c8fe 34%,
              #ffffff 48%, #b9a6fb 64%, #efeafe 80%, #cfc2fd 100%);
  --brush-flat: linear-gradient(180deg, #f3f0ff 0%, #b8a4fb 55%, #efeafe 100%);

  --radius:   4px;
  --radius-l: 8px;

  --ff-display: "Instrument Serif", "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --ff-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-ui);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* faint film-grain + vignette so pure black never looks flat */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(139,92,246,0.10), transparent 62%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(255,255,255,0.022), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(255,255,255,0.02), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ============================ type ============================ */

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-mid));
}
.eyebrow.center::after {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--silver-mid), transparent);
}

h1, h2, h3 { font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; }

.display {
  font-family: var(--ff-display);
  font-weight: 400;
  background: var(--brush);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

h1.display { font-size: clamp(2.6rem, 8.2vw, 6.4rem); line-height: 0.94; }
h2.display { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--text); letter-spacing: -0.005em; line-height: 1.3; }

.lede { font-size: clamp(1rem, 1.35vw, 1.14rem); color: var(--muted); max-width: 60ch; line-height: 1.72; }
.body-sm { font-size: 0.925rem; color: var(--muted); line-height: 1.7; }

.italic-serif { font-family: var(--ff-display); font-style: italic; color: var(--silver); }

/* hairline rule with a brushed core */
.rule { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-hot) 50%, var(--line-2) 88%, transparent); }

/* ============================ buttons ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 17px 34px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brush-flat); color: #07080b; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 34px rgba(167,139,250,0.13);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.75) inset, 0 16px 44px rgba(167,139,250,0.24); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s ease; }

.btn-ghost { background: transparent; color: var(--silver); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-hot); color: var(--silver-hi); background: rgba(255,255,255,0.035); transform: translateY(-2px); }

.btn-lg { padding: 20px 44px; font-size: 12px; }
.btn-block { width: 100%; }

/* ============================ nav ============================ */

nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.lockup { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.lockup-mark {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 32%;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.035);
}
.lockup-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.lockup-name {
  font-family: var(--ff-display); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--brush-flat); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lockup-sub { font-family: var(--ff-mono); font-size: 8px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s ease;
}
.nav-links a:hover { color: var(--silver-hi); }
nav .btn { padding: 12px 24px; font-size: 10.5px; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ============================ sections ============================ */

section { position: relative; z-index: 2; padding: clamp(72px, 11vw, 140px) 0; }
.section-head { margin-bottom: clamp(38px, 5vw, 62px); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.section-head .lede { margin-top: 18px; }
.section-head.center .lede { margin-top: 0; }
.section-head h2 { margin-top: 18px; }
.section-head.center h2 { margin-top: 0; }

/* numbered index chip */
.idx { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.24em; color: var(--faint); }

/* ============================ cards ============================ */

.card {
  position: relative; background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 30px 28px; overflow: hidden;
  transition: border-color .3s ease, transform .3s cubic-bezier(.2,.7,.3,1), background .3s ease;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hot), transparent);
  opacity: .5; transition: opacity .3s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: linear-gradient(165deg, var(--panel-3), var(--panel-2)); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 14px 0 9px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ============================ placeholder frames ============================ */
/* Intentional empty states — styled to look finished, obviously swappable. */

.ph {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.014) 0 2px, transparent 2px 9px),
    linear-gradient(165deg, var(--panel-2), var(--ink-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-l);
  color: var(--faint); overflow: hidden;
}
.ph-label {
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--silver-dim);
}
.ph-note { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--faint); }
/* corner registration marks */
.ph .tick { position: absolute; width: 11px; height: 11px; border: 1px solid var(--line-hot); opacity: .55; }
.ph .tick.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ph .tick.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.ph .tick.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.ph .tick.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ============================ misc ============================ */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 100px; color: var(--silver-mid);
  background: rgba(255,255,255,0.02);
}
.pill .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 8px var(--silver); }

.stat-num { font-family: var(--ff-display); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1;
  background: var(--brush-flat); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin-top: 10px; }

/* ============================ footer ============================ */
/* Centred, small, and carrying the legal line. Identity + socials only —
   no navigation, no taglines. Shared by every page in the site. */

footer {
  position: relative; z-index: 2; text-align: center;
  border-top: 1px solid var(--line); background: var(--ink-2);
  padding: clamp(38px, 5vw, 52px) 0 clamp(30px, 4vw, 40px);
}
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.foot-mark {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 1px solid var(--line-2); box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
}
.foot-name {
  font-family: var(--ff-display); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  background: var(--brush-flat); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.socials { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 14px;
  transition: color .22s ease, border-color .22s ease, background .22s ease;
}
.socials a:hover { color: var(--silver-hi); border-color: var(--line-hot); background: rgba(255,255,255,0.035); }
.socials svg { width: 13px; height: 13px; fill: currentColor; }

.foot-legal {
  max-width: 82ch; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 11px; line-height: 1.8; color: var(--faint);
}
.foot-copy {
  font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}

/* ============================ faq ============================ */

.faq { border-top: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: clamp(0.98rem, 1.3vw, 1.06rem); color: var(--text); transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--silver-hi); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 1px solid var(--silver-dim); border-bottom: 1px solid var(--silver-dim);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s ease, border-color .3s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); border-color: var(--silver); }
.faq .ans { padding: 0 40px 26px 0; color: var(--muted); line-height: 1.75; font-size: 0.94rem; }

/* ============================ reveal on scroll ============================ */

/* Gated on html.js so a JS failure can never leave the page blank. */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
html.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; }
}
