/* ============================================================
   GULJAR HOSEN — PORTFOLIO 2026
   Design system: dark editorial / brutalist, orange accent
   Type: Anton (display) + Space Grotesk (body)
   ============================================================ */

:root {
  --ink: #0f0c09;            /* page background (espresso black) */
  --ink-2: #1a1410;          /* panel background */
  --panel: #1a1410;
  --cream: #f4e9d3;          /* primary text (warm cream) */
  --cream-dim: #cbbda3;
  --muted: #a5947c;
  --accent: #ff5c1c;
  --accent-deep: #e8b04b;
  --line: rgba(244, 233, 211, 0.16);
  --line-soft: rgba(244, 233, 211, 0.09);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --container: min(1440px, 92vw);
  --nav-h: 76px;
  --radius: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3a2f24; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--accent); color: var(--ink); font-weight: 700;
  padding: 10px 18px; border-radius: 99px; transition: top 0.3s;
}
.skip-link:focus { top: 16px; }

/* ---------- Retro tri-stripe band ---------- */
.retro-stripes {
  position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 210;
  background: linear-gradient(180deg, var(--accent) 0 2px, var(--accent-deep) 2px 4px, var(--cream) 4px 6px);
}

/* ---------- Universe backdrop ---------- */
.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25% 15%, rgba(244, 233, 211, 0.7), transparent 55%),
    radial-gradient(1px 1px at 70% 42%, rgba(244, 233, 211, 0.5), transparent 55%),
    radial-gradient(1.6px 1.6px at 45% 74%, rgba(232, 176, 75, 0.55), transparent 55%),
    radial-gradient(1px 1px at 86% 18%, rgba(244, 233, 211, 0.45), transparent 55%),
    radial-gradient(1.3px 1.3px at 14% 58%, rgba(255, 92, 28, 0.5), transparent 55%),
    radial-gradient(1px 1px at 60% 92%, rgba(244, 233, 211, 0.55), transparent 55%),
    radial-gradient(0.8px 0.8px at 38% 34%, rgba(244, 233, 211, 0.4), transparent 55%);
  background-size: 220px 220px, 300px 300px, 380px 380px, 260px 260px, 340px 340px, 420px 420px, 180px 180px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% -8%, rgba(43, 26, 15, 0.85), transparent 60%),
    radial-gradient(ellipse 80% 50% at 88% 105%, rgba(36, 20, 11, 0.7), transparent 55%);
}
@keyframes twinkle { from { opacity: 0.75; } to { opacity: 1; } }
main, .page-hero, .section, .footer { position: relative; z-index: 1; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none;
  width: 200%; height: 200%; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -8%); }
  20% { transform: translate(-12%, 4%); } 30% { transform: translate(6%, -12%); }
  40% { transform: translate(-4%, 14%); } 50% { transform: translate(-12%, 8%); }
  60% { transform: translate(12%, 0%); } 70% { transform: translate(0%, 12%); }
  80% { transform: translate(-8%, -2%); } 90% { transform: translate(8%, 6%); }
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 250;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); pointer-events: none;
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 0; left: 0; z-index: 249;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(242, 238, 229, 0.35);
    pointer-events: none; transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
      background-color 0.35s, border-color 0.35s, opacity 0.3s;
  }
  .cursor-ring .cursor-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--ink); opacity: 0; transition: opacity 0.2s; white-space: nowrap;
  }
  .cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--accent); }
  .cursor-ring.is-view {
    width: 92px; height: 92px; background: var(--accent); border-color: var(--accent);
  }
  .cursor-ring.is-view .cursor-label { opacity: 1; }
  .cursor-ring.is-down { width: 28px; height: 28px; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 260; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease-out);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader-name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 6rem); letter-spacing: 0.02em;
  display: flex; overflow: hidden;
}
.preloader-name span { display: inline-block; transform: translateY(110%); animation: pre-up 0.7s var(--ease-out) forwards; }
.preloader-name span:nth-child(odd) { color: var(--accent); }
@keyframes pre-up { to { transform: translateY(0); } }
.preloader-count {
  position: absolute; right: 6vw; bottom: 5vh;
  font-family: var(--font-display); font-size: clamp(3rem, 9vw, 7rem);
  color: var(--accent); line-height: 1;
}
body.is-loading { overflow: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15, 12, 9, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { display: flex; align-items: baseline; gap: 10px; }
.nav-logo .mark {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 900;
  letter-spacing: 0; line-height: 1;
}
.nav-logo .mark em { font-style: normal; color: var(--accent); }
.nav-logo .loc {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim); position: relative; padding: 6px 0; transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 0.6rem; }

