/* ==========================================================
   Matteo Web Studio — site styles

   1. Tokens & base
   2. Canvas heroes (home + inner pages) — a 1656 × 1032 design
      canvas that scales with the window: 1 design px = var(--u)
   3. Shared components (eyebrow, buttons, crosshair, reveal)
   4. Sections (marquee, projects, services, studio, CTA …)
   5. Page-specific (work, about, contact, project)
   6. Footer
   7. Tablet / phone
   ========================================================== */

/* ---------------- 1. Tokens & base ---------------- */

:root {
  --bg: #0e0e0e;
  --shape: #1a1a1a;
  --panel: #151515;
  --line: #2a2a2a;
  --white: #ffffff;
  --muted: #9a9a9a;
  --soft: #c9c9c9;
  --accent: #f14c30;
  --ink: #0e0e0e;
  /* 1 design px of the 1656 × 1032 canvas.
     --x: horizontal positions (follows the window width)
     --u: sizes (shrinks so the hero always fits the screen height) */
  --x: calc(100cqw / 1656);
  --u: min(100cqw / 1656, 100svh / 1032);
  --gutter: max(16px, calc(74 * var(--x)));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page { container-type: inline-size; overflow-x: clip; }

.icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- 2. Canvas heroes ---------------- */

.canvas {
  --extra: 0px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  text-transform: uppercase;
}

.canvas > *,
.topbar > *,
.menu > *,
.brand > * { position: absolute; }

/* Home: if the window is taller than the design ratio, the lower group
   (hand, welcome, button) slides down so the hero fills the screen. */
.hero {
  --extra: clamp(0px, 100svh - 1032 * var(--u), 360 * var(--u));
  height: calc(1032 * var(--u) + var(--extra));
}

/* Inner pages reuse the top of the canvas */
.page-hero { height: calc(760 * var(--u)); }

.bg-mark {
  inset: 0 0 auto 0;
  width: 100%;
  height: calc(1032 * var(--u) + var(--extra));
  fill: var(--shape);
  pointer-events: none;
}

.topbar { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 3; }
.menu { display: contents; }

/* Logo */
.brand { left: 0; top: 0; }
.brand-logo {
  left: calc(65 * var(--x));
  top: calc(44 * var(--u));
  width: auto;
  height: calc(62 * var(--u));
}
.brand-name {
  left: calc(205 * var(--x));
  top: calc(41 * var(--u));
  font-size: calc(32 * var(--u));
  line-height: calc(33 * var(--u));
  letter-spacing: calc(0.57 * var(--u));
  white-space: nowrap;
}

/* Navigation (right edge lines up with the original ABOUT US) */
.nav {
  right: calc(535 * var(--x));
  top: calc(47.8 * var(--u));
  display: flex;
  gap: calc(73 * var(--u));
}
.nav a {
  position: relative;
  font-size: calc(23 * var(--u));
  line-height: calc(23 * var(--u));
  letter-spacing: calc(0.3 * var(--u));
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: calc(-6 * var(--u));
  height: calc(2 * var(--u));
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Search */
.search {
  right: calc(76 * var(--x));
  top: calc(37.5 * var(--u));
  width: calc(385 * var(--u));
  height: calc(44 * var(--u));
  margin: 0;
  background: var(--white);
  border-radius: calc(5 * var(--u));
}
/* the "_" placeholder mark from the design; hides while typing */
.search::before {
  content: "";
  position: absolute;
  left: calc(11.3 * var(--u));
  top: calc(30.5 * var(--u));
  width: calc(20 * var(--u));
  height: calc(2 * var(--u));
  background: #2b2b2b;
  pointer-events: none;
  transition: opacity .15s ease;
}
.search:focus-within::before,
.search:has(input:not(:placeholder-shown))::before { opacity: 0; }
.search input {
  position: absolute;
  left: 0; top: 0;
  width: calc(341 * var(--u));
  height: 100%;
  padding: 0 calc(12 * var(--u));
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: calc(18 * var(--u));
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: transparent; }
.search input::-webkit-search-cancel-button { display: none; }
.search-divider {
  position: absolute;
  left: calc(341 * var(--u));
  top: 0; bottom: 0;
  width: calc(1.3 * var(--u));
  background: #4a4a4a;
}
.search-btn {
  position: absolute;
  left: calc(342.3 * var(--u));
  top: 0; right: 0; bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search-btn svg {
  display: block;
  width: calc(23.5 * var(--u));
  height: calc(23.5 * var(--u));
  margin: calc(1 * var(--u)) 0 0 calc(0.5 * var(--u));
  fill: none;
  stroke: #1b1b1b;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: stroke .2s ease;
}
.search-btn:hover svg { stroke: var(--accent); }

/* Pink accent square */
.accent-square {
  left: calc(74 * var(--x));
  top: calc(246 * var(--u));
  width: calc(26.5 * var(--u));
  height: calc(25 * var(--u));
  background: var(--accent);
}

/* Headline */
.title {
  left: calc(136.7 * var(--x));
  top: calc(225.3 * var(--u));
  margin: 0;
  font-weight: 400;
  font-size: calc(198 * var(--u));
  line-height: calc(183 * var(--u));
  letter-spacing: calc(-17 * var(--u));
  white-space: nowrap;
  z-index: 1;
}
.title span { display: block; }

/* Intro paragraph — each line is justified to the same width */
.intro {
  /* never smaller than 11px on mid-size screens */
  --pu: max(var(--u), 0.7692px);
  right: calc(298 * var(--x));
  top: calc(256 * var(--u));
  width: calc(300 * var(--pu));
  margin: 0;
  font-size: calc(14.3 * var(--pu));
  line-height: calc(22.2 * var(--pu));
  letter-spacing: calc(1.9 * var(--pu));
}
.intro span {
  display: block;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
}
.intro span:last-child { text-align-last: left; }
/* free-flowing version (project pages) */
.intro--flow { text-align: justify; text-align-last: left; }

/* Crosshair + rule */
.crosshair {
  left: calc(1193.5 * var(--x) - 23 * var(--u));
  top: calc((565 - 22.5) * var(--u));
  width: calc(46 * var(--u));
  height: calc(45 * var(--u));
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.crosshair::before {
  left: 0; right: 0;
  top: calc(50% - 1 * var(--u));
  height: calc(2 * var(--u));
}
.crosshair::after {
  top: 0; bottom: 0;
  left: calc(50% - 1 * var(--u));
  width: calc(2 * var(--u));
}
.rule {
  left: calc(1315 * var(--x));
  right: 0;
  top: calc(563 * var(--u));
  height: calc(2.4 * var(--u));
  background: var(--white);
}

/* Hand photo */
.hand {
  left: calc(221 * var(--x));
  top: calc(675 * var(--u) + var(--extra));
  width: calc(940 * var(--u));
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Welcome */
.welcome {
  left: calc(74.25 * var(--x));
  top: calc(871.5 * var(--u) + var(--extra));
  margin: 0;
  font-size: calc(37.5 * var(--u));
  line-height: calc(44 * var(--u));
  letter-spacing: calc(0.6 * var(--u));
  white-space: nowrap;
}

/* Inner-page hero caption (bottom left) */
.hero-meta {
  left: calc(74.25 * var(--x));
  top: calc(646 * var(--u));
  margin: 0;
  font-size: calc(30 * var(--u));
  line-height: calc(36 * var(--u));
  letter-spacing: calc(0.5 * var(--u));
  white-space: nowrap;
}
.hero-meta .dot {
  display: inline-block;
  width: .32em; height: .32em;
  margin: 0 .35em .12em 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

/* Hero button */
.btn {
  right: calc(142 * var(--x));
  top: calc(841 * var(--u) + var(--extra));
  width: calc(315 * var(--u));
  height: calc(60 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(2.5 * var(--u)) 0 0 calc(0.85 * var(--u)); /* optical centring + trailing letter-spacing */
  background: var(--white);
  color: var(--ink);
  border-radius: calc(10 * var(--u));
  font-size: calc(19.5 * var(--u));
  letter-spacing: calc(0.85 * var(--u));
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--accent); color: var(--white); }
.page-hero .btn { top: calc(652 * var(--u)); }

.menu-toggle { display: none; }

/* ---------------- 3. Shared components ---------------- */

.wrap { padding-inline: var(--gutter); }

.section {
  position: relative;
  padding-block: clamp(64px, calc(120 * var(--u)), 160px);
}
.section--tight { padding-block: clamp(40px, calc(70 * var(--u)), 100px); }
.section--line { border-top: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(16px, calc(26 * var(--u)), 36px);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 12px; height: 12px;
  flex: none;
  background: var(--accent);
}
.eyebrow b { font-weight: 400; color: var(--white); }

.display {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, calc(110 * var(--u)), 180px);
  line-height: .92;
  letter-spacing: -.084em;
}
.display--md {
  font-size: clamp(36px, calc(80 * var(--u)), 130px);
  letter-spacing: -.075em;
  line-height: .94;
}

/* Small, tracked, justified uppercase copy — the hero paragraph style */
.blurb {
  margin: 0;
  width: 21em;
  max-width: 100%;
  font-size: clamp(11.5px, calc(13.5 * var(--u)), 19px);
  line-height: 1.55;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: left;
}

.prose {
  margin: 0;
  max-width: 38em;
  font-size: clamp(15px, calc(16.5 * var(--u)), 20px);
  line-height: 1.75;
  color: var(--soft);
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px 64px;
  margin-bottom: clamp(40px, calc(80 * var(--u)), 120px);
}
.section-aside {
  display: grid;
  gap: 32px;
  justify-items: start;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: clamp(48px, calc(54 * var(--u)), 64px);
  padding: 2px clamp(24px, calc(34 * var(--u)), 44px) 0;
  border: 1px solid var(--white);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: clamp(13px, calc(16 * var(--u)), 19px);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.button .icon { font-size: 1.05em; transition: transform .3s var(--ease); }
.button:hover,
.button:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--white); }
.button:hover .icon { transform: translate(2px, -2px); }
.button--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.button--ghost:hover,
.button--ghost:focus-visible { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Pink crosshair, sized by its own box */
.cross {
  position: relative;
  display: inline-block;
  width: 32px; height: 32px;
  flex: none;
}
.cross::before,
.cross::after { content: ""; position: absolute; background: var(--accent); }
.cross::before { left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
.cross::after  { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- 4. Sections ---------------- */

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(14px, calc(22 * var(--u)), 32px);
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: .42em;
  padding-right: .42em;
  font-size: clamp(36px, calc(80 * var(--u)), 130px);
  line-height: 1;
  letter-spacing: -.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .75);
}
.marquee-group i {
  width: .2em; height: .2em;
  flex: none;
  background: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Project grid: two staggered columns */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, calc(48 * var(--u)), 72px);
  align-items: start;
}
.projects-col { display: grid; row-gap: clamp(48px, calc(90 * var(--u)), 130px); }
.projects-col--offset { padding-top: clamp(0px, calc(150 * var(--u)), 220px); }

.card { display: block; }
.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  max-height: 78svh;
  background: var(--panel);
}
.card--portrait .card-media { aspect-ratio: 1 / 1; }
.cover-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .cover-art { transform: scale(1.045); }
.cover-art .spin { transition: transform 1.1s var(--ease); }
.card:hover .cover-art .spin { transform: translate(-160px, 160px); }
.card-view {
  position: absolute;
  left: 20px; bottom: 20px;
  padding: 11px 18px 9px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s var(--ease);
}
.card:hover .card-view,
.card:focus-visible .card-view { opacity: 1; transform: none; }
.card-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
  padding-top: 22px;
}
.card-num {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: .55em;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
}
.card-title {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, calc(30 * var(--u)), 44px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.card-meta {
  grid-column: 2;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.card-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  transition: background-color .3s ease, border-color .3s ease, transform .4s var(--ease);
}
.card:hover .card-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }

/* Services list */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service a {
  position: relative;
  display: grid;
  grid-template-columns: clamp(40px, calc(110 * var(--u)), 160px) minmax(0, 1fr) minmax(0, 340px) 48px;
  align-items: center;
  gap: 20px clamp(24px, calc(48 * var(--u)), 72px);
  padding-block: clamp(20px, calc(30 * var(--u)), 44px);
  border-top: 1px solid var(--line);
}
.service a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service-num { color: var(--accent); font-size: 13px; letter-spacing: .16em; }
.service-title {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, calc(52 * var(--u)), 84px);
  line-height: 1;
  letter-spacing: -.06em;
  transition: transform .5s var(--ease);
}
.service-desc { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.service-arrow {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  transition: background-color .3s ease, border-color .3s ease;
}
.service a:hover::before { transform: scaleX(1); }
.service a:hover .service-title { transform: translateX(18px); }
.service a:hover .service-arrow { background: var(--accent); border-color: var(--accent); }

/* Studio split + statement */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px clamp(40px, calc(140 * var(--u)), 200px);
  align-items: end;
}
.statement {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, calc(52 * var(--u)), 84px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.statement em { font-style: normal; color: var(--accent); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, calc(100 * var(--u)), 150px);
  border-top: 1px solid var(--line);
}
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: clamp(16px, calc(32 * var(--u)), 48px); border-left: 1px solid var(--line); }
.stat-num {
  display: block;
  font-size: clamp(44px, calc(92 * var(--u)), 150px);
  line-height: 1;
  letter-spacing: -.075em;
  white-space: nowrap;
}
.stat-num sup {
  position: relative;
  top: .1em;
  margin-left: .06em;
  font-size: .38em;
  letter-spacing: 0;
  vertical-align: top;
  color: var(--accent);
}
.stat-label {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Big call to action */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: .1em;
  font-size: clamp(52px, calc(170 * var(--u)), 280px);
  line-height: .9;
  letter-spacing: -.084em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.cta-link .icon { width: .62em; height: .62em; stroke-width: 1.1; transition: transform .5s var(--ease); }
.cta-link:hover { color: var(--accent); }
.cta-link:hover .icon { transform: translate(.06em, -.06em); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
  margin-top: clamp(32px, calc(60 * var(--u)), 90px);
}
.cta-mail {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(16px, calc(23 * var(--u)), 32px);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  transition: border-color .3s ease;
}
.cta-mail:hover { border-color: var(--accent); }

/* ---------------- 5. Page-specific ---------------- */

/* Work: filters */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  margin-bottom: clamp(36px, calc(64 * var(--u)), 96px);
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  -webkit-appearance: none;
  appearance: none;
  padding: 12px 20px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip sup { margin-left: 4px; font-size: .75em; color: var(--accent); }
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.count-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.results-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 32px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.results-note a { color: var(--accent); border-bottom: 1px solid currentColor; }
.empty {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.empty p { margin: 0 0 28px; font-size: clamp(22px, calc(36 * var(--u)), 52px); letter-spacing: -.04em; text-transform: uppercase; }

/* About: two prose columns */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(40px, calc(120 * var(--u)), 180px);
}
.statement + .two-col { margin-top: clamp(40px, calc(80 * var(--u)), 120px); }
.col-title {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}

/* About: values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.value { padding: 36px clamp(20px, calc(40 * var(--u)), 56px) 12px 0; }
.value + .value { padding-left: clamp(20px, calc(40 * var(--u)), 56px); border-left: 1px solid var(--line); }
.value-top { display: flex; justify-content: space-between; align-items: center; }
.value-num { color: var(--accent); font-size: 13px; letter-spacing: .16em; }
.value h3 {
  margin: clamp(36px, calc(64 * var(--u)), 96px) 0 16px;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, calc(36 * var(--u)), 54px);
  line-height: 1;
  letter-spacing: -.05em;
}
.value p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* About: process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(20px, calc(40 * var(--u)), 60px);
}
.step { position: relative; padding-top: 72px; }
.step::before {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * clamp(20px, calc(40 * var(--u)), 60px));
  top: 16px;
  height: 1px;
  background: var(--line);
}
.step:last-child::before { right: 0; }
.step .cross { position: absolute; left: 0; top: 0; }
.step-num { display: block; margin-bottom: 14px; color: var(--muted); font-size: 13px; letter-spacing: .16em; }
.step h3 {
  margin: 0 0 14px;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, calc(34 * var(--u)), 50px);
  line-height: 1;
  letter-spacing: -.05em;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* About: team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, calc(32 * var(--u)), 48px); }
.member-photo { overflow: hidden; aspect-ratio: 3 / 4; background: var(--panel); }
.member-photo svg { display: block; width: 100%; height: 100%; transition: transform 1s var(--ease); }
.member:hover .member-photo svg { transform: scale(1.04); }
.member h3 {
  margin: 20px 0 6px;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(17px, calc(22 * var(--u)), 30px);
  letter-spacing: -.03em;
}
.member p { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* About: clients */
.clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.client {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(96px, calc(150 * var(--u)), 210px);
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #7d7d7d;
  font-size: clamp(15px, calc(22 * var(--u)), 32px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
  transition: color .3s ease, background-color .3s ease;
}
.client:hover { color: var(--white); background: var(--panel); }
.client--wide { font-size: clamp(11px, calc(15 * var(--u)), 22px); letter-spacing: .4em; }
.client--heavy { font-weight: 500; letter-spacing: -.06em; }
.client--mark::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .3em; background: currentColor; border-radius: 50%; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 64px clamp(48px, calc(140 * var(--u)), 200px);
  align-items: start;
}
.contact-list { display: grid; gap: 34px; margin: 0; }
.contact-list dt { margin-bottom: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: clamp(17px, calc(22 * var(--u)), 30px); line-height: 1.35; letter-spacing: -.01em; }
.contact-list dd a { border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.contact-list dd a:hover { color: var(--accent); border-color: currentColor; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px !important; letter-spacing: .14em !important; text-transform: uppercase; }
.availability {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 0;
  padding: 12px 18px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
.field { display: grid; gap: 10px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend { padding: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  padding: 8px 0 14px;
  border: 0;
  border-bottom: 1px solid #3a3a3a;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: clamp(17px, calc(20 * var(--u)), 26px);
  letter-spacing: -.01em;
  transition: border-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus { border-color: var(--white); }
.field input::placeholder,
.field textarea::placeholder { color: #555; }
.field .error { display: none; font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.was-validated .field :invalid { border-color: var(--accent); }
.was-validated .field:has(:invalid) .error { display: block; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 12px 18px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.choice:hover span { border-color: var(--white); }
.choice input:checked + span { background: var(--white); border-color: var(--white); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.form-note { margin: 0; max-width: 30em; font-size: 12px; line-height: 1.6; letter-spacing: .08em; color: var(--muted); }
.form-success { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); outline: 0; }
.form-success h2 { margin: 24px 0 18px; font-weight: 400; text-transform: uppercase; font-size: clamp(36px, calc(70 * var(--u)), 110px); line-height: .95; letter-spacing: -.07em; }
.form-success p { margin: 0 0 32px; color: var(--soft); line-height: 1.7; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: clamp(18px, calc(26 * var(--u)), 38px);
  list-style: none;
  cursor: pointer;
  font-size: clamp(18px, calc(28 * var(--u)), 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .cross { transition: transform .4s var(--ease); }
.faq details[open] summary .cross { transform: rotate(45deg); }
.faq details p { margin: 0 0 clamp(24px, calc(40 * var(--u)), 56px); max-width: 46em; color: var(--muted); font-size: 16px; line-height: 1.75; }

/* Project detail */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 clamp(40px, calc(80 * var(--u)), 120px);
  border-top: 1px solid var(--line);
}
.meta-grid > div { padding: 24px 20px 0 0; }
.meta-grid > div + div { padding-left: clamp(16px, calc(32 * var(--u)), 48px); border-left: 1px solid var(--line); }
.meta-grid dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.meta-grid dd { margin: 10px 0 0; font-size: clamp(15px, calc(18 * var(--u)), 24px); line-height: 1.35; text-transform: uppercase; letter-spacing: .02em; }
.feature-media { overflow: hidden; aspect-ratio: 16 / 9; max-height: 80svh; background: var(--panel); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, calc(32 * var(--u)), 48px); }
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 1 / 1; max-height: 80svh; background: var(--panel); }
.gallery figure.wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.next-project { display: block; padding-block: clamp(64px, calc(120 * var(--u)), 170px); border-top: 1px solid var(--line); }
.next-project .display { display: inline-flex; align-items: center; gap: .12em; transition: color .3s ease; }
.next-project .display .icon { width: .55em; height: .55em; stroke-width: 1.1; transition: transform .5s var(--ease); }
.next-project:hover .display { color: var(--accent); }
.next-project:hover .icon { transform: translate(.05em, -.05em); }

/* ---------------- 6. Footer ---------------- */

.footer {
  padding: clamp(56px, calc(96 * var(--u)), 130px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 48px;
}
.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand-inline img { width: auto; height: 40px; }
.footer-brand .blurb { margin-top: 32px; }
.footer h3 {
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer li { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.footer li a { transition: color .2s ease; }
.footer li a:hover { color: var(--accent); }
.footer-word {
  margin: clamp(40px, calc(90 * var(--u)), 130px) 0 0 -.04em;
  color: var(--shape);
  font-size: calc((100cqw - 2 * var(--gutter)) / 8.62);
  line-height: .76;
  letter-spacing: -.084em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--white); }

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track,
  .hero-meta .dot,
  .availability .dot { animation: none; }
}

/* ---------------- 7. Tablet / phone ---------------- */

@container (max-width: 900px) {
  .canvas {
    height: auto;
    padding: 20px 16px 40px;
    display: flex;
    flex-direction: column;
  }
  .hero { min-height: 100svh; padding-bottom: 32px; }
  .canvas > *,
  .topbar > *,
  .menu > *,
  .brand > * { position: static; }
  /* keep content painted above the background mark */
  .canvas > :not(.bg-mark) { position: relative; inset: auto; }

  .bg-mark {
    position: absolute;
    inset: 0 0 auto auto;
    width: 250%;
    height: auto;
    aspect-ratio: 1656 / 1032;
  }

  /* header */
  .topbar {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand-logo { width: auto; height: 34px; }
  .brand-name { font-size: 20px; line-height: 21px; letter-spacing: .02em; }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--white);
    transition: transform .25s ease, opacity .2s ease;
  }
  .topbar.is-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .topbar.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .topbar.is-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .menu {
    display: none;
    flex-basis: 100%;
    padding: 20px 0 8px;
  }
  .topbar.is-open .menu { display: block; }

  .nav { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .nav a {
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: .02em;
    align-self: flex-start;
  }
  .nav a::after { bottom: -4px; height: 2px; }

  .search {
    position: relative;
    inset: auto;
    width: 100%;
    height: 44px;
    border-radius: 4px;
  }
  .search::before { left: 11px; top: 30px; width: 20px; height: 2px; }
  .search input { width: calc(100% - 44px); font-size: 16px; padding: 0 12px; }
  .search-divider { left: auto; right: 43px; width: 1px; position: absolute; }
  .search-btn { left: auto; width: 43px; position: absolute; }
  .search-btn svg { width: 22px; height: 22px; margin: -2px 0 0 -1px; }

  /* headline */
  .accent-square { width: 18px; height: 18px; margin-top: 48px; }
  .title {
    margin-top: 10px;
    font-size: calc((100cqw - 32px) / 4.62);
    line-height: .93;
    letter-spacing: -0.084em;
    margin-left: -0.03em;
  }

  .intro {
    width: 21em;
    max-width: 100%;
    margin-top: 28px;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: .13em;
  }

  .crosshair { width: 34px; height: 34px; margin-top: 32px; }
  .crosshair::before { top: calc(50% - 1px); height: 2px; }
  .crosshair::after  { left: calc(50% - 1px); width: 2px; }
  .rule {
    width: 50%;
    height: 2px;
    margin: -18px -16px 0 0;
    align-self: flex-end;
  }

  .hand { width: calc(100% + 32px); max-width: none; margin: 32px -16px 0; }

  .welcome,
  .hero-meta { margin-top: 24px; font-size: 28px; line-height: 1.17; letter-spacing: .02em; }
  .hero-meta { margin-top: 40px; font-size: 22px; }

  .btn {
    margin-top: 24px;
    width: 100%;
    max-width: 315px;
    height: 56px;
    border-radius: 10px;
    font-size: 17px;
    letter-spacing: .04em;
    padding-left: 0;
  }

  /* sections */
  .projects { display: flex; flex-direction: column; align-items: stretch; gap: 56px; }
  .projects-col { display: contents; }
  .projects-col--offset { padding-top: 0; }

  .service a { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 12px 16px; }
  .service-desc { grid-column: 2 / -1; grid-row: 2; }
  .service-arrow { width: 44px; height: 44px; font-size: 16px; }

  .split,
  .two-col,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .stats,
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--3 { grid-template-columns: minmax(0, 1fr); }
  .stat:nth-child(odd),
  .meta-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3),
  .meta-grid > div:nth-child(n + 3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .stats--3 .stat { padding-left: 0; border-left: 0; }
  .stats--3 .stat + .stat { margin-top: 32px; border-top: 1px solid var(--line); }

  .values { grid-template-columns: minmax(0, 1fr); }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .value h3 { margin-top: 32px; }

  .process,
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::before { right: 0; }

  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .form { grid-template-columns: minmax(0, 1fr); }

  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure.wide { aspect-ratio: 4 / 3; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@container (max-width: 560px) {
  .process,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card-arrow { width: 40px; height: 40px; }
}


/* ==========================================================
   Matteo Web Studio additions
   ========================================================== */

.brand-logo,
.brand-inline img { max-width: none; }
.stat-num { text-transform: uppercase; }
.intro--flow span { display: inline; white-space: normal; text-align-last: auto; }

.skip {
  position: absolute;
  left: -999px; top: 8px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.skip:focus { left: 16px; }

/* Free-quote box: sits where the template's search bar was */
.quote-box { display: block; color: var(--ink); transition: background-color .25s ease, color .25s ease; }
.quote-box::before { content: none; }
.quote-label {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(341 * var(--u));
  display: flex;
  align-items: center;
  padding: calc(2 * var(--u)) 0 0 calc(16 * var(--u));
  font-size: calc(16 * var(--u));
  letter-spacing: calc(1.4 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.quote-arrow {
  position: absolute;
  left: calc(342.3 * var(--u));
  top: 0; right: 0; bottom: 0;
  display: grid;
  place-items: center;
  font-size: calc(20 * var(--u));
}
.quote-arrow .icon { transition: transform .3s var(--ease); }
.quote-box:hover,
.quote-box:focus-visible { background: var(--accent); color: var(--white); }
.quote-box:hover .search-divider { background: rgba(255, 255, 255, .5); }
.quote-box:hover .quote-arrow .icon { transform: translate(2px, -2px); }

/* One-line project names */
.title--one [data-p="line2"] { display: none; }

/* Long project names */
.title--sm {
  top: calc(222.1 * var(--u));
  font-size: calc(160 * var(--u));
  line-height: calc(162 * var(--u));
  letter-spacing: calc(-13.7 * var(--u));
}

/* Screenshot composition: browser window + phone */
.shot { position: absolute; inset: 0; overflow: hidden; background: #171717; }
.shot::before {
  content: "";
  position: absolute;
  left: 4.5%; top: 6%;
  width: 14px; height: 14px;
  background: var(--accent);
}
.shot-browser {
  position: absolute;
  left: 9%; top: 13%;
  width: 74%;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  transition: transform 1s var(--ease);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  background: #242424;
}
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: #4a4a4a; }
.shot-bar span { margin-left: 8px; font-size: 10px; letter-spacing: .06em; color: #9a9a9a; }
.shot-browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-phone {
  position: absolute;
  right: 8%; bottom: 9%;
  width: 19%;
  overflow: hidden;
  border: 4px solid #0e0e0e;
  border-radius: 16px;
  background: #0e0e0e;
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .8);
  transition: transform 1s var(--ease);
}
.shot-phone img { width: 100%; height: auto; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; border-radius: 12px; }
.card--portrait .shot-browser { left: 8%; top: 18%; width: 84%; }
.card--portrait .shot-phone { width: 30%; right: 8%; bottom: 8%; }
.card:hover .shot-browser { transform: translateY(-6px); }
.card:hover .shot-phone { transform: translateY(-14px); }

/* App: three phone screens side by side, the middle one larger and raised */
.shot--app { display: flex; align-items: center; justify-content: center; gap: 3.5%; }
.shot--app .shot-phone { position: relative; right: auto; bottom: auto; flex: none; width: 21%; }
.shot--app .shot-phone:nth-child(2) { z-index: 1; width: 25%; transform: translateY(-5%); }
.shot--app .shot-phone img { aspect-ratio: 600 / 1304; }
.card--portrait .shot--app .shot-phone { width: 26%; }
.card--portrait .shot--app .shot-phone:nth-child(2) { width: 31%; }
.card:hover .shot--app .shot-phone { transform: translateY(-8px); }
.card:hover .shot--app .shot-phone:nth-child(2) { transform: translateY(calc(-5% - 14px)); }

/* Website + iOS app on one card: the browser window, with two app screens in front */
.shot--combo .shot-browser { left: 6%; top: 14%; width: 68%; }
.shot--combo .shot-phone img { aspect-ratio: 600 / 1304; }
.shot--combo .shot-phone--back { right: 21%; bottom: 13%; width: 16%; }
.shot--combo .shot-phone--front { right: 6%; bottom: 7%; width: 18%; z-index: 1; }
.card--portrait .shot--combo .shot-browser { left: 6%; top: 18%; width: 78%; }
.card--portrait .shot--combo .shot-phone--back { right: 26%; bottom: 10%; width: 24%; }
.card--portrait .shot--combo .shot-phone--front { right: 6%; bottom: 6%; width: 27%; }
.card:hover .shot--combo .shot-phone--back { transform: translateY(-8px); }
@container (max-width: 560px) {
  /* Small screens: a square card, so the badges clear the browser window */
  .card-media:has(.shot--combo) { aspect-ratio: 1 / 1; }
  .card .shot--combo .shot-browser { left: 6%; top: 20%; width: 80%; }
  .card .shot--combo .shot-phone--back { right: 26%; bottom: 10%; width: 24%; }
  .card .shot--combo .shot-phone--front { right: 6%; bottom: 6%; width: 27%; }
}
@container (max-width: 560px) {
  /* Small screens: a square card, with room at the top for the status badge */
  .card-media:has(.shot--app) { aspect-ratio: 1 / 1; }
  .card-media .shot--app { padding-top: 40px; }
  .card-media .shot--app .shot-phone { width: 26%; }
  .card-media .shot--app .shot-phone:nth-child(2) { width: 31%; }
}

.card-badges {
  position: absolute;
  left: 16px; top: 16px; right: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
  border-radius: 999px;
  background: rgba(14, 14, 14, .82);
  color: var(--white);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.card-status.is-live::before { background: #3ecf7a; }
.card-media .shot::before { display: none; }

/* Project page */
.feature-media { position: relative; }
.feature-media .shot-browser { left: 7%; top: 9%; width: 70%; }
.feature-media .shot-phone { right: 7%; bottom: 8%; width: 17%; }
.feature-media .shot-bar { height: 30px; }
.feature-media .shot-bar span { font-size: 12px; }
.feature-media .shot--app .shot-phone { right: auto; bottom: auto; width: 17%; }
.feature-media .shot--app .shot-phone:nth-child(2) { width: 20%; }
.app-text { margin-top: clamp(40px, calc(80 * var(--u)), 120px); }
.meta-grid dd a { border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.meta-grid dd a:hover { color: var(--accent); border-color: currentColor; }
.project-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(40px, calc(70 * var(--u)), 100px); }

/* Static rows (How it works) */
.service-row {
  display: grid;
  grid-template-columns: clamp(40px, calc(110 * var(--u)), 160px) minmax(0, 1fr) minmax(0, 340px);
  align-items: center;
  gap: 16px clamp(24px, calc(48 * var(--u)), 72px);
  padding-block: clamp(20px, calc(30 * var(--u)), 44px);
  border-top: 1px solid var(--line);
}

.values--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.process-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: clamp(40px, calc(70 * var(--u)), 100px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, calc(20 * var(--u)), 26px);
  letter-spacing: -.01em;
  color: var(--soft);
}
.process-note b { font-weight: 400; color: var(--white); text-transform: uppercase; }

/* Contact form extras */
.form-status { grid-column: 1 / -1; margin: 0; min-height: 22px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.form-status.err { color: var(--accent); }
.form-status a { color: var(--white); border-bottom: 1px solid currentColor; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alt { margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; letter-spacing: .04em; }
.form-alt a { color: var(--white); border-bottom: 1px solid var(--line); }
.button[disabled] { opacity: .6; cursor: default; }

@container (max-width: 900px) {
  .title--sm { font-size: calc((100cqw - 32px) / 5.4); line-height: .95; }
  .quote-label { width: calc(100% - 44px); padding: 2px 0 0 14px; font-size: 14px; letter-spacing: .1em; }
  .quote-arrow { left: auto; width: 43px; font-size: 18px; }
  .values--4 { grid-template-columns: minmax(0, 1fr); }
  .service-row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 16px; }
  .service-row .service-desc { grid-column: 2; grid-row: 2; }
  .shot-bar { height: 16px; padding: 0 7px; gap: 4px; }
  .shot-bar i { width: 5px; height: 5px; }
  .shot-bar span { display: none; }
  .shot-phone { border-width: 3px; border-radius: 10px; }
  .shot-phone img { border-radius: 7px; }
  .feature-media { aspect-ratio: 4 / 3; }
  .feature-media .shot--app .shot-phone { width: 22%; }
  .feature-media .shot--app .shot-phone:nth-child(2) { width: 26%; }
  .process-note { align-items: flex-start; }
}
