:root {
  --ink: #050c1a;
  --navy: #0a1a3a;
  --cobalt: #1d4ed8;
  --ice: #dbe7ff;
  --text: #f2f6fd;
  --copy: #c9d6ea;
  --line: rgba(191, 214, 254, 0.2);
  --glass-fill: rgba(8, 19, 44, 0.56);
  --glass-solid: #0b1a38;
  --cut: 22px;
  --gutter: clamp(16px, 5vw, 72px);
  --display: "Marcellus", "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--copy);
  font: 400 1.0625rem/1.6 var(--body);
  background-color: #050c1a;
  background-image:
    radial-gradient(70rem 50rem at 15% 10%, rgba(29, 78, 216, 0.34), transparent 70%),
    radial-gradient(60rem 50rem at 90% 70%, rgba(36, 62, 140, 0.36), transparent 70%),
    linear-gradient(180deg, #0a1a3a, #050c1a);
  background-attachment: fixed;
}

::selection { color: var(--ink); background: var(--ice); }

#wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2 {
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.4vw, 7rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { color: var(--text); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--ice);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Glass: the logo's cut corner replaces the usual rounded card */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)), var(--glass-fill);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(147, 186, 253, 0.2) 45%, rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cut);
  height: var(--cut);
  background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(255, 255, 255, 0.42) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}

