/* curuchaga.com */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FAFAF9;
  --stone: #F1EFEC;
  --stone-2: #E9E6E2;
  --card: #FFFFFF;
  --ink: #141413;
  --ink-2: #57534E;
  --ink-3: #69625C;
  --line: #E7E5E4;
  --line-2: #D6D3D1;
  --accent: #0E5A47;
  --accent-hover: #0A4738;
  --accent-tint: #E5EEEA;
  --accent-line: #B9D2C9;
  --on-accent: #FFFFFF;
  --danger: #A8321E;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --step-3: clamp(2rem, 1.55rem + 2.2vw, 3.5rem);
  --step-4: clamp(2.25rem, 1.3rem + 4.6vw, 5.75rem);

  --gutter: clamp(1.25rem, 0.8rem + 2.2vw, 2.5rem);
  --section: clamp(5rem, 3.4rem + 7vw, 9.5rem);
  --radius: 20px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-phone: 0 40px 80px -32px rgba(20, 20, 19, 0.38), 0 18px 36px -18px rgba(20, 20, 19, 0.22);
  --shadow-panel: 0 24px 48px -28px rgba(20, 20, 19, 0.22), 0 2px 6px rgba(20, 20, 19, 0.04);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--line-2) var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
}

::selection { background: var(--accent-tint); color: var(--accent-hover); }
input, textarea { caret-color: var(--accent); }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type */
.display {
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 750;
}
.h2 {
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 720;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--h);
  padding: 0 1.15em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn--sm { --h: 40px; padding: 0 1em; font-size: var(--step--1); }
.btn--lg { --h: 56px; padding: 0 1.5em; }
.btn--block { width: 100%; }

.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -14px rgba(14, 90, 71, 0.7); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2926; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost .ico { transition: transform 220ms var(--ease-out); }
.btn--ghost:hover .ico { transform: translateX(3px); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-tint); }
.btn--text {
  background: none;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
}
.btn--text:hover { color: var(--ink); text-decoration-color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  min-height: 44px;
}
.link-arrow .ico { width: 1em; height: 1em; transition: transform 220ms var(--ease-out); }
.link-arrow:hover .ico { transform: translate(2px, -2px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 249, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: var(--ink); }
.brand__mark path { stroke: #fff; }
.nav__links { display: none; gap: 0.25rem; }
.nav__links a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms, background-color 160ms;
}
.nav__links a:hover { color: var(--ink); background: var(--stone); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 6.5rem) clamp(3.5rem, 2rem + 6vw, 7rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 4rem); }
.hero__copy { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 1.75rem); align-content: center; }
.hero__copy .display { max-width: 11.5em; }
.display__line { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--step--1);
}
.hero__facts strong { color: var(--ink); font-weight: 650; }

.hero__device {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.hero__caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-2);
  font-size: var(--step--1);
}
.hero__caption-name { min-width: 15ch; text-align: right; }
.dots { display: inline-flex; gap: 2px; }
.dot {
  position: relative;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}
.dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  transform: translate(-50%, -50%);
  transition: width 320ms var(--ease-out), background-color 320ms var(--ease-out);
}
.dot.is-on::after { width: 22px; background: var(--ink); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: clamp(3rem, 5vw, 5rem); }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__device { justify-items: end; }
}

/* Phone */
.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(#1D1D1B, #0E0E0D);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 50%;
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #0A0A09;
  transform: translateX(-50%);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: var(--stone);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone--hero { width: min(68vw, 300px); }
@media (min-width: 960px) { .phone--hero { width: 320px; } }
.phone--hero .phone__screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out);
}
.phone--hero .phone__screen img.is-on { opacity: 1; transform: none; }

/* Sections */
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 1.6rem + 3vw, 4.5rem);
  max-width: 44rem;
}
.section__intro { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.section__intro a { color: var(--accent); font-weight: 600; }

/* Works */
.works {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 300px);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.5rem var(--gutter) 2rem;
  scrollbar-width: none;
}
.works::-webkit-scrollbar { display: none; }
.work { position: relative; scroll-snap-align: start; display: grid; gap: 1.5rem; align-content: start; }
.work .phone { width: 100%; }
.work__text { display: grid; gap: 0.35rem; }
.work__name { font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.15; }
.work__kind { color: var(--ink-3); font-size: var(--step--1); font-weight: 500; }
.work__text p:not(.work__kind) { color: var(--ink-2); margin-top: 0.4rem; max-width: 32ch; }
.work__text .link-arrow { margin-top: 0.25rem; }

