/* ── GEODECA design system ─────────────────────────────── */
:root {
  --ink: #17211C;
  --ink-2: #26332C;
  --paper: #F5F1E6;
  --paper-2: #ECE6D4;
  --sage: #A3C2B3;
  --orange: #FF6B1A;
  --orange-deep: #E8590C;
  --line: rgba(23, 33, 28, .14);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2 {
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8.5vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 22px; }
h1 em, h2 em { font-style: normal; color: var(--orange); }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }

/* reveal on scroll — only hides content once JS confirms it will un-hide it,
   so a blocked/broken script never leaves the page permanently blank */
.js-ready .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
  .slide { transition: none !important; }
}

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  color: var(--paper);
  border-bottom: 1px solid rgba(245,241,230,.12);
}
.nav-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 1.3rem; letter-spacing: .02em; }
.nav-brand .mark { width: 30px; height: 30px; align-self: center; }
.nav-brand small { font-family: var(--mono); font-weight: 400; font-size: .68rem; opacity: .7; letter-spacing: .06em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  opacity: .82; padding: 4px 0; border-bottom: 2px solid transparent; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; border-color: var(--orange); }
.nav-cta {
  font-family: var(--mono); font-weight: 600; font-size: .85rem; text-decoration: none;
  border: 1.5px solid var(--orange); color: var(--orange); padding: 8px 16px; border-radius: 4px; transition: .2s;
}
.nav-cta:hover { background: var(--orange); color: var(--ink); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--paper); margin: 5px 0; }

/* ── hero ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: var(--paper); overflow: hidden; isolation: isolate; }
.slides { position: absolute; inset: 0; z-index: -3; background: #0f1612; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; will-change: opacity; }
.slide.on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(15,22,18,.93) 22%, rgba(15,22,18,.62) 58%, rgba(15,22,18,.4)), linear-gradient(180deg, rgba(15,22,18,.15) 0%, rgba(15,22,18,.15) 55%, rgba(15,22,18,.85) 100%); }
.hero-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 140px 28px 120px; width: 100%; }
.kicker { font-size: .8rem; letter-spacing: .14em; color: var(--sage); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.blip { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255,107,26,.6); animation: blip 2s infinite; }
@keyframes blip { 70% { box-shadow: 0 0 0 12px rgba(255,107,26,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0); } }
.hero-sub { max-width: 560px; margin: 26px 0 34px; font-size: 1.12rem; color: rgba(245,241,230,.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; letter-spacing: .02em;
  padding: 15px 30px; border-radius: 5px; font-size: 1rem; transition: transform .18s, box-shadow .18s, background .18s;
  border: 0; cursor: pointer; font-family: var(--sans);
}
.btn-orange { background: var(--orange); color: #171006; box-shadow: 0 8px 24px rgba(255,107,26,.35); }
.btn-orange:hover { background: var(--orange-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(245,241,230,.5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 44px; margin-top: 58px; flex-wrap: wrap; }
.hero-stats div { display: flex; align-items: center; gap: 12px; }
.hero-stats strong { font-size: 2.6rem; font-weight: 800; font-stretch: 112%; color: var(--orange); line-height: 1; }
.hero-stats span { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,241,230,.75); line-height: 1.5; }
.slide-meta { position: absolute; z-index: 2; right: 28px; bottom: 46px; display: flex; align-items: center; gap: 16px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,241,230,.6); }
.slide-meta .cap { color: rgba(245,241,230,.85); }
.slide-meta .idx { color: var(--orange); }
.slide-meta .ticks { display: flex; gap: 6px; }
.slide-meta .tick { width: 20px; height: 2px; background: rgba(245,241,230,.22); transition: background .3s ease; }
.slide-meta .tick.on { background: var(--orange); }
@media (max-width: 720px) { .slide-meta .cap { display: none; } }
.hero-ticker { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: var(--orange); color: #171006; overflow: hidden; font-size: .78rem; font-weight: 600; letter-spacing: .1em; padding: 9px 0; }
.ticker-track { display: flex; white-space: nowrap; animation: tick 38s linear infinite; width: max-content; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── sections ────────────────────────────────────────── */
.section { padding: 110px 0; }
.section-paper {
  background:
    linear-gradient(rgba(236,230,212,.9), rgba(236,230,212,.93)),
    url("img/okmap_web.jpg") center / cover;
}
.section-dark {
  background:
    linear-gradient(rgba(20,28,23,.93), rgba(20,28,23,.965)),
    url("img/okmap_web.jpg") center / cover;
  color: var(--paper); position: relative; overflow: hidden;
}
.section-dark .wrap { position: relative; z-index: 2; }
.dark-topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.station { font-size: .78rem; letter-spacing: .16em; color: var(--orange-deep); margin-bottom: 16px; }
.section-dark .station { color: var(--sage); }
.station::before { content: "✛ "; }
.lede { max-width: 620px; font-size: 1.15rem; color: color-mix(in srgb, currentColor 78%, transparent); margin-bottom: 54px; }