.burger {
  display: none; position: relative; z-index: 230;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--cream); transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 220; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; padding: 0 8vw;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-out);
  visibility: hidden;
}
.menu-overlay.is-open { clip-path: inset(0 0 0% 0); visibility: visible; }
.menu-overlay nav { display: flex; flex-direction: column; gap: 0.4rem; }
.menu-overlay nav a {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1.12; letter-spacing: 0;
  color: var(--cream); display: flex; align-items: baseline; gap: 1rem;
  transform: translateY(30px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.5s, color 0.3s;
}
.menu-overlay.is-open nav a { transform: none; opacity: 1; }
.menu-overlay nav a i { font-style: normal; font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); }
.menu-overlay nav a:hover { color: var(--accent); }
.menu-overlay .menu-foot {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.4rem;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.menu-overlay .menu-foot a:hover { color: var(--accent); }

/* ---------- Buttons (filled) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.9rem; border-radius: 99px; border: 0;
  background: var(--cream); color: #140d07;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  overflow: hidden; transition: color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
  isolation: isolate; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--accent);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-deep);
  border-radius: 99px; transform: translateY(101%); transition: transform 0.5s var(--ease-out);
}
.btn:hover { color: #140d07; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform 0.4s var(--ease-out); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--solid { background: var(--accent); color: #140d07; box-shadow: 4px 4px 0 var(--cream); }
.btn--solid::before { background: var(--accent-deep); }
.btn--solid:hover { color: #140d07; box-shadow: 7px 7px 0 var(--cream); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--accent); }
.display {
  font-family: var(--font-display);
  font-weight: 900; line-height: 0.98; letter-spacing: 0;
}
.t-outline {
  color: var(--accent);
  font-style: italic;
}
.t-accent { color: var(--accent); }

.section { padding: clamp(5rem, 11vh, 9rem) 0; position: relative; }
.container { width: var(--container); margin: 0 auto; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(2.6rem, 6vh, 4.5rem);
}
.section-head h2 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.section-head .num { color: var(--accent); font-size: 0.55em; vertical-align: super; margin-left: 0.3rem; -webkit-text-stroke: 0; }
.section-link {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim);
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); transition: color 0.3s, border-color 0.3s;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(46px); }
.reveal.in-view {
  opacity: 1; transform: none;
  transition: opacity 0.9s ease, transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.line-wrap { overflow: hidden; display: block; }
.line-wrap .line-inner { display: block; transform: translateY(115%); }
.in-view .line-inner, .line-wrap.in-view .line-inner {
  transform: none; transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -18vw; top: -14vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 28, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero-inner { width: var(--container); margin: 0 auto; position: relative; }
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
}
.hero-role { max-width: 300px; font-size: 0.95rem; color: var(--cream-dim); }
.hero-role strong { color: var(--cream); font-weight: 600; }
.avail-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: 99px; padding: 0.55rem 1.1rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim);
}
.avail-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; position: relative;
}
.avail-pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #3ddc84; animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-title {
  font-size: clamp(4.2rem, 16.5vw, 15.5rem);
  position: relative; z-index: 2; pointer-events: none;
}
.hero-title .row { display: flex; overflow: hidden; }
.hero-title .row.row-2 { justify-content: flex-end; margin-top: -0.06em; }
.hero-title .ch { display: inline-block; transform: translateY(115%) rotate(5deg); transform-origin: 0 100%; }
.hero-title.in-view .ch { transform: none; transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--ci) * 45ms); }
.hero-title { position: relative; }
.hero-star {
  position: absolute; right: 7%; top: 4%; z-index: 3;
  display: inline-block; color: var(--accent); font-family: var(--font-body);
  font-size: 0.3em; line-height: 1; animation: spin 9s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { rotate: 360deg; } }

.hero-portrait {
  position: absolute; z-index: 1; left: 50%; bottom: -4%;
  width: clamp(220px, 26vw, 380px); aspect-ratio: 4 / 4.5;
  transform: translateX(-58%) rotate(-4deg);
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 0 var(--accent), 0 40px 80px rgba(0, 0, 0, 0.55);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }

.hero-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: clamp(1.6rem, 4vh, 2.6rem) 0;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 3; }
.hero-scroll {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.hero-scroll .wheel {
  width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 99px; position: relative;
}
.hero-scroll .wheel::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px;
  background: var(--accent); border-radius: 99px; transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; top: 5px; } 40% { opacity: 1; } 100% { opacity: 0; top: 18px; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; user-select: none; border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.marquee-track {
  display: flex; align-items: center; gap: clamp(2.4rem, 5vw, 4.5rem);
  width: max-content; padding: 1.1rem 0;
  animation: marquee var(--speed, 30s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; align-items: center; gap: clamp(2.4rem, 5vw, 4.5rem); flex-shrink: 0;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: 0.02em; color: var(--cream);
}
.marquee-item .sep { color: var(--accent); font-family: var(--font-body); font-size: 0.72em; }
.marquee--band {
  background: var(--accent); border: 0; transform: rotate(-1.6deg) scale(1.03);
  margin: clamp(3rem, 8vh, 5.5rem) -2vw;
}
.marquee--band .marquee-item { color: var(--ink); }
.marquee--band .marquee-item .sep { color: var(--ink); }

/* Client logos */
.logos { padding: clamp(2.2rem, 5vh, 3.4rem) 0; }
.logos-label {
  text-align: center; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem;
}
.logos .marquee { border: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos .marquee-track { gap: clamp(3.4rem, 7vw, 6rem); padding: 0.4rem 0; }
.logos .logo-item { display: flex; align-items: center; gap: clamp(3.4rem, 7vw, 6rem); flex-shrink: 0; }
.logos img {
  height: 30px; width: auto; opacity: 0.5; filter: grayscale(1) brightness(4);
  transition: opacity 0.3s, filter 0.3s;
}
.logos img:hover { opacity: 1; filter: grayscale(0) brightness(1); }

/* ---------- Work / project cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.work-card { position: relative; }
.work-card:nth-child(4n + 1) { grid-column: span 7; }
.work-card:nth-child(4n + 2) { grid-column: span 5; padding-top: clamp(2rem, 6vh, 5rem); }
.work-card:nth-child(4n + 3) { grid-column: span 5; }
.work-card:nth-child(4n + 4) { grid-column: span 7; padding-top: clamp(2rem, 6vh, 5rem); }
.work-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--panel);
  aspect-ratio: 16 / 11.5;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease-out), filter 0.6s;
  will-change: transform;
}
.work-card:hover .work-media img { transform: scale(1.055); }
.work-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(15, 12, 9, 0.4));
  opacity: 0.5; transition: opacity 0.5s; pointer-events: none;
}
.work-card:hover .work-media::after { opacity: 0.1; }
.work-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(15, 12, 9, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft); color: var(--cream);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 0.95rem; border-radius: 99px;
}
.work-meta { display: flex; align-items: baseline; gap: 1.1rem; padding: 1.2rem 0.3rem 0; }
.work-meta .idx { font-family: var(--font-display); color: var(--accent); font-size: 1rem; }
.work-meta h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem); letter-spacing: 0; line-height: 1.05;
  transition: color 0.3s;
}
.work-card:hover .work-meta h3 { color: var(--accent); }
.work-meta .work-arrow {
  margin-left: auto; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background 0.35s, border-color 0.35s, transform 0.45s var(--ease-out);
}
.work-card:hover .work-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); color: var(--ink); }

/* ---------- Cream sections ---------- */
.section--cream {
  background: var(--cream); color: var(--ink);
  --line: rgba(4, 7, 11, 0.16); --line-soft: rgba(4, 7, 11, 0.09);
  --muted: #5e6b76; --cream-dim: #2c3640;
  --accent: #0e7490;
}
.section--cream .t-outline { color: var(--accent-deep); }
.section--cream ::selection { background: var(--ink); color: var(--cream); }

/* About block */
.about-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.about-photo {
  margin-top: 2.2rem; border-radius: var(--radius); overflow: hidden; position: relative;
  transform: rotate(-2.5deg); border: 1px solid var(--line);
  box-shadow: 12px 12px 0 0 var(--accent);
  max-width: 340px;
}
.about-photo img { width: 100%; filter: saturate(0.94); }
.about-statement {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: 0.005em;
}
.about-statement em { font-style: normal; color: var(--accent-deep); }
.about-copy { margin-top: 2rem; max-width: 62ch; color: var(--cream-dim); font-size: 1.06rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy strong { color: inherit; font-weight: 600; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(2.6rem, 6vh, 4rem);
}
.stat { background: var(--cream); padding: clamp(1.4rem, 3vw, 2.4rem); }
.section--dark .stat, .stats--dark .stat { background: var(--ink-2); }
.stat .stat-num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1; color: var(--accent-deep); display: flex; align-items: baseline;
}
.stat .stat-num .plus { font-size: 0.5em; margin-left: 2px; }
.stat .stat-label { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Services rows ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vh, 2.6rem) clamp(0.4rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
  isolation: isolate; transition: color 0.4s;
}
.service-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out);
}
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { color: var(--ink); }
.service-row .s-idx { grid-column: 1; grid-row: 1; font-family: var(--font-display); font-size: 1.05rem; color: var(--accent); transition: color 0.4s; }
.service-row:hover .s-idx { color: var(--ink); }
.service-row h3 {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem); line-height: 1; letter-spacing: 0.01em;
}
.service-row .s-desc { grid-column: 2; grid-row: 2; max-width: 56ch; font-size: 0.98rem; color: var(--muted); margin-top: 0.5rem; transition: color 0.4s; }
.service-row:hover .s-desc { color: rgba(11, 11, 12, 0.75); }
.service-row .s-arrow {
  grid-column: 3; grid-row: 1 / span 2; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: transform 0.5s var(--ease-out), background 0.4s, border-color 0.4s;
}
.service-row:hover .s-arrow { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Experience ---------- */
.xp-rows { border-top: 1px solid var(--line); }
.xp-row {
  display: grid; grid-template-columns: 100px 1.3fr 1fr auto; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline; padding: clamp(1.5rem, 3.5vh, 2.2rem) 0.4rem;
  border-bottom: 1px solid var(--line); transition: background 0.3s, padding-left 0.4s var(--ease-out);
}
.xp-row:hover { background: rgba(255, 92, 28, 0.06); padding-left: 1.2rem; }
.xp-row .xp-idx { font-family: var(--font-display); color: var(--accent); font-size: 0.95rem; }
.xp-row h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.75rem); letter-spacing: 0.015em; }
.xp-row .xp-role { color: var(--cream-dim); font-size: 0.95rem; }
.xp-row .xp-date { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.xp-row .xp-note { grid-column: 2 / -1; font-size: 0.92rem; color: var(--muted); max-width: 72ch; }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 2.6vw, 2rem); }
.blog-card {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.55s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.blog-card:hover { transform: translate(-4px, -4px); border-color: var(--accent); box-shadow: 8px 8px 0 rgba(255, 92, 28, 0.85); }
.blog-card .b-meta { display: flex; align-items: center; gap: 0.9rem; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.blog-card .b-meta .b-cat { color: var(--accent); }
.blog-card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.18; letter-spacing: 0; }
.blog-card p { font-size: 0.95rem; color: var(--muted); }
.blog-card .b-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim); }
.blog-card .b-foot .arr { color: var(--accent); font-size: 1.1rem; transition: transform 0.4s var(--ease-out); }
.blog-card:hover .b-foot .arr { transform: translate(4px, -4px); }

