/* ============================================================
   GTox Ltd — Design tokens
   ============================================================ */
:root {
  --ink: #15171a;
  --ink-soft: #21242a;
  --paper: #f3f1ea;
  --paper-soft: #ebe8de;
  --accent: #4c7a6e;       /* assay green — primary */
  --accent-soft: #6f9b8f;
  --line: #d8d4c8;         /* hairline on paper */
  --line-dark: #33352f;    /* hairline on ink */
  --muted: #6b6b62;        /* body text on paper */
  --muted-light: #a9a89c;  /* body text on ink */
  --gold: #837239;         /* brand gold — exact colour of the GTOX lettering (GTOX.png); used everywhere, light and dark */

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  /* Headings: EB Garamond (free, Google Fonts) — an Aldine/Garamond-style
     old-style serif, standing in for the licensed Aldine 401 Roman. */
  --font-heading: "EB Garamond", Georgia, "Times New Roman", serif;
  /* "Size" (Semibold) is also a licensed MyFonts font — same approach. */
  --font-logo: "Size", "Space Grotesk", sans-serif;

  --maxw: 1180px;
}

@font-face {
  font-family: "Size";
  src: url("fonts/Size-Semibold.woff2") format("woff2"),
       url("fonts/Size-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-ink { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.005em;
}

h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 19px; }

p { margin: 0; }
.muted { color: var(--muted); }

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost {
  border-color: var(--line-dark);
  color: var(--paper);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------- Nav ---------------- */
header.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243, 241, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo-word {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold);
}
.logo { gap: 14px; }
.logo-mark { flex-shrink: 0; display: block; height: auto; }
header .logo-mark { width: 52px; height: auto; }
@media (max-width: 560px) {
  .logo-word { font-size: 36px; }
  header .logo-mark { width: 40px; height: auto; }
  .logo { gap: 10px; }

@media (max-width: 400px) {
  .nav-inner.wrap { padding: 0 16px; }
  .logo-word { font-size: 30px; }
  header .logo-mark { width: 34px; }
  .logo { gap: 8px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding-left: 14px; padding-right: 14px; }
}
}
footer .logo-word { color: var(--gold); }

nav.links {
  display: flex;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav.links a {
  position: relative;
  padding-bottom: 4px;
}
nav.links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
nav.links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 24px; }
.btn-label-short { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 780px) {
  nav.links {
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.links.open { max-height: 360px; }
  nav.links a {
    padding: 16px 32px;
    border-top: 1px solid var(--line);
  }
  .nav-cta .btn span.btn-label-long { display: none; }
  .nav-cta .btn span.btn-label-short { display: inline; }
  .nav-toggle { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 184px 0 96px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  margin: 22px 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
  font-family: var(--font-body);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 156px; }
  .hero-graphic { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ---------------- Marquee strip ---------------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 10px 40px;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
}
.strip span { white-space: nowrap; }

/* ---------------- Section rhythm ---------------- */
section { padding: 108px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { margin-top: 18px; }

/* ---------------- About (ink) ---------------- */
.about {
  background: var(--ink);
  color: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about h2 { color: var(--paper); }
.about p { color: var(--muted-light); font-size: 16.5px; font-family: var(--font-body); }
.about p + p { margin-top: 18px; }

.credential-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.credential-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 13px;
}
.credential-list dt { color: var(--muted-light); text-transform: uppercase; letter-spacing: 0.06em; }
.credential-list dd { margin: 0; color: var(--paper); text-align: right; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------------- Track record stats ---------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-card {
  background: var(--paper);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 46px);
  color: var(--gold);
  line-height: 1;
}
.stat-plus { font-size: 0.6em; margin-left: 2px; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--paper);
  padding: 40px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--paper-soft); }
.service-card .eyebrow { margin-bottom: 22px; }
.service-card h3 { margin-bottom: 12px; font-family: var(--font-heading); }
.service-card p { color: var(--muted); font-size: 15px; }

@media (max-width: 720px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------------- Approach ---------------- */
.approach-list { border-top: 1px solid var(--line); }
.approach-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.approach-item .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
}
.approach-item h3 { margin-bottom: 8px; }
.approach-item p { color: var(--muted); font-size: 15px; max-width: 62ch; }

/* ---------------- Recognition ---------------- */
.recognition-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.recognition-item {
  background: var(--paper);
  padding: 32px;
}
.recognition-item h3 { margin-bottom: 10px; font-size: 17px; }
.recognition-item p { color: var(--muted); font-size: 14.5px; }
.recognition-item a { color: var(--gold); border-bottom: 1px solid transparent; }
.recognition-item a:hover { border-color: var(--gold); }
@media (max-width: 720px) {
  .recognition-list { grid-template-columns: 1fr; }
}

/* ---------------- Emblem divider ---------------- */
.emblem-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.emblem-divider img { width: 96px; height: auto; }
.emblem-divider .rule { flex: 1; max-width: 220px; height: 1px; background: var(--line); }
@media (max-width: 560px) {
  .emblem-divider { gap: 16px; }
  .emblem-divider .rule { max-width: 80px; }
}

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-soft);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, rgba(21,23,26,0) 55%, rgba(21,23,26,0.82) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .gallery-grid { gap: 2px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(21, 23, 26, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(900px, 100%); max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 28px; right: 32px;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- Journal ---------------- */
.journal-list { border-top: 1px solid var(--line); }
.journal-entry {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
}
.journal-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.journal-meta .journal-date { display: block; margin-bottom: 8px; }
.journal-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 3px 8px;
}
.journal-entry h3 { margin-bottom: 14px; font-size: 21px; }
.journal-entry p { color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.journal-entry p + p { margin-top: 14px; }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 700px) {
  .journal-entry { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------------- Contact ---------------- */
.contact { background: var(--ink); color: var(--paper); }
.contact h2 { color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-info p { color: var(--muted-light); margin-bottom: 28px; max-width: 40ch; font-family: var(--font-body); }
.contact-detail {
  font-family: var(--font-mono);
  font-size: 14px;
  border-top: 1px solid var(--line-dark);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.contact-detail:last-of-type { border-bottom: 1px solid var(--line-dark); }
.contact-detail a:hover { color: var(--gold); }

form#contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 2px;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #55584f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-status { font-family: var(--font-mono); font-size: 13px; min-height: 20px; }
.form-status[data-state="ok"] { color: var(--gold); }
.form-status[data-state="err"] { color: #c0704a; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------------- Footer ---------------- */
footer {
  background: var(--ink);
  color: var(--muted-light);
  border-top: 1px solid var(--line-dark);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.footer-inner a:hover { color: var(--paper); }
.footer-links { display: flex; gap: 24px; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
