/* === Tokens (inlined from colors_and_type.css) === */
/* ============================================================
   Max Kostohris — Colors & Type
   Aerial · Monochrome · Cinematic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- Color: Surfaces (the deep night sky) ---------- */
  --bg-0:    #000000;          /* pure black — page bg */
  --bg-1:    #0A0A0B;          /* near-black — cards, sections */
  --bg-2:    #131316;          /* elevated surface */
  --bg-3:    #1C1C20;          /* hover / pressed surface */
  --bg-4:    #26262C;          /* divider-tier surface */

  /* ---------- Color: Foreground (silver-on-black) ---------- */
  --fg-1:    #FFFFFF;          /* primary text, logo */
  --fg-2:    #C9C9CE;          /* secondary text — globe wireframe tone */
  --fg-3:    #8A8A92;          /* tertiary — captions, meta */
  --fg-4:    #555560;          /* quaternary — disabled, hairlines */
  --fg-5:    #2E2E34;          /* near-bg — subtle separators */

  /* ---------- Color: Accent (used VERY sparingly) ---------- */
  /* The brand is intentionally monochrome; one warm accent
     for highlights only — like a sunrise from altitude. */
  --accent:        #E8B14A;    /* aerial gold — golden hour */
  --accent-dim:    #A37A26;
  --accent-glow:   rgba(232, 177, 74, 0.18);

  /* ---------- Color: Semantic ---------- */
  --success: #6FCF97;
  --warning: #E8B14A;
  --danger:  #E0625C;
  --info:    #C9C9CE;

  /* ---------- Color: Hairlines & overlays ---------- */
  --line-1:  rgba(255,255,255,0.08);   /* default border */
  --line-2:  rgba(255,255,255,0.14);   /* hover border */
  --line-3:  rgba(255,255,255,0.24);   /* emphasized border */
  --scrim:   rgba(0,0,0,0.55);         /* image overlay */
  --scrim-strong: rgba(0,0,0,0.78);

  /* ---------- Type: Families ---------- */
  --font-display: 'Orbitron', 'Eurostile', 'Bank Gothic', system-ui, sans-serif;
  --font-body:    'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* ---------- Type: Scale (display-led) ---------- */
  --t-hero:    clamp(56px, 9vw, 144px);  /* full-bleed hero */
  --t-h1:      clamp(40px, 6vw, 88px);
  --t-h2:      clamp(28px, 4vw, 56px);
  --t-h3:      28px;
  --t-h4:      20px;
  --t-body:    16px;
  --t-small:   14px;
  --t-caption: 12px;
  --t-eyebrow: 11px;   /* the all-caps tracked label */

  /* ---------- Type: Tracking ---------- */
  --tr-display: -0.02em;   /* tight on display */
  --tr-body:    -0.005em;
  --tr-eyebrow: 0.22em;    /* generous on eyebrows */
  --tr-mono:    0.02em;

  /* ---------- Spacing scale (4-pt base) ---------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 144px;

  /* ---------- Radii (mostly sharp, photography-frame feel) ---------- */
  --r-0: 0px;       /* full bleed, photo edges */
  --r-1: 2px;       /* hairlines */
  --r-2: 4px;       /* default */
  --r-3: 8px;       /* cards */
  --r-4: 16px;      /* large surfaces */
  --r-pill: 999px;  /* pills, tags */

  /* ---------- Shadows (used sparingly; brand is mostly flat-on-black) ---------- */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.5);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.6);
  --shadow-3: 0 24px 48px -12px rgba(0,0,0,0.8);
  --glow-accent: 0 0 0 1px var(--accent), 0 0 32px var(--accent-glow);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);   /* default */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-glide:  cubic-bezier(0.16, 1, 0.3, 1);    /* drone-glide */
  --dur-fast:    160ms;
  --dur-base:    280ms;
  --dur-slow:    560ms;
  --dur-cine:    1200ms;   /* cinematic reveals */

  /* ---------- Layout ---------- */
  --content-max: 1400px;
  --gutter:      clamp(16px, 4vw, 64px);
}

/* ============================================================
   Base reset
   ============================================================ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas { max-width: 100%; display: block; }

/* ============================================================
   Semantic typography
   ============================================================ */