@media (min-width: 960px) {
  .works {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 4.5rem);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .work:nth-child(2) { translate: 0 3.5rem; }
  .work .phone { width: min(100%, 300px); }
}

/* Split */
.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.split__aside { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split__aside { position: sticky; top: 108px; align-self: start; }
}

.price-tag {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 22rem;
}
.price-tag__label { font-weight: 600; color: var(--ink-2); }
.price-tag__value {
  font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-tag__cur { font-size: max(0.42em, 0.875rem); letter-spacing: -0.01em; vertical-align: 0.9em; margin-right: 0.08em; color: var(--ink-2); font-weight: 600; }
.price-tag__note { color: var(--ink-2); font-size: var(--step--1); margin-top: 0.5rem; }

.includes { margin: 0; border-top: 1px solid var(--line); }
.includes__row {
  display: grid;
  gap: 0.35rem;
  padding-block: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
.includes dt { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.015em; }
.includes dd { margin: 0; color: var(--ink-2); max-width: 46ch; }
@media (min-width: 720px) {
  .includes__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: baseline; }
}

/* Steps */
.steps {
  display: grid;
  gap: 0;
  position: relative;
  counter-reset: none;
}
.step {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0 0 2.25rem 2.25rem;
}
.step::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55em;
  bottom: -0.55em;
  width: 1px;
  background: var(--line-2);
}
.step:last-child::before { display: none; }
.step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--stone);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.step:last-child::after { background: var(--accent); }
.step__time { font-size: var(--step--1); font-weight: 600; color: var(--accent); }
.step__title { font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.15; }
.step p { color: var(--ink-2); max-width: 34ch; }
.steps__pay {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-2);
  display: inline-block;
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .step { padding: 2.25rem 0 0 0; }
  .step::before { left: 11px; right: -2rem; top: 5px; bottom: auto; width: auto; height: 1px; }
  .step::after { top: 0; }
  .steps__pay { margin-top: 3rem; }
}

/* Builder */
.builder { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) {
  .builder { grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(2rem, 4vw, 4rem); }
}
.builder__options { display: grid; gap: 2.25rem; }
.group { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; min-width: 0; }
.group__title {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--ink);
}
.group__hint { font-weight: 450; color: var(--ink-3); margin-left: 0.35em; }

