/* harinibalasundram.com */
@font-face { font-family: "General Sans"; src: url("/assets/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/GeneralSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans Variable"; src: url("/assets/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }

:root {
  --bg: #fcf9f5;
  --ink: #2e2a14;
  --muted: #777972;
  --accent: #f6440e;
  --tint: rgba(255, 173, 148, 0.3);
  --line: rgba(46, 42, 20, 0.2);
  --rail: 80px;
  --pad-l: 120px;
  --pad-r: 120px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Framer reference motion (values read from the published Framer site) */
  --spring-0: linear(0, 0.0138, 0.0493, 0.0991, 0.1576, 0.2207, 0.2855, 0.3496, 0.4117, 0.4707, 0.526, 0.5773, 0.6243, 0.6672, 0.7061, 0.7411, 0.7724, 0.8004, 0.8253, 0.8473, 0.8668, 0.884, 0.8991, 0.9123, 0.9239, 0.9341, 0.9429, 0.9507, 0.9574, 0.9632, 0.9683, 0.9726, 0.9764, 0.9797, 0.9826, 0.985, 0.9871, 0.9889, 0.9905, 0.9919, 0.993, 0.994, 0.9949, 0.9956, 0.9963, 0.9968, 0.9973, 0.9977, 1); /* spring, bounce 0 */
  --spring-2: linear(0, 0.012, 0.044, 0.0908, 0.1478, 0.2114, 0.2786, 0.3472, 0.4151, 0.481, 0.5438, 0.6028, 0.6575, 0.7076, 0.753, 0.7937, 0.8299, 0.8617, 0.8895, 0.9135, 0.934, 0.9513, 0.9658, 0.9778, 0.9876, 0.9954, 1.0015, 1.0062, 1.0097, 1.0122, 1.0138, 1.0148, 1.0151, 1.0151, 1.0147, 1.0141, 1.0132, 1.0123, 1.0113, 1.0103, 1.0092, 1.0082, 1.0072, 1.0063, 1.0055, 1.0047, 1.004, 1.0033, 1); /* spring, bounce 0.2 */
  --ease-icon: cubic-bezier(0.78, 0.2, 0.23, 0.71);
  --ease-intro: cubic-bezier(1, 0.21, 0.11, 0.75);
  --ease-pixels: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-pop: cubic-bezier(1, 0.18, 0, 1.12);
  --ease-veil: cubic-bezier(0.71, 0.57, 0.38, 0.52);
}

*, *::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: "General Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
h1, h2, h3, h4, p, figure, ul, blockquote, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-accent :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.t-display { font-weight: 600; font-size: 96px; line-height: 0.9; letter-spacing: -0.03em; }
.t-h2 { font-weight: 600; font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; }
.t-title { font-family: "General Sans Variable", "General Sans", sans-serif; font-weight: 580; font-variation-settings: "wght" 580; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; }
.t-sub { font-weight: 600; font-size: 21px; line-height: 1.1; letter-spacing: 0.01em; }
.t-label { font-weight: 600; font-size: 16px; line-height: 1.33; letter-spacing: 0.02em; }
.t-body { font-weight: 500; font-size: 16px; line-height: 1.35; letter-spacing: -0.1px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- icons (pixel masks) ---------- */
.ico { display: inline-block; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; flex: none; }
.ico-plus { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M6.125 0h1.75v6.125H14v1.75H7.875V14h-1.75V7.875H0v-1.75h6.125z'/%3E%3C/svg%3E"); }
.ico-ne { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M0 12.444 1.556 14l9.333-9.333 1.555 1.555L14 4.667l-1.556-1.556L14 1.556 12.444 0l-1.555 1.556L9.333 0 7.778 1.556l1.555 1.555ZM4.667 1.556 6.222 0l1.556 1.556-1.556 1.555Zm0 0L3.111 3.111 1.556 1.556 3.111 0Zm7.777 7.777L14 7.778l-1.556-1.556-1.555 1.556Zm0 0-1.555 1.556 1.555 1.555L14 10.889Z'/%3E%3C/svg%3E"); }
.ico-left { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath transform='translate(0 1)' d='M14 7V5.25H3.5V3.5H1.75v1.75H0V7h1.75v1.75H3.5V7ZM5.25 10.5H3.5V8.75h1.75Zm0 0H7v1.75H5.25Zm0-8.75H3.5V3.5h1.75Zm0 0H7V0H5.25Z'/%3E%3C/svg%3E"); }
.ico-right { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath transform='translate(14 1) scale(-1 1)' d='M14 7V5.25H3.5V3.5H1.75v1.75H0V7h1.75v1.75H3.5V7ZM5.25 10.5H3.5V8.75h1.75Zm0 0H7v1.75H5.25Zm0-8.75H3.5V3.5h1.75Zm0 0H7V0H5.25Z'/%3E%3C/svg%3E"); }
.ico-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath transform='translate(5 0)' d='M2 16H0V0h2v2h2v3h2v2h2v2H6v2H4v3H2Z'/%3E%3C/svg%3E"); }

/* ---------- text link with sliding arrow ---------- */
.link { position: relative; display: inline-flex; align-items: center; height: 24px; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; line-height: 1.33; }
.link .ico { position: absolute; left: 5px; top: 5px; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.link span { transition: transform 0.25s var(--ease); }
.link:hover .ico, .link:focus-visible .ico { opacity: 1; transform: none; }
.link:hover span, .link:focus-visible span { transform: translateX(24px); }

/* ---------- rails ---------- */
.rail-left { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 6; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 52px; background: var(--bg); border-right: 1px solid var(--line); color: var(--ink); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.rail-left:hover { background: var(--accent); color: var(--bg); }
.rail-left.is-accent { background: var(--accent); color: var(--bg); border-right-color: transparent; }
.vtext { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.nav { position: fixed; top: 32px; right: 48px; z-index: 6; width: 42px; display: flex; flex-direction: column; align-items: center; gap: 28px; color: var(--ink); }
.nav-toggle { width: 36px; height: 36px; display: grid; place-items: center; }
.nav-toggle .ico { width: 20px; height: 20px; transition: transform 0.35s var(--ease-out); }
.nav-toggle:hover .ico { transform: rotate(90deg); }
.brand { padding: 8px; display: block; }
.brand .vtext { display: block; }

/* mobile bars */
.bar-top, .bar-bottom { display: none; }

/* ---------- menu ---------- */
.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(45, 48, 30, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.menu { position: fixed; z-index: 41; top: 12px; right: 30px; width: 564px; max-width: calc(100vw - 24px); min-height: 381px; padding: 24px; background: var(--accent); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0.3s; }
.menu-open .menu-backdrop, .menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .menu { transform: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-close { width: 30px; height: 30px; display: grid; place-items: center; }
.menu-close .ico { width: 16px; height: 16px; transform: rotate(45deg); transition: transform 0.35s var(--ease-out); }
.menu-close:hover .ico { transform: rotate(135deg); }
.menu-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 80px; }
.menu-links a { position: relative; }
.menu-links a::after, .foot-links a::after, .contact-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.menu-links a:hover::after, .foot-links a:hover::after, .contact-links a:hover::after { transform: scaleX(1); }

/* ---------- layout ---------- */
main { position: relative; z-index: 2; background: var(--bg); }
.wrap { padding-left: var(--pad-l); padding-right: var(--pad-r); }
.stack { display: flex; flex-direction: column; gap: 176px; padding-top: 176px; padding-bottom: 176px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* split-text appear effects (Framer "appear" text effects) */
.sx { display: inline-block; opacity: 0.001; transition-property: opacity, transform, filter; transition-duration: var(--dur, 0.7s); transition-timing-function: var(--spring-0); transition-delay: calc(var(--start, 0s) + var(--i, 0) * var(--stagger, 0.04s)); }
.sw { display: inline-block; white-space: nowrap; }
[data-fx="blur8"] .sx { filter: blur(8px); transform: translateY(24px); }
[data-fx="blur4"] .sx { filter: blur(4px); transform: translateY(12px); }
.split-in .sx { opacity: 1; filter: none; transform: none; }
.muted-h { color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: clip; padding: 0 80px 0 var(--pad-l); }
.hero-meta { position: absolute; top: 40px; left: var(--pad-l); }
.hero-content { position: relative; padding-top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 19px; }
.hero h1 { font-weight: 600; font-size: 36px; line-height: 1.03; letter-spacing: -0.03em; max-width: 420px; }
.hero-name { width: min(55.2vw, 820px); height: auto; overflow: visible; }
@media (min-width: 1200px) { .hero-content { padding-top: min(120px, 12vh); } .hero-name { width: min(55.2vw, 820px, 105vh); } }
.hero-name text { font-family: "General Sans", sans-serif; font-weight: 700; font-size: 393.6px; letter-spacing: -0.06em; fill: var(--accent); }
.hero-lede { max-width: 347px; }
.hero-figure { position: absolute; z-index: 1; right: 80px; bottom: 0; height: 97.5%; max-width: 68vw; aspect-ratio: 1305 / 1206; pointer-events: none; }
.hero-figure img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.hero-figure img { will-change: transform; transform: translateY(var(--px, 0px)); }

/* ---------- what I do ---------- */
.what { display: flex; flex-direction: column; gap: 120px; }
.what .t-h2 { max-width: 840px; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0; position: relative; }
.row::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: calc((100% - 40px) * 2 / 3 + 20px); background: var(--line); }
.row-text { display: flex; flex-direction: column; gap: 16px; }
.row-text p { max-width: 340px; text-wrap: balance; }
.labels { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
/* service row hover: labels pop in one by one (spring, bounce 0.2, 0.4s, 0.2s apart); leave is instant */
.labels li { padding: 8px 12px; color: var(--accent); background: var(--tint); opacity: 0; transform: scale(0.5); transition: opacity 0s, transform 0s; }
.row:hover .labels li { opacity: 1; transform: none; transition: opacity 0.4s var(--spring-2), transform 0.4s var(--spring-2); }
.row:hover .labels li:nth-child(2) { transition-delay: 0.2s; }
.row:hover .labels li:nth-child(3) { transition-delay: 0.4s; }
.row:hover .labels li:nth-child(4) { transition-delay: 0.6s; }
.row:hover .labels li:nth-child(5) { transition-delay: 0.8s; }
.row-icon { display: flex; justify-content: center; }
.row-icon i { display: block; width: 32px; height: 32px; background: var(--muted); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background-color 0.3s var(--ease-icon); }
.row:hover .row-icon i { background: var(--accent); }

/* ---------- reel ---------- */
.reel { position: relative; aspect-ratio: 1200 / 675; overflow: hidden; background: #f1ede2; cursor: none; display: block; width: 100%; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1.25)); will-change: transform; }
.reel-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--tint); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; color: var(--accent); transform: translate(var(--x, 0px), var(--y, 0px)); transition: transform 0.25s var(--ease-out); pointer-events: none; }
.reel-play .ico { width: 28px; height: 28px; }

/* video popup: veil fades in 0.6s, then the player grows from 0 (0.6s delay, 0.6s, slight overshoot) */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 72px 24px; background: rgba(45, 48, 30, 0.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease-veil), visibility 0.6s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox video { width: min(1086px, 100%); max-height: 100%; background: #000; transform: scale(0); transition: transform 0.6s var(--ease-pop); }
.lightbox.open video { transform: scale(1); transition-delay: 0.6s; }
.lightbox-close { position: absolute; top: 0; right: 0; width: 48px; height: 48px; background: var(--accent); color: var(--bg); display: grid; place-items: center; }
.lightbox-close .ico { width: 16px; height: 16px; transform: rotate(45deg); }

/* ---------- tools ---------- */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.tools h2 { max-width: 400px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tool-grid li { aspect-ratio: 194 / 192; display: grid; place-items: center; border: 1px solid rgba(46, 42, 20, 0.12); }
.tool-grid img { height: 48px; width: auto; }

/* ---------- work ---------- */
.work-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.work-head div { display: flex; align-items: flex-end; gap: 16px; }
.work-head .link { margin-bottom: 1px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cards.spaced { row-gap: 120px; }
.card { display: block; }
.card-media { overflow: hidden; aspect-ratio: var(--ar); background: #efebe3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 0.8s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 24px 12px; }
.card-body p { max-width: 360px; text-wrap: balance; }
.card-body h3 { transition: color 0.2s var(--ease); }
.card:hover .card-body h3 { color: var(--accent); }

/* ---------- resume ---------- */
.resume { display: flex; flex-direction: column; gap: 40px; scroll-margin-top: 80px; }
#work { scroll-margin-top: 80px; }
.resume .t-h2 { max-width: 640px; }
.acc-item { position: relative; }
.acc-item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: calc((100% - 40px) * 2 / 3 + 20px); background: var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0; text-align: left; align-items: start; }
.acc-head .period { padding-top: 14px; }
.acc-head .plus { justify-self: center; height: 40px; display: grid; place-items: center; color: var(--accent); }
.acc-head .plus .ico { width: 20px; height: 20px; transition: transform 0.4s var(--ease-out); }
.acc-item.open .plus .ico { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { max-width: 530px; padding-bottom: 40px; }
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ---------- testimonials ---------- */
.testi { padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.testi-slides { display: grid; width: 100%; justify-items: center; }
.testi-slide { grid-area: 1 / 1; max-width: 840px; display: flex; flex-direction: column; gap: 32px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-out), visibility 0.4s; }
.testi-slide.active { opacity: 1; visibility: visible; transform: none; }
.testi-nav { display: flex; gap: 4px; }
.testi-nav button { width: 48px; height: 48px; background: var(--accent); color: var(--bg); display: grid; place-items: center; transition: background-color 0.2s var(--ease); }
.testi-nav button:hover { background: var(--ink); }
.testi-nav .ico { width: 16px; height: 16px; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 10; min-height: 100vh; background: var(--accent); color: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; padding: 80px 56px 48px var(--pad-l); }
.pixel-fade { position: absolute; left: 0; top: 0; width: 420px; height: 160px; pointer-events: none; }
.foot-rail { position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 52px; }
.foot-brand { position: absolute; right: 34px; top: 50px; padding: 8px; }
.foot-content { display: flex; flex-direction: column; align-items: flex-start; gap: 120px; }
.talk { display: inline-flex; align-items: baseline; gap: 0.18em; font-weight: 600; font-size: 80px; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.talk i { font-style: normal; display: inline-block; transition: transform 0.45s var(--ease-out); }
.talk:hover i { transform: translateX(16px); }
.foot-bottom { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.foot-links { display: flex; align-items: flex-end; gap: 60px; }
.foot-links ul { display: flex; flex-direction: column; gap: 8px; min-width: 92px; }
.foot-links a, .contact-links a { position: relative; }

/* ---------- inner pages ---------- */
.page { padding: 240px var(--pad-r) 176px var(--pad-l); display: flex; flex-direction: column; gap: 80px; }
.page-head { display: flex; flex-direction: column; gap: 36px; }
.case { padding-bottom: 120px; gap: 60px; }
.case-head { display: flex; flex-direction: column; gap: 40px; }
.case-head p { max-width: 580px; }
.case-body { display: flex; flex-direction: column; gap: 64px; }
.case-media { aspect-ratio: 1200 / 805; overflow: hidden; background: #efebe3; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-top { display: flex; flex-direction: column; gap: 32px; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.case-body .t-h2 { max-width: 940px; }
.case-body .t-title { max-width: 900px; }
.btn { align-self: center; position: relative; display: inline-flex; justify-content: center; align-items: center; height: 40px; width: 384px; max-width: 100%; padding: 8px 24px; background: var(--tint); color: var(--accent); font-weight: 600; letter-spacing: 0.02em; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.btn:hover { background: var(--accent); color: var(--bg); }

/* contact */
.contact { min-height: 100vh; background: var(--accent); color: var(--bg); position: relative; display: grid; grid-template-columns: 1fr 24%; overflow: clip; }
.contact-main { padding: 40px 80px 40px var(--pad-l); display: flex; flex-direction: column; min-height: 100vh; }
.contact-links { display: flex; gap: 24px; position: relative; z-index: 2; }
.contact-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 80px; position: relative; z-index: 2; }
.contact-center p { max-width: 271px; opacity: 0.85; text-wrap: balance; }
.contact-side { background: var(--bg); }
.contact-figure { position: absolute; z-index: 1; right: 0; bottom: 0; height: 99%; max-width: 72vw; aspect-ratio: 1305 / 1206; pointer-events: none; }
.contact-figure img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }

/* 404 */
.nf { min-height: 100vh; padding: 0 var(--pad-r) 0 var(--pad-l); display: flex; flex-direction: column; justify-content: center; gap: 120px; }
.nf-art { width: min(1008px, 100%); aspect-ratio: 2781 / 1142; -webkit-mask: url("/assets/img/404.svg") center / contain no-repeat; mask: url("/assets/img/404.svg") center / contain no-repeat; background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4.2' height='9'%3E%3Ctext x='0' y='7' font-family='ui-monospace,Menlo,Consolas,monospace' font-weight='700' font-size='7' fill='%23f6440e'%3E0%3C/text%3E%3C/svg%3E"); }
.nf-text { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.nf-text h1 { max-width: 420px; }

/* ---------- tablet ---------- */
@media (max-width: 1199.98px) {
  :root { --pad-r: 80px; }
  .t-h2 { font-size: 28px; }
  .stack { padding-top: 80px; }
  .hero { height: auto; min-height: 720px; }
  .hero h1 { max-width: 320px; }
  .hero-lede { max-width: 220px; }
  .hero-name { width: min(41.5vw, 500px); }
  .hero-figure { height: auto; width: 70%; right: 40px; }
  .what { gap: 60px; }
  .row { grid-template-columns: 1fr 1fr 32px; }
  .row::after, .acc-item::after { width: 100%; }
  .labels li, .row:hover .labels li { opacity: 1; transform: none; transition: none; }
  .work-head { margin-bottom: 60px; }
  .cards { row-gap: 60px; }
  .acc-head { grid-template-columns: 1fr 1fr 40px; }
  .talk { font-size: 56px; }
  .page { padding-right: 120px; }
  .contact { grid-template-columns: 1fr 23.3%; }
  .contact-figure { max-width: 86vw; height: auto; width: 78%; }
  .reel { cursor: pointer; }
}

/* ---------- phone ---------- */
@media (max-width: 809.98px) {
  :root { --pad-l: 16px; --pad-r: 16px; }
  .rail-left, .nav { display: none; }
  .bar-top { display: flex; position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 44px; padding: 0 8px; align-items: center; justify-content: flex-end; background: var(--bg); transition: transform 0.35s var(--ease); }
  .bar-top.hide { transform: translateY(-100%); }
  .bar-top .brand { font-size: 16px; }
  .bar-top .brand .t-title, .bar-bottom .t-title { font-size: 16px; }
  .bar-bottom { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 42px; align-items: center; justify-content: center; background: var(--bg); border-top: 1px solid var(--line); }
  .bar-bottom.is-accent { background: var(--bg); }
  .menu { top: 8px; right: 8px; left: 8px; width: auto; max-width: none; min-height: 340px; }

  .t-display { font-size: 64px; }
  .t-h2 { line-height: 1.2; }
  .stack { gap: 120px; padding-top: 64px; padding-bottom: 120px; }
  .hero { min-height: 0; padding: 96px 16px 0; display: flex; flex-direction: column; }
  .hero-meta { display: none; }
  .hero-content { padding-top: 0; gap: 16px; }
  .hero h1 { max-width: none; }
  .hero-name { width: 100%; }
  .hero-lede { max-width: none; }
  .hero-figure { position: relative; right: auto; width: 100%; max-width: none; height: auto; margin-top: 0; }
  .what .t-h2 { max-width: none; }
  .row { display: flex; flex-direction: column; gap: 24px; padding: 36px 0; }
  .row-icon { order: -1; justify-content: flex-start; height: 40px; align-items: center; }
  .row-text p { max-width: none; }
  .labels { gap: 8px; }
  .reel { aspect-ratio: 358 / 585; }
  .reel img { --s: 1 !important; }
  .tools { grid-template-columns: 1fr; gap: 60px; }
  .tool-grid { gap: 8px; }
  .work-head div { justify-content: space-between; }
  .cards, .cards.spaced { grid-template-columns: 1fr; row-gap: 40px; }
  .card-body { padding: 12px 0 0; }
  .acc-head { grid-template-columns: 1fr 24px; padding: 20px 0; row-gap: 24px; }
  .acc-head .period { grid-column: 1; grid-row: 2; padding-top: 0; }
  .acc-head .plus { grid-row: 1 / span 2; align-self: center; }
  .acc-panel p { padding-bottom: 20px; }
  .cta-stack { gap: 12px; }
  .site-footer { min-height: 0; padding: 116px 16px 82px; }
  .pixel-fade { width: 210px; height: 80px; }
  .foot-rail, .foot-brand { display: none; }
  .foot-content { gap: 80px; }
  .talk { font-size: 48px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 80px; }
  .page { padding: 140px 16px 176px; gap: 60px; }
  .page-head { gap: 16px; }
  .case { padding-bottom: 120px; }
  .case-head { gap: 16px; }
  .case-body { gap: 48px; }
  .case-media { aspect-ratio: 358 / 366; }
  .details { grid-template-columns: 1fr; gap: 12px; }
  .btn { align-self: flex-start; width: auto; }
  .contact { display: flex; flex-direction: column; min-height: 100svh; }
  .contact-main { min-height: 0; padding: 72px 16px 0; gap: 56px; }
  .contact-center { gap: 32px; }
  .contact-side { display: none; }
  .contact-figure { position: relative; width: 100%; max-width: none; margin-top: auto; padding-bottom: 42px; }
  .nf { padding: 140px 16px 120px; justify-content: space-between; gap: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .sx { opacity: 1; filter: none !important; transform: none !important; }
  .intro { display: none !important; }
}

/* ---------- opening card: 3, 2, 1 countdown, then pixel reveal (Framer "Page Reveal") ---------- */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer; }
html.intro-on, html.intro-on body { overflow: hidden; }
.intro-card { position: absolute; inset: 0; background: var(--accent); display: grid; place-items: center; overflow: hidden; }
.intro-card.gone { visibility: hidden; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-num { grid-area: 1 / 1; font-weight: 700; font-size: min(62vh, 52vw); line-height: 0.8; letter-spacing: -0.06em; color: var(--bg); opacity: 0; transform: translateY(40%); filter: blur(12px); transition: opacity 0.6s var(--ease-intro), transform 0.6s var(--ease-intro), filter 0.6s var(--ease-intro); font-variant-numeric: tabular-nums; }
.intro-num.is-in { opacity: 1; transform: none; filter: none; }
.intro-num.is-out { opacity: 0; transform: translateY(-40%); filter: blur(12px); }
.intro-meta { position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: 40px; display: flex; justify-content: space-between; color: var(--bg); opacity: 0.85; }
@media (max-width: 809.98px) { .intro-meta { bottom: 24px; } .intro-meta span:last-child { display: none; } }

/* contact page enters from the left (Framer page effect: x -1000px, 0.2s) */
main.contact { animation: page-in 0.2s cubic-bezier(0.27, 0, 0.51, 1) both; }
@keyframes page-in { from { transform: translateX(-1000px); } to { transform: none; } }
