/* ============================================================
   FIELD OFFICE v2 — Design System
   1960s Bond / Man from U.N.C.L.E. — elegant, warm, charming.
   Midnight + champagne gold + 60s teal. Crimson for stamps only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@1,500;1,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* palette — tuxedo midnight, champagne, martini teal */
  --ink:      #0E1220;
  --ink-2:    #161B2C;
  --ink-3:    #252C42;
  --cream:    #F0E9D8;
  --cream-2:  #B9B3A0;
  --gold:     #C9A24B;
  --gold-2:   #E4C87E;
  --teal:     #4FA39E;
  --crimson:  #B3382E;   /* stamps + rare emphasis only */
  --paper:    #F0E9D8;
  --paper-ink:#1C1A15;

  /* type */
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --serif:   'Cormorant Garamond', Georgia, serif;   /* the charm voice */
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* scale */
  --step--1: clamp(.78rem, .74rem + .2vw, .88rem);
  --step-0:  clamp(1rem, .95rem + .25vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  --step-2:  clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --step-3:  clamp(2.6rem, 1.7rem + 4.5vw, 5.2rem);
  --step-4:  clamp(3.4rem, 1.9rem + 7.5vw, 7.5rem);

  --rule: 1px solid var(--ink-3);
  --gutter: clamp(1.2rem, 4vw, 4rem);
  --maxw: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- RESET ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .muted { color: #5b5442; }
.section--paper .eyebrow { color: #8a6f2e; }

/* ---------- TYPE ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;                 /* lighter = 60s elegance */
  line-height: 1.02;
  letter-spacing: .04em;            /* airy, poster-like */
  text-transform: uppercase;
}
h1.display { font-size: var(--step-4); font-weight: 400; letter-spacing: .06em; }
h2.display { font-size: var(--step-3); }
h3.display { font-size: var(--step-2); }
.charm {                             /* the wink — italic serif accent */
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold-2);
}
.muted { color: var(--cream-2); }
.mono  { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; flex:none;
  border: 1.5px solid var(--gold);
  border-radius: 50%;               /* tiny gunbarrel dot */
}

/* ---------- GUNBARREL (signature) ---------- */
.gunbarrel {
  --size: clamp(220px, 32vw, 420px);
  width: var(--size); height: var(--size);
  border-radius: 50%;
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(circle, transparent 55%, rgba(201,162,75,.06) 56%, transparent 57%),
    radial-gradient(circle, var(--ink-2) 0 38%, transparent 39%);
  border: 1px solid var(--ink-3);
  box-shadow:
    inset 0 0 0 14px var(--ink),
    inset 0 0 0 16px var(--ink-3),
    inset 0 0 0 34px var(--ink),
    inset 0 0 0 36px var(--ink-3),
    inset 0 0 0 58px var(--ink),
    inset 0 0 0 60px rgba(201,162,75,.5);
}
.gunbarrel .iris {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: .08em;
  color: var(--gold-2);
}
@keyframes barrel-in { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gunbarrel { animation: barrel-in 1s var(--ease) both; }

/* ---------- STAMP ---------- */
.stamp {
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--crimson);
  border: 2.5px solid var(--crimson);
  padding: .35em .7em;
  display: inline-block;
  transform: rotate(-5deg);
  border-radius: 2px;
  font-size: var(--step--1);
  opacity: .9;
}
.stamp--gold { color: var(--gold); border-color: var(--gold); }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--step--1);
  padding: .95em 1.7em;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: .6rem;
}
.btn:hover { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--quiet { border-color: var(--ink-3); color: var(--cream-2); }
.btn--quiet:hover { background: transparent; color: var(--cream); border-color: var(--gold); box-shadow: none; }

/* ---------- HEADER ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,18,32,.9);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; }
.brand .mark {
  width: 32px; height: 32px; flex: none;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(201,162,75,.5);
  font-family: var(--mono); font-size: .72rem; color: var(--gold-2);
}
.nav { display: flex; gap: 1.6rem; font-family: var(--mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.nav a { color: var(--cream-2); transition: color .15s; }
.nav a:hover { color: var(--gold-2); }
.nav-cta { color: var(--gold) !important; }

/* ---------- DOSSIER CARD + REDACT ---------- */
.filecard {
  background: var(--ink-2);
  border: var(--rule);
  border-left: 2px solid var(--gold);
  padding: 1.7rem 1.6rem;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.filecard:hover { transform: translateY(-4px); border-left-color: var(--gold-2); background: #1A2033; }
.filecard .fileno { font-family: var(--mono); font-size: var(--step--1); color: var(--gold); letter-spacing: .14em; }

.redact {
  background: #05070d;
  color: transparent;
  padding: 0 .2em;
  border-radius: 1px;
  transition: color .25s, background .25s;
  cursor: help;
  box-decoration-break: clone;
}
.redact:hover, .filecard:hover .redact, .redact:focus { background: transparent; color: var(--gold-2); }
/* Touch devices can't hover — never leave real content hidden */
@media (hover: none) {
  .redact { background: transparent; color: inherit; cursor: auto; }
}

/* ---------- TICKER ---------- */
.tickerbar {
  background: var(--gold); color: var(--ink);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em;
  font-size: var(--step--1); padding: .55rem 0; overflow: hidden; white-space: nowrap;
}
.tickerbar span { display: inline-block; padding-inline: 1.6rem; }

/* ---------- GRID ---------- */
.grid { display: grid; gap: 1.2rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 820px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.foot { border-top: var(--rule); padding-block: 2.4rem; font-family: var(--mono); font-size: var(--step--1); color: var(--cream-2); letter-spacing: .08em; }

/* ---------- A11Y / MOTION ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- HERO GRID ---------- */
.hero-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
@media (max-width: 900px){
  .hero-grid { grid-template-columns: 1fr; }
  .gunbarrel { margin-inline: auto; }
}

/* ---------- MOBILE MASTHEAD ---------- */
@media (max-width: 700px){
  .masthead .wrap { flex-wrap: wrap; gap: .6rem .9rem; justify-content: center; }
  .nav { flex-wrap: wrap; gap: .8rem 1.2rem; justify-content: center; }
}