/* Buttons */
.btn {
  --cut: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  color: #fff;
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #2e62e6, #143a9f);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: filter 160ms ease;
}
.btn:hover { filter: brightness(1.18); }
.btn:focus-visible { outline-offset: -5px; outline-color: #fff; }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 0.9375rem; }
.btn--ghost {
  color: var(--text);
  background: rgba(219, 231, 255, 0.12);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.textlink {
  color: var(--ice);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Header */
.site {
  position: fixed;
  top: 14px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 20;
}
.nav {
  --cut: 16px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 8px 8px 8px 20px;
}
.nav__brand { display: block; padding: 8px 0; flex: none; }
.nav__brand img { width: 130px; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 30px); margin-right: auto; }
.nav__links a {
  color: var(--copy);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
}
.nav__links a:hover { color: #fff; }
.nav__cta { flex: none; margin-right: 8px; }
.nav__toggle {
  --cut: 12px;
  position: relative;
  display: none;
  min-height: 44px;
  padding: 8px 14px;
  margin-right: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  font: 500 0.9375rem/1 var(--body);
  background: transparent;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
/* The clip removes the border at the corner, so the diagonal edge is drawn here */
.nav__toggle::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: var(--cut);
  height: var(--cut);
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}
.nav__toggle:focus-visible { outline-offset: -5px; }
.menu { --cut: 16px; margin-top: 8px; padding: 12px 20px; background-color: rgba(8, 19, 44, 0.9); }
.menu[hidden] { display: none; }
.menu { opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: opacity .25s ease, transform .32s cubic-bezier(.2, .8, .2, 1); }
.menu.is-open { opacity: 1; transform: none; }
.menu a { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(2) { transition-delay: .04s; }
.menu.is-open a:nth-child(3) { transition-delay: .08s; }
.menu.is-open a:nth-child(4) { transition-delay: .12s; }
.menu.is-open a:nth-child(5) { transition-delay: .16s; }
.menu.is-open a:nth-child(6) { transition-delay: .2s; }
.menu.is-open a:nth-child(7) { transition-delay: .24s; }
.menu.is-open a:nth-child(8) { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .menu, .menu a { transition: none; } }
.menu a {
  display: block;
  padding: 13px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child { border-bottom: 0; }

/* Sections */
.section { padding: clamp(72px, 11vw, 168px) var(--gutter) 0; max-width: 1560px; margin-inline: auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: 100svh;
  max-width: 1560px;
  margin-inline: auto;
  padding: 116px var(--gutter) clamp(32px, 5vw, 64px);
}
.hero__copy { max-width: 62rem; }
.lede {
  max-width: 34rem;
  margin: 26px 0 32px;
  color: var(--text);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
}
.facts { display: grid; padding: 12px 24px; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--text); font-weight: 600; line-height: 1.3; }
.facts dd { margin-top: 3px; font-size: 0.9375rem; line-height: 1.4; }

/* Honest stand-in for photos still to come */
.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 20px;
  background: linear-gradient(200deg, rgba(219, 231, 255, 0.07), rgba(5, 12, 26, 0.5));
  border: 1px dashed rgba(191, 214, 254, 0.42);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about__copy p { max-width: 38rem; margin-top: 26px; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--text); }

.difference h2 { max-width: 20ch; }
.difference__lede { max-width: 36rem; margin-top: 24px; font-size: 1.125rem; }
.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.columns p { margin-top: 10px; }

.services > h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.flagship {
  --cut: 44px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.flagship__copy {
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)), rgba(8, 19, 44, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.flagship__copy h3 { color: var(--text); font: 400 clamp(1.8rem, 3vw, 2.75rem)/1.12 var(--display); }
.flagship__copy p { max-width: 32rem; margin: 18px 0 28px; }
.flagship__window {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 34vw, 480px);
}
.flagship__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.flagship__window p {
  max-width: 24rem;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.45;
  background: rgba(5, 12, 26, 0.72);
}

.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); margin-top: 16px; padding: 12px clamp(24px, 4vw, 56px); }
.row { padding: 26px 0; border-bottom: 1px solid var(--line); }
.row:nth-last-child(-n + 2) { border-bottom: 0; }
.row p { margin-top: 8px; font-size: 1rem; }

.portfolio__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.portfolio__head p { max-width: 26rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery li { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery li:hover img { transform: scale(1.04); }
.gallery .cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(5, 12, 26, 0.88), transparent); }
.gallery h3 { font: 400 clamp(1.1rem, 1.6vw, 1.5rem)/1.15 var(--display); }
.gallery p { margin-top: 2px; color: var(--copy); font-size: 0.9375rem; }
.videos .portfolio__head a { color: var(--ice); text-decoration: underline; }
/* Video fan: cards spread in an arc on desktop, swipe row on phones */
.shorts { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shorts li { flex: none; width: 225px; aspect-ratio: 9 / 14; position: relative; background: #000; overflow: hidden; border-radius: 14px; scroll-snap-align: start; }
.vid { border-radius: inherit; overflow: hidden; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.vid img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .3s; }
.vid:hover img { opacity: 1; }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(29, 78, 216, .9); }
.play::after { content: ""; position: absolute; left: 28px; top: 22px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.vt { position: absolute; inset: auto 0 0 0; border-radius: 0 0 14px 14px; z-index: 1; padding: 36px 12px 12px; text-align: left; color: var(--text); font: 600 1rem/1.3 var(--body); background: linear-gradient(to top, rgba(5, 12, 26, 0.92), transparent); pointer-events: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.shorts iframe { border-radius: 14px; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .shorts.is-fan { display: block; position: relative; overflow: visible; scroll-snap-type: none; height: var(--fan-h, 520px); }
  .shorts.is-fan li {
    position: absolute; left: 0; top: 0; width: var(--cw, 170px); aspect-ratio: auto; height: var(--ch, 265px);
    overflow: visible; border-radius: 14px; border: 1px solid rgba(191, 214, 254, .28); box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    transform: translate(var(--x0, 0px), var(--y, 0px)) rotate(0deg) scale(.9); opacity: 0;
    transition: transform .9s cubic-bezier(.34, 1.45, .64, 1) var(--d, 0s), opacity .5s ease var(--d, 0s), box-shadow .3s;
  }
  .shorts.is-fan.is-in li { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 1; }
  .shorts.is-fan.is-ready li { transition: transform .28s ease, opacity .3s, box-shadow .3s; }
  .shorts.is-fan.is-in li:hover, .shorts.is-fan.is-in li:focus-within {
    z-index: 50; transform: translate(var(--x), calc(var(--y) - var(--lift, 42px))) rotate(0deg) scale(1.08);
    box-shadow: 0 26px 56px rgba(0, 0, 0, .6);
  }
  .shorts.is-fan .vt {
    inset: auto auto calc(100% + 12px) 50%; width: 260px; padding: 0; border-radius: 0; background: none; display: block; overflow: visible;
    text-align: center; font: 400 1.0625rem/1.3 var(--display); text-shadow: 0 2px 12px rgba(5, 12, 26, .9);
    opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s;
  }
  .shorts.is-fan.is-ready li:hover .vt, .shorts.is-fan.is-ready li:focus-within .vt { opacity: 1; transform: translate(-50%, 0); transition-delay: .22s; }
  .shorts.is-fan li.is-playing .vt { display: none; }
  .shorts.is-fan.is-in li.is-flying { transition: transform .75s cubic-bezier(.22, 1, .36, 1), box-shadow .4s; }
  .shorts.is-fan.is-in li.is-playing {
    z-index: 1000; transform: translate(var(--px, var(--x)), var(--py, var(--y))) rotate(0deg) scale(var(--s, 1.55));
    box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
  }
  .fan-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(2, 6, 16, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
  .fan-backdrop.on { opacity: 1; pointer-events: auto; }
  .fan-close { position: fixed; z-index: 1100; top: 24px; right: 28px; padding: 10px 18px; border: 1px solid var(--line); background: rgba(8, 19, 44, .8); color: var(--text); font: 500 0.9375rem/1 var(--body); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .fan-close.on { opacity: 1; pointer-events: auto; transition: opacity .4s ease .35s; }
}
@media (prefers-reduced-motion: reduce) {
  .shorts.is-fan li, .shorts.is-fan.is-ready li { transition: none; }
}

.financing__head { max-width: 46rem; }
.financing__head p { margin-top: 20px; font-size: 1.125rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 4vw, 56px);
}
/* Staggered like a staircase, because these three really are a sequence */
.step:nth-child(2) { margin-top: 40px; }
.step:nth-child(3) { margin-top: 80px; }
.step { padding: clamp(24px, 3vw, 36px); }
.step h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.3125rem; }
.step h3 span { color: var(--ice); font: 400 2.25rem/1 var(--display); }
.step ul { margin-top: 18px; }
.step li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.4; }
.fineprint { margin: 28px 0 22px; font-size: 0.9375rem; }

.reviews { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px) clamp(32px, 6vw, 96px); align-items: start; }
.reviews__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.review--lead { position: sticky; top: 112px; }
.review--lead blockquote { color: var(--text); font: 400 clamp(1.65rem, 2.8vw, 2.6rem)/1.24 var(--display); }
.review--lead figcaption { margin-top: 22px; font-size: 1.0625rem; }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.review.glass { padding: 24px; --cut: 18px; }
.review.glass blockquote { font-size: 1rem; }
.review figcaption { margin-top: 14px; color: var(--text); font-weight: 600; }
.stars { margin-bottom: 12px; color: var(--ice); letter-spacing: 0.12em; font-size: 0.9375rem; line-height: 1; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq h2 { position: sticky; top: 112px; }
.faq__list { padding: 12px clamp(20px, 3vw, 40px); }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  color: var(--ice);
  font: 400 1.5rem/1 var(--display);
}
details[open] summary::after { content: "–"; }
details.is-closing summary::after { content: "+"; }
details p { opacity: 0; transform: translateY(-4px); transition: opacity .3s ease .05s, transform .3s ease .05s; }
details[open]:not(.is-closing) p { opacity: 1; transform: none; }
details p { max-width: 42rem; padding-bottom: 22px; font-size: 1rem; }

/* Quote calculator */
.quote { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote__intro { position: sticky; top: 112px; }
.quote__intro > p { max-width: 26rem; margin-top: 22px; font-size: 1.125rem; }
.quote__ways { margin-top: 28px; }
.quote__ways li { padding: 12px 0; border-top: 1px solid var(--line); }
.quote__ways a { color: var(--text); font-weight: 500; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.quote-form { --cut: 36px; display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); }
.group { display: grid; gap: 24px; }
legend { padding: 0; margin-bottom: 20px; color: var(--text); font: 400 1.5rem/1.25 var(--display); }
.field label { display: block; color: var(--text); font-weight: 500; }
.optional { color: var(--copy); font-weight: 400; }
.help { margin-top: 2px; font-size: 0.9688rem; line-height: 1.4; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(191, 214, 254, 0.55);
  border-radius: 10px;
  color: var(--text);
  font: 400 1rem/1.4 var(--body);
  background: rgba(3, 8, 20, 0.5);
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #ffb4a8; }

.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 136px;
  margin-top: 10px;
  padding: 16px;
  border: 1.5px dashed rgba(191, 214, 254, 0.7);
  border-radius: 14px;
  text-align: center;
  background: rgba(3, 8, 20, 0.38);
  transition: background-color 160ms ease;
}
.drop[hidden] { display: none; }
.drop--slim { min-height: 84px; }
.drop:hover, .drop.is-over { background: rgba(191, 214, 254, 0.16); }
.drop:focus-within { outline: 2px solid var(--ice); outline-offset: 3px; }
.drop.is-invalid { border-color: #ffb4a8; border-style: solid; }
.drop.is-full { border-style: solid; opacity: 0.72; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop input:disabled { cursor: not-allowed; }
.drop__text strong { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.count { margin-top: 8px; color: var(--text); font-size: 0.9688rem; font-variant-numeric: tabular-nums; }
.error { margin-top: 6px; color: #ffc9c0; font-size: 0.9375rem; line-height: 1.4; }
.error:empty { display: none; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs:empty { display: none; }
.thumb { display: grid; gap: 6px; min-width: 0; }
.thumb__frame { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: rgba(3, 8, 20, 0.6); }
.thumb__frame img { width: 100%; height: 100%; object-fit: cover; }
.thumb__frame span { padding: 8px; font-size: 0.8125rem; line-height: 1.3; text-align: center; }
.thumb__name { overflow: hidden; font-size: 0.875rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.remove {
  justify-self: start;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  color: var(--text);
  font: 500 0.9375rem/1.2 var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  cursor: pointer;
}

.video-card { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
.video-card[hidden] { display: none; }
.video-card video { width: 100%; max-height: 220px; border-radius: 10px; background: var(--ink); }
.video-card__meta { display: grid; gap: 6px; min-width: 0; }
.video-card__meta p { overflow-wrap: anywhere; font-size: 0.9375rem; line-height: 1.4; }

.quote-form > .btn { justify-self: start; }
.form-status { color: var(--text); }
.form-status.is-ok { color: #9fe3b4; }
.form-status.is-error { color: #ffb4a8; }
.form-status:empty { display: none; }

.footer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr));
  gap: 28px clamp(24px, 4vw, 64px);
  max-width: 1560px;
  margin: clamp(72px, 11vw, 168px) auto 0;
  padding: 44px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9688rem;
}
.footer__logo { width: 240px; grid-column: 1; }
.footer__about { grid-column: 1; max-width: 26rem; }
.footer__links { display: grid; align-content: start; gap: 4px; }
.footer__links:nth-of-type(1) { grid-column: 2; grid-row: 1 / span 2; }
.footer__links:nth-of-type(2) { grid-column: 3; grid-row: 1 / span 2; }
.footer__links a { padding: 6px 0; color: var(--text); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { grid-column: 1 / -1; font-size: 0.875rem; }

@media (max-width: 1040px) {
  .nav__links, .nav__cta { display: none; }
  .nav { justify-content: space-between; padding-left: 16px; padding-right: 4px; }
  .nav__toggle { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); align-content: end; align-items: end; }
  .facts { max-width: 34rem; }
}

@media (max-width: 800px) {
  .about, .quote, .faq, .reviews, .flagship { grid-template-columns: minmax(0, 1fr); }
  .quote__intro { position: static; }
  .columns, .steps, .rows { grid-template-columns: minmax(0, 1fr); }
  .columns { gap: 28px; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .review--lead, .faq h2 { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__logo, .footer__about { grid-column: 1 / -1; }
  .footer__links:nth-of-type(1) { grid-column: 1; grid-row: auto; }
  .footer__links:nth-of-type(2) { grid-column: 2; grid-row: auto; }
}

@media (max-width: 560px) {
  .review-list, .video-card { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
  .quote-form > .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .drop { transition: none; }
}

.hand { font-family: "Caveat", "Segoe Script", cursive; font-style: normal; font-weight: 600; color: #ff8a3d; font-size: 1.18em; letter-spacing: 0; }

/* Social dock: squircle tiles that lift on hover */
.videos .portfolio__head { align-items: center; }
.social-dock { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-right: 8px; }
.social-dock__label { color: var(--copy); font: 400 1.125rem/1 var(--display); }
.social-dock__bar { display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.social-tile { display: grid; place-items: center; width: 56px; height: 56px; color: #fff; clip-path: url(#squircleClip); cursor: pointer; transition: transform .3s ease-out, filter .3s; }
.social-tile svg { width: 32px; height: 32px; display: block; }
.social-tile--fb { background: linear-gradient(135deg, #2f80ff, #1245b8); }
.social-tile--ig { background: linear-gradient(135deg, #8a3ab9, #e1306c 55%, #fcaf45); }
.social-tile--yt { background: linear-gradient(135deg, #dc2626, #991b1b); }
.social-tile:hover, .social-tile:focus-visible { transform: translateY(-8px) scale(1.1); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
@media (prefers-reduced-motion: reduce) { .social-tile { transition: none; } }

/* About photo: Polaroid stack */
.about__photo { margin: 0; display: grid; place-items: center; padding: 24px 0; }
.polaroid-stack { width: min(100%, 400px); isolation: isolate; transform: rotate(2deg); transition: transform .25s ease; }
.polaroid { position: relative; padding: 5% 5% 0; background: #eef3ff; border: 1px solid rgba(219, 231, 255, .9); box-shadow: 0 24px 48px rgba(0, 0, 0, .45); transition: .15s ease; }
.polaroid::before, .polaroid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #dbe7ff; border: 1px solid rgba(219, 231, 255, .9); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.polaroid::before { transform: translateY(-2%) rotate(-6deg); }
.polaroid::after { background: #c3d4f5; transform: translateY(2%) rotate(6deg); }
.polaroid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy); }
.polaroid figcaption { padding: 10px 0 14px; text-align: center; color: var(--navy); font: 600 1.75rem/1 "Caveat", "Segoe Script", cursive; }
@media (hover: hover) {
  .polaroid-stack:hover { transform: rotate(5deg); }
  .polaroid-stack:hover .polaroid::before { transform: translateY(-2%) rotate(-4deg); }
  .polaroid-stack:hover .polaroid::after { transform: translateY(2%) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .polaroid-stack, .polaroid, .polaroid::before, .polaroid::after { transition: none; } .polaroid-stack:hover { transform: rotate(2deg); } }

@media (max-width: 800px) {
  .social-dock { flex: none; width: 100%; align-items: center; margin-right: 0; }
  .social-dock__label { display: none; }
}

/* Animated outline heading ("See the work in motion"): a bright line travels around each letter */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trace { line-height: 0; }
.trace__svg { display: block; width: calc(var(--w) * 1em); height: auto; max-width: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace__svg .base { stroke: rgba(219, 231, 255, .55); stroke-width: 34; fill: rgba(219, 231, 255, .08); }
.trace__svg .dash, .trace__svg .spin { stroke: var(--ice); stroke-width: 40; filter: drop-shadow(0 0 6px rgba(219, 231, 255, .55)); }
.trace__svg .dash { animation: traceDashArray 3.2s ease-in-out infinite, traceDashOffset 3.2s linear infinite; }
.trace__svg .spin { transform-box: fill-box; transform-origin: center; animation: traceSpinDashArray 3.2s ease-in-out infinite, traceSpin 12s ease-in-out infinite, traceDashOffset 3.2s linear infinite; }
@keyframes traceDashArray { 0% { stroke-dasharray: 0 1 359 0; } 50% { stroke-dasharray: 0 359 1 0; } 100% { stroke-dasharray: 359 1 0 0; } }
@keyframes traceSpinDashArray { 0% { stroke-dasharray: 270 90; } 50% { stroke-dasharray: 0 360; } 100% { stroke-dasharray: 270 90; } }
@keyframes traceDashOffset { 0% { stroke-dashoffset: 365; } 100% { stroke-dashoffset: 5; } }
@keyframes traceSpin { 0% { rotate: 0deg; } 12.5%, 25% { rotate: 270deg; } 37.5%, 50% { rotate: 540deg; } 62.5%, 75% { rotate: 810deg; } 87.5%, 100% { rotate: 1080deg; } }
@media (prefers-reduced-motion: reduce) {
  .trace__svg .dash, .trace__svg .spin { animation: none; stroke-dasharray: none; filter: none; }
  .trace__svg .base { fill: var(--text); stroke: none; }
  .trace__svg .dash, .trace__svg .spin { stroke: none; }
}
@media (max-width: 899px) { .fan-backdrop, .fan-close { display: none; } }
@media (prefers-reduced-motion: reduce) { .shorts.is-fan.is-in li.is-flying, .fan-backdrop, .fan-close { transition: none; } }

/* Photo preview (gallery) */
body.fan-open, body.lb-open { overflow: hidden; }
.gallery li { cursor: zoom-in; }
.gallery li.is-lifted img { visibility: hidden; }
.gallery li:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.lb-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(2, 6, 16, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.lb-backdrop.on { opacity: 1; pointer-events: auto; }
.lb-fly { position: fixed; z-index: 1000; overflow: hidden; cursor: zoom-out; border-radius: 4px; box-shadow: 0 40px 90px rgba(0, 0, 0, .7); background: var(--navy); }
.lb-fly img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-close { position: fixed; z-index: 1100; top: 18px; right: 18px; padding: 10px 18px; border: 1px solid var(--line); background: rgba(8, 19, 44, .8); color: var(--text); font: 500 0.9375rem/1 var(--body); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lb-close.on { opacity: 1; pointer-events: auto; transition: opacity .4s ease .3s; }
.lb-cap { position: fixed; z-index: 1100; left: 0; right: 0; margin: 0; text-align: center; color: var(--text); font: 400 1.125rem/1.3 var(--display); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.lb-cap.on { opacity: 1; transition: opacity .4s ease .35s; }
@media (prefers-reduced-motion: reduce) { .lb-backdrop, .lb-close, .lb-cap { transition: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Service pages */
.svc-hero { max-width: 1560px; margin-inline: auto; padding: 150px var(--gutter) 0; }
.svc-hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.4vw, 4.5rem); line-height: 1.08; letter-spacing: -0.015em; }
.svc-lede { max-width: 40rem; margin: 24px 0 32px; color: var(--text); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; }
.crumbs { margin-bottom: 22px; color: var(--copy); font-size: 0.9375rem; }
.crumbs a { color: var(--copy); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.svc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.svc-steps li { padding: clamp(22px, 3vw, 34px); }
.svc-steps h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.3125rem; }
.svc-steps h3 span { color: var(--ice); font: 400 2.25rem/1 var(--display); }
.svc-steps p { margin-top: 14px; font-size: 1rem; line-height: 1.5; }
.svc-cta__box { padding: clamp(28px, 5vw, 64px); }
.svc-cta__box > p { max-width: 36rem; margin: 16px 0 26px; font-size: 1.125rem; line-height: 1.5; color: var(--text); }
.svc-related { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 1rem; }
.svc-related ul { display: contents; }
@media (max-width: 800px) { .svc-steps { grid-template-columns: minmax(0, 1fr); } .svc-hero { padding-top: 120px; } }
.gallery:has(li:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 640px; }

/* stacked projects: several photos of the same job */
.gallery { row-gap: 34px; }
.gallery li.is-stack { box-shadow: 0 -9px 0 -4px #1d2d52, 0 -18px 0 -8px #13203f; }
.gallery .count { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgba(5, 12, 26, .72); border: 1px solid var(--line); color: var(--text); font: 500 0.8125rem/1 var(--body); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gallery .count::before { content: ""; width: 11px; height: 11px; border: 1.5px solid currentColor; box-shadow: 3px -3px 0 -1px currentColor; transform: translate(-2px, 1px); }
.lb-fly--stack { background: #050c1a; cursor: zoom-out; }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(8, 19, 44, .78); color: var(--text); font: 300 2rem/1 var(--body); cursor: pointer; transition: opacity .2s ease, background .2s ease; }
.lb-nav:hover { background: rgba(37, 78, 215, .85); }
.lb-nav:disabled { opacity: 0; pointer-events: none; }
.lb-nav--prev { left: 12px; }
.lb-nav--next { right: 12px; }
@media (max-width: 700px) { .lb-nav { width: 40px; height: 40px; margin-top: -20px; } .gallery { row-gap: 30px; } }
