/* =================================================================
   Thursday Media International
   Design system + one-page layout
   Accent: #FF4300  ·  Theme: warm near-black, meridian-grid motif
   ================================================================= */

:root{
  /* ---- colour ---- */
  --ink:        #0E0D10;   /* warm near-black page */
  --ink-2:      #16131A;   /* raised panels */
  --ink-3:      #1E1A22;   /* hover panels */
  --paper:      #F5F1EA;   /* warm white (matches the logo) */
  --muted:      #989099;   /* secondary text */
  --muted-2:    #6A646E;   /* tertiary / captions */
  --line:       rgba(245,241,234,0.12);
  --line-soft:  rgba(245,241,234,0.07);
  --accent:     #FF4300;   /* company accent */
  --accent-700: #D6360A;   /* pressed / deep */
  --accent-glow:rgba(255,67,0,0.16);

  /* ---- type ---- */
  --display: "Bricolage Grotesque", "Times New Roman", serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- rhythm ---- */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --header-h: 74px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:hidden; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--body);
  font-size:clamp(1rem,0.96rem + 0.2vw,1.0625rem);
  line-height:1.62;
  font-feature-settings:"ss01","cv05";
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; cursor:pointer; }
::selection{ background:var(--accent); color:#fff; }

/* ---------- layout helpers ---------- */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block:var(--section-y); position:relative; }
.eyebrow{
  font-family:var(--mono);
  font-size:.72rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted); display:inline-flex; align-items:center; gap:.6rem;
}
.eyebrow::before{
  content:""; width:1.6rem; height:1px; background:var(--accent); display:inline-block;
}
.accent{ color:var(--accent); }

/* hairline meridian rule — the recurring structural device */
.meridian-rule{
  height:1px; border:0; margin:0;
  background:linear-gradient(90deg,transparent,var(--line) 12%,var(--line) 88%,transparent);
  position:relative;
}
.meridian-rule::after{
  content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:7px; height:7px; border-radius:50%;
  background:var(--ink); border:1px solid var(--accent);
}

/* =================================================================
   Header / nav
   ================================================================= */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:60;
  transition:background .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.is-stuck{
  background:rgba(14,13,16,.78);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom-color:var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; height:var(--header-h); }
.brand{ display:flex; align-items:center; gap:.7rem; flex-shrink:0; }
.brand img{ height:32px; width:auto; }
.brand .brand-text{
  font-family:var(--display); font-weight:700; font-size:1rem; letter-spacing:-.01em; line-height:1.05;
}
.brand .brand-text small{ display:block; font-family:var(--mono); font-weight:500; font-size:.58rem; letter-spacing:.26em; color:var(--muted); text-transform:uppercase; margin-top:.12rem; }
.nav-right{ display:flex; align-items:center; gap:2.1rem; }
.nav-links{ display:flex; align-items:center; gap:2.1rem; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:.9rem; color:var(--muted); position:relative; padding-block:.4rem; transition:color .25s var(--ease);
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--accent); transition:width .3s var(--ease);
}
.nav-links a:hover,.nav-links a:focus-visible{ color:var(--paper); }
.nav-links a:hover::after,.nav-links a:focus-visible::after{ width:100%; }
.nav-cta{
  font-family:var(--mono); font-size:.78rem; letter-spacing:.04em;
  padding:.6rem 1.05rem; border:1px solid var(--line); border-radius:100px; color:var(--paper);
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.nav-cta:hover,.nav-cta:focus-visible{ border-color:var(--accent); background:var(--accent-glow); }
.nav-toggle{ display:none; background:none; border:0; padding:.4rem; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--paper); margin:5px 0; transition:transform .3s var(--ease), opacity .3s var(--ease); }

/* Mobile slide-down menu — hidden on desktop, shown via the toggle under 760px */
.site-nav-mobile{ display:none; }

/* =================================================================
   Hero — the global newsroom
   ================================================================= */
