:root {
  --bg: #F3F3F1;
  --ink: #121211;
  --muted: #6E6E6A;
  --dim: #ABABA6;
  --accent: #0339F8;
  --line: rgba(18, 18, 17, 0.14);
  --ph: #E6E6E3;
  --ph-border: rgba(18, 18, 17, 0.12);
  --shot-bg: #E9E9E6;
  --hatch: repeating-linear-gradient(135deg, rgba(18,18,17,0.07) 0px, rgba(18,18,17,0.07) 1px, transparent 1px, transparent 9px);
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-roll: cubic-bezier(.7, 0, .2, 1);
  --ease-curtain: cubic-bezier(.77, 0, .18, 1);

  --cols: 12;
  --pad: 32px;
  --gap: 24px;
  --hero-pad: 104px;
  --sec-pad: 176px;
  --row-pad: 22px;
}

@media (max-width: 759.98px) {
  :root {
    --cols: 4;
    --pad: 20px;
    --gap: 16px;
    --hero-pad: 48px;
    --sec-pad: 112px;
    --row-pad: 24px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .2s ease; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
input, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap);
}
.section { padding: var(--sec-pad) var(--pad) 0; }

/* Placeholders */
.ph {
  background-color: var(--ph);
  background-image: var(--hatch);
  border: 1px solid var(--ph-border);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 6px;
}

/* Images inside placeholders */
.ph.has-img { padding: 0; overflow: hidden; background-image: none; }
.ph.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.photo .ph.has-img img { object-position: 50% 30%; }
.shot-img { display: block; width: 100%; height: auto; background: var(--ph); }

/* Header: full-width bar at the top, a floating rounded bar once scrolled (html.hdr-float). */
.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  font-size: 13px;
  pointer-events: none;
  display: flow-root; /* keeps the floating bar's top margin inside the header */
}
.hdr > * { pointer-events: auto; }
.hdr-d, .hdr-m {
  background: var(--bg);
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 0;
  transition:
    margin .6s var(--ease-out),
    height .6s var(--ease-out),
    padding .6s var(--ease-out),
    border-radius .6s var(--ease-out),
    background-color .4s ease,
    border-color .4s ease,
    box-shadow .6s ease;
}
.hdr-float .hdr-d, .hdr-float .hdr-m {
  background: rgba(243, 243, 241, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-color: var(--line);
  box-shadow: 0 10px 30px -14px rgba(18, 18, 17, 0.28);
}
.hdr-d {
  align-items: center;
  height: 60px;
  margin: 0;
  padding: 0 32px;
}
.hdr-float .hdr-d {
  height: 52px;
  margin: 10px max(16px, calc((100% - 1180px) / 2)) 0;
  padding: 0 24px;
  border-radius: 999px;
}
.logo { text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.hdr-d .logo { grid-column: 1 / span 3; justify-self: start; }
.hdr-d nav { grid-column: 5 / span 4; justify-self: center; white-space: nowrap; display: flex; gap: 32px; }
.hdr-m-nav { display: flex; gap: 24px; }
.hdr-d .hdr-right { grid-column: 9 / span 4; justify-self: end; display: flex; align-items: center; gap: 36px; }
.langs { display: flex; gap: 5px; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { color: var(--accent); }
.langs span { color: var(--muted); }
.hdr-m { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px 20px 12px; }
.hdr-m-top { display: flex; justify-content: space-between; align-items: center; }
.hdr-m .langs a, .hdr-m .langs span { padding: 4px 0; }
.hdr-m-nav {
  max-height: 2em;
  overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .3s ease, margin .5s var(--ease-out);
}
.hdr-float .hdr-m { margin: 10px 12px 0; padding: 8px 18px; gap: 0; border-radius: 26px; }
.hdr-float .hdr-m-nav { max-height: 0; opacity: 0; }
.hdr--m { display: none; height: 84px; }
@media (max-width: 759.98px) {
  .hdr--d { display: none; }
  .hdr--m { display: flow-root; }
}
section[id] { scroll-margin-top: 80px; }

/* Links: label rolls up to an accent copy, underline wipes away. */
.lnk {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .2s ease;
}
.lnk:hover { color: var(--ink); background-size: 0 1px; }
.roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}
.roll > span, .roll::after { display: inline-block; transition: transform .55s var(--ease-roll); }
.roll::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--accent);
}
a:hover .roll > span, a:hover .roll::after { transform: translateY(-100%); }