.opt {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "check body price";
  align-items: start;
  gap: 0.35rem 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt:hover { border-color: var(--line-2); }
.opt.is-on { border-color: var(--accent-line); background: var(--accent-tint); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt--base { cursor: default; }
.opt--qty { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body price" "body stepper"; cursor: default; }
.opt__check {
  grid-area: check;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.opt__check svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 260ms var(--ease-out);
}
.opt.is-on .opt__check { background: var(--accent); border-color: var(--accent); }
.opt.is-on .opt__check svg { stroke-dashoffset: 0; }
.opt__check--radio { border-radius: 999px; }
.opt__check--radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  transform: scale(0);
  transition: transform 220ms var(--ease-out);
}
.opt.is-on .opt__check--radio::after { transform: scale(1); }
.opt__body { grid-area: body; display: grid; gap: 0.2rem; }
.opt__name { font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.opt__desc { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 599px) {
  .builder__options { gap: 1.75rem; }
  .opt { padding: 0.95rem 1rem; gap: 0.25rem 0.85rem; }
  .opt__desc { line-height: 1.45; }
}
.opt__price {
  grid-area: price;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.opt__price small { font-size: 0.8em; font-weight: 500; color: var(--ink-3); }
.opt.is-on .opt__desc, .opt.is-on .opt__price small { color: #3F5A52; }

.stepper {
  grid-area: stepper;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  margin-top: 0.4rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
}
.stepper__btn {
  width: 44px;
  height: 40px;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
}
.stepper__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.stepper__btn:disabled { color: var(--line-2); cursor: default; }
.stepper__btn:not(:disabled):hover { background: var(--stone); }
.stepper__val { min-width: 1.6em; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

.builder__more { color: var(--ink-2); }
.builder__more a { color: var(--accent); font-weight: 600; }

.summary { position: relative; }
@media (min-width: 1000px) {
  .summary { position: sticky; top: 96px; }
}
.summary__in {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}
.summary__title { font-size: var(--step-2); letter-spacing: -0.025em; }
.summary__lines { display: grid; gap: 0.55rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.summary__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-2);
  font-size: var(--step--1);
  animation: line-in 360ms var(--ease-out);
}
.summary__lines li span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes line-in {
  from { opacity: 0; transform: translateY(-4px); }
}
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.summary__total-label { font-weight: 600; }
.summary__total-value {
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.summary__cur { font-size: max(0.42em, 0.875rem); letter-spacing: 0; color: var(--ink-2); font-weight: 600; vertical-align: 0.85em; }
.roll { display: inline-block; }
.roll.is-rolling { animation: roll-in 420ms var(--ease-out); }
@keyframes roll-in {
  0% { opacity: 0.2; transform: translateY(0.35em); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: none; }
}
.summary__monthly { color: var(--accent); font-weight: 600; font-size: var(--step--1); margin-top: -0.5rem; text-align: right; }
.summary__note { color: var(--ink-3); font-size: var(--step--1); line-height: 1.5; }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field__opt { font-weight: 450; color: var(--ink-3); }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 160ms, box-shadow 160ms;
}
.field input::placeholder { color: #77706A; }
.field input:hover { border-color: #B5B0AB; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--step--1); }

.mailform { display: grid; gap: 0.9rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.mailform__privacy { color: var(--ink-3); font-size: var(--step--1); line-height: 1.5; }
.mailform__status { font-size: var(--step--1); font-weight: 500; min-height: 1.5em; }
.mailform__status.is-ok { color: var(--accent); }
.mailform__status.is-error { color: var(--danger); }
.mailform__status a { font-weight: 650; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
[data-submit][aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* About */
.about { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.about__photo { margin: 0; }
.about__photo img {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 30px 60px -36px rgba(20, 20, 19, 0.45);
}
.about__text { display: grid; gap: 1.25rem; justify-items: start; }
.about__text p:not(.lead) { color: var(--ink-2); max-width: 36em; }
.about__text .btn { margin-top: 0.5rem; }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  padding-block: 1.35rem;
  font-size: var(--step-1);
  font-weight: 650;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform 260ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { padding-bottom: 1.5rem; color: var(--ink-2); max-width: 58ch; }
.faq__item p a { color: var(--accent); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}

/* Close */
.close { background: var(--accent); color: #fff; padding-block: clamp(5rem, 3rem + 7vw, 9rem); }
.close__in { display: grid; gap: 1.25rem; justify-items: start; }
.close__title { font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.04em; font-weight: 750; }
.close__text { font-size: var(--step-1); color: #CFE1DA; max-width: 30em; }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1rem; }
.close__mail { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.4); min-height: 44px; display: inline-flex; align-items: center; }
.close__mail:hover { text-decoration-color: #fff; }
.close ::selection { background: #fff; color: var(--accent); }
.close :focus-visible { outline-color: #fff; }

/* Footer */
.foot { padding-block: 3rem; background: var(--bg); color: var(--ink-2); font-size: var(--step--1); }
.foot__in { display: grid; gap: 0.75rem 2rem; }
.foot__brand { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; font-size: var(--step-0); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot__links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) {
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; }
  .foot__meta { grid-column: 1; }
  .foot__links { grid-column: 3; grid-row: 1; }
  .foot__copy { grid-column: 3; text-align: right; }
}

/* Mobile dock */
.dock {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(250, 250, 249, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 380ms var(--ease-out);
}
.dock.is-on { transform: none; }
.dock__total { display: none; }
.dock.is-builder .dock__wa { display: none; }
.dock.is-builder .dock__total {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0 0.6rem 0 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.dock__total-label { color: #C9C4BE; font-size: var(--step--1); }
.dock__total, .dock__total-value { color: #fff; }
.dock__total-value { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: auto; }
.dock__total-cta {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--step--1);
}
@media (min-width: 1000px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* Reveal */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* Simple pages */
.page { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section); }
.prose { max-width: 42rem; display: grid; gap: 1rem; }
.prose h1 { font-size: var(--step-3); letter-spacing: -0.032em; line-height: 1.05; margin-bottom: 1rem; }
.prose h2 { font-size: var(--step-2); letter-spacing: -0.02em; margin-top: 1.5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.4rem; }
.prose a { color: var(--accent); font-weight: 600; }
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; justify-items: start; }
.js-motion .work:nth-child(2)[data-reveal], .js-motion .step:nth-child(2)[data-reveal] { transition-delay: 70ms; }
.js-motion .work:nth-child(3)[data-reveal], .js-motion .step:nth-child(3)[data-reveal] { transition-delay: 140ms; }
.js-motion .step:nth-child(4)[data-reveal] { transition-delay: 210ms; }
.split__aside .btn { justify-self: start; }
