/* ============================================================
   PORTFOLIO — design-first creative developer site
   Fonts: Jost (300/400/500) · Palette: #f3f3f3 / #020108
   ============================================================ */

:root {
  --bg: #f3f3f3;
  --ink: #020108;
  --light: #f3f3f3;
  --pad: 32px;
  --nav-h: 62px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", "Segoe UI", sans-serif;
  font-weight: 300;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

.container { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- typography ---------- */
.text-small   { font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; }
.text-small-1 { font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1; }
.text-x-small { font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.4; }
.text-medium  { font-size: clamp(26px, 3.28vw, 54px); font-weight: 300; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.2; }
.text-large   { font-size: clamp(38px, 5.3vw, 92px); font-weight: 300; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.2; }

.hero-heading {
  font-size: clamp(44px, 8vw, 150px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
}

.bracket-button {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 8px;
  display: inline-block;
}

.section-heading {
  font-size: clamp(52px, 9vw, 170px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

/* split text masks */
.line-mask { overflow: hidden; display: inline-block; vertical-align: bottom; }
.line-mask .line { display: inline-block; }
/* a page can hold 150+ split words — promoting every one of them costs more
   on a phone GPU than it saves, so only pointer devices get the hint */
@media (hover: hover) {
  .line-mask .line { will-change: transform, opacity; }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader-container {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 40px 48px;
}
/* set by an inline head script on repeat visits, so the light loader
   never flashes over the dark curtain before JS boots */
.no-loader .loader-container { display: none; }
.animated-number { display: flex; overflow: hidden; height: 20px; }
.rotating-digit-column {
  display: flex; flex-direction: column;
  font-size: 20px; line-height: 20px; font-weight: 400; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rotating-digit-column span { height: 20px; text-align: center; min-width: 0.62em; }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.transition { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: clip; }
.transition__panel {
  position: absolute; inset: 0;
  background: var(--ink);
  /* covers the page from the very first paint; JS reveals it */
  transform: translateY(0);
  display: flex; align-items: center; justify-content: center;
}
.transition__label {
  color: var(--light);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 300; text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-flex; gap: 0.35em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px var(--pad) 0;
  mix-blend-mode: difference;
  color: var(--light);
}
.navbar .logo { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase; color: var(--light); }
/* on a phone the blended initials land on top of hero and section copy —
   JS drops this class once the page has scrolled past the very top */
.navbar .left { transition: opacity 0.35s ease, transform 0.35s ease; }
.navbar .left.hide { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.navbar .right {
  display: flex; flex-direction: column; gap: 7px;
  padding: 8px 0; cursor: pointer; background: none; border: 0;
}
.menu-horizontal-line {
  display: block; width: 24px; height: 2px; background: var(--light);
  transition: transform 0.5s var(--ease-expo);
  transform-origin: center;
}
.navbar .right:hover .menu-horizontal-line:first-child { transform: translateY(-2px); }
.navbar .right:hover .menu-horizontal-line:last-child { transform: translateY(2px); }
body.drawer-open .menu-horizontal-line:first-child { transform: translateY(4.5px) rotate(45deg); }
body.drawer-open .menu-horizontal-line:last-child { transform: translateY(-4.5px) rotate(-45deg); }
body.drawer-open .navbar .right:hover .menu-horizontal-line:first-child { transform: translateY(4.5px) rotate(45deg); }
body.drawer-open .navbar .right:hover .menu-horizontal-line:last-child { transform: translateY(-4.5px) rotate(-45deg); }
/* the hero's cursor trail (crosshair + op-art rings) sits in the sticky hero
   section's own stacking context, which some browsers composite above a
   transformed, fixed-position overlay like the drawer — force it out of
   view for as long as the menu is open, since it has no reason to show
   through a full-screen menu anyway */
body.drawer-open .crosshair-v,
body.drawer-open .crosshair-h,
body.drawer-open .cursor-ring,
body.drawer-open .cursor-ring-dot { opacity: 0 !important; }

/* ============================================================
   DRAWER
   ============================================================ */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg); color: var(--ink);
  transform: translateY(-100%);
  visibility: hidden;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.drawer-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end; gap: 32px;
  padding: 0 var(--pad) 48px;
}
.menu-title {
  font-size: clamp(48px, 7.8vw, 120px);
  font-weight: 300; text-transform: uppercase;
  letter-spacing: -0.06em; line-height: 1;
}
.menu-title .line-mask { display: block; }
.drawer .icon-wrapper {
  position: relative; width: 200px; height: 140px; overflow: hidden;
}
.drawer .icon-wrapper > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 0.4s ease;
}
.drawer .icon-wrapper > img.show { opacity: 1; }
.menu-items { justify-self: end; text-align: right; }
.menu-item-wrapper { overflow: hidden; }
.menu-item {
  display: inline-block;
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 300; text-transform: uppercase; letter-spacing: -0.03em;
  line-height: 1.25;
  opacity: 0.35;
  transition: opacity 0.35s ease;
}
.menu-item:hover, .menu-item.active { opacity: 1; }

/* ============================================================
   HOME · HERO
   ============================================================ */
.home-hero-section {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.crosshair-v, .crosshair-h { position: absolute; pointer-events: none; z-index: 5; opacity: 0; }
.crosshair-v { top: 0; left: 0; width: 1px; height: 100%; background: rgba(2,1,8,0.35); }
.crosshair-h { top: 0; left: 0; width: 100%; height: 1px; background: rgba(2,1,8,0.35); }
.crosshair-text {
  position: absolute; top: 8px; left: 12px; white-space: nowrap;
  font-weight: 400;
}
.cursor-ring {
  position: absolute; top: 0; left: 0; z-index: 4;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none; opacity: 0;
  will-change: transform;
}
.cursor-ring.dashed { border-style: dashed; }
.cursor-ring-dot {
  position: absolute; top: 0; left: 0; z-index: 4;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  pointer-events: none; opacity: 0;
  will-change: transform;
}

.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 80px;
  z-index: 2; pointer-events: none;
}
/* touch devices (any width — a touch tablet in landscape is still ≥768px)
   get the static ring ornament instead of the mouse-driven trail */
.hero-features-mobile { display: none; }
@media (hover: none) {
  .hero-features-mobile { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
  .crosshair-v, .crosshair-h, .cursor-ring, .cursor-ring-dot { display: none; }
}
/* static op-art target — the touch stand-in for the desktop cursor rings.
   Six rings, alternating spin direction and speed, read as a hypnotic
   target rather than a decorative badge. */
.hero-rings-mobile { position: relative; width: 172px; height: 172px; }
.hero-rings-mobile .m-ring { position: absolute; border: 1px solid; border-radius: 50%; }
/* each side's inset is % of the box's own dimension, so two opposite insets
   must sum to under 100% or the remaining diameter goes negative — browsers
   then clamp the ring to a 0×0 box, which paints as a stray dot sitting at
   the center. Six rings spaced 8% apart tops out at 40%, staying positive. */
.hero-rings-mobile .m-ring:nth-child(1) { inset: 0%;   border-color: rgba(2,1,8,0.2); }
.hero-rings-mobile .m-ring:nth-child(2) { inset: 8%;   border-style: dashed; border-color: rgba(2,1,8,0.36); animation: ring-spin 32s linear infinite; }
.hero-rings-mobile .m-ring:nth-child(3) { inset: 16%;  border-color: rgba(2,1,8,0.52); animation: ring-spin 24s linear infinite reverse; }
.hero-rings-mobile .m-ring:nth-child(4) { inset: 24%;  border-style: dashed; border-color: rgba(2,1,8,0.68); animation: ring-spin 17s linear infinite; }
.hero-rings-mobile .m-ring:nth-child(5) { inset: 32%;  border-color: rgba(2,1,8,0.84); animation: ring-spin 12s linear infinite reverse; }
.hero-rings-mobile .m-ring:nth-child(6) { inset: 40%;  border-style: dashed; border-color: rgba(2,1,8,0.95); animation: ring-spin 8s linear infinite; }
.hero-rings-mobile .m-dot { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--ink); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-rings-mobile .m-ring { animation: none; } }
.upper-heading-mobile { display: none; }
.hero-big-heading .bottom-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.bottom-row .left {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 14px;
}
.bottom-row-mobile { display: none; }

/* ============================================================
   HOME · WORK SCROLL
   ============================================================ */
.work-scroll-section { position: relative; z-index: 2; background: var(--ink); color: var(--light); }
.blank-section-gap { height: 86px; background: var(--ink); }
.selected-work { padding-bottom: 120px; }
.work-wrapper { display: block; position: relative; }
.work-img-wrapper {
  position: relative; height: 360px; overflow: hidden; background: var(--ink);
}
.work-img-wrapper-2 {
  position: absolute; left: 50%; top: 50%;
  width: 720px; height: 480px;
  transform: translate(-50%, -50%);
  overflow: hidden; z-index: 3;
}
.work-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.work-image:first-child { opacity: 1; }
.work-info-wrapper {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--pad);
  pointer-events: none;
}
.work-title { display: flex; align-items: flex-start; gap: 16px; }
.work-title .title {
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 300; text-transform: uppercase; line-height: 1.15;
  color: var(--light);
}
.work-title .bracket-button {
  color: var(--light); opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.work-wrapper:hover .work-title .bracket-button { opacity: 1; transform: translateX(0); }
.work-detail {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.work-detail .tag, .work-detail .role { color: var(--light); opacity: 0.8; }

/* ============================================================
   HOME · PLAYGROUND
   ============================================================ */
.playground-section {
  position: relative; z-index: 20;
  background: var(--bg); color: var(--ink);
  padding: 40px 0 120px;
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(2,1,8,0.25);
  margin-bottom: 72px;
}
.playground-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 250px));
  justify-content: space-between;
  gap: 78px clamp(40px, 8vw, 228px);
}
.playground-grid-item:nth-child(even) { transform: translateY(38px); }
.playground-content { cursor: pointer; }
.video-wrapper { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.video-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease-expo);
}
.playground-content:hover .video-wrapper img { transform: scale(1.09); }
.info-wrapper { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.info-wrapper .title {
  font-size: 17px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em;
  display: inline-block; position: relative; width: fit-content;
}
.info-wrapper .title::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-expo);
}
.playground-content:hover .info-wrapper .title::after { transform: scaleX(1); transform-origin: left; }
.info-wrapper .type { opacity: 0.65; display: block; max-width: 34ch; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* explore all work */
.explore-link {
  position: relative; z-index: 2; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 100px 0 130px;
}
.explore-text { display: inline-block; cursor: pointer; text-align: center; }
.explore-wrap { position: relative; display: inline-block; }
.explore-svg {
  display: block; width: clamp(300px, 60vw, 900px); height: auto; overflow: visible;
}
.explore-svg text {
  font-family: "Jost", "Segoe UI", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  text-transform: uppercase;
}
.explore-outline-svg {
  /* bg-colored fill painted OVER the stroke hides the seam lines that
     stroking Jost's overlapping glyph contours produces inside letters */
  fill: var(--bg); stroke: var(--ink); stroke-width: 4;
  paint-order: stroke fill;
  stroke-linejoin: round; stroke-linecap: round;
}
.explore-fill-svg {
  /* match the outline layer's stroke extent exactly, so no grey rim
     from the outline layer peeks out around the edges once revealed */
  fill: var(--ink); stroke: var(--ink); stroke-width: 4;
  stroke-linejoin: round; stroke-linecap: round;
}
.explore-outline-box { position: relative; }
.explore-fill-clip {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-expo);
}
.explore-text:hover .explore-fill-clip { clip-path: inset(0 0% 0 0); }
/* touch devices: JS toggles .fill-in while the link is in view */
.explore-text.fill-in .explore-fill-clip { clip-path: inset(0 0% 0 0); }
.explore-text.fill-in .explore-sub { opacity: 1; letter-spacing: 0.45em; }
.explore-sub {
  display: block;
  font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.25em;
  opacity: 0.55; transition: opacity 0.4s ease, letter-spacing 0.6s var(--ease-expo);
}
.explore-text:hover .explore-sub { opacity: 1; letter-spacing: 0.45em; }

/* ============================================================
   HOME · ABOUT ME (scrub reveal)
   ============================================================ */
.about-me-wrapper { position: relative; background: var(--ink); }
.about-me-section {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--light);
  z-index: 1;
}
.about-me-info { padding: 0 var(--pad); max-width: 1200px; }
.about-me-description { color: var(--light); }
.about-me-description .line { opacity: 0.14; margin-right: 0.28em; }
.know-more {
  display: inline-block; margin-top: 32px;
  color: var(--light); font-size: 13px; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase;
  opacity: 0.7; transition: opacity 0.3s ease;
}
.know-more:hover { opacity: 1; }

