/* Tamila Panahi portfolio. Dark, technical look with depth: Geist typeface, near-black ground, lime accent. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #090b10;
  --surface: #12151d;
  --raised: #1a1f2a;
  --line: #2a3140;
  --ink: #f1f3f7;
  --muted: #9ea7b6;
  --accent: #c8ff4d;
  --accent-ink: #0a0c10;
  --blue: #6aa6ff;
  --margin: clamp(16px, 3vw, 48px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(80px, 10vw, 152px);
  --radius: 18px;
  --step-small: 0.9rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-head: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  --step-mega: clamp(2.4rem, 1.4rem + 4.2vw, 4.9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: var(--step-mega); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.statement { font-size: var(--step-lead); line-height: 1.35; font-weight: 500; max-width: 36ch; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 0; }

.arrow { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.06em; transition: transform 0.25s var(--ease); }
a:hover .arrow, a:focus-visible .arrow { transform: translate(3px, -3px); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:hover, .btn:focus-visible { background: #fff; color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(200, 255, 77, 0.55); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.btn--big { min-height: 60px; padding: 0 36px; font-size: var(--step-lead); }
.btn--ghost { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--bg); box-shadow: none; }
.link { font-weight: 500; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.link:hover { color: var(--accent); }

/* Top bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--margin); position: relative; z-index: 5; }
.bar__name { font-weight: 600; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.bar__name::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.bar__nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.bar__nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.15s; }
.bar__nav a:not(.btn):hover, .bar__nav a[aria-current] { color: var(--ink); }

/* ---- Home hero: text beside a 3D stack of work ---- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); align-items: center; padding: clamp(24px, 4vw, 64px) var(--margin) 0; min-height: min(86svh, 860px); overflow: clip; }
.hero::before {
  /* a floor grid receding into the distance */
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -12%; height: 70%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse at 62% 100%, #000 0%, transparent 68%); mask-image: radial-gradient(ellipse at 62% 100%, #000 0%, transparent 68%);
  opacity: 0.7;
}
.hero__text { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; padding-bottom: 5vh; }
.hero__name { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 14px; border-radius: 999px; font-size: var(--step-small); }
.hero__name b { color: var(--ink); font-weight: 600; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(200, 255, 77, 0.18); }
.hero__lead { font-size: var(--step-lead); line-height: 1.4; color: var(--muted); max-width: 34ch; }
.hero__act { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__stage { position: relative; z-index: 1; height: min(74svh, 720px); perspective: 1500px; display: grid; place-items: center; }
.stack { position: relative; width: min(42%, 270px); aspect-ratio: 4 / 5; margin-top: 34%; transform-style: preserve-3d; transform: rotateX(var(--rx, 56deg)) rotateZ(var(--rz, -40deg)); animation: float 9s ease-in-out infinite alternate; }
.stack li { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--n) * var(--lift, 78px))); transition: transform 0.5s var(--ease); }
.stack a { display: block; height: 100%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.35s var(--ease), box-shadow 0.35s; background: var(--surface); }
.stack img { width: 100%; height: 100%; object-fit: cover; }
.stack li:hover a, .stack a:focus-visible { transform: translate3d(18px, -18px, 26px); box-shadow: var(--shadow), 0 0 0 2px var(--accent); }
@keyframes float { from { translate: 0 -8px; } to { translate: 0 10px; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; }
  .hero__text { padding-bottom: 0; }
  .hero__stage { height: 420px; }
  .stack { width: 150px; margin-top: 150px; --lift: 46px; }
}