.hero, h1.hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: var(--tr-display);
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-h1);
  line-height: 0.96;
  letter-spacing: var(--tr-display);
  text-transform: uppercase;
  margin: 0 0 var(--s-5);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
}

h3, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
}

h4, .h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-h4);
  line-height: 1.3;
  margin: 0 0 var(--s-2);
}

p, .p {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 var(--s-4);
  text-wrap: pretty;
}

.lead {
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg-2);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}

.caption {
  font-size: var(--t-caption);
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: var(--tr-mono);
  color: var(--fg-2);
}

a {
  color: var(--fg-1);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color var(--dur-fast) var(--ease-out),
              color      var(--dur-fast) var(--ease-out);
}
a:hover { border-color: var(--fg-1); }

hr {
  border: 0;
  height: 1px;
  background: var(--line-1);
  margin: var(--s-7) 0;
}

::selection { background: var(--fg-1); color: var(--bg-0); }


/* === Site styles === */
/* Site-level CSS for the website UI kit. Imports tokens. */
html, body { background: #000; min-height: 100%; }
.site { min-height: 100vh; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 68px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,0.55); backdrop-filter: blur(16px);
  border-bottom-color: var(--line-1);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.04em; color: var(--fg-1); text-transform: uppercase;
}
.brand svg { width: 32px; height: 16px; color: #fff; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-2); border: 0;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-glide);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line-2); border-radius: var(--r-2);
  color: #fff; cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.nav-cta:hover { border-color: #fff; }

/* ---------- HERO ---------- */
.hero {
  position: relative; height: 100vh; min-height: 720px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.globe-stage { position: absolute; inset: 0; }
.globe-stage canvas { width: 100%; height: 100%; }
.hero-overlay {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 0 var(--gutter);
}
.hero-eyebrow { color: var(--fg-3); }
.hero-word {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.88; color: #fff;
  font-size: clamp(44px, 12vw, 200px);
  text-shadow: 0 0 40px rgba(0,0,0,0.6);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: none;
  max-width: 100%;
  /* Safety: if Orbitron hasn't loaded, the fallback must be narrow enough not to overflow */
  font-stretch: 75%;
}
.hero-tag {
  max-width: 540px; color: var(--fg-2); font-size: 18px; line-height: 1.5;
  margin-top: 6px;
}
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--r-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid transparent; transition: all var(--dur-fast) var(--ease-out);
}
.btn:active { opacity: 0.85; }
.btn-primary { background: #fff; color: #000; border-color: #fff; }
.btn-primary:hover { background: #f0f0f0; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: #fff; }
.btn-accent { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: rgba(232,177,74,0.1); }
.btn .arr { font-family: var(--font-body); font-weight: 400; font-size: 14px; }

/* ---------- SECTIONS ---------- */
.section { padding: var(--s-9) var(--gutter); max-width: var(--content-max); margin: 0 auto; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-6);
  align-items: end; margin-bottom: var(--s-7);
}
.section-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; }
.section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.96; font-size: var(--t-h2); margin: 0; }

