/* STOMP® - public site */
@font-face { font-family: "Delight"; src: url("/assets/fonts/Delight-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Delight"; src: url("/assets/fonts/Delight-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Delight"; src: url("/assets/fonts/Delight-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
:root {
  --bg: #fff;                     /* negative: white page, black ink */
  --fg: #000;
  --muted: #76767b;
  --line: #d2d2d2;
  --rule: 2px solid var(--fg);   /* bold section dividers */
  --r: 6px;                       /* subtle corner radius */
  --hover: #f2f2f2;
  --shade: #ebebeb;               /* empty image background */
  --pink: #ff6ad5;
  --green: #2bd96b;
  --g: 15px;               /* page gutter */
  --header: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: "Delight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Delight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--pink); color: var(--fg); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--g);
  background: var(--bg);
  border-bottom: var(--rule);
}
.logo { font: 500 19px/1 var(--display); letter-spacing: -0.02em; }
.logo sup { font-size: .5em; vertical-align: super; margin-left: 1px; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 13px; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
/* ---------- shared ---------- */
main { position: relative; z-index: 2; background: var(--bg); }
.section { padding: 0 var(--g); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 120px; padding: 18px 0 28px; border-top: var(--rule);
}
.h2 { font: 400 clamp(40px, 5vw, 72px)/1 var(--display); letter-spacing: -0.035em; }
.count { color: var(--muted); font-size: 13px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
a.pill:hover, button.pill:hover, .pill.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.sm { height: 24px; padding: 0 10px; font-size: 11px; }
/* square buttons: the geometric counterpart of tag pills */
.sq {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 1px solid var(--fg); border-radius: var(--r);
  font-size: 13px; white-space: nowrap; transition: background .2s, color .2s;
}
.sq:hover, .sq.is-on { background: var(--fg); color: var(--bg); }
/* main call to action: bigger, pink */
.sq.sq-cta { height: 56px; padding: 0 28px; font-size: 18px; background: var(--pink); border-color: var(--pink); color: var(--fg); }
.sq.sq-cta:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .line-mask > span { transform: none; }

/* ---------- hero ---------- */
/* headline + marquee fill exactly one screen; the next section starts below the fold */
.hero-screen { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero {
  position: relative; flex: 1; display: flex; align-items: flex-start;
  padding: calc(var(--header) + var(--hero-gap)) var(--g) var(--hero-gap); --hero-gap: clamp(32px, 5svh, 72px);
}
.hero h1 {
  position: relative; z-index: 2;
  /* follows width and height, so the four lines always fit the screen */
  font: 400 clamp(40px, min(5vw, 9svh), 150px)/0.98 var(--display);
  letter-spacing: -0.045em;
  max-width: 14em;
}
.hero h1 .line-mask { display: inline-block; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 a {
  text-decoration: underline; text-decoration-thickness: 0.055em; text-underline-offset: 0.09em;
  transition: color .3s;
}
.hero h1 a:hover { color: var(--pink); }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- marquee ---------- */
.marquee { border-top: var(--rule); border-bottom: var(--rule); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; padding-right: 14px; font: 400 clamp(28px, 3.2vw, 52px)/1 var(--display); letter-spacing: -0.035em; white-space: nowrap; }
.marquee-item a:hover { color: var(--pink); }
.marquee-item .star { color: var(--pink); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- showcases: stacked sticky cards ---------- */
.showcases { padding: 0 var(--g); }
.stack { position: relative; }
.card {
  position: sticky; top: calc(var(--header) + 24px);
  display: flex; flex-direction: column;
  margin-bottom: 64px; background: var(--bg); border-top: var(--rule);
  transform-origin: 50% 0; will-change: transform, filter;
}
.card:last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; gap: 14px; height: 72px; flex: none; }
.card-title { font: 400 clamp(30px, 3.4vw, 50px)/1 var(--display); letter-spacing: -0.035em; white-space: nowrap; transition: color .3s; }
.card:hover .card-title { color: var(--pink); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-index { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 16:9 slide, never cropped; as wide as the column but never taller than the screen allows */
.card-img { position: relative; display: block; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - var(--header) - 150px) * 16 / 9)); overflow: hidden; border: 1px solid var(--fg); border-radius: var(--r); background: var(--shade); }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.4s var(--ease); }
.card:hover .card-img img { transform: scale(1.03); }
.card-view { position: absolute; right: var(--g); bottom: var(--g); background: var(--bg); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease), background .2s, color .2s; }
.card:hover .card-view { opacity: 1; transform: none; }
.card-shade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.stack-end { display: flex; justify-content: center; padding: 40px 0 0; }

/* ---------- index table ---------- */
/* ---------- clients logo strip ---------- */
.clients { margin: 120px var(--g) 0; border-top: var(--rule); border-bottom: var(--rule); }
.clients-head { display: flex; justify-content: space-between; padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.logo-strip { overflow: hidden; padding: 44px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; animation: marquee var(--speed, 40s) linear infinite; }
.logo-item { flex: none; display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 44px; } /* fixed 88px gap between logos */
.logo-item img { height: 38px; width: auto; max-width: 200px; object-fit: contain; filter: brightness(0); opacity: .9; transition: opacity .3s; }
a.logo-item:hover img { opacity: 1; }
.logo-item img.is-icon { height: 64px; max-width: 64px; }

/* index: boxed sidebar + card grid (geometric, every element outlined) */
.idx { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.idx-side { position: sticky; top: calc(var(--header) + var(--g)); border: 1px solid var(--fg); border-radius: var(--r); overflow: hidden; }
.box-row { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--fg); font-size: 14px; text-align: left; transition: background .2s, color .2s; }
#filters .box-row:hover { background: var(--hover); }
#filters .box-row.is-on { background: var(--fg); color: var(--bg); }
#filters .box-row.is-on .t-muted { color: var(--bg); }
.box-head { color: var(--muted); font-size: 13px; }
.view-toggle { border-bottom: 0; padding: 0; gap: 0; }
.view-toggle .sq { flex: 1; height: 100%; border: 0; border-radius: 0; }
.view-toggle .sq + .sq { border-left: 1px solid var(--fg); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--fg); border-radius: var(--r); overflow: hidden; background: var(--bg); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--fg); }
.pcard-img { display: block; aspect-ratio: 16 / 9; background: var(--shade); overflow: hidden; border-bottom: 1px solid var(--fg); }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--fg); flex: 1; }
.pcard-title { font: 400 22px/1.05 var(--display); letter-spacing: -0.025em; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); padding: 10px var(--g) 10px 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); }
.table th button { color: inherit; display: inline-flex; gap: 6px; }
.table th button:hover, .table th.sorted button { color: var(--fg); }
.table th .arrow { width: 10px; display: inline-block; }
.table td { padding: 13px var(--g) 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.table td:last-child, .table th:last-child { text-align: right; padding-right: 0; }
.table tbody tr { cursor: pointer; transition: background .2s; }
.table tbody tr:hover { background: var(--hover); }
.table tbody tr:hover td:first-child { border-radius: var(--r) 0 0 var(--r); }
.table tbody tr:hover td:last-child { border-radius: 0 var(--r) var(--r) 0; }
.table tbody tr:hover td:first-child { color: var(--pink); }
.table td.t-title { font-size: 17px; letter-spacing: -0.01em; }
.table .t-muted { color: var(--muted); }
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 16 / 10;
  pointer-events: none; overflow: hidden; border-radius: 4px;
  opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .25s, transform .35s var(--ease);
}
.preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services: how we can help ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin: 120px var(--g) 0; padding-top: 18px; border-top: var(--rule); }
.help-side { position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.help-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.help-title { font: 400 clamp(40px, 5vw, 76px)/0.98 var(--display); letter-spacing: -0.04em; max-width: 9em; margin-bottom: 32px; }
.help-scroll { position: relative; }
.help-stage { padding-bottom: 120px; }
.help-list { list-style: none; border-top: 1px solid var(--fg); }
.help-item { border-bottom: 1px solid var(--fg); }
.help-head { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 16px 0 14px; text-align: left; transition: color .3s, padding-left .5s var(--ease); }
.help-head sup { font-size: 11px; color: var(--muted); transform: translateY(-1.6em); }
.help-name { flex: 1; font: 400 clamp(30px, 3.4vw, 54px)/1 var(--display); letter-spacing: -0.035em; }
.help-plus { position: relative; width: 16px; height: 16px; align-self: center; flex: none; }
.help-plus::before, .help-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .5s var(--ease); }
.help-plus::after { transform: rotate(90deg); }
.help-item.is-open .help-plus::after { transform: rotate(0deg); }
.help-item:not(.is-open) .help-head:hover { padding-left: 16px; color: var(--pink); }
.help-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.help-item.is-open .help-body { grid-template-rows: 1fr; }
.help-inner { overflow: hidden; min-height: 0; }
.help-inner p { font-size: 17px; line-height: 1.45; max-width: 34em; padding-top: 4px; margin-bottom: 18px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.help-includes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-bottom: 22px; opacity: 0; transition: opacity .5s; }
.help-includes li { font-size: 14px; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.help-includes li::before { content: "✱"; color: var(--pink); margin-right: 8px; font-size: 11px; }
.help-item.is-open .help-inner p, .help-item.is-open .help-includes { opacity: 1; transform: none; transition-delay: .2s; }

/* ---------- about ---------- */
.about { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin: 120px var(--g) 0; padding: 18px 0 180px; border-top: var(--rule); }
.about h3 { font: 500 22px/1.2 var(--display); letter-spacing: -0.02em; }
.about-text p { font: 400 clamp(20px, 1.9vw, 28px)/1.22 var(--display); letter-spacing: -0.02em; margin-bottom: .9em; max-width: 24em; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- footer curtain ---------- */
.curtain-end { height: 24px; background: var(--bg); border-radius: 0 0 24px 24px; position: relative; z-index: 2; }
.footer {
  position: sticky; bottom: 0; z-index: 1;
  background: var(--fg); color: var(--bg);
  padding: 72px var(--g) var(--g);
  margin-top: -24px; padding-top: calc(72px + 24px);
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin-bottom: 9vw; }
.footer-cta { font: 400 clamp(28px, 3.4vw, 54px)/1.02 var(--display); letter-spacing: -0.035em; max-width: 12em; }
.footer-cta a { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 17px; }
.footer-links a:hover { text-decoration: underline; }
.footer .pill { border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
.footer a.pill:hover { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.wordmark { display: inline-block; font: 500 26.5vw/0.76 var(--display); letter-spacing: -0.065em; white-space: nowrap; margin-left: -0.04em; }
.wordmark sup { font-size: .16em; vertical-align: top; letter-spacing: 0; position: relative; top: .25em; }
.footer-base { display: flex; justify-content: space-between; font-size: 12px; padding-top: 14px; margin-top: 2vw; border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); }

/* ---------- project page ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); gap: var(--g); padding: calc(var(--header) + var(--g)) var(--g) 0; }
.slides { display: flex; flex-direction: column; gap: 0; }
.slides img, .slides video { width: 100%; height: auto; background: var(--shade); }
.slides img { opacity: 0; transition: opacity .7s var(--ease); }
.slides img.loaded { opacity: 1; }
.info { position: sticky; top: calc(var(--header) + var(--g)); align-self: start; max-height: calc(100svh - var(--header) - 2 * var(--g)); overflow: auto; scrollbar-width: none; }
.info::-webkit-scrollbar { display: none; }
.back { display: inline-flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; transition: color .2s; }
.back:hover { color: var(--fg); }
.info h1 { font: 400 clamp(44px, 5vw, 76px)/0.96 var(--display); letter-spacing: -0.04em; margin-bottom: 26px; }
.specs { border-top: 1px solid var(--line); margin-bottom: 26px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }
.desc p { font-size: 16px; line-height: 1.5; margin-bottom: 1em; max-width: 34em; }
.info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.slide-counter { font-size: 12px; color: var(--muted); margin-top: 22px; font-variant-numeric: tabular-nums; }
.next {
  display: block; position: relative; overflow: hidden;
  margin: 120px var(--g) 0; padding: 18px 0 40px; border-top: var(--rule);
}
.next small { font-size: 13px; color: var(--muted); }
.next strong { display: block; font: 400 clamp(56px, 11vw, 190px)/0.9 var(--display); letter-spacing: -0.05em; margin-top: 18px; transition: transform .7s var(--ease), color .3s; }
.next:hover strong { transform: translateX(2vw); color: var(--pink); }
.empty { padding: 30vh var(--g); text-align: center; color: var(--muted); }

/* ---------- contact panel ---------- */
.no-scroll, .no-scroll body { overflow: hidden; }
.contact { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .5s; }
.contact.open { visibility: visible; transition: none; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(255,255,255,.7); opacity: 0; transition: opacity .4s; }
.contact.open .contact-backdrop { opacity: 1; }
.contact-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); border-radius: var(--r) 0 0 var(--r);
  background: var(--bg); border-left: var(--rule); overflow-y: auto;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.contact.open .contact-panel { transform: none; }
.contact-top { display: flex; justify-content: space-between; align-items: center; height: var(--header); padding: 0 var(--g); border-bottom: var(--rule); font-size: 13px; }
.contact-x { width: 36px; padding: 0; }
.contact-form, .contact-done { padding: 28px var(--g) 40px; }
.contact-h { font: 400 clamp(34px, 4vw, 52px)/1 var(--display); letter-spacing: -0.035em; margin-bottom: 28px; }
.field { display: block; border: 0; margin-bottom: 18px; }
.field > span, .field legend { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.field i { font-style: normal; opacity: .7; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--fg); font: inherit; font-size: 16px;
  border: 1px solid var(--fg); border-radius: var(--r); padding: 12px 14px; outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.needs { display: flex; flex-wrap: wrap; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.contact-send:disabled { opacity: .5; pointer-events: none; }
.contact-msg { font-size: 13px; color: var(--muted); }
.contact-done p { font-size: 17px; margin-bottom: 24px; }

/* page transition */
.veil { position: fixed; inset: 0; z-index: 100; background: var(--bg); pointer-events: none; opacity: 1; transition: opacity .55s var(--ease); }
.is-ready .veil { opacity: 0; }
.is-leaving .veil { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .help, .about, .footer-grid { grid-template-columns: 1fr; }
  .help-side, .help-stage { position: static; }
  .help-includes { grid-template-columns: 1fr; }
    .about { padding-bottom: 120px; }
  .slide-counter { display: none; }
  .table .hide-sm { display: none; }
  .idx { grid-template-columns: 1fr; }
  .idx-side { position: static; }
  .card-img { width: 100%; }
  .card-head { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 8px 10px; }
  .card-title { font-size: 30px; }
  .card-index { display: none; }
  #filters { display: grid; grid-template-columns: 1fr 1fr; }
  #filters .box-row:nth-child(odd) { border-right: 1px solid var(--fg); }
  .project { grid-template-columns: 1fr; }
  .info { position: static; max-height: none; order: -1; padding-bottom: 20px; }
  .preview { display: none; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 13.2vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .slides img { opacity: 1; transform: none; }
  .line-mask > span { transform: none; }
}