/* ---- Featured work: panels with covers tilted in space ---- */
.featured { margin-top: var(--section); padding: 0 var(--margin); }
.featured__h { padding-bottom: clamp(20px, 3vw, 36px); }
.tear { position: relative; display: grid; grid-template-columns: 5fr 7fr; background: var(--surface); border-radius: calc(var(--radius) + 6px); overflow: hidden; margin-bottom: var(--gap); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s; }
.tear:hover { box-shadow: inset 0 0 0 1px #3c465a; }
.tear:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.tear:nth-of-type(even) .tear__text { order: 2; }
.tear__text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 64px); }
.tear__title { font-size: var(--step-head); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
.tear__title a { text-decoration: none; }
.tear__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tear__meta { color: var(--muted); font-size: var(--step-small); order: -1; }
.tear__meta::first-letter { text-transform: uppercase; }
.tear__sum { color: var(--muted); max-width: 38ch; }
.tear__link { position: relative; z-index: 2; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); text-decoration: none; }
.tear__panes { background: var(--field); perspective: 1300px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: center; padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px); min-height: clamp(320px, 44vw, 560px); overflow: hidden; }
.tear__pane { transform-style: preserve-3d; }
.tear__pane img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); transform: translateY(var(--shift, 0px)) rotateY(-18deg) rotateX(8deg); will-change: transform; }
.tear__pane:last-child img { transform: translateY(calc(var(--shift, 0px) * -1)) rotateY(-18deg) rotateX(8deg) translateZ(40px); }
.featured__all { padding-top: 28px; display: flex; justify-content: center; }
@media (max-width: 860px) {
  .tear, .tear:nth-of-type(even) { grid-template-columns: 1fr; }
  .tear:nth-of-type(even) .tear__text { order: 0; }
  .tear__panes { min-height: 0; }
}