/* ---------- WORK GRID ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.work-card {
  background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--r-3);
  overflow: hidden; cursor: pointer;
  transition: all var(--dur-base) var(--ease-glide);
}
.work-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.work-card.span-7 { grid-column: span 7; }
.work-card.span-5 { grid-column: span 5; }
.work-card.span-4 { grid-column: span 4; }
.work-card.span-8 { grid-column: span 8; }
.work-card.span-6 { grid-column: span 6; }
.work-thumb {
  aspect-ratio: 16 / 9; background-size: cover; background-position: center;
  position: relative;
}
.work-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.work-meta { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.work-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; }
.work-title { font-family: var(--font-body); font-size: 20px; font-weight: 600; color: #fff; }
.work-info { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-3); text-transform: uppercase; }

/* placeholder thumb gradients (no real photos available) */
.thumb-1 { background: radial-gradient(circle at 30% 60%, #1f1812 0%, #050505 70%), linear-gradient(135deg, #1a1a1d 0%, #050505 100%); background-blend-mode: screen; }
.thumb-2 { background: linear-gradient(180deg, #0a0a0e 0%, #1a1a20 50%, #050505 100%); }
.thumb-3 { background: radial-gradient(ellipse at 50% 80%, #2a1f0f 0%, #060606 60%); }
.thumb-4 { background: linear-gradient(135deg, #050505 0%, #15151a 50%, #0a0a0a 100%); }
.thumb-5 { background: radial-gradient(circle at 70% 30%, #1a1a22 0%, #050505 70%); }
.thumb-6 { background: linear-gradient(180deg, #14140e 0%, #050505 80%); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8);
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4 / 5; background: linear-gradient(135deg, #1a1a1d, #050505);
  border-radius: var(--r-3); border: 1px solid var(--line-1);
  position: relative; overflow: hidden;
}
.about-portrait::after {
  content: 'PORTRAIT'; position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--fg-4); text-transform: uppercase;
}
.about-body p { font-size: 18px; line-height: 1.6; color: var(--fg-2); margin-bottom: var(--s-4); }
.about-body .lead { font-size: 24px; color: #fff; font-weight: 500; margin-bottom: var(--s-5); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line-1); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: #fff; line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; margin-top: 8px; }

/* ---------- SOCIAL ---------- */
.social-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.social-card {
  background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--r-3);
  padding: 24px; cursor: pointer; transition: all var(--dur-base) var(--ease-glide);
  display: flex; flex-direction: column; gap: 14px;
}
.social-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.social-handle { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.social-platform { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; }
.social-stat { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: #fff; }
.social-stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--fg-3); text-transform: uppercase; }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field textarea, .field select {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 12px 0; color: #fff; font-family: var(--font-body); font-size: 18px;
  outline: 0; transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; padding: 32px; background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--r-3); }
.contact-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 4px; }
.contact-row { display: flex; flex-direction: column; gap: 6px; }
.contact-row .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); }
.contact-row .val { color: #fff; font-size: 16px; }

/* ---------- FOOTER ---------- */
.footer {
  margin-top: var(--s-10); padding: var(--s-8) var(--gutter) var(--s-7);
  border-top: 1px solid var(--line-1);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7);
  max-width: var(--content-max); margin-left: auto; margin-right: auto;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--fg-3); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin: 0 0 14px; }
.footer-col a { display: block; padding: 4px 0; color: var(--fg-2); font-size: 14px; border: 0; }
.footer-col a:hover { color: #fff; }
.footer-base {
  max-width: var(--content-max); margin: 0 auto; padding: var(--s-5) var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-3); text-transform: uppercase; border-top: 1px solid var(--line-1);
}

/* ---------- FIXED MK ANCHOR ---------- */
.mk-anchor {
  position: fixed; bottom: 24px; left: 24px; z-index: 40;
  width: 32px; height: 16px; color: #fff; opacity: 0.5;
}

/* ---------- ROUTES ---------- */
.route { display: none; }
.route.active { display: block; }

/* page hero variant (smaller than full hero) */
.page-hero {
  padding: 140px var(--gutter) var(--s-8);
  max-width: var(--content-max); margin: 0 auto;
}
.page-hero .eyebrow { color: var(--fg-3); margin-bottom: 14px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 96px); text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em; margin: 0 0 16px; }
.page-hero .lead { color: var(--fg-2); font-size: 20px; max-width: 640px; }

/* responsive shrink */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(6, 1fr); }
  .work-card.span-7, .work-card.span-5, .work-card.span-8, .work-card.span-4, .work-card.span-6 { grid-column: 1 / -1; }
  .about-grid, .contact { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* Phone-specific: shrink hero word + tighten gutters so nothing clips off-screen */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { min-height: 0; height: 100svh; }
  .hero-overlay { gap: 14px; padding: 0 16px; max-width: 100vw; box-sizing: border-box; }
  .hero-word {
    /* Hard cap: never bigger than 44px on phones. KOSTOHRIS @ 44px in Orbitron = ~293px,
       which fits comfortably on 375px viewport minus 32px padding (343px available). */
    font-size: 44px !important;
    line-height: 1.0;
    letter-spacing: -0.01em;
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-stretch: normal;
  }
  .hero-tag { font-size: 15px; max-width: 90%; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .nav { padding: 0 16px; height: 60px; }
  .brand { font-size: 14px; }
  .social-row { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

/* Very narrow phones (iPhone SE / mini, ~375px and below) */
@media (max-width: 380px) {
  .hero-word { font-size: 38px !important; }
}

/* Prevent any element from forcing horizontal scroll on phones */
html, body { overflow-x: hidden; max-width: 100vw; }