.hero{ position:relative; min-height:100svh; display:flex; flex-direction:column; padding-top:var(--header-h); overflow:hidden; --glow-x:78%; --glow-y:42%; }
.hero-grid{
  position:relative; z-index:2; width:100%; flex:1 0 auto;
  display:grid; grid-template-columns:1.15fr .85fr; align-items:center; align-content:center; gap:clamp(2rem,5vw,5rem);
}
.hero-copy{ min-width:0; }
.hero-eyebrow{ margin-bottom:1.5rem; }
.hero h1{
  font-family:var(--display); font-weight:800;
  font-size:clamp(2.7rem,2rem + 5.6vw,6rem); line-height:.96; letter-spacing:-.03em; margin:0;
}
.hero h1 .l2{ display:block; }
.hero h1 .word-int{ color:transparent; -webkit-text-stroke:1.3px var(--paper); }
.hero-lede{
  margin:1.9rem 0 0; max-width:34ch; font-size:clamp(1.05rem,1rem + .35vw,1.28rem); color:var(--paper); opacity:.86;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-top:2.4rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  font-size:.95rem; padding:.85rem 1.5rem; border-radius:100px; border:1px solid transparent;
  transition:transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 0 0 0 var(--accent-glow); will-change:transform; }
.btn-primary:hover,.btn-primary:focus-visible{ background:var(--accent-700); box-shadow:0 8px 34px -10px var(--accent); }
.btn-ghost{ border-color:var(--line); color:var(--paper); }
.btn-ghost:hover,.btn-ghost:focus-visible{ border-color:var(--paper); background:rgba(245,241,234,.04); }
.btn .arrow{ transition:transform .25s var(--ease); }
.btn:hover .arrow{ transform:translateX(3px); }

/* hero globe / signature visual — interactive */
.hero-visual{ position:relative; aspect-ratio:1; display:grid; place-items:center; perspective:1100px; touch-action:pan-y; }
.globe-stage{
  position:absolute; inset:0; display:grid; place-items:center;
  transform-style:preserve-3d; transform:rotateX(0) rotateY(0);
  transition:transform .5s var(--ease); will-change:transform;
}
.hero-visual.tilting .globe-stage{ transition:none; }
.hero-visual .globe-mark{
  position:absolute; width:46%; filter:drop-shadow(0 18px 50px rgba(0,0,0,.6));
  z-index:2; animation:floaty 9s ease-in-out infinite;
}
@keyframes floaty{ 0%,100%{ transform:translateZ(55px) translateY(-5px); } 50%{ transform:translateZ(55px) translateY(5px); } }
.meridian-field{ position:absolute; inset:0; width:100%; height:100%; z-index:1; }
.meridian-field .spin{ transform-origin:50% 50%; animation:spin 60s linear infinite; }
.meridian-field .arc-live{ animation:dashflow 7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
@keyframes dashflow{ to{ stroke-dashoffset:-300; } }

/* pointer lens that follows the cursor over the globe */
.hero-lens{
  position:absolute; z-index:3; width:230px; height:230px; left:50%; top:50%;
  margin:-115px 0 0 -115px; border-radius:50%; pointer-events:none; opacity:0;
  background:radial-gradient(circle, rgba(255,67,0,.30), rgba(255,67,0,.06) 45%, transparent 68%);
  mix-blend-mode:screen; transition:opacity .35s var(--ease); will-change:transform;
}
.hero-visual.active .hero-lens{ opacity:1; }

/* ambient hero glow — follows pointer (falls back to a fixed spot without JS) */
.hero::before{
  content:""; position:absolute; z-index:0; left:var(--glow-x); top:var(--glow-y); transform:translate(-50%,-50%);
  width:46vw; height:46vw; max-width:640px; max-height:640px;
  background:radial-gradient(circle, var(--accent-glow), transparent 62%); filter:blur(8px); pointer-events:none;
  transition:left .25s ease-out, top .25s ease-out;
}

/* global desk clock strip — sits in normal flow at the bottom of the hero */
.desk-strip{
  position:relative; z-index:3; width:100%; margin-top:clamp(2rem,4vw,3rem);
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.25));
}
.desk-strip .wrap{ display:flex; align-items:center; gap:clamp(1.5rem,4vw,3.5rem); flex-wrap:wrap; padding-block:1.05rem; }
.desk-label{ font-family:var(--mono); font-size:.66rem; letter-spacing:.24em; text-transform:uppercase; color:var(--muted-2); white-space:nowrap; }
.desk-clocks{ display:flex; gap:clamp(1.4rem,3.4vw,3rem); flex-wrap:wrap; }
.clock{ font-family:var(--mono); font-size:.8rem; color:var(--muted); display:flex; align-items:baseline; gap:.55rem; white-space:nowrap; }
.clock b{ color:var(--paper); font-weight:600; letter-spacing:.02em; }
.clock .city{ letter-spacing:.12em; text-transform:uppercase; font-size:.66rem; }
.clock .dot{ width:5px; height:5px; border-radius:50%; background:var(--accent); display:inline-block; transform:translateY(-1px); }