/* ---- Services ---- */
.services { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.services__pic { position: sticky; top: 8vh; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.services__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.services__pic img.is-on { opacity: 1; }
.services__list { margin-top: clamp(24px, 3vw, 40px); display: grid; gap: 10px; }
.services__row { padding: clamp(18px, 2.2vw, 28px); border-radius: var(--radius); color: var(--muted); transition: color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.services__row.is-on { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.services__row h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.services__row h3 a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; color: var(--ink); }
.services__row.is-on h3 a { color: var(--accent); }
.services__row p { max-width: 48ch; margin-top: 4px; }
@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .services__pic { position: relative; top: 0; aspect-ratio: 4 / 3; }
}

/* ---- About band (home) ---- */
.aboutband { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px); }
.aboutband__body { display: grid; gap: 18px; max-width: 60ch; align-content: start; }
.aboutband__body > p:not(.statement) { color: var(--muted); }
.aboutband__body .statement { max-width: 32ch; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; }
@media (max-width: 860px) { .aboutband { grid-template-columns: 1fr; } }

/* ---- Call to action panel ---- */
.cta { margin: var(--section) var(--margin) 0; }
.cta__panel { position: relative; overflow: hidden; background: var(--surface); border-radius: calc(var(--radius) + 6px); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(36px, 7vw, 104px) clamp(24px, 5vw, 72px); display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; }
.cta__panel::before {
  content: ""; position: absolute; right: -10%; bottom: -60%; width: 70%; height: 160%; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  transform: perspective(700px) rotateX(60deg) rotateZ(-30deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 65%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 65%);
}
.cta__panel > * { position: relative; }
.cta h2 { font-size: var(--step-mega); max-width: 12ch; }
.cta__side { display: grid; gap: 20px; justify-items: start; }
.cta__side p { color: var(--muted); font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
@media (max-width: 860px) { .cta__panel { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.foot { margin-top: var(--section); padding: clamp(32px, 5vw, 64px) var(--margin) 28px; background: var(--surface); box-shadow: inset 0 1px 0 var(--line); }
.foot__row { display: grid; grid-template-columns: 6fr 6fr; gap: var(--gap); }
.foot__who { display: grid; gap: 6px; align-content: start; }
.foot__name { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.01em; }
.foot__who p:not(.foot__name) { color: var(--muted); }
.foot__reach { margin-top: 14px; display: grid; }
.foot__reach a { font-weight: 500; color: var(--accent); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.foot__reach a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.foot__links a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; transition: color 0.15s; }
.foot__links a:hover { color: var(--ink); }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 5vw, 64px); font-size: var(--step-small); color: var(--muted); align-items: center; }
.foot__legal a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 860px) { .foot__row { grid-template-columns: 1fr; } .foot__links { grid-template-columns: 1fr 1fr; } }

/* ---- Page heads ---- */
.pagehead { padding: clamp(32px, 6vw, 88px) var(--margin) 0; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; }
.pagehead__lead { font-size: var(--step-lead); line-height: 1.4; color: var(--muted); max-width: 38ch; }
.pagehead--tall { min-height: 62svh; grid-template-columns: 1fr; align-content: center; gap: 22px; }
.pagehead--tall p:last-child { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .pagehead { grid-template-columns: 1fr; } }

/* ---- Work grid ---- */
.grid-wrap { padding: clamp(28px, 4vw, 56px) var(--margin) 0; }
.filter { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--surface); padding: 6px; border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.filter__btn { min-height: 44px; padding: 0 18px; font: inherit; font-weight: 500; background: transparent; color: var(--muted); border: 0; border-radius: 999px; cursor: pointer; transition: background-color 0.15s, color 0.15s, transform 0.15s var(--ease); }
.filter__btn:hover { color: var(--ink); background: var(--raised); }
.filter__btn:active { transform: scale(0.97); }
.filter__btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.filter__count { margin-top: 14px; color: var(--muted); font-size: var(--step-small); min-height: 1.5em; }
.grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px) var(--gap); }
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; }
.card__pic { display: block; overflow: hidden; background: var(--field, var(--surface)); aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 0.35s var(--ease), box-shadow 0.35s; will-change: transform; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; }
.card a:hover .card__pic, .card a:focus-visible .card__pic { box-shadow: var(--shadow), 0 0 0 1px #46526a; transform: perspective(900px) rotateX(var(--tx, 3deg)) rotateY(var(--ty, -4deg)) scale(1.015); }
.card__title { display: block; margin-top: 14px; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card a:hover .card__title { color: var(--accent); }
.card__meta { display: block; margin-top: 4px; color: var(--muted); font-size: var(--step-small); }
.card__meta::first-letter { text-transform: uppercase; }
@media (max-width: 1000px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---- Case study ---- */
.case__head { background: var(--field); color: var(--field-ink); display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); margin: 8px var(--margin) 0; padding: clamp(24px, 4vw, 64px); border-radius: calc(var(--radius) + 6px); align-items: center; perspective: 1400px; overflow: hidden; }
.case__head h1 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem); overflow-wrap: break-word; }
.case__intro { display: grid; gap: 16px; justify-items: start; }
.case__label { font-weight: 600; font-size: var(--step-small); order: -1; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; }
.case__label::first-letter { text-transform: uppercase; }
.case__summary { font-size: var(--step-lead); line-height: 1.4; max-width: 32ch; }
.case__links { display: flex; gap: 12px; flex-wrap: wrap; }
.case__head .btn { background: var(--field-ink); color: var(--field); box-shadow: none; }
.case__head .btn:hover, .case__head .btn:focus-visible { background: var(--field-ink); color: var(--field); transform: translateY(-2px); }
.case__head :focus-visible { outline-color: var(--field-ink); }
.case__cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); transform: rotateY(-14deg) rotateX(6deg); transition: transform 0.6s var(--ease); }
.case__head:hover .case__cover img { transform: rotateY(-6deg) rotateX(2deg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin: var(--gap) var(--margin) 0; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.facts > div { background: var(--surface); padding: 20px 22px; }
.facts dt { color: var(--muted); font-size: var(--step-small); }
.facts dd { font-weight: 500; line-height: 1.3; margin-top: 4px; }
.case__sec { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.case__text { display: grid; gap: 16px; max-width: 64ch; }
.case__text > p:not(.statement) { color: var(--muted); }
.case__text .statement { max-width: 34ch; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); line-height: 1.28; }
.steps { display: grid; gap: 12px; max-width: 64ch; }
.steps li { display: grid; gap: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); padding: clamp(18px, 2.2vw, 28px); }
.steps h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }
.steps p { color: var(--muted); }
.case__work { margin-top: var(--section); padding: 0 var(--margin); }
.pieces { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3.4vw, 52px) var(--gap); align-items: start; }
.piece--wide { grid-column: 1 / -1; }
.piece img { width: 100%; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.piece a { display: block; border-radius: var(--radius); }
.piece figcaption, .viewer figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step-small); max-width: 70ch; }
.live__frame { background: var(--raised); padding: 34px 10px 10px; border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line); position: relative; }
.live__frame::before { content: ""; position: absolute; top: 13px; left: 16px; width: 9px; height: 9px; border-radius: 50%; background: #4a5568; box-shadow: 16px 0 0 #4a5568, 32px 0 0 #4a5568; }
.live__frame iframe { width: 100%; height: min(78svh, 820px); border: 0; background: #fff; border-radius: 8px; }
.live figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.term pre { margin: 0; background: #05070a; color: #dfe9cf; padding: clamp(16px, 3vw, 36px); overflow-x: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(0.78rem, 0.6rem + 0.7vw, 0.98rem); line-height: 1.5; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: var(--step-small); }
.case__note { color: var(--muted); font-size: var(--step-small); }
.viewer__stage { border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.next { margin: var(--section) var(--margin) 0; }
.next a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px var(--gap); padding: clamp(28px, 4vw, 56px); background: var(--field); color: var(--field-ink); text-decoration: none; border-radius: calc(var(--radius) + 6px); transition: transform 0.3s var(--ease); }
.next a:hover { transform: translateY(-4px); }
.next a:focus-visible { outline-offset: 4px; }
.next__label { grid-column: 1 / -1; font-weight: 500; font-size: var(--step-small); }
.next__title { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.next .arrow { width: clamp(32px, 4vw, 56px); height: clamp(32px, 4vw, 56px); }
.next + .cta { margin-top: var(--gap); }
@media (max-width: 860px) {
  .case__head, .case__sec { grid-template-columns: 1fr; }
  .case__cover img { transform: none; }
  .pieces { grid-template-columns: 1fr; }
  .live__frame iframe { height: 70svh; }
}

/* ---- About page ---- */
.about { margin-top: var(--section); padding: 0 var(--margin); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.about__text { display: grid; gap: 16px; max-width: 64ch; }
.about__text > p:not(.statement) { color: var(--muted); }
.about__text .statement { max-width: 32ch; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; }
.about__services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about__services li { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); padding: clamp(18px, 2.2vw, 28px); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.about__services li:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #46526a, var(--shadow); }
.about__services h3 a { text-decoration: none; display: inline-flex; gap: 0.35em; align-items: center; min-height: 44px; }
.about__services h3 a:hover { color: var(--accent); }
.about__services p { margin-top: 4px; color: var(--muted); }
.about__real { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.about__real a { text-decoration: none; display: block; }
.about__real img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.about__real a:hover img { transform: perspective(900px) rotateX(3deg) rotateY(-4deg) scale(1.015); box-shadow: var(--shadow); }
.about__real a:hover .card__title { color: var(--accent); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__services { grid-template-columns: 1fr; } }

/* ---- Hire page ---- */
.hire { margin-top: clamp(32px, 5vw, 72px); padding: 0 var(--margin); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.form { display: grid; gap: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3.4vw, 48px); }
.form h2, .hire__side h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap); }
.form__trap { position: absolute; left: -9999px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #6b7890; border-radius: 12px;
  padding: 13px 16px; min-height: 54px; width: 100%; appearance: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f1f3f7' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 255, 77, 0.28); }
.field [aria-invalid="true"] { border-color: #ff8f8f; }
.field__hint { color: var(--muted); font-size: var(--step-small); }
.field__err { color: #ffa3a3; font-weight: 500; font-size: var(--step-small); }
.form__error { color: #ffa3a3; font-weight: 500; }
.hire__side { display: grid; gap: 20px; position: sticky; top: 24px; }
.hire__side > p { color: var(--muted); }
.hire__side .link { overflow-wrap: anywhere; }
@media (max-width: 900px) { .hire { grid-template-columns: 1fr; } .hire__side { position: static; } }
@media (max-width: 560px) { .form__two { grid-template-columns: 1fr; } }

/* ---- Entrances: hidden state exists only once the script has started ---- */
.js [data-reveal] { opacity: 0; translate: 0 24px; transition: opacity 0.6s var(--ease), translate 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}

@media (max-width: 480px) { .bar { padding-left: 12px; padding-right: 12px; gap: 8px; } .bar__nav { gap: 12px; } .bar__name { font-size: 0.95rem; gap: 8px; } .bar .btn--small { padding: 0 14px; } }