/* ── services ────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 26px 24px; transition: transform .22s, box-shadow .22s;
}
.svc::before, .svc::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--orange);
  transition: .22s; opacity: 0;
}
.svc::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.svc::after { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(23,33,28,.12); }
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.svc-head svg { width: 44px; height: 44px; color: var(--ink); flex: 0 0 auto; }
.svc ul { list-style: none; }
.svc li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.svc li:last-child { border-bottom: 0; }
.svc li::before { content: "✛"; position: absolute; left: 0; color: var(--orange); font-size: .8rem; }
.svc-note { margin-top: 14px; font-size: .72rem; letter-spacing: .04em; color: var(--orange-deep); text-transform: uppercase; }

/* ── company ─────────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.company-copy p { margin-bottom: 18px; color: rgba(245,241,230,.85); max-width: 540px; }
.mission { border-left: 3px solid var(--orange); padding: 14px 0 14px 22px; margin-top: 30px; font-size: 1.05rem; color: var(--paper); }
.mission span { display: block; margin-top: 8px; font-size: .74rem; color: var(--sage); letter-spacing: .08em; }
.polaroid { background: var(--paper); padding: 12px 12px 10px; border-radius: 4px; transform: rotate(1.6deg); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.polaroid img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; }
.polaroid figcaption { color: var(--ink); font-size: .68rem; letter-spacing: .14em; padding-top: 9px; text-align: center; }
.affils { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.affils-label { font-size: .7rem; letter-spacing: .16em; color: var(--sage); margin-bottom: 4px; }
.affils a {
  font-size: .88rem; text-decoration: none; padding: 11px 16px; border: 1px solid rgba(245,241,230,.22);
  border-radius: 5px; transition: .2s; color: rgba(245,241,230,.85);
}
.affils a:hover { border-color: var(--orange); color: var(--paper); transform: translateX(4px); }

/* ── team ────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.badge-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column;
}
.badge-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 20px 44px rgba(23,33,28,.14); }
.badge-top {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: var(--sage); font-size: .68rem; letter-spacing: .14em; padding: 10px 18px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.badge-body { display: flex; gap: 18px; padding: 24px 22px 6px; }
.badge-body img {
  width: 108px; height: 148px; object-fit: cover; border-radius: 4px;
  border: 3px solid var(--paper-2); outline: 1px solid var(--line); flex: 0 0 auto;
  filter: saturate(.92); background: var(--paper-2);
}
.crew-icon { width: 108px; height: 148px; flex: 0 0 auto; display: grid; place-items: center; background: var(--paper-2); border-radius: 4px; }
.crew-icon svg { width: 60px; height: 60px; color: var(--ink); }
.role { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-deep); margin: 4px 0 14px; }
.spec div { margin-bottom: 9px; }
.spec dt { font-size: .62rem; letter-spacing: .12em; color: rgba(23,33,28,.5); }
.spec dd { font-size: .8rem; font-weight: 500; }
.badge-bio { padding: 16px 22px 26px; font-size: .95rem; color: rgba(23,33,28,.82); }

/* ── projects ────────────────────────────────────────── */
.proj-list { display: flex; flex-direction: column; }
.proj {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 10px; border-bottom: 1px dashed rgba(23,33,28,.25); transition: background .2s, padding .2s;
}
.proj:first-child { border-top: 1px dashed rgba(23,33,28,.25); }
.proj:hover { background: rgba(255,107,26,.06); padding-left: 20px; }
.proj-no { font-size: 1.5rem; font-weight: 600; color: var(--orange-deep); }
.proj h3 { margin-bottom: 4px; }
.proj p { font-size: .95rem; color: rgba(23,33,28,.75); max-width: 620px; }
.proj-tag { font-size: .66rem; letter-spacing: .12em; color: rgba(23,33,28,.55); text-align: right; }

