/* ==========================================================================
   ardcek — design system
   Monochrome, editorial, full-page "stack" navigation.
   Without JS every panel flows as a normal page (html:not(.fp)).
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #0d0d0d;
  --ink: #f4f4f2;
  --ink-2: #cfcfcb;
  --muted: #8b8b87;
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);
  --glass: rgba(255, 255, 255, .035);
  --ok: #4ade80;
  --err: #f87171;

  --f-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gut: clamp(1rem, 4vw, 3.5rem);
  --head: clamp(4.25rem, 9vh, 5.75rem);
  --foot: clamp(3.5rem, 8vh, 4.75rem);
  --maxw: 84rem;

  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 1.1s;
  --r: 1.25rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .75rem 1rem;
  background: var(--ink); color: var(--bg); border-radius: .5rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* film grain — static texture, costs nothing per frame */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Typography
   ========================================================================== */
.kicker {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .7; }
.kicker--plain::before { display: none; }

.h-display {
  font-weight: 900; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 7rem);
}
.h-section {
  font-weight: 900; letter-spacing: -.04em; line-height: .95;
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 5.5rem);
}
.h-card { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.55; max-width: 38ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--f-mono); }

/* masked line reveal */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
.outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.outline { -webkit-text-stroke-color: var(--ink); }

/* ==========================================================================
   Buttons, tags, links
   ========================================================================== */
.btn {
  --b: var(--ink); --c: var(--bg);
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; background: var(--b); color: var(--c);
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  border: 1px solid var(--b); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), color .4s var(--ease-out), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c);
  transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease-out);
}
.btn .icon { width: 1rem; height: 1rem; transition: transform .5s var(--ease-out); }
.btn:hover { color: var(--b); }
.btn:hover::before { transform: none; }
.btn:hover .icon { transform: translate(2px, -2px) rotate(45deg); }
.btn--ghost { --b: transparent; --c: var(--ink); color: var(--ink); border-color: var(--line-2); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-2);
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
}

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.link-u:hover { background-size: 100% 1px; }

.socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.socials a {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
}
.socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.socials .icon { width: 1.15rem; height: 1.15rem; }

/* ==========================================================================
   Header (blends over light & dark panels)
   ========================================================================== */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 70; height: var(--head);
  padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.logo { font-weight: 900; font-size: 1.6rem; letter-spacing: -.06em; line-height: 1; }