/* ---------- Footer / CTA ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); }
.footer-cta { padding: clamp(5rem, 12vh, 9rem) 0 clamp(3rem, 7vh, 5rem); text-align: center; }
.footer-cta .eyebrow { justify-content: center; }
.footer-cta .eyebrow::before { display: none; }
.footer-big {
  font-size: clamp(3.4rem, 12.5vw, 11.5rem); line-height: 0.95; margin-top: 1.4rem;
}
.footer-big a { display: inline-block; transition: color 0.3s; }
.footer-big .t-outline { transition: color 0.45s; }
.footer-big a:hover .t-outline { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.footer-actions { margin-top: 2.8rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-grid {
  width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  padding: 1.6rem 0; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.footer-grid .f-socials { display: flex; gap: 1.6rem; }
.footer-grid a { transition: color 0.3s; }
.footer-grid a:hover { color: var(--accent); }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { padding: calc(var(--nav-h) + clamp(3rem, 9vh, 6rem)) 0 clamp(2.5rem, 6vh, 4rem); position: relative; overflow: hidden; }
.page-hero .crumbs { display: flex; gap: 0.6rem; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(3rem, 10vw, 8.5rem); }
.page-hero .page-sub { margin-top: 1.6rem; max-width: 58ch; color: var(--cream-dim); font-size: 1.08rem; }

/* Projects index */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.filter-chip {
  border: 1px solid var(--line); border-radius: 99px; padding: 0.55rem 1.15rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim); transition: all 0.3s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--cream); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #140d07; box-shadow: 3px 3px 0 var(--cream); }
