/* scinskas.com
   Design read: solo designer-developer portfolio for Lithuanian and international business owners,
   agency-grade kinetic language (techniques inspired by Rejouice), one grotesk, light monochrome, real media.
   Shape rule: every corner is square. One accent: ink. */

:root {
  --paper: #f1f0ee;
  --paper-2: #e6e5e1;
  --ink: #0b0b0b;
  --ink-2: #2a2a29;
  --muted: #62625f;
  --line: rgba(11, 11, 11, 0.14);
  --err: #b42318;
  --pad: clamp(16px, 3vw, 48px);
  --gap: clamp(16px, 2vw, 32px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --fs-body: clamp(16px, 1.1vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--paper); color: var(--ink); font-family: 'Schibsted Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-size: var(--fs-body); line-height: 1.45; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; left: var(--pad); top: 8px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-160%); transition: transform 0.2s var(--ease-out); }
.skip:focus { transform: none; }

.u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease-out); padding-bottom: 1px; }
@media (hover: hover) and (pointer: fine) { .u:hover { background-size: 100% 1px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 500; letter-spacing: -0.005em; transition: transform 0.16s var(--ease-out), background-color 0.2s ease; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #2b2b2b; } }

.h2 { font-size: clamp(56px, 10vw, 168px); font-weight: 500; letter-spacing: -0.055em; line-height: 0.86; }
.h3 { font-size: clamp(34px, 4.4vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: clamp(28px, 5vh, 56px); }

/* Loader: first visit per session only */
.ld { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: space-between; padding: var(--pad); background: var(--ink); color: var(--paper); }
.js .ld.on { display: flex; }
.ld-name { font-size: 15px; font-weight: 500; }
.ld-n { font-size: clamp(72px, 13vw, 220px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.8; font-variant-numeric: tabular-nums; }

/* Header inverts over whatever is below it */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); color: #fff; mix-blend-mode: difference; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; transition: transform 0.45s var(--ease-out); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr > a:first-child { justify-self: start; }
.hdr-nav { display: flex; gap: 28px; }
.hdr-cta { justify-self: end; }
.m-btn { display: none; justify-self: end; font-weight: 500; }
.mnav { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: var(--pad); background: var(--ink); color: var(--paper); flex-direction: column; justify-content: space-between; }
.mnav:popover-open { display: flex; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - var(--pad)); font-size: 15px; font-weight: 500; }
.mnav nav { display: grid; gap: 6px; }
.mnav nav a { font-size: clamp(44px, 13vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.mnav-mail { font-size: 17px; }

/* 1. Hero */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--header-h) + 4px) var(--pad) 0; }
.wm-wrap { flex: none; display: flex; align-items: flex-start; gap: clamp(10px, 1.2vw, 20px); }
.wordmark { flex: 1 1 auto; min-width: 0; font-size: 22vw; font-weight: 500; letter-spacing: -0.055em; line-height: 0.78; white-space: nowrap; overflow: hidden; padding: 0.04em 0 0.02em; margin-left: -0.02em; }
.wm-inner { display: inline-block; }
.wordmark .ch { display: inline-block; will-change: transform; }
.js:not(.rm) .wordmark .ch { transform: translateY(105%); }
.hero-row { flex: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; padding: clamp(18px, 3vh, 36px) 0 clamp(20px, 3.4vh, 40px); }
.hero-intro { grid-column: 1 / span 5; font-size: clamp(19px, 1.5vw, 25px); line-height: 1.28; letter-spacing: -0.015em; font-weight: 500; max-width: 30ch; }
.hero-btn { grid-column: 10 / span 3; justify-self: end; }
.reel-slot { width: 100%; aspect-ratio: var(--vp-ratio, 16 / 10); flex: none; }
.reel { width: 100%; height: 100%; overflow: hidden; background: var(--ink); cursor: pointer; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel--field { cursor: default; background: var(--ink) url(../media/img/field.webp) center / cover no-repeat; }
.field { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s ease; }
.field.on { opacity: 1; }
.say { flex: none; position: relative; display: grid; place-items: center; width: clamp(44px, 3.6vw, 60px); aspect-ratio: 1; margin-top: clamp(8px, 1.6vw, 26px); border: 1px solid var(--ink); color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out); }
.say:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .say:hover { background: var(--ink); color: var(--paper); } }
.say svg { width: 46%; height: 46%; transition: opacity 0.15s ease; }
.say-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; opacity: 0; transition: opacity 0.15s ease; }
.say-bars i { width: 3px; height: 38%; background: currentColor; transform-origin: 50% 50%; }
.say.is-playing .say-icon { opacity: 0; }
.say.is-playing .say-bars { opacity: 1; }
.say.is-playing .say-bars i { animation: say-bar 0.42s ease-in-out infinite alternate; }
.say.is-playing .say-bars i:nth-child(2) { animation-delay: -0.2s; }
.say.is-playing .say-bars i:nth-child(3) { animation-delay: -0.1s; }
@keyframes say-bar { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.say-icon { display: grid; place-items: center; width: 100%; height: 100%; }
@media (min-width: 900px) {
  .hero { height: 100dvh; }
  .hero.fx .reel { position: absolute; top: 0; left: 0; width: 100%; height: 100dvh; z-index: 5; transform-origin: 0 0; will-change: transform; }
}

/* 2. Statement and portrait */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; padding: clamp(96px, 16vh, 200px) var(--pad) clamp(80px, 12vh, 160px); }
.about-text { grid-column: 1 / span 7; display: grid; gap: clamp(36px, 6vh, 64px); justify-items: start; }
.statement { font-size: clamp(27px, 3.1vw, 54px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; max-width: 22em; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 64px); }
.facts dt { font-size: clamp(40px, 4.6vw, 80px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.facts dd { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 16ch; }
.more-link { font-weight: 500; }
.portrait { grid-column: 9 / span 4; margin-top: clamp(40px, 10vh, 140px); aspect-ratio: 2 / 3; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* 3. Selected work: cards that reveal the website on hover */
.work { padding: clamp(64px, 10vh, 140px) var(--pad) 0; }
.work-title { margin-bottom: clamp(28px, 5vh, 64px); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 24px); }
.pcard { position: relative; display: block; overflow: hidden; background: #151514; color: #fff; isolation: isolate; }
.pcard--full { grid-column: 1 / -1; aspect-ratio: 16 / 8.6; }
.pcard--half { aspect-ratio: 4 / 5; }
.pcard-bg { position: absolute; inset: -8% 0; }
.pcard-bg img { width: 100%; height: 100%; object-fit: cover; }
.pcard-shade { position: absolute; inset: 0; background: rgba(8, 8, 8, 0.22); transition: background-color 0.5s ease; }
.pcard-info { position: absolute; left: clamp(18px, 2vw, 32px); bottom: clamp(18px, 2vw, 32px); right: 30%; }
.pcard-name { font-size: clamp(32px, 4.2vw, 76px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.92; }
.pcard--half .pcard-name { font-size: clamp(30px, 3.2vw, 56px); }
.pcard-cat { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.pcard-year { position: absolute; top: clamp(18px, 2vw, 32px); right: clamp(18px, 2vw, 32px); font-size: 15px; font-variant-numeric: tabular-nums; }
.pcard-inner { position: absolute; left: 50%; top: 50%; width: 40%; transform: translate(-50%, -50%); display: grid; gap: 12px; justify-items: center; pointer-events: none; }
.pcard--half .pcard-inner { width: 64%; }
.pcard-label { font-size: 16px; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.25s var(--ease-out); }
.pcard-media { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0b; clip-path: inset(12% 12% 12% 12%); opacity: 0; transition: clip-path 0.25s var(--ease-out), opacity 0.2s ease; }
.pcard-media img, .pcard-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.pcard:hover .pcard-shade, .pcard:focus-visible .pcard-shade { background: rgba(8, 8, 8, 0.5); }
.pcard:hover .pcard-media, .pcard:focus-visible .pcard-media { clip-path: inset(0 0 0 0); opacity: 1; transition: clip-path 0.6s var(--ease-out), opacity 0.3s ease; }
.pcard:hover .pcard-label, .pcard:focus-visible .pcard-label { opacity: 1; transform: none; transition: opacity 0.4s ease 0.1s, transform 0.5s var(--ease-out) 0.1s; }
.pcard:focus-visible { outline-offset: 4px; }
@media (hover: none), (pointer: coarse) { .pcard-inner { display: none; } }

/* 4. At a glance */
.glance { padding: clamp(96px, 16vh, 200px) 0 clamp(64px, 10vh, 120px); }
.glance-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 var(--pad) clamp(20px, 3vh, 32px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.glance-title { font-size: 16px; font-weight: 500; }
.glance-viewport { overflow: hidden; }
.glance-track { display: flex; gap: clamp(12px, 1.4vw, 24px); width: max-content; padding: 0 var(--pad); will-change: transform; }
.tile { position: relative; flex: none; width: clamp(270px, 25vw, 430px); height: clamp(360px, 58vh, 580px); padding: clamp(18px, 1.6vw, 28px); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.tile h3 { font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.tile p { margin-top: 10px; font-size: 16px; line-height: 1.4; max-width: 28ch; }
.tile--light { background: var(--paper-2); }
.tile--ink { background: var(--ink); color: var(--paper); }
.tile--ink p { color: rgba(241, 240, 238, 0.74); }
.tile--img { color: #fff; background: #151514; }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--img::after { content: ''; position: absolute; inset: 0; background: rgba(8, 8, 8, 0.28); }
.tile--img .tile-txt { position: relative; z-index: 1; }
.tile--img p { color: rgba(255, 255, 255, 0.86); }
.tile .tile-big { font-size: clamp(88px, 9vw, 160px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.85; margin: 0; }
.tile .tile-note { color: var(--muted); }
.tile--list ul { font-size: clamp(26px, 2.2vw, 38px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tile--list li:nth-child(n + 2) { color: #8f8f8b; }
.tile-link { align-self: flex-start; font-size: 15px; font-weight: 500; }

/* 6. Wall of screens: one project, then all of them */
.wall { padding: clamp(40px, 8vh, 96px) 0 clamp(64px, 10vh, 120px); }
.wall-stage { position: relative; height: 100dvh; display: grid; place-items: center; overflow: hidden; }
.wall-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 0.9vw, 14px); width: min(calc(100vw - 2 * var(--pad)), calc((100dvh - 170px) * 2.05)); will-change: transform; }
.wall-tile { aspect-ratio: 1440 / 840; overflow: hidden; background: var(--paper-2); }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.wall-note { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(18px, 4vh, 40px); text-align: center; font-size: 16px; color: var(--muted); }

/* 5. More work */
.more { padding: clamp(64px, 10vh, 120px) var(--pad) clamp(64px, 10vh, 120px); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: baseline; padding: clamp(18px, 2.6vh, 30px) 0; border-bottom: 1px solid var(--line); }
.row .nm { grid-column: 1 / span 7; font-size: clamp(30px, 4.6vw, 78px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; transition: color 0.25s ease; }
.row .ct { grid-column: 8 / span 3; color: var(--muted); font-size: 15px; }
.row .yr { grid-column: 11 / span 2; text-align: right; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.row .thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rows:hover .row .nm { color: #a3a3a0; }
  .rows .row:hover .nm { color: var(--ink); }
}
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: min(28vw, 420px); pointer-events: none; }
.pv-in { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity 0.2s ease, transform 0.35s var(--ease-out); }
.preview.on .pv-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pv-in img, .pv-in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* 6. Screens stream */
.stream { display: grid; gap: clamp(10px, 1.2vw, 18px); padding: clamp(24px, 5vh, 64px) 0 clamp(64px, 10vh, 120px); overflow: hidden; }
.track { display: flex; gap: clamp(10px, 1.2vw, 18px); width: max-content; will-change: transform; }
.track img { flex: none; height: clamp(170px, 30vh, 330px); width: auto; background: var(--paper-2); }

/* 7. Contact and footer */
.contact { background: var(--paper-2); padding: clamp(96px, 16vh, 200px) var(--pad) var(--pad); }
.contact--compact { padding-top: 8px; }
.lt { font-size: clamp(76px, 17.5vw, 320px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.8; margin-left: -0.04em; }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-top: clamp(48px, 8vh, 110px); }
.c-lead { grid-column: 1 / span 5; display: grid; gap: 24px; justify-items: start; }
.c-lead p { font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; max-width: 26ch; }
.c-mail { grid-column: 6 / span 4; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.mail { font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; letter-spacing: -0.015em; }
.copy { font-size: 14px; color: var(--muted); }
.copy .lbl { display: inline-block; transition: filter 0.2s ease, opacity 0.2s ease; }
.copy.swap .lbl { filter: blur(2px); opacity: 0; }
@media (hover: hover) and (pointer: fine) { .copy:hover { color: var(--ink); } }
.c-time { grid-column: 10 / span 3; text-align: right; font-size: 15px; line-height: 1.5; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(72px, 12vh, 140px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.contact--compact .foot { margin-top: 0; }
.foot nav { display: flex; gap: 24px; }

/* Case study */
.case-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(40px, 7vh, 88px); }
.case-back { grid-column: 1 / -1; justify-self: start; font-size: 15px; font-weight: 500; color: var(--muted); }
.case-title { grid-column: 1 / -1; font-size: clamp(56px, 11vw, 190px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.85; margin: 12px 0 clamp(28px, 5vh, 56px) -0.03em; }
.case-intro { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.case-summary { grid-column: 1 / span 5; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.case-meta { grid-column: 7 / span 4; display: grid; gap: 10px; font-size: 15px; }
.case-meta div { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.case-meta dt { color: var(--muted); }
.case-intro .btn { grid-column: 11 / span 2; justify-self: end; }
.case-cover { height: min(92vh, 62vw); overflow: hidden; background: var(--paper-2); }
.case-cover img { width: 100%; height: 118%; object-fit: cover; }
.case-body { padding: clamp(80px, 14vh, 180px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.case-text { grid-column: 4 / span 7; display: grid; gap: 1.1em; font-size: clamp(22px, 2vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.case-text p + p { color: var(--ink-2); }
.case-mockup { margin: 0 var(--pad); background: #ecebe8; }
.case-mockup img { width: 100%; height: auto; }
.case-video { margin: clamp(12px, 1.4vw, 24px) var(--pad) 0; }
.case-video a { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.case-video video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.case-screens { display: grid; grid-template-columns: 2.6fr 1fr; gap: clamp(12px, 1.4vw, 24px); margin: clamp(12px, 1.4vw, 24px) var(--pad) 0; align-items: start; }
.case-screens img { width: 100%; height: auto; background: var(--paper-2); }
.case-next { padding: clamp(96px, 16vh, 200px) var(--pad) clamp(64px, 10vh, 120px); }
.case-next-label { font-size: 16px; font-weight: 500; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: clamp(20px, 3vh, 32px); }
.case-next .pcard { aspect-ratio: 16 / 7; }

/* About page */
.page-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(48px, 8vh, 96px); }
.page-title { grid-column: 1 / -1; font-size: clamp(64px, 14vw, 240px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.82; margin-left: -0.04em; }
.page-lead { grid-column: 1 / span 7; margin-top: clamp(28px, 5vh, 56px); font-size: clamp(24px, 2.4vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; }
.about-strip { overflow: hidden; }
.strip-track { display: flex; gap: clamp(12px, 1.4vw, 24px); width: max-content; padding: 0 var(--pad); will-change: transform; }
.strip-track img { height: clamp(320px, 62vh, 640px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); }
.about-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(80px, 14vh, 180px) var(--pad); align-items: start; }
.about-copy { grid-column: 1 / span 7; display: grid; gap: 1em; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.about-copy p + p { color: var(--ink-2); }
.about-facts { grid-column: 9 / span 4; display: grid; gap: 16px; font-size: 15px; }
.about-facts div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.about-facts dt { color: var(--muted); margin-bottom: 4px; }
.clients { padding: 0 var(--pad) clamp(96px, 16vh, 200px); }
.client-list { font-size: clamp(24px, 2.6vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.client-list span:not(:last-child)::after { content: ' /'; color: #a3a3a0; }

/* Contact page form */
.scf { padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(80px, 12vh, 160px); }
.scf-head { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(56px, 9vh, 110px); }
@media (min-width: 900px) { .scf-head { grid-template-columns: 1.5fr 1fr; align-items: end; } }
.scf-title { font-size: clamp(64px, 12vw, 200px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.84; margin-left: -0.04em; }
.scf-aside p { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; margin: 0 0 0.6em; max-width: 30ch; }
.scf-aside .scf-direct { color: var(--muted); }
.scf a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.scf-form { border-top: 1px solid var(--ink); padding-top: clamp(36px, 6vh, 64px); position: relative; }
.scf-line { font-size: clamp(1.55rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; margin: 0 0 0.5em; max-width: 24em; padding: 0; }
.scf-group { border: 0; margin: 0 0 clamp(28px, 4.5vh, 48px); padding: 0; min-width: 0; }
.scf-group legend { float: left; width: 100%; margin-bottom: 0.45em; }
.scf-group legend + * { clear: both; }
.scf-field { position: relative; display: inline-block; vertical-align: baseline; }
.scf-field input { font: inherit; letter-spacing: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 0; padding: 0 0.08em; margin: 0; width: calc(var(--w) * 0.6em + 0.5em); min-width: 3.5em; max-width: min(78vw, 14em); outline: none; box-shadow: inset 0 -2px 0 #cfceca; transition: box-shadow 0.2s ease; }
.scf-field input::placeholder { color: #8f8f8b; opacity: 1; }
.scf-field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.scf-field:focus-within::after { transform: scaleX(1); }
.scf-field.is-invalid input { box-shadow: inset 0 -2px 0 var(--err); }
.scf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.scf-chip { position: relative; cursor: pointer; }
.scf-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scf-chip span { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border: 1px solid #cfceca; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; user-select: none; }
@media (hover: hover) and (pointer: fine) { .scf-chip:hover span { border-color: var(--ink); } }
.scf-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.scf-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.scf-chip:active span { transform: scale(0.97); transition-duration: 0.12s; }
.scf-group.is-invalid .scf-chip span { border-color: var(--err); }
.scf-note { display: block; margin: clamp(36px, 6vh, 64px) 0 0; max-width: 56rem; }
.scf-note-label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 12px; }
.scf-note-label em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 0.4em; }
.scf-note textarea { display: block; width: 100%; font: inherit; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; color: var(--ink); background: var(--paper-2); border: 1px solid transparent; border-radius: 0; padding: 18px 20px; min-height: 132px; resize: vertical; outline: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
.scf-note textarea::placeholder { color: #7d7d79; }
.scf-note textarea:focus { border-color: var(--ink); background: #fff; }
.scf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(32px, 5vh, 52px); }
.scf-send { position: relative; display: inline-grid; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--paper); background: var(--ink); min-height: 64px; padding: 0 40px; overflow: hidden; transition: transform 0.12s ease; }
.scf-send > span { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; transition: transform 0.35s var(--ease-out), opacity 0.25s ease; }
.scf-send-busy { transform: translateY(110%); opacity: 0; }
.scf-send:active { transform: scale(0.98); }
.scf-form.is-busy .scf-send { cursor: progress; }
.scf-form.is-busy .scf-send-label { transform: translateY(-110%); opacity: 0; }
.scf-form.is-busy .scf-send-busy { transform: none; opacity: 1; }
.scf-legal { margin: 0; font-size: 0.95rem; color: var(--muted); }
.scf-error { min-height: 1.5em; margin: 18px 0 0; color: var(--err); font-weight: 500; }
.scf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.scf-done { display: none; }
.scf-form.is-sent .scf-body { display: none; }
.scf-form.is-sent .scf-done { display: block; animation: scf-reveal 0.9s var(--ease-out) both; }
.scf-done-title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.35em; }
.scf-done-text { font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -0.015em; line-height: 1.4; margin: 0; max-width: 30em; color: var(--ink-2); }
@keyframes scf-reveal { from { clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* Legal */
.legal { padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(80px, 12vh, 160px); }
.legal .scl { max-width: 980px; }
.legal h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; margin: 0 0 0.4em; }
.legal .scl-updated { color: var(--muted); margin: 0 0 3em; font-size: 1rem; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 2.2em 0 0.6em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.legal p, .legal li { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 1.1em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35em; }
.legal a { text-decoration: underline; text-underline-offset: 0.18em; }
.legal code { font-size: 0.95em; }

/* Pointer label over media, mouse only */
.cur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; }
.cur span { display: block; padding: 8px 12px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transform: scale(0.9); transform-origin: 0 0; transition: opacity 0.16s ease, transform 0.2s var(--ease-out); }
.cur.on span { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cur, .preview { display: none; } }

/* Phones and small tablets: one column, no pinning */
@media (max-width: 899px) {
  :root { --header-h: 56px; }
  .hdr { grid-template-columns: 1fr auto; }
  .hdr-nav, .hdr-cta { display: none; }
  .m-btn { display: block; }
  .hero { padding-bottom: 8px; }
  .hero-row { grid-template-columns: 1fr; gap: 20px; }
  .hero-intro, .hero-btn { grid-column: 1; justify-self: start; }
  .reel-slot { aspect-ratio: 16 / 10; }
  .about { grid-template-columns: 1fr; }
  .about-text, .portrait { grid-column: 1; }
  .portrait { margin-top: 16px; max-width: 520px; }
  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .facts dd { font-size: 13px; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard--full, .pcard--half { grid-column: 1; aspect-ratio: 4 / 5; }
  .pcard-info { right: 18px; }
  .wall-stage { height: auto; display: block; padding: 0 var(--pad); }
  .wall-grid { width: 100%; grid-template-columns: 1fr 1fr; }
  .wall-note { position: static; margin-top: 18px; text-align: left; }
  .say { width: 40px; margin-top: 4px; }
  .glance-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .glance-viewport::-webkit-scrollbar { display: none; }
  .tile { width: 78vw; height: 104vw; max-height: 520px; scroll-snap-align: start; scroll-margin-left: var(--pad); }
  .row { grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
  .row .nm { grid-column: 1; }
  .row .ct { grid-column: 1; grid-row: 2; }
  .row .yr { display: none; }
  .row .thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 104px; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: 50% 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .c-lead, .c-mail, .c-time { grid-column: 1; text-align: left; }
  .case-intro { grid-template-columns: 1fr; }
  .case-summary, .case-meta, .case-intro .btn { grid-column: 1; justify-self: start; }
  .case-cover { height: 70vw; }
  .case-text { grid-column: 1 / -1; }
  .case-screens { grid-template-columns: 1.6fr 1fr; }
  .case-next .pcard { aspect-ratio: 4 / 5; }
  .page-lead, .about-copy, .about-facts { grid-column: 1 / -1; }
  .strip-track { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hdr, .u, .btn, .pv-in, .cur span, .pcard-media, .pcard-label, .pcard-shade { transition: none; }
}