/* ============================================================
   HOME · SERVICES  +  services page list
   ============================================================ */
.services-section {
  position: relative; z-index: 2;
  background: var(--bg); color: var(--ink);
  padding: 140px 0;
}
.service-list { max-width: 1400px; }
.service-item { display: inline; }
.service-text {
  display: inline-block;
  font-size: clamp(26px, 4.5vw, 74px);
  font-weight: 300; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.2;
}
.service-img-wrapper {
  position: relative; display: inline-block; vertical-align: middle;
  width: clamp(54px, 7.3vw, 94px); height: clamp(37px, 4.9vw, 63px);
  margin: 0 10px; overflow: hidden;
  transform: scaleX(0); transform-origin: left center;
}
.service-img-wrapper img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.4s ease;
}
.service-img-wrapper .img-2 { opacity: 0; }
.service-img-wrapper:hover .img-2 { opacity: 1; }
.service-img-wrapper .black-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.1); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: var(--light); }
.footer-wrapper {
  min-height: 780px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 140px; padding-bottom: 48px;
}
.lets-work-together { display: inline-block; }
.lets-work-together .title { display: inline-block; overflow: hidden; padding-bottom: 0.1em; }
.lets-work-together .title > div { display: inline-block; position: relative; }
.lets-work-together .contact { color: var(--light); margin-left: 12px; }
.lets-work-together:hover .contact { animation: blink 0.9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-top: 80px;
}
.page-navigation { display: flex; flex-direction: column; }
.navigation-link {
  font-size: clamp(26px, 3.28vw, 54px);
  font-weight: 300; text-transform: uppercase; letter-spacing: -0.04em; line-height: 1.25;
  color: var(--light); opacity: 0.35; width: fit-content;
  transition: opacity 0.35s ease;
}
.navigation-link:hover, .navigation-link.active { opacity: 1; }
.contact-navigation {
  display: flex; flex-direction: column; align-items: flex-end; gap: 32px;
}
.contact-info, .social-info { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-link { position: relative; opacity: 0.75; transition: opacity 0.3s ease; }
.footer-link:hover { opacity: 1; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; opacity: 0.45; }

/* ============================================================
   WORK PAGE
   ============================================================ */
.work-list-section { padding-top: 160px; padding-bottom: 120px; }
.menu-wrapper {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 22px; border-bottom: 1px solid rgba(2,1,8,0.25);
}
.work-categories { display: flex; gap: 28px; flex-wrap: wrap; }
.work-category-item {
  font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; opacity: 0.45; transition: opacity 0.3s ease;
}
.work-category-item:hover, .work-category-item.active { opacity: 1; }
.work-list-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 90px clamp(40px, 6vw, 120px);
  padding-top: 90px;
}
.work-card-item:nth-child(even) { transform: translateY(70px); }
.work-card { cursor: pointer; }
.work-card-image-wrapper {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink);
}
.work-card-image-wrapper img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 0.9s ease;
}
.work-card-image-wrapper img:first-child { opacity: 1; }
.work-card-content { padding-top: 16px; }
.work-card-title { display: flex; align-items: flex-start; gap: 14px; }
.work-card-title .title {
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 300; text-transform: uppercase; line-height: 1.15;
}
.work-card-title .bracket-button {
  color: var(--ink); opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.work-card:hover .bracket-button { opacity: 1; transform: translateX(0); }
.work-card-details {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 8px;
}
.work-card-details .role { opacity: 0.6; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-list-section { padding-top: 160px; }
.service-wrapper .full-line { height: 1px; background: rgba(2,1,8,0.3); margin: 28px 0 0; }
.service-container {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px;
  padding-top: 26px;
}
.service-container > .heading { opacity: 0.55; }
.services-list-section .service-list { display: flex; flex-direction: column; }
.services-list-section .service-item { display: block; overflow: hidden; }
.services-list-section .service-item .service-text {
  display: inline-block;
  font-size: clamp(28px, 4.1vw, 68px);
  line-height: 1.3;
  /* `translate` rather than `transform` — the reveal tween owns `transform`,
     and transitioning the same property fights it frame by frame */
  transition: opacity 0.3s ease, translate 0.6s var(--ease-expo);
}
@media (hover: hover) {
  .services-list-section .service-list:hover .service-text { opacity: 0.3; }
  .services-list-section .service-list .service-item:hover .service-text { opacity: 1; translate: 16px 0; }
}

/* FAQ */
.faq-section { padding: 160px 0 140px; }
.faq-wrapper { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 60px; }
.heading-wrapper h1 {
  font-size: clamp(52px, 8vw, 140px);
  font-weight: 300; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.9;
}
.sub-heading-wrapper { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; opacity: 0.8; }
.get-in-touch { text-decoration: underline; text-underline-offset: 3px; }
.accordion-wrapper { border-top: 1px solid rgba(2,1,8,0.25); }
.faq-item { border-bottom: 1px solid rgba(2,1,8,0.25); transition: padding-bottom 0.45s var(--ease-expo); }
.faq-item.open { padding-bottom: 28px; }
.question-wrapper {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; cursor: pointer;
}
.question-wrapper .question {
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 400; text-transform: uppercase; letter-spacing: 0;
}
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform 0.45s var(--ease-expo);
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
/* max-height, not a JS height tween — animating `grid-template-rows`
   between 0fr/1fr looked right in theory but never actually completed the
   transition in testing (a real fr-unit interpolation bug); this reads the
   content height once per click, not on every animation frame the way a
   GSAP height tween did, so it isn't what caused the original stutter */
.answer-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-expo);
}
.answer-wrapper p {
  /* no padding here — an item's own padding still occupies space inside a
     0fr grid row even with min-height:0, which is what was pinning this
     open at 28px instead of collapsing */
  overflow: hidden; min-height: 0;
  max-width: 60ch;
  font-size: 16px; line-height: 1.55; opacity: 0.75;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero-section { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 60px; }
.content-wrapper {
  position: relative; width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas:
    "heading photo"
    "desc photo"
    "scroll photo";
  align-items: center;
  column-gap: clamp(32px, 5vw, 90px);
}
.about-hero-section .heading {
  grid-area: heading;
  align-self: end;
  font-size: clamp(46px, 7.6vw, 132px);
  font-weight: 300; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.95;
}
.about-hero-section .image-wrapper {
  grid-area: photo;
  justify-self: end;
  width: 100%; max-width: 520px;
  overflow: hidden;
}
/* crop from the top edge, not the center — the 1.08 scale would otherwise
   trim the top of the head; the extra crop lands on the bottom instead,
   at every viewport width, with the photo staying the same size */
.about-hero-section .image-wrapper img { width: 100%; transform: scale(1.08); transform-origin: 50% 0%; }
.about-hero-section .description { grid-area: desc; max-width: 26ch; margin-top: 40px; }
.about-hero-section .scroll-text { grid-area: scroll; align-self: start; }
.about-hero-section .description a { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.scroll-text { display: inline-block; margin-top: 40px; opacity: 0.6; }

/* history (pinned) */
.history-section {
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--light);
}
.history-wrapper {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.point-wrapper { display: flex; flex-direction: column; gap: 14px; }
.point-mask { overflow: hidden; }
.point { display: inline-block; opacity: 0.35; transition: opacity 0.4s ease; }
.point-mask.active .point { opacity: 1; }
.history-wrapper .image-container {
  position: relative; width: clamp(260px, 30vw, 430px); aspect-ratio: 3/2;
  overflow: hidden;
}
.history-wrapper .image-wrapper { position: absolute; inset: 0; opacity: 0; }
.history-wrapper .image-wrapper.active { opacity: 1; }
.history-wrapper .image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.para-wrapper { position: relative; min-height: 300px; }
.para {
  position: absolute; inset: 0;
  font-size: 18px; font-weight: 300; line-height: 1.6;
  max-width: 38ch; opacity: 0; visibility: hidden;
}
.para.active { opacity: 1; visibility: visible; }

/* beyond work marquee */
.beyond-work-section { padding: 140px 0; overflow: hidden; }
.beyond-work-section .heading { padding-bottom: 40px; opacity: 0.7; }
.marquee-viewport { overflow: hidden; margin: 0 calc(-1 * var(--pad)); }
.hobby-list-wrapper { display: flex; gap: 32px; width: max-content; padding-left: var(--pad); }
.hobby-item { width: 300px; flex: none; }
.hobby-item .img-wrapper { aspect-ratio: 3/2; overflow: hidden; }
.hobby-item .img-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-expo);
}
.hobby-item:hover .img-wrapper img { transform: scale(1.07); }
.hobby-item .content-wrapper { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.hobby-item .hobby-title { font-size: 16px; font-weight: 400; text-transform: uppercase; }
.hobby-item .hobby-text { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.5; opacity: 0.6; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.get-in-touch-section { min-height: 100vh; min-height: 100svh; padding-top: 150px; padding-bottom: 100px; }
.header-wrapper {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  border-bottom: 1px solid rgba(2,1,8,0.25); padding-bottom: 36px;
}
.get-in-touch-section .title { display: flex; flex-wrap: wrap; }
.get-in-touch-section .title > div {
  font-size: clamp(52px, 9vw, 160px);
  font-weight: 300; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.95;
}
.get-in-touch-section .title .space { width: 0.35em; }
.contact-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-wrapper { overflow: hidden; }
.link-wrapper a { position: relative; display: inline-block; }
.link-wrapper a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-expo);
}
.link-wrapper a:hover::after { transform: scaleX(1); transform-origin: left; }