/* ── fan mail ────────────────────────────────────────── */
.mail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 50px; }
.letter {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 6px;
  padding: 40px 34px 30px; box-shadow: 0 24px 50px rgba(0,0,0,.35); transition: transform .22s;
}
.letter:nth-child(1) { transform: rotate(-.7deg); }
.letter:nth-child(2) { transform: rotate(.7deg); }
.letter:hover { transform: rotate(0) translateY(-6px); }
.letter blockquote { font-size: 1.06rem; line-height: 1.65; }
.letter mark { background: rgba(255,107,26,.28); padding: 0 3px; border-radius: 2px; }
.letter figcaption { margin-top: 22px; font-size: .7rem; letter-spacing: .1em; color: rgba(23,33,28,.65); line-height: 1.7; }
.stamp { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; color: rgba(23,33,28,.4); transform: rotate(8deg); }
.mail-ps { margin-top: 38px; font-size: .8rem; letter-spacing: .08em; color: var(--sage); }

/* ── contact ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: stretch; }
.map-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); min-height: 460px; box-shadow: 0 18px 40px rgba(23,33,28,.12); }
.map-frame iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.map-pin {
  position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: var(--paper);
  font-size: .72rem; letter-spacing: .1em; padding: 8px 14px; border-radius: 4px;
}
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 32px; display: flex; flex-direction: column; gap: 8px; }
.contact-rows div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.contact-rows dt { font-size: .68rem; letter-spacing: .14em; color: var(--orange-deep); }
.contact-rows dd { font-size: .98rem; }
.contact-rows a { text-decoration: none; font-weight: 600; border-bottom: 2px solid rgba(255,107,26,.4); transition: .2s; }
.contact-rows a:hover { border-color: var(--orange); color: var(--orange-deep); }
.quick-form { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.quick-form label { font-size: .66rem; letter-spacing: .14em; color: rgba(23,33,28,.6); margin-top: 8px; }
.quick-form input, .quick-form textarea {
  font-family: var(--sans); font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 5px; background: var(--paper); transition: border .2s; resize: vertical; width: 100%;
}
.quick-form input:focus, .quick-form textarea:focus { outline: none; border-color: var(--orange); }
.quick-form input:user-invalid, .quick-form textarea:user-invalid { border-color: #c0392b; }
.quick-form .btn { margin-top: 14px; }
.quick-form .btn:disabled { opacity: .65; cursor: default; transform: none; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf-field { display: flex; flex-direction: column; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; border: 0; padding: 0; }
.form-note { font-size: .66rem; letter-spacing: .06em; color: rgba(23,33,28,.55); text-align: center; }
.form-ok {
  display: none; align-items: flex-start; gap: 10px; margin-top: 4px;
  background: rgba(255,107,26,.08); border: 1px solid rgba(255,107,26,.4); border-radius: 5px;
  padding: 12px 14px; font-size: .85rem; color: var(--ink);
}
.form-ok.show { display: flex; }
.form-ok.is-error { background: rgba(192,57,43,.08); border-color: rgba(192,57,43,.4); }
.form-ok svg { flex: none; color: var(--orange-deep); margin-top: 2px; }
.form-ok.is-error svg { color: #c0392b; }
@media (max-width: 480px) { .qf-row { grid-template-columns: 1fr; } }

/* ── footer ──────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--paper); padding: 44px 0; border-top: 3px solid var(--orange); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; font-stretch: 112%; font-size: 1.2rem; letter-spacing: .02em; }
.footer-brand span { font-family: var(--mono); font-weight: 400; font-size: .68rem; opacity: .7; margin-left: 8px; letter-spacing: .08em; }
.footer-fine { font-size: .68rem; letter-spacing: .1em; color: var(--sage); margin-top: 6px; }
.footer-joke { font-size: .7rem; letter-spacing: .06em; color: rgba(245,241,230,.5); }
.footer-copy { font-size: .7rem; letter-spacing: .08em; color: rgba(245,241,230,.6); }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .company-grid, .mail-grid, .contact-grid { grid-template-columns: 1fr; }
  .company-side { max-width: 460px; }
  .proj { grid-template-columns: 48px 1fr; }
  .proj-tag { grid-column: 2; text-align: left; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 62px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(245,241,230,.12);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 15px 28px; border-bottom: 1px solid rgba(245,241,230,.08); }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-brand small { display: none; }
  .section { padding: 80px 0; }
  .hero-inner { padding: 120px 28px 110px; }
  .hero-stats { gap: 26px; }
}