/* Hero */
/* Background texture: faint 12-column rules that draw in after the loader, plus paper grain; both fade out downwards. */
.hero { position: relative; isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0 0 -140px;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
.hero-bg .grid { height: 100%; padding: 0 var(--pad); }
.hero-bg span {
  border-left: 1px solid rgba(18, 18, 17, 0.07);
  transform-origin: 50% 0;
  transform: scaleY(0);
  transition: transform 1.8s var(--ease-out);
  transition-delay: calc(0.1s + var(--i) * 0.05s);
}
.hero-bg span:nth-child(12) { border-right: 1px solid rgba(18, 18, 17, 0.07); }
.hero-in .hero-bg span { transform: none; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.16;
}
@media (max-width: 759.98px) {
  .hero-bg span:nth-child(n+5) { display: none; }
  .hero-bg span:nth-child(4) { border-right: 1px solid rgba(18, 18, 17, 0.07); }
}

.hero { padding: var(--hero-pad) var(--pad) 0; }
.hero h1 {
  grid-column: 1 / span 8;
  grid-row: 1;
  margin: 0;
  font-size: clamp(42px, 6.6vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: pretty;
}
.accent { color: var(--accent); }
.hero-links {
  grid-column: 10 / span 3;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.hero-links li { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; }
.hero-links li span { color: var(--muted); font-size: 12px; }
.hero-links li a { align-self: flex-start; white-space: nowrap; }
.intro {
  grid-column: 5 / span 4;
  grid-row: 2;
  margin: 80px 0 0;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
@media (max-width: 759.98px) {
  .hero h1, .hero-links, .intro { grid-column: 1 / -1; grid-row: auto; }
  .hero-links { margin-top: 36px; }
  .intro { margin-top: 24px; }
}

/* Section heads */
.sec-head {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  font-size: 13px;
}
.sec-head h2 { grid-column: 1 / span 2; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45; }
.sec-head .count { grid-column: 10 / span 3; justify-self: end; color: var(--muted); }
@media (max-width: 759.98px) { .sec-head .count { grid-column: 3 / span 2; } }

.big-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: pretty;
}
.rows { margin-top: 32px; border-top: 1px solid var(--line); }
.num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Work */
.work-list { position: relative; }
/* Cursor-following project preview (desktop) */
.cursor-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 15;
  width: clamp(260px, 24vw, 380px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
  will-change: transform;
}
.cursor-preview .cp-layer {
  position: absolute;
  inset: 0;
  background-color: var(--ph);
  background-size: cover;
  background-position: 50% 0;
  border: 1px solid var(--ph-border);
  box-shadow: 0 24px 50px -24px rgba(18, 18, 17, 0.45);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .35s ease, transform .55s var(--ease-out);
}
.cursor-preview .cp-ph { display: flex; align-items: flex-end; padding: 14px; }
.cursor-preview.is-visible .cp-layer.is-on { opacity: 1; transform: none; }
@media (max-width: 759.98px), (hover: none) { .cursor-preview { display: none; } }
.work-row { position: relative; z-index: 1; border-bottom: 1px solid var(--line); }
.work-link {
  row-gap: 12px;
  align-items: baseline;
  padding: var(--row-pad) 0;
  text-decoration: none;
  cursor: pointer;
}
.work-link .num { grid-column: 1 / span 1; grid-row: 1; }
.work-link .big-title { grid-column: 2 / span 8; grid-row: 1; transition: color .3s ease; }
.work-type { grid-column: 10 / span 3; grid-row: 1; justify-self: end; text-align: right; font-size: 13px; color: var(--muted); }
.work-thumb { display: none; }
.work-list.has-hover .work-row .big-title { color: var(--dim); }
.work-list.has-hover .work-row.is-hover .big-title { color: var(--ink); }
.work-link:hover { color: var(--ink); }
@media (max-width: 759.98px) {
  .work-thumb {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 16 / 10;
    margin-bottom: 6px;
    padding: 10px;
  }
  .work-link .num { grid-column: 1 / span 2; grid-row: 2; }
  .work-type { grid-column: 3 / span 2; grid-row: 2; }
  .work-link .big-title { grid-column: 1 / -1; grid-row: 3; }
}
.work-more { margin-top: 28px; font-size: 15px; }
.work-more a { grid-column: 2 / span 8; justify-self: start; }
@media (max-width: 759.98px) { .work-more a { grid-column: 1 / -1; } }

/* Accent marquee (Work → Services) */
main { overflow-x: clip; }
.marquee {
  margin: var(--sec-pad) -2vw 0;
  padding: clamp(14px, 1.6vw, 24px) 0;
  background: var(--accent);
  color: #fff;
  transform: rotate(-1.6deg);
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee span {
  padding: 0 clamp(18px, 2vw, 32px);
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  white-space: nowrap;
}
.marquee i { flex: none; width: 0.22em; height: 0.22em; border-radius: 50%; background: currentColor; font-size: clamp(40px, 6vw, 96px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Services */
.svc-row {
  position: relative;
  isolation: isolate;
  row-gap: 12px;
  align-items: baseline;
  padding: var(--row-pad) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
/* Hover: a full-bleed blue fill rises from the bottom, the title nudges right, the price rolls into a CTA. */
.svc-row::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -1px calc(var(--pad) * -1) 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .6s var(--ease-curtain);
}
.svc-row .big-title { transition: transform .6s var(--ease-out), color .3s ease; }
.svc-row .num, .svc-incl { transition: color .3s ease; }
.svc-price { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.svc-price > span { grid-area: 1 / 1; text-align: right; transition: transform .55s var(--ease-roll); }
.svc-price > span + span { transform: translateY(110%); }
.svc-row:focus-visible { outline: none; }
@media (hover: hover) {
  .svc-row:hover, .svc-row:focus-visible { color: #fff; }
  .svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); }
  .svc-row:hover .big-title, .svc-row:focus-visible .big-title { transform: translateX(28px); }
  .svc-row:hover .num, .svc-row:focus-visible .num,
  .svc-row:hover .svc-incl, .svc-row:focus-visible .svc-incl { color: rgba(255, 255, 255, 0.82); }
  .svc-row:hover .svc-price > span, .svc-row:focus-visible .svc-price > span { transform: translateY(-110%); }
  .svc-row:hover .svc-price > span + span, .svc-row:focus-visible .svc-price > span + span { transform: none; }
}
.svc-row .num { grid-column: 1 / span 1; grid-row: 1; }
.svc-row .big-title { grid-column: 2 / span 6; grid-row: 1; }
.svc-incl { grid-column: 8 / span 3; grid-row: 1; margin: 0; font-size: 14px; line-height: 1.5; max-width: 36ch; text-wrap: pretty; }
.svc-price { grid-column: 11 / span 2; grid-row: 1; justify-self: end; font-size: 14px; font-weight: 500; white-space: nowrap; }
.svc-note { margin-top: 20px; }
.svc-note p { grid-column: 8 / span 5; margin: 0; font-size: 13px; color: var(--muted); text-wrap: pretty; }
@media (max-width: 759.98px) {
  .svc-row .num { grid-column: 1 / span 2; }
  .svc-row .big-title { grid-column: 1 / -1; grid-row: 2; }
  .svc-incl { grid-column: 1 / -1; grid-row: 3; }
  .svc-price { grid-column: 3 / span 2; }
  .svc-note p { grid-column: 1 / -1; }
}

/* About */
.about-body { row-gap: 32px; margin-top: 32px; align-items: start; }
.photo-col { grid-column: 1 / span 4; position: sticky; top: 96px; }
.photo { aspect-ratio: 4 / 5; }
.photo > .ph { height: 100%; }
.photo [data-parallax] { transform: scale(1.14); will-change: transform; }
/* Rotating badge on the photo corner */
.badge {
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px -18px rgba(3, 57, 248, 0.7);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 18s linear infinite; }
.badge text { fill: currentColor; font-size: 10px; font-weight: 500; text-transform: uppercase; }
.badge i { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
.about-text { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 28px; }
.about-lead {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: pretty;
}
.about-p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 52ch; text-wrap: pretty; }
/* Figures */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat:first-child .stat-num { color: var(--accent); }
.stat-label { font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 16ch; }
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.facts h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.facts p { margin: 0; font-size: 14px; line-height: 1.5; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 5px 12px;
  border: 1px solid rgba(18, 18, 17, 0.2);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chips li:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Process */
.process { margin-top: 20px; }
.process h3 { margin: 0 0 16px; font-size: 12px; font-weight: 500; color: var(--muted); }
.process ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.process li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.process strong { font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.process li p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) {
  .stats, .process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759.98px) {
  .photo-col { grid-column: 1 / -1; position: relative; top: 0; }
  .photo { aspect-ratio: 1 / 1; }
  .badge { width: 104px; right: 12px; bottom: -36px; }
  .about-text { grid-column: 1 / -1; margin-top: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* Contact */
.big-mail {
  margin: 40px 0 0;
  font-size: clamp(46px, 9vw, 140px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.big-mail a { text-decoration-thickness: 0.035em; text-underline-offset: 0.09em; }
.contact-body { row-gap: 56px; margin-top: 80px; }
.contact-links { grid-column: 1 / span 4; display: flex; flex-direction: column; }
.contact-links > p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.contact-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-link span { color: var(--muted); font-size: 13px; padding-top: 2px; }
.contact-link a { justify-self: start; overflow-wrap: anywhere; }
.form { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.form label { display: flex; flex-direction: column; gap: 4px; }
.form label span { font-size: 13px; color: var(--muted); }
.form input, .form textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  outline: none;
  padding: 10px 0;
  font-size: 18px;
}
.form textarea { line-height: 1.4; resize: none; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--accent); }
.form button {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: var(--accent);
  font-size: 18px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.form .sent { margin: 0; font-size: 18px; line-height: 1.4; }
.form button:disabled { color: var(--muted); cursor: default; }
.form-error { margin: 0; font-size: 14px; color: #C3261C; }
.form-error a { color: inherit; }
/* Honeypot for bots, kept off-screen */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 759.98px) {
  .contact-body { margin-top: 48px; }
  .contact-links, .form { grid-column: 1 / -1; }
}

/* Footer: sticks behind the page and is uncovered as main scrolls away (--reveal 0..1 from app.js). */
main {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding-bottom: var(--sec-pad);
  box-shadow: 0 30px 60px -30px rgba(18, 18, 17, 0.35);
}
.footer {
  --reveal: 1;
  position: sticky;
  bottom: 0;
  z-index: 0;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.footer.is-static { position: relative; }
.is-frame .footer-inner { min-height: 900px; }
@media (max-width: 759.98px) { .is-frame .footer-inner { min-height: 788px; } }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 96px var(--pad) 24px;
  transform: translateY(calc((1 - var(--reveal)) * 30%)) scale(calc(0.94 + var(--reveal) * 0.06));
  transform-origin: 50% 100%;
  opacity: calc(0.2 + var(--reveal) * 0.8);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: start;
}
.footer-cta {
  grid-column: 1 / span 6;
  padding: 0;
  text-align: left;
  justify-self: start;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; }
.footer-col:nth-child(2) { grid-column: 8 / span 2; }
.footer-col:nth-child(3) { grid-column: 10 / span 3; }
.footer-col h2 { margin: 0 0 8px; font-size: 12px; font-weight: 500; color: rgba(243, 243, 241, 0.5); }
.footer .lnk { background-size: 0 1px; }
.footer .lnk:hover { color: var(--bg); background-size: 100% 1px; background-position: 0 100%; }
.footer .roll::after { color: var(--bg); }
.footer-mark {
  margin: auto 0 0;
  font-size: 13.8vw;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 0.08em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 243, 241, 0.16);
  font-size: 12px;
  color: rgba(243, 243, 241, 0.55);
}
.footer-bottom a { white-space: nowrap; }
@media (max-width: 759.98px) {
  .footer { bottom: 56px; }
  .footer-inner { gap: 36px; padding-top: 88px; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); }
  .footer-cta { grid-column: 1 / -1; }
  .footer-col:nth-child(2) { grid-column: 1 / span 2; }
  .footer-col:nth-child(3) { grid-column: 3 / span 2; }
  .footer-mark { font-size: 13vw; }
  .footer-bottom { flex-direction: column; }
}

/* Contact form panel: rises like a curtain over the page, then its content floats in. */
.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .9s var(--ease-curtain), visibility 0s linear .9s;
}
.contact-panel.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .9s var(--ease-curtain), visibility 0s;
}
.cpanel-inner {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--pad) 48px;
}
.cpanel-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
}
.contact-panel .big-mail { margin-top: 48px; }
.cpanel-bar .close-btn { margin-right: -12px; }
.contact-panel .contact-body { margin-top: 64px; }
.cp-anim {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .5s ease, transform .5s var(--ease-out);
}
.contact-panel.is-open .cp-anim {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s);
}
@media (max-width: 759.98px) {
  .contact-panel .big-mail { margin-top: 32px; }
  .contact-panel .contact-body { margin-top: 40px; }
}

/* Mobile Telegram bar */
.tg-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  height: 56px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.tg-bar:hover { color: #fff; }
.tg-bar small { font-size: 13px; font-weight: 400; }
@media (max-width: 759.98px) {
  #app { padding-bottom: 56px; }
  .tg-bar { display: flex; }
  body.modal-open .tg-bar { display: none; }
}

/* Hero title lines (split in app.js); they assemble with the "water" effect. */
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line-inner { display: block; }

/* "Water" text: hidden until its goo animation starts (app.js adds .goo-done). */
.reveal-init [data-goo]:not(.goo-done),
.reveal-init [data-goo-footer]:not(.goo-done),
.reveal-init .hero-goo:not(.goo-done) { opacity: 0; }

/* Ink reveal canvas from ink.js, laid over the hero */
.hero-ink { position: absolute; z-index: 2; pointer-events: none; }

/* Reveal on scroll */
.reveal-init [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1.2s var(--ease-out), clip-path 1.3s var(--ease-curtain);
}
/* rise / wipe animate an inner element: a block hidden by its own clip-path is never "visible" to IntersectionObserver */
.reveal-init [data-reveal="rise"], .reveal-init [data-reveal="wipe"] { opacity: 1; transform: none; }
[data-reveal="rise"] > .rise { display: block; }
.reveal-init [data-reveal="rise"] > .rise {
  transform: translateY(60%);
  clip-path: inset(0 0 100% 0);
  transition: transform 1.2s var(--ease-out), clip-path 1.3s var(--ease-curtain);
}
.reveal-init [data-reveal="wipe"] > .ph {
  height: 100%;
  transform: scale(1.04);
  clip-path: inset(100% 0 0 0);
  transition: transform 1.4s var(--ease-out), clip-path 1.3s var(--ease-curtain);
}
.reveal-init [data-reveal].is-in > .rise { transform: none; clip-path: inset(-0.3em -0.2em -0.3em -0.2em); }
.reveal-init [data-reveal].is-in > .ph { transform: none; clip-path: inset(0 0 0 0); }
.reveal-init [data-reveal].is-in { opacity: 1; transform: none; }
/* Section heads: only the rule draws in; their text uses the water effect. */
.reveal-init [data-reveal="line"] { opacity: 1; transform: none; }
/* Section rules draw in from the left. */
.sec-head { border-top: 0; position: relative; }
.sec-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: 0 50%;
  transition: transform 1.4s var(--ease-out) .1s;
}
.reveal-init .sec-head:not(.is-in)::before { transform: scaleX(0); }

/* Loader */
html.is-loading { overflow: hidden; }
.loader, .loader-accent {
  position: fixed;
  inset: 0;
  z-index: 100;
  clip-path: inset(0 0 0 0);
}
.loader-accent { z-index: 99; background: var(--accent); }
.loader {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--pad) 32px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
}
.loader.is-done, .loader-accent.is-done { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease-curtain); }
.loader-accent.is-done { transition-delay: .14s; }
.loader-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; color: rgba(243, 243, 241, 0.6); }
.loader-brand {
  margin: 0;
  font-size: clamp(56px, 11vw, 190px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.loader-brand .line { display: block; padding-bottom: 0.12em; margin-bottom: -0.12em; clip-path: inset(-0.3em -0.2em 0 -0.2em); }
.loader-brand .line-inner {
  display: block;
  animation: loader-rise 1.1s var(--ease-out) both;
  animation-delay: calc(0.15s + var(--i) * 0.1s);
  transition: transform .5s var(--ease-roll);
}
.loader.is-leaving .loader-brand .line-inner { transform: translateY(-120%); }
.loader-brand .accent { color: var(--accent); }
@keyframes loader-rise { from { transform: translateY(120%) rotate(3deg); } to { transform: none; } }
.loader-note { animation: loader-fade .8s ease .4s both; }
.loader-count {
  color: var(--bg);
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  animation: loader-fade .8s ease .2s both;
}
.loader-count small { font-size: 0.35em; letter-spacing: 0; margin-left: 4px; vertical-align: top; }
@keyframes loader-fade { from { opacity: 0; } to { opacity: 1; } }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(243, 243, 241, 0.08); }
.loader-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* Language switch */
::view-transition-old(root) { animation: lang-out .3s ease both; }
::view-transition-new(root) { animation: lang-in .55s var(--ease-out) both; }
@keyframes lang-out { to { opacity: 0; filter: blur(8px); } }
@keyframes lang-in { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } }
#app { transition: opacity .28s ease, filter .28s ease; }
#app.is-switching { opacity: 0; filter: blur(8px); }

/* Modal, shared */
body.modal-open { overflow: hidden; }
.plain-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.shot-toggle { display: flex; align-items: center; gap: 6px; }
.shot-toggle button { font-size: 13px; color: var(--muted); text-underline-offset: 0.25em; }
.shot-toggle button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; }
.shot-toggle span { color: var(--muted); }
.close-btn { width: 44px; height: 44px; font-size: 26px; line-height: 1; font-weight: 300; }
.close-btn:hover { color: var(--accent); }
.shot-block {
  position: relative;
  border-bottom: 1px solid var(--ph-border);
  background-image: repeating-linear-gradient(135deg, rgba(18,18,17,0.06) 0px, rgba(18,18,17,0.06) 1px, transparent 1px, transparent 10px);
}
.shot-block .tag { position: absolute; top: 14px; left: 16px; }
.shot-block .tag.center { top: 50%; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.meta { margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 1.5; }
.meta dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.meta dd { margin: 0; text-wrap: pretty; }
.open-link { color: var(--accent); font-size: 15px; }

/* Modal, desktop */
.md-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 18, 17, 0);
  padding: 24px;
  display: flex;
  transition: background-color .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease;
}
/* Open / close: the backdrop dims and blurs, the dialog rises with a slight zoom, then its text fades up. */
#modal-root.is-open .md-backdrop {
  background: rgba(18, 18, 17, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition-duration: .5s;
}
#modal-root:not(.is-open) > * { pointer-events: none; }
.md {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  transition: opacity .3s ease, transform .4s cubic-bezier(.6, 0, .9, .3);
}
#modal-root.is-open .md {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .8s var(--ease-out);
}
.md-aside-body > *, .md-bar, .md-nav {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease;
}
#modal-root.is-open .md-aside-body > *, #modal-root.is-open .md-bar, #modal-root.is-open .md-nav {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease var(--d, .2s), transform .8s var(--ease-out) var(--d, .2s);
}
.md-aside-body > :nth-child(1) { --d: .22s; }
.md-aside-body > :nth-child(2) { --d: .3s; }
.md-aside-body > :nth-child(3) { --d: .38s; }
.md-bar { --d: .18s; }
.md-nav { --d: .32s; }
.md {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
  border: 1px solid rgba(18, 18, 17, 0.3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: minmax(0, 1fr) 56px;
}
.md-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; }
.md-bar {
  position: relative;
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.md-bar .shot-toggle button { padding: 8px 0; }
.md-progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--accent); width: 0; }
.md-scroll { flex: 1; min-height: 0; overflow-y: auto; background: var(--shot-bg); }
.md-scroll.is-mobile-shot { padding: 32px 0; }
.md-shot { width: 100%; margin: 0 auto; background: var(--bg); border-left: 1px solid var(--ph-border); border-right: 1px solid var(--ph-border); }
.md-scroll.is-mobile-shot .md-shot { width: 375px; }
.md-aside {
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.md-aside-bar {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.md-aside-body { padding: 28px; display: flex; flex-direction: column; gap: 32px; }
.md-aside-body h2 { margin: 0; font-size: 40px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; text-wrap: pretty; }
.md-aside-body .open-link { align-self: flex-start; }
.md-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-size: 13px;
}
.md-nav > div { display: flex; gap: 12px; min-width: 0; }
.md-nav > div:first-child { justify-self: start; }
.md-nav > div:last-child { justify-self: end; }
.md-nav .ellipsis { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Modal, mobile */
.mm {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.6, 0, .9, .3);
}
#modal-root.is-open .mm { transform: none; transition: transform .7s var(--ease-curtain); }
.mm-bar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0 20px;
  border-bottom: 1px solid var(--line);
}
.mm-bar h2 { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-more { flex: none; height: 44px; padding: 0 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 0.2em; }
.mm-more[aria-expanded="true"] { color: var(--accent); }
.close-btn { flex: none; }
.mm-details {
  flex: none;
  max-height: 60%;
  overflow-y: auto;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mm-details > p { margin: 0; font-size: 30px; line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; text-wrap: pretty; }
.mm-details .meta { gap: 16px; }
.mm-details-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.mm-details-foot .shot-toggle button { height: 44px; }
.mm-progress { flex: none; height: 2px; background: rgba(18, 18, 17, 0.08); }
.mm-progress div { height: 2px; background: var(--accent); width: 0; }
.mm-scroll { flex: 1; min-height: 0; overflow-y: auto; background: var(--shot-bg); }
.mm-scroll .md-shot { border: 0; }
.mm-scroll .shot-block .tag:not(.center) { top: 12px; left: 12px; }
.mm-nav {
  flex: none;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.mm-nav a { display: flex; align-items: center; height: 44px; }

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