/* =================================================================
   Section headers (shared)
   ================================================================= */
.sec-head{ display:grid; grid-template-columns:1fr; gap:1.1rem; max-width:60ch; margin-bottom:clamp(2.5rem,5vw,4rem); }
.sec-head h2{
  font-family:var(--display); font-weight:700; letter-spacing:-.025em; line-height:1.02;
  font-size:clamp(1.9rem,1.5rem + 2.4vw,3.2rem); margin:.4rem 0 0;
}
.sec-head p{ color:var(--muted); margin:.2rem 0 0; font-size:1.08rem; max-width:48ch; }

/* =================================================================
   Statement / about
   ================================================================= */
.statement .wrap{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(2rem,5vw,5rem); align-items:start; }
.statement .lead{
  font-family:var(--display); font-weight:600; letter-spacing:-.02em; line-height:1.18;
  font-size:clamp(1.45rem,1.2rem + 1.5vw,2.35rem); margin:0;
}
.statement .lead .hl{ color:var(--accent); }
.statement .body p{ color:var(--muted); margin:0 0 1.1rem; }
.statement .body p:last-child{ margin-bottom:0; }
.statement .body strong{ color:var(--paper); font-weight:600; }

/* =================================================================
   What we do — divisions
   ================================================================= */
.divisions-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.division{
  background:var(--ink); padding:clamp(1.6rem,2.5vw,2.4rem); min-height:300px;
  display:flex; flex-direction:column; transition:background .3s var(--ease);
}
.division:hover{ background:var(--ink-2); }
.division .num{ font-family:var(--mono); font-size:.72rem; letter-spacing:.18em; color:var(--accent); }
.division h3{ font-family:var(--display); font-weight:700; font-size:1.4rem; letter-spacing:-.02em; margin:1.6rem 0 .6rem; }
.division p{ color:var(--muted); font-size:.96rem; margin:0; flex:1; }
.division .tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1.4rem; list-style:none; padding:0; }
.division .tags li{ font-family:var(--mono); font-size:.66rem; letter-spacing:.06em; color:var(--muted-2); border:1px solid var(--line); border-radius:100px; padding:.28rem .7rem; }

/* =================================================================
   Publications — two mastheads
   ================================================================= */
.pub-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(1rem,2.4vw,1.6rem); }
.pub{
  position:relative; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  background:var(--ink-2); display:flex; flex-direction:column; min-height:420px;
  transition:border-color .35s var(--ease), transform .35s var(--ease);
}
.pub:hover{ border-color:rgba(255,67,0,.45); transform:translateY(-4px); }
.pub-visual{
  position:relative; min-height:170px; display:grid; place-items:center; overflow:hidden;
  border-bottom:1px solid var(--line);
  background:radial-gradient(120% 130% at 70% 10%, rgba(255,67,0,.16), transparent 58%), var(--ink-3);
}
.pub-visual .ring{ position:absolute; inset:0; width:100%; height:100%; opacity:.5; }
.pub-visual .logo{ position:relative; z-index:2; }
.pub-visual .logo.tt{ width:82%; max-width:340px; }
.pub-visual .logo.wl{ width:62%; max-width:230px; }
.pub-tag-flag{ position:absolute; top:1rem; left:1rem; z-index:3; font-family:var(--mono); font-size:.6rem; letter-spacing:.2em; text-transform:uppercase; color:var(--accent); border:1px solid rgba(255,67,0,.4); border-radius:100px; padding:.3rem .65rem; background:rgba(14,13,16,.5); }
.pub-body{ padding:clamp(1.5rem,2.4vw,2.1rem); display:flex; flex-direction:column; flex:1; }
.pub-kicker{ font-family:var(--mono); font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2); }
.pub-name{ font-family:var(--display); font-weight:800; font-size:clamp(1.5rem,1.2rem + 1.3vw,2.1rem); letter-spacing:-.02em; line-height:1; margin:.7rem 0 0; }
.pub-line{ font-family:var(--display); font-weight:600; font-size:1.08rem; color:var(--accent); margin:.7rem 0 0; letter-spacing:-.01em; }
.pub-desc{ color:var(--muted); font-size:.96rem; margin:1rem 0 0; }
.pub-link{ display:inline-flex; align-items:center; gap:.55rem; margin-top:auto; padding-top:1.6rem; font-family:var(--mono); font-size:.82rem; color:var(--paper); width:fit-content; }
.pub-link .line{ width:1.8rem; height:1px; background:var(--accent); transition:width .3s var(--ease); }
.pub-link:hover .line{ width:3rem; }