.logo sup { font-family: var(--f-mono); font-size: .55rem; font-weight: 500; letter-spacing: 0; vertical-align: top; margin-left: .15rem; opacity: .7; }
.nav { display: none; gap: clamp(1rem, 2.4vw, 2.25rem); align-items: center; }
.nav a { position: relative; font-size: .9rem; font-weight: 500; padding: .35rem 0; }
.nav a span { font-family: var(--f-mono); font-size: .62rem; opacity: .55; margin-right: .35rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: .55rem 1rem; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: #fff; color: #000; }

.menu-btn { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-right: -.5rem; }
.menu-btn i { display: block; width: 1.5rem; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.menu-btn i + i { margin-top: -1.1rem; }
.menu-btn i:first-child { transform: translateY(-4px); }
.menu-btn i:last-child { transform: translateY(4px); width: 1rem; justify-self: end; }
.menu-open .menu-btn i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: rotate(-45deg); width: 1.5rem; }
.menu-btn { grid-template-areas: "a"; }
.menu-btn i { grid-area: a; margin: 0 !important; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 65; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head) + 1rem) var(--gut) 2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu ol { counter-reset: m; }
.menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu li a {
  display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0;
  font-size: clamp(2.1rem, 9vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05;
  transform: translateY(100%); transition: transform .8s var(--ease-out);
}
.menu li a::before { counter-increment: m; content: "0" counter(m); font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .menu li:nth-child(6) a { transition-delay: .25s; }
.menu__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; opacity: 0; transition: opacity .6s .35s; }
.menu-open .menu__foot { opacity: 1; }

/* ==========================================================================
   Panels — base (no-JS = normal flow)
   ========================================================================== */
.panel { position: relative; background: var(--bg); }
.panel__scroll { position: relative; }
.panel__inner {
  position: relative; min-height: 100svh; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--head) + 1rem) var(--gut) calc(var(--foot) + 1rem);
  display: flex; flex-direction: column; justify-content: center;
}
.panel--light { --bg: #f4f4f2; --bg-2: #e9e9e6; --ink: #0a0a0a; --ink-2: #2b2b2b; --muted: #6b6b67; --line: rgba(0,0,0,.12); --line-2: rgba(0,0,0,.25); --glass: rgba(0,0,0,.03); color: var(--ink); }
.panel--light ::selection { background: #0a0a0a; color: #f4f4f2; }

/* ---------- full-page mode ---------- */
.fp, .fp body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.fp .stage { position: fixed; inset: 0; overflow: hidden; background: #000; }
.fp .panel {
  position: absolute; inset: 0; overflow: hidden;
  transition: clip-path var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: transform, clip-path;
}
.fp .panel__scroll {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.fp .panel__scroll::-webkit-scrollbar { display: none; }
.fp .panel__inner { min-height: 100%; }
/* depth shade on the receding panel */
.fp .panel::after {
  content: ""; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.fp .panel.is-next   { clip-path: inset(100% 0 0 0 round 2rem 2rem 0 0); transform: translateY(14vh); }
.fp .panel.is-active { clip-path: inset(0 0 0 0 round 0 0 0 0); transform: none; }
.fp .panel.is-prev   { clip-path: inset(0 0 0 0 round 2rem 2rem 2rem 2rem); transform: translateY(-6vh) scale(.92); }
.fp .panel.is-prev::after { opacity: .72; }
.fp.no-anim .panel, .fp.no-anim .panel::after, .fp.no-anim [data-r], .fp.no-anim .ln > span { transition: none !important; }

/* ---------- reveals ---------- */
.fp [data-r] {
  opacity: 0; transform: translateY(2rem);
  transition: opacity .01s linear var(--dur), transform .01s linear var(--dur);
}
.fp .ln > span { transform: translateY(105%); transition: transform .01s linear var(--dur); }
.fp .is-active [data-r] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms + 420ms);
}
.fp .is-active .ln > span {
  transform: none; transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 300ms);
}
.fp .is-prev [data-r], .fp .is-prev .ln > span { opacity: 1; transform: none; transition: none; }

/* ==========================================================================
   HUD — counter, rail, progress
   ========================================================================== */
.hud { position: fixed; inset: 0; z-index: 60; pointer-events: none; color: #fff; mix-blend-mode: difference; }
.hud > * { pointer-events: auto; }
html:not(.fp) .hud { display: none; }
.hud-progress { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--dur) var(--ease); }
.hud-count {
  position: absolute; left: var(--gut); bottom: 1.4rem; display: flex; align-items: center; gap: .9rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.hud-count__num { display: inline-flex; height: 1.1em; overflow: hidden; line-height: 1.1; font-size: .95rem; font-weight: 500; }
.hud-count__num b { display: block; font-weight: 500; transition: transform .8s var(--ease); }
.hud-count__title { opacity: .7; max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-next {
  position: absolute; right: var(--gut); bottom: 1.1rem; display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem 0;
}
.hud-next .icon { width: 1rem; height: 1rem; animation: bob 2.2s var(--ease-out) infinite; }
.hud-next.is-up .icon { transform: rotate(180deg); animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.hud-rail {
  position: absolute; right: calc(var(--gut) * .6); top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; gap: .15rem;
}
.hud-rail button {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem; height: 1.6rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
}
.hud-rail button span { opacity: 0; transform: translateX(.5rem); transition: opacity .4s, transform .5s var(--ease-out); white-space: nowrap; }
.hud-rail button i { display: block; width: .9rem; height: 1px; background: currentColor; opacity: .45; transition: width .5s var(--ease-out), opacity .3s; }
.hud-rail button:hover i { opacity: 1; }
.hud-rail button[aria-current="true"] i { width: 2.25rem; opacity: 1; }
.hud-rail:hover button span, .hud-rail:focus-within button span { opacity: .65; transform: none; }
.hud-rail:hover button[aria-current="true"] span { opacity: 1; }
@media (min-width: 900px) and (min-height: 520px) { .hud-rail { display: flex; } }
@media (max-width: 899px) { .hud-next span { display: none; } }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-l { grid-template-columns: 1.15fr .85fr; }
  .split--wide-r { grid-template-columns: .85fr 1.15fr; }
  .split--flip > :first-child { order: 2; }
}
.stack > * + * { margin-top: var(--s, 1.25rem); }
.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }
.head-block { max-width: 46rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.head-block.center { display: flex; flex-direction: column; align-items: center; }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero { --mx: 70%; --my: 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40rem 40rem at var(--mx) var(--my), rgba(255,255,255,.09), transparent 60%),
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%;
  transition: background-position .2s;
}
.hero .panel__inner { justify-content: space-between; gap: clamp(1.5rem, 4vh, 3rem); }
/* keep the wordmark centered between the header and the bottom text
   (padding-top mirrors the flex gap below it so both sides match) */
@media (min-width: 900px) { .hero .wordmark-wrap { margin-block: auto; padding-top: clamp(1.5rem, 4vh, 3rem); } }

.wordmark {
  display: block; font-weight: 900; line-height: .78; letter-spacing: -.075em;
  font-size: clamp(5.5rem, min(25.5vw, 44vh), 30rem); margin-left: -.04em; white-space: nowrap;
}
.wordmark span { display: inline-block; transition: transform .7s var(--ease-out); }
.fp .wordmark span { transform: translateY(105%); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 150ms); }
.fp .is-active .wordmark span { transform: none; }
.wordmark-wrap { overflow: hidden; padding-bottom: .04em; }
@media (hover: hover) { .wordmark span:hover { transform: translateY(-.08em) !important; transition-delay: 0s !important; } }

.hero__bottom { display: grid; gap: 1.75rem; align-items: end; }
@media (min-width: 900px) { .hero__bottom { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.hero__claim { font-size: clamp(1.7rem, 1rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero__claim .dyn { display: inline-block; color: var(--ink); border-bottom: 2px solid currentColor; padding-bottom: .02em; }
.scramble-char { color: var(--muted); }
.hero__side { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__side p { color: var(--ink-2); max-width: 34rem; }

/* ==========================================================================
   SERVICE panels (home)
   ========================================================================== */
.svc .panel__inner { justify-content: center; }
.svc__num {
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%);
  font-weight: 900; font-size: clamp(10rem, 34vw, 32rem); line-height: .8; letter-spacing: -.08em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); pointer-events: none; user-select: none;
}
.svc--flip .svc__num { right: auto; left: var(--gut); }
.svc__media { position: relative; }
.frame {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg-2); aspect-ratio: 1 / 1;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out), opacity .6s; }
.fp .is-active .frame img { transform: scale(1); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -80px 120px -60px rgba(0,0,0,.8); pointer-events: none; }
.frame__label { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .8; }
.svc .frame { max-width: 34rem; margin-inline: auto; width: 100%; }
@media (max-width: 899px) {
  .svc .frame { aspect-ratio: 16 / 11; max-height: 38vh; }
  .svc__num { top: auto; bottom: 8%; transform: none; font-size: 48vw; }
}
.svc__body { display: flex; flex-direction: column; gap: 1.4rem; position: relative; }
.svc__body .lead { max-width: 30rem; }

/* ==========================================================================
   WORK list (home teaser)
   ========================================================================== */
.work-list { border-top: 1px solid var(--line); }
.work-row {
  position: relative; display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: 1rem;
  padding: clamp(1rem, 2.6vh, 1.6rem) 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease-out), color .3s;
}
.work-row__n { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.work-row__t { font-size: clamp(1.4rem, .9rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.work-row__c { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .75rem; }
.work-row__c .icon { width: 1.4rem; height: 1.4rem; color: var(--ink); transition: transform .5s var(--ease-out); }
.work-row__img {
  position: absolute; right: 22%; top: 50%; width: clamp(10rem, 18vw, 16rem); aspect-ratio: 4/3; object-fit: cover;
  border-radius: .75rem; pointer-events: none; opacity: 0; z-index: 2;
  transform: translateY(-50%) rotate(-6deg) scale(.85); transition: opacity .35s, transform .6s var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
@media (hover: hover) and (min-width: 900px) {
  .work-list:hover .work-row { color: var(--muted); }
  .work-row:hover { color: var(--ink) !important; padding-left: 1rem; }
  .work-row:hover .work-row__img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
  .work-row:hover .work-row__c .icon { transform: rotate(45deg); }
}
@media (max-width: 899px) { .work-row__img { display: none; } .work-row__c span { display: none; } }

/* ==========================================================================
   ABOUT (home)
   ========================================================================== */
.profile {
  border: 1px solid var(--line); border-radius: calc(var(--r) * 1.2); padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01) 60%); position: relative; overflow: hidden;
}
.profile__top { display: flex; align-items: center; gap: 1.25rem; }
.profile__avatar { position: relative; flex: none; width: clamp(4.5rem, 9vw, 6.5rem); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #fff, #555, #fff); }
.profile__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.profile__name { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: 1.35rem; font-weight: 600; }
.profile__name a { font-size: .8rem; font-weight: 600; padding: .45rem .9rem; border-radius: .6rem; background: var(--ink); color: var(--bg); transition: opacity .3s; }
.profile__name a:hover { opacity: .8; }
.profile__stats { display: flex; gap: 1.25rem; margin-top: .4rem; font-size: .9rem; color: var(--ink-2); }
.profile__stats b { color: var(--ink); }
.profile__bio { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.profile__bio strong { color: var(--ink); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); margin-top: clamp(2rem, 5vh, 3.5rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { display: flex; align-items: center; gap: 2rem; padding: 1rem 1rem; font-size: clamp(1.1rem, .8rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-size: .6em; color: var(--muted); }
.panel:not(.is-active) .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   CONTACT (light panel)
   ========================================================================== */
.contact .panel__inner { justify-content: space-between; gap: 2rem; }
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-block: auto; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact__mail { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.05rem, .9rem + .8vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; word-break: break-all; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; border-radius: 0;
  padding: 1.5rem 0 .6rem; font-size: 1rem; color: var(--ink); transition: border-color .3s; resize: none;
}
.field textarea { min-height: 6.5rem; }
.field label {
  position: absolute; left: 0; top: 1.4rem; color: var(--muted); font-size: 1rem; pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.15rem) scale(.78); color: var(--ink-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.panel--light .field.is-invalid input, .panel--light .field.is-invalid textarea { border-color: #dc2626; }
.field__err { display: block; min-height: 1.1rem; font-size: .75rem; color: #dc2626; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form__status { font-size: .9rem; color: var(--ink-2); }
.form__status.is-err { color: #dc2626; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.btn[aria-busy="true"] .icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-done { display: none; }
.form-done h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.is-sent .form { display: none; }
.is-sent .form-done { display: block; }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted);
}
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot nav a:hover { color: var(--ink); }

/* ==========================================================================
   SUB-PAGES
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* cycling media + captions */
.cycle { position: relative; }
.cycle > * { transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out), filter .9s; }
.cycle > :not(.is-on) { opacity: 0; pointer-events: none; }
.cycle--media > * { position: absolute; inset: 0; }
.cycle--media > :not(.is-on) img { transform: scale(1.06); }
.cycle--text { display: grid; }
.cycle--text > * { grid-area: 1 / 1; }
.cycle--text > :not(.is-on) { transform: translateY(.6rem); filter: blur(4px); }
html:not(.fp) .cycle > :first-child { opacity: 1; transform: none; filter: none; }
html:not(.fp) .cycle--text > :not(:first-child) { display: none; }
.cycle__dots { display: flex; gap: .4rem; margin-top: 1rem; }
.cycle__dots i { width: 1.5rem; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.cycle__dots i.is-on::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: fill var(--cycle, 5s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } }
.frame.frame--wide { aspect-ratio: 16 / 11; }
.frame.frame--tall { aspect-ratio: 4 / 5; }
@media (max-width: 899px) { .page-hero .frame { aspect-ratio: 16 / 10; max-height: 34vh; } .page-hero .frame.frame--tall { aspect-ratio: 4 / 3; } }
.page-hero .lead { max-width: 34rem; }

/* cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.card {
  position: relative; padding: clamp(1.25rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--glass); overflow: hidden; transition: border-color .4s, transform .6s var(--ease-out), background .4s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); background: rgba(255,255,255,.055); }
.card__n { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); display: block; margin-bottom: 2.5rem; }
.card p { margin-top: .6rem; color: var(--ink-2); font-size: .95rem; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: .75rem; color: var(--muted); padding-top: .25rem; }
.steps b { display: block; font-size: 1.1rem; letter-spacing: -.01em; }
.steps span { color: var(--ink-2); font-size: .95rem; }

/* meters */
.meters { display: grid; gap: 1.4rem; }
.meter__head { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--ink-2); margin-bottom: .55rem; }
.meter__head b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.meter { height: 2px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p)); }
.fp .meter i { transform: scaleX(0); transition: transform .01s linear var(--dur); }
.fp .is-active .meter i { transform: scaleX(var(--p)); transition: transform 1.6s var(--ease-out) calc(var(--d, 0) * 120ms + 600ms); }

/* badge cloud */
.cloud { display: flex; flex-wrap: wrap; gap: .6rem; }
.cloud .tag { font-size: .8rem; padding: .65rem 1.05rem; transition: background .3s, color .3s; }
.cloud .tag:hover { background: var(--ink); color: var(--bg); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 700; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.25rem; height: 1.25rem; transition: transform .5s var(--ease-out); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-2); max-width: 46rem; }

/* timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline time { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; color: var(--muted); padding-top: .35rem; }
.timeline h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); font-weight: 800; letter-spacing: -.025em; }
.timeline p { margin-top: .35rem; color: var(--ink-2); }
@media (max-width: 559px) { .timeline li { grid-template-columns: 1fr; gap: .4rem; } }
.quote { margin-top: 2rem; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; max-width: 40rem; }
.quote::before { content: "“"; display: block; font-size: 3em; line-height: .6; color: var(--muted); }

/* KPIs */
.kpis { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.kpi { background: var(--bg); padding: clamp(1.4rem, 3vw, 2.4rem); }
.kpi b { display: block; font-size: clamp(3rem, 2rem + 4vw, 5.5rem); font-weight: 900; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: .9rem; color: var(--muted); font-size: .9rem; }

/* gallery strip */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(11rem, 22vw, 17rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gallery figure { scroll-snap-align: start; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; background: var(--bg-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; filter: grayscale(1) contrast(1.05); }
.gallery figure:hover img { transform: scale(1.05); filter: none; }

/* project (referanslar) */
.project__meta { display: grid; gap: .75rem; margin-top: .5rem; }
.project__meta li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.project__meta li b { font-family: var(--f-mono); font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
@media (max-width: 559px) { .project__meta li { grid-template-columns: 1fr; gap: .15rem; } }
.note { font-size: .8rem; color: var(--muted); }

/* big CTA */
.cta-big { font-size: clamp(2.8rem, 1rem + 8vw, 9rem); font-weight: 900; letter-spacing: -.06em; line-height: .88; }
.cta-big a { display: inline-flex; align-items: center; gap: .15em; }
.cta-big .icon { width: .7em; height: .7em; transition: transform .7s var(--ease-out); }
.cta-big a:hover .icon { transform: rotate(45deg); }

/* ==========================================================================
   Error pages
   ========================================================================== */
.err { min-height: 100svh; display: grid; place-items: center; padding: var(--head) var(--gut) 3rem; position: relative; overflow: hidden; text-align: center; }
.err::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / calc(100% / 6) 100%; pointer-events: none; }
.err__code { font-size: clamp(7rem, 32vw, 22rem); font-weight: 900; letter-spacing: -.08em; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.err__code span { display: inline-block; animation: rise 1.2s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.err h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); font-weight: 900; letter-spacing: -.04em; margin-top: 1.5rem; }
.err p { color: var(--ink-2); max-width: 34rem; margin: .8rem auto 2rem; }
.err .btn-row { justify-content: center; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }

/* ==========================================================================
   Custom cursor (mouse only — site.js adds .has-cursor)
   ========================================================================== */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor :is(input, textarea) { cursor: text !important; }
.has-cursor select { cursor: default !important; }
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  opacity: 0; mix-blend-mode: difference; will-change: transform; transition: opacity .3s;
}
.cursor-dot::before, .cursor-ring::before {
  content: ""; position: absolute; border-radius: 50%;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.cursor-dot::before { width: 6px; height: 6px; left: -3px; top: -3px; background: #fff; }
.cursor-ring::before { width: 36px; height: 36px; left: -18px; top: -18px; border: 1px solid #fff; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-hover .cursor-dot::before { transform: scale(0); }
.cursor-hover .cursor-ring::before { transform: scale(1.75); }
.cursor-down .cursor-ring::before { transform: scale(.8); }
.cursor-hover.cursor-down .cursor-ring::before { transform: scale(1.5); }
.cursor-text .cursor-dot, .cursor-text .cursor-ring { opacity: 0; }

/* ==========================================================================
   Responsive fine-tuning
   ========================================================================== */
@media (max-width: 899px) {
  /* fade content under the bottom HUD while scrolling inside a panel */
  .fp .panel__scroll { --m: linear-gradient(transparent calc(var(--head) * .55), #000 var(--head), #000 calc(100% - 4.5rem), transparent calc(100% - 1rem)); -webkit-mask-image: var(--m); mask-image: var(--m); }
  .svc .frame { max-height: 32vh; }
  .split { gap: 1.75rem; }
  .svc .split > .svc__media { order: -1; }
  .hero .panel__inner { justify-content: center; gap: 2rem; }
}
@media (max-height: 560px) and (min-width: 600px) {
  :root { --head: 3.75rem; --foot: 3rem; }
  .fp .panel__scroll { --m: linear-gradient(transparent calc(var(--head) * .55), #000 var(--head), #000 calc(100% - 3.5rem), transparent calc(100% - .75rem)); -webkit-mask-image: var(--m); mask-image: var(--m); }
  .svc .frame, .page-hero .frame { max-height: 60vh; }
  .wordmark { font-size: clamp(4rem, 30vh, 12rem); }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  :root { --dur: .45s; }
  .fp .panel.is-next, .fp .panel.is-prev { clip-path: none; transform: none; opacity: 0; }
  .fp .panel { transition: opacity var(--dur) ease; }
  .fp .panel.is-active { opacity: 1; }
  .fp [data-r], .fp .ln > span, .fp .wordmark span { transform: none !important; }
  .marquee__track, .hud-next .icon { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media print {
  body::after, .hud, .site-head, .menu { display: none !important; }
  .panel { break-inside: avoid; }
}