.work-card.is-hidden { display: none; }

/* Case study */
.case-hero-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  margin-top: clamp(2rem, 5vh, 3.4rem);
}
.case-hero-media img { width: 100%; }
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; margin: clamp(2rem, 5vh, 3.4rem) 0;
}
.case-meta > div { background: var(--ink-2); padding: 1.4rem 1.6rem; }
.case-meta .cm-label { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.case-meta .cm-value { font-size: 0.98rem; color: var(--cream); }
.case-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); }
.case-body .case-side { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.case-prose h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: 0; line-height: 1.1;
  margin: 2.6rem 0 1rem;
}
.case-prose h2:first-child { margin-top: 0; }
.case-prose p { color: var(--cream-dim); margin-bottom: 1.1rem; }
.case-prose ul { margin: 1rem 0 1.4rem; display: grid; gap: 0.55rem; }
.case-prose li { display: flex; gap: 0.8rem; color: var(--cream-dim); }
.case-prose li::before { content: "✦"; color: var(--accent); flex-shrink: 0; }
.case-gallery { margin-top: clamp(2.4rem, 6vh, 4rem); display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.case-gallery figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.case-next { margin-top: clamp(4rem, 9vh, 6.5rem); border-top: 1px solid var(--line-soft); padding-top: clamp(2.5rem, 6vh, 4rem); text-align: center; }
.case-next .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.case-next a { display: inline-block; margin-top: 0.8rem; font-size: clamp(2.2rem, 6.5vw, 5rem); }
.case-next a:hover .t-outline { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

/* ---------- Blog article ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-head { text-align: left; margin-bottom: clamp(2rem, 5vh, 3rem); }
.article-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.article-meta .m-cat { color: var(--accent); }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); margin-bottom: 1.4rem; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.prose { font-size: 1.1rem; color: var(--cream-dim); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: 0;
  color: var(--cream); margin-top: 3rem;
}
.prose h3 { font-size: 1.25rem; font-weight: 700; color: var(--cream); margin-top: 2.2rem; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--cream); }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: 0.6rem; }
.prose ul li { display: flex; gap: 0.85rem; }
.prose ul li::before { content: "✦"; color: var(--accent); flex-shrink: 0; }
.prose ol { counter-reset: item; }
.prose ol li { display: flex; gap: 0.85rem; counter-increment: item; }
.prose ol li::before { content: counter(item, decimal-leading-zero); font-family: var(--font-display); color: var(--accent); flex-shrink: 0; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1.4rem;
  font-size: 1.3rem; line-height: 1.5; color: var(--cream); margin: 2rem 0;
}
.callout {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.callout .c-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }

/* Key takeaways + article index */
.takeaways, .toc {
  border-radius: var(--radius); padding: 1.7rem 1.9rem; margin-bottom: 1.4rem;
  border: 1px solid var(--line-soft);
}
.takeaways {
  background: linear-gradient(135deg, rgba(255, 92, 28, 0.12), rgba(232, 176, 75, 0.05)), var(--panel);
  border-color: rgba(255, 92, 28, 0.4);
  box-shadow: 0 12px 32px rgba(255, 92, 28, 0.12);
}
.takeaways .c-label, .toc .c-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.takeaways ul { display: grid; gap: 0.65rem; }
.takeaways li { display: flex; gap: 0.8rem; color: var(--cream-dim); font-size: 0.98rem; line-height: 1.6; }
.takeaways li::before { content: "✦"; color: var(--accent); flex-shrink: 0; }
.toc { background: var(--panel); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); margin-bottom: clamp(2rem, 5vh, 3rem); }
.toc ol { display: grid; gap: 0.55rem; counter-reset: tocitem; }
.toc li { display: flex; gap: 0.85rem; align-items: baseline; counter-increment: tocitem; }
.toc li::before { content: counter(tocitem, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--accent); flex-shrink: 0; }
.toc a { color: var(--cream-dim); font-size: 0.95rem; transition: color 0.25s; }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* Calendly embed shell */
.calendly-shell {
  border-radius: var(--radius); overflow: hidden; background: #ffffff;
  border: 1px solid var(--line-soft); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.calendly-shell .calendly-inline-widget { margin-top: 0; }
@media (min-width: 768px) { .calendly-shell .calendly-inline-widget { margin-top: -66px; } }
.author-box {
  display: flex; gap: 1.4rem; align-items: center; margin-top: clamp(3rem, 7vh, 4.5rem);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 4px 4px 0 rgba(255, 92, 28, 0.5); }
.author-box .a-name { font-weight: 700; color: var(--cream); }
.author-box .a-bio { font-size: 0.92rem; color: var(--muted); }
.author-box .a-links { margin-top: 0.3rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.author-box .a-links a { color: var(--accent); margin-right: 1rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.4rem 1.7rem;
  transition: border-color 0.35s, background 0.35s, transform 0.45s var(--ease-out);
}
.contact-item:hover { border-color: var(--accent); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 rgba(255, 92, 28, 0.85); }
.contact-item .ci-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.contact-item .ci-value { font-size: 1.15rem; font-weight: 600; color: var(--cream); }
.contact-item .arr { color: var(--accent); font-size: 1.3rem; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0.2rem; font-weight: 600; font-size: 1.05rem; color: var(--cream);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .f-ico { color: var(--accent); font-size: 1.3rem; transition: transform 0.4s var(--ease-out); flex-shrink: 0; }
.faq-item[open] summary .f-ico { transform: rotate(45deg); }
.faq-item .f-body { padding: 0 0.2rem 1.4rem; color: var(--muted); max-width: 70ch; }

/* Author page */
.author-hero {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 0.6rem;
}
.author-hero-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: 8px 8px 0 rgba(255, 92, 28, 0.85);
}
.author-hero-photo img { width: 100%; aspect-ratio: 1 / 0.92; object-fit: cover; }
@media (max-width: 760px) {
  .author-hero { grid-template-columns: 1fr; }
  .author-hero-photo { max-width: 300px; }
}

/* 404 */
.err-wrap { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.err-wrap .display { font-size: clamp(6rem, 24vw, 18rem); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .about-grid, .case-body, .contact-grid { grid-template-columns: 1fr; }
  .about-sticky, .case-body .case-side { position: static; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .case-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 72px; }
  .nav-logo .loc { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card:nth-child(n) { grid-column: 1 / -1; padding-top: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-portrait { position: relative; left: auto; bottom: auto; transform: rotate(-3deg); margin: 1.6rem auto 0; }
  .hero { min-height: auto; padding-bottom: 1rem; }
  .hero-top { flex-direction: column; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-scroll { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .xp-row { grid-template-columns: auto 1fr; }
  .xp-row .xp-date { grid-column: 2; }
  .xp-row .xp-note { grid-column: 1 / -1; }
  .service-row { grid-template-columns: auto 1fr; }
  .service-row .s-arrow { display: none; }
  .footer-grid { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-title .ch, .line-wrap .line-inner { opacity: 1 !important; transform: none !important; }
  .preloader { display: none; }
  .grain { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