/* =================================================================
   Principles ledger
   ================================================================= */
.ledger{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.ledger li{
  display:grid; grid-template-columns:auto 1fr; gap:clamp(1rem,4vw,4rem); align-items:baseline;
  padding:clamp(1.4rem,3vw,2.1rem) 0; border-bottom:1px solid var(--line);
  transition:padding-left .3s var(--ease), background .3s var(--ease);
}
.ledger li:hover{ padding-left:1rem; background:linear-gradient(90deg,var(--accent-glow),transparent 40%); }
.ledger .idx{ font-family:var(--mono); font-size:.8rem; color:var(--accent); letter-spacing:.1em; }
.ledger .pr-title{ font-family:var(--display); font-weight:700; font-size:clamp(1.25rem,1rem + 1.2vw,1.9rem); letter-spacing:-.02em; }
.ledger .pr-desc{ color:var(--muted); font-size:.98rem; margin-top:.4rem; max-width:60ch; }

/* =================================================================
   Contact
   ================================================================= */
.contact{ position:relative; }
.contact .wrap{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,5vw,5rem); align-items:end; }
.contact h2{ font-family:var(--display); font-weight:800; letter-spacing:-.03em; line-height:.98;
  font-size:clamp(2.2rem,1.6rem + 4vw,4.6rem); margin:.6rem 0 0; }