.contact-form-wrapper { padding-top: 90px; max-width: 780px; }
.contact-form { position: relative; overflow: hidden; }
.form-page { display: none; }
.form-page.active { display: block; }
.contact-form label.step-label { display: block; margin-bottom: 40px; }
.input-wrapper { display: flex; flex-direction: column; }
.contact-form input, .contact-form textarea {
  background: none; border: 0; border-bottom: 1px solid rgba(2,1,8,0.35);
  padding: 22px 0; font-size: 17px; font-weight: 300;
  outline: none; border-radius: 0; resize: none;
  transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form ::placeholder { color: rgba(2,1,8,0.4); text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.button-wrapper { display: flex; justify-content: space-between; align-items: center; padding-top: 48px; }
.next-step, .prev-step, .submit-btn {
  cursor: pointer; background: none; border: 0;
  font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em;
  position: relative; padding: 0;
}
.next-step::after, .submit-btn::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-expo);
}
.next-step:hover::after, .submit-btn:hover::after { transform: scaleX(1); transform-origin: left; }
.prev-step { opacity: 0.5; transition: opacity 0.3s ease; }
.prev-step:hover { opacity: 1; }
.form-success { display: none; padding: 40px 0; }
.form-success.show { display: block; }

/* ============================================================
   REVEAL DEFAULTS (JS toggles)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .playground-content-grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 60px; }
  .drawer-content { grid-template-columns: 1fr; gap: 48px; }
  .drawer .icon-wrapper { display: none; }
  .menu-items { justify-self: start; text-align: left; }
  .history-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .para-wrapper { min-height: 260px; }
  .faq-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --pad: 20px; }
  .hero-heading { font-size: clamp(40px, 11.5vw, 72px); }
  /* bleed the target past the container padding to the screen edges and
     size it to the viewport, so it reads as the page's opening visual
     rather than a small badge tucked in the corner */
  .hero-features-mobile {
    width: 100vw; margin-left: calc(-1 * var(--pad));
    display: flex; justify-content: center;
    margin-bottom: 48px;
  }
  .hero-rings-mobile { width: min(84vw, 400px); height: auto; aspect-ratio: 1 / 1; }
  .upper-heading-desktop { display: none; }
  .upper-heading-mobile { display: block; }
  .bottom-row .left { display: none; }
  .bottom-row-mobile {
    display: flex; justify-content: space-between; padding-top: 16px;
  }
  .navbar .right { padding: 12px 0 12px 16px; }
  .next-step, .prev-step, .submit-btn { padding: 10px 0; }
  .work-img-wrapper { height: 300px; }
  .work-img-wrapper-2 { width: 86vw; height: 390px; }
  .work-info-wrapper { padding: 20px var(--pad); }
  /* white copy sat straight on the photo — this scrim is what makes the
     project titles readable on a phone */
  .work-info-wrapper {
    background: linear-gradient(180deg,
      rgba(2,1,8,0.66) 0%, rgba(2,1,8,0.18) 38%,
      rgba(2,1,8,0.24) 58%, rgba(2,1,8,0.78) 100%);
  }
  .work-title .title { font-size: clamp(28px, 8.3vw, 34px); letter-spacing: -0.01em; }
  .work-detail { flex-direction: column; align-items: flex-start; gap: 6px; }
  .work-wrapper + .work-wrapper { margin-top: 30px; }
  .selected-work { padding-bottom: 90px; }
  .playground-content-grid { grid-template-columns: 1fr; gap: 56px; }
  .playground-grid-item:nth-child(even) { transform: none; }
  .work-list-wrapper { grid-template-columns: 1fr; gap: 64px; }
  .work-card-item:nth-child(even) { transform: none; }
  .menu-wrapper { flex-direction: column; align-items: flex-start; gap: 20px; }
  .service-container { grid-template-columns: 1fr; }
  .footer-wrapper { min-height: 640px; padding-top: 100px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-navigation { align-items: flex-start; }
  .contact-info, .social-info, .footer-meta { align-items: flex-start; }
  .header-wrapper { flex-direction: column; align-items: flex-start; }
  .contact-links { align-items: flex-start; }
  .content-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "photo" "desc" "scroll";
  }
  .about-hero-section .image-wrapper { justify-self: start; max-width: 420px; margin: 32px 0 0; }
  .hobby-item { width: 240px; }

  /* ---- readability bumps (scaled to the screen, so a 360px phone doesn't
     overflow the sticky about panel while a 430px one still gains size) ---- */
  .text-medium { font-size: clamp(28px, 8.8vw, 38px); }
  /* the home "Hi there..." paragraph sits in a fixed-height sticky panel —
     31px+ wraps an extra line at narrow widths and overflows it, so this
     one gets a smaller, safe ceiling instead of the shared clamp above.
     Bottom-anchoring the block (align-items: flex-end) was an attempt to
     clear the fixed navbar, but the gap it leaves above the text is just
     "panel height minus block height" — it shrinks to nothing on a short
     visual viewport and balloons into a large empty gap on a tall one, and
     no single block height makes both cases look right. Anchoring to the
     TOP with a fixed padding-top instead gives a gap that's the same
     constant size on every device; any extra room lands below "Know More"
     where empty space reads as normal, instead of above the heading where
     it reads as broken. */
  .about-me-section { align-items: flex-start; padding-top: 92px; }
  .about-me-info { padding-bottom: 8px; }
  .about-me-description { font-size: clamp(25px, 7.2vw, 27px); line-height: 1.12; }
  .about-me-info .know-more { margin-top: 24px; }
  .services-section .service-text { font-size: clamp(27px, 8vw, 34px); }
  .services-section { padding: 100px 0; }
  .services-list-section .service-item .service-text { font-size: clamp(28px, 8.2vw, 35px); }
  .explore-svg { width: 94vw; }
  .explore-link { padding: 80px 0 100px; }

  /* ---- about · journey rebuilt as a plain vertical story ----
     the desktop version pins the section and scrubs three states in place;
     pinning fights the mobile URL bar and leaves the copy cramped, so JS
     regroups the three states into stacked full-width steps instead */
  .history-section {
    height: auto; min-height: 0; display: block;
    padding: 96px 0 104px;
  }
  .history-wrapper { display: block; gap: 0; }
  .journey-steps { display: flex; flex-direction: column; gap: 68px; }
  .journey-step { display: flex; flex-direction: column; gap: 18px; }
  .history-wrapper .journey-step .point { opacity: 1; letter-spacing: 0.12em; }
  .history-wrapper .journey-step .image-wrapper {
    position: static; opacity: 1;
    width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  }
  .history-wrapper .journey-step .para {
    position: static; opacity: 1; visibility: visible;
    max-width: none; font-size: 17px; line-height: 1.62;
  }
}

/* touch devices — hover affordances need to be visible without a cursor */
@media (hover: none) {
  .work-title .bracket-button,
  .work-card-title .bracket-button { opacity: 1; transform: none; }
}