.contact .mail{
  font-family:var(--display); font-weight:600; font-size:clamp(1.3rem,1rem + 1.6vw,2.1rem);
  display:inline-flex; align-items:center; gap:.7rem; margin-top:1.4rem; letter-spacing:-.01em;
  border-bottom:1px solid var(--line); padding-bottom:.4rem; transition:border-color .3s var(--ease);
}
.contact .mail:hover{ border-color:var(--accent); }
.contact .mail .accent{ transition:transform .25s var(--ease); }
.contact .mail:hover .accent{ transform:translateX(4px); }
.contact-meta{ display:grid; gap:1.6rem; }
.contact-meta .blk .k{ font-family:var(--mono); font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2); }
.contact-meta .blk .v{ margin-top:.45rem; color:var(--paper); }
.contact-meta .blk .v span{ color:var(--muted); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer{ border-top:1px solid var(--line); padding-block:clamp(2.5rem,5vw,4rem) 2rem; }
.foot-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; flex-wrap:wrap; }
.foot-brand{ display:flex; align-items:center; gap:.8rem; }
.foot-brand img{ height:40px; }
.foot-brand .lock .en{ font-family:var(--display); font-weight:700; font-size:1.05rem; }
.foot-nav{ display:flex; gap:1.6rem; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
.foot-nav a{ font-size:.9rem; color:var(--muted); transition:color .25s var(--ease); }
.foot-nav a:hover{ color:var(--paper); }
.foot-social{ display:flex; gap:.7rem; }
.foot-social a{ width:40px; height:40px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; color:var(--muted); transition:border-color .25s var(--ease), color .25s var(--ease); }
.foot-social a:hover{ border-color:var(--accent); color:var(--paper); }
.foot-bottom{ display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-top:clamp(2.5rem,5vw,4rem); padding-top:1.6rem; border-top:1px solid var(--line-soft); }
.foot-bottom p{ font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; color:var(--muted-2); margin:0; }

/* =================================================================
   Reveal-on-scroll
   ================================================================= */
.js .reveal{ opacity:0; transform:translateY(22px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
  .hero-visual .globe-mark,.meridian-field .spin,.meridian-field .arc-live{ animation:none; }
}

/* =================================================================
   Focus + skip link
   ================================================================= */
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }
.skip{ position:absolute; left:-9999px; top:0; z-index:100; background:var(--accent); color:#fff; padding:.7rem 1.1rem; border-radius:0 0 8px 0; }
.skip:focus{ left:0; }

/* =================================================================
   Responsive
   ================================================================= */

/* tighten nav spacing before it can crowd */
@media (max-width: 1040px){
  .nav-links{ gap:1.6rem; }
  .nav-right{ gap:1.6rem; }
}

/* stack the two-column layouts */
@media (max-width: 940px){
  .hero{ min-height:auto; padding-bottom:2.5rem; }
  .hero-grid{ grid-template-columns:1fr; gap:2.5rem; }
  .hero-visual{ order:-1; max-width:340px; margin-inline:auto; width:78%; }
  .statement .wrap{ grid-template-columns:1fr; gap:2rem; }
  .divisions-grid{ grid-template-columns:1fr; }
  .pub-grid{ grid-template-columns:1fr; }
  .contact .wrap{ grid-template-columns:1fr; gap:2.4rem; align-items:start; }
  .desk-strip{ position:relative; }            /* flows after hero — no overlap on tablets */
  .division{ min-height:0; }
}

/* hamburger menu (covers tablets too, so the bar never crams) */
@media (max-width: 860px){
  .nav-right{ display:none; }
  .nav-toggle{ display:block; }
  .site-nav-mobile{
    position:fixed; inset:var(--header-h) 0 auto 0; z-index:55;
    background:rgba(14,13,16,.97); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--line);
    display:grid; gap:.2rem; padding:1.2rem var(--gutter) 1.8rem;
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:opacity .3s var(--ease), transform .3s var(--ease);
  }
  .site-nav-mobile.open{ opacity:1; transform:none; pointer-events:auto; }
  .site-nav-mobile a{ padding:.9rem 0; border-bottom:1px solid var(--line-soft); font-size:1.1rem; color:var(--paper); }
  .site-nav-mobile a:last-child{ border-bottom:0; }
}

/* phones */
@media (max-width: 560px){
  :root{ --header-h:62px; --section-y:clamp(3.5rem,12vw,5rem); }
  .hero h1{ font-size:clamp(2.05rem,1rem + 6vw,2.8rem); line-height:1; }
  .hero h1 .word-int{ -webkit-text-stroke-width:1px; }
  .hero-visual{ width:74%; max-width:300px; }
  .hero-lens{ width:170px; height:170px; margin:-85px 0 0 -85px; }
  .hero-actions{ gap:.7rem; }
  .hero-actions .btn{ flex:1 1 100%; }          /* full-width tap targets */
  .desk-strip .wrap{ gap:.9rem 1.4rem; padding-block:1rem; }
  .desk-label{ flex-basis:100%; }
  .sec-head p{ font-size:1rem; }
  .statement .lead{ font-size:clamp(1.3rem,1rem + 4vw,1.8rem); }
  .ledger li:hover{ padding-left:.5rem; }
  .pub-visual{ min-height:140px; }
  .pub-visual .logo.tt{ width:74%; }
  .foot-top{ flex-direction:column; gap:1.6rem; }
  .foot-bottom{ flex-direction:column; gap:.5rem; }
  .contact .mail{ font-size:clamp(1.15rem,1rem + 4vw,1.7rem); word-break:break-word; }
}

@media (max-width: 380px){
  .hero h1{ font-size:2.05rem; }
  .brand .brand-text{ font-size:.92rem; }
}

@media (prefers-reduced-motion: reduce){
  .globe-stage{ transform:none !important; }
  .hero-lens{ display:none; }
  .hero::before{ transition:none; }
}
