/* Sienna Vale, demo portfolio. One family (Urbanist, OFL), weights do the work. */

@font-face {
  font-family: "Urbanist";
  src: url("fonts/urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F6EEE3;
  --card: #FBF6EF;
  --sand: #EDE0CE;
  --sand-2: #E6D3BA;
  --cocoa: #3A2418;
  --cocoa-deep: #2E1C13;
  --muted: #6A4A3A;
  --clay: #9E4A2B;
  --clay-hover: #873D22;
  --ochre: #D9A24A;
  --ochre-soft: #E3C089;
  --line: rgba(58, 36, 24, 0.12);
  --field: #8F7868;

  --r: 28px;
  --r-sm: 20px;
  --gap: 16px;
  --nav-h: 72px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1360px;

  --shadow: 0 1px 2px rgba(58, 36, 24, 0.05), 0 24px 48px -28px rgba(58, 36, 24, 0.28);
  --shadow-lift: 0 2px 4px rgba(58, 36, 24, 0.06), 0 34px 70px -30px rgba(58, 36, 24, 0.38);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);

  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 700px at 88% -8%, rgba(227, 192, 137, 0.38), transparent 70%),
    radial-gradient(900px 600px at -10% 30%, rgba(237, 224, 206, 0.9), transparent 70%);
  background-repeat: no-repeat;
  color: var(--cocoa);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  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: fixed;
  left: 16px; top: -80px;
  z-index: 100;
  background: var(--cocoa);
  color: var(--card);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--clay {
  background: var(--clay);
  color: var(--card);
  box-shadow: 0 10px 24px -14px rgba(158, 74, 43, 0.8);
}
.btn--clay:hover { background: var(--clay-hover); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  border-color: rgba(58, 36, 24, 0.45);
  color: var(--cocoa);
}
.btn--ghost:hover { border-color: var(--cocoa); background: rgba(58, 36, 24, 0.05); }

/* Cards */
.card {
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card--sand { background: var(--sand); }
.card--cocoa { background: var(--cocoa); color: var(--cream); }
.card--sun {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(227, 192, 137, 0.55), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(230, 211, 186, 0.9), transparent 65%),
    var(--card);
}

/* Media fallback: warm gradient shows when a file is missing */
.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(227, 192, 137, 0.9), transparent 70%),
    linear-gradient(160deg, #E8D3B8 0%, #D9B08A 55%, #C08765 100%);
}
.media video, .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.media img.is-missing, .media video.is-missing { visibility: hidden; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 238, 227, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
}
.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
  padding: 8px 0;
}
.motion-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(58, 36, 24, 0.45);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  order: 2;
}
.motion-btn:hover { background: rgba(58, 36, 24, 0.05); }
.motion-btn__icon {
  width: 10px; height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
html.is-paused .motion-btn__icon {
  width: 0; height: 0;
  border-right: 0;
  border-left: 10px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.nav { order: 1; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: inline-block;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 550;
  font-size: 16px;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease);
}
.nav__list a:hover { background: rgba(58, 36, 24, 0.06); }
.nav__list a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__cta { min-height: 44px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; }

@media (min-width: 1000px) {
  .motion-btn { order: 0; margin-right: 8px; }
}

@media (max-width: 999px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    background: var(--cocoa);
    color: var(--card);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    order: 3;
  }
  .motion-btn { min-height: 44px; }
  .nav {
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: var(--pad); right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    background: var(--card);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { display: block; padding: 12px 14px; font-size: 19px; }
}
@media (max-width: 379px) {
  .top__in { gap: 8px; }
  .logo { font-size: 19px; }
  .motion-btn { padding: 0 10px; font-size: 14px; gap: 6px; }
  .menu-btn { padding: 0 12px; font-size: 14px; }
}

/* Hero */
.hero {
  display: grid;
  gap: var(--gap);
  padding-top: 12px;
  grid-template-columns: 1fr;
  grid-template-areas: "intro" "clip" "note" "small";
}
.hero__intro { grid-area: intro; padding: clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; container-type: inline-size; min-width: 0; }
.hero__clip { grid-area: clip; aspect-ratio: 4 / 5; }
.hero__small { grid-area: small; aspect-ratio: 16 / 10; }
.hero__note { grid-area: note; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }

.hero__kicker {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: auto;
  padding-bottom: 20px;
  max-width: 30ch;
}
.hero__title {
  font-size: clamp(44px, 20.5cqi, 196px);
  line-height: 0.86;
  white-space: nowrap;
  font-weight: 650;
  letter-spacing: -0.065em;
  margin-left: -0.04em;
  padding-bottom: 0.08em;
}
.hero__lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 34ch;
  margin-top: 24px;
  color: var(--cocoa);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__status {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ochre-soft);
  box-shadow: 0 0 0 0 rgba(227, 192, 137, 0.6);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 192, 137, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(227, 192, 137, 0); }
}
.hero__facts { display: grid; gap: 14px; }
.hero__facts div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(246, 238, 227, 0.18); padding-top: 12px; }
.hero__facts dt { color: #E3D3C0; font-size: 15px; }
.hero__facts dd { font-weight: 600; font-size: 16px; text-align: right; }

/* caption chip over footage: solid background so text contrast does not depend on the frame */
.chip-cap {
  position: absolute;
  left: 14px; bottom: 14px;
  right: 14px;
  display: flex; flex-direction: column; gap: 2px;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(251, 246, 239, 0.95);
  color: var(--cocoa);
  box-shadow: 0 8px 20px -12px rgba(58, 36, 24, 0.5);
}
.chip-cap__brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.chip-cap__title { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }

@media (min-width: 640px) and (max-width: 999px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "intro intro" "clip note" "clip small";
    grid-template-rows: auto auto 1fr;
  }
  .hero__small { min-height: 200px; }
  .hero__clip { aspect-ratio: auto; min-height: 560px; }
  .hero__small { aspect-ratio: auto; }
}
@media (min-width: 1000px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr 1fr 232px;
    grid-template-areas:
      "intro intro intro intro intro intro intro intro clip clip clip clip"
      "intro intro intro intro intro intro intro intro clip clip clip clip"
      "small small small small note note note note clip clip clip clip";
    height: clamp(680px, calc(100svh - var(--nav-h) - 24px), 880px);
  }
  .hero__clip, .hero__small { aspect-ratio: auto; }
  .hero__note { padding: 28px 30px; }
}

/* Section scaffolding */
.section { padding-block: clamp(88px, 11vw, 160px) 0; }
.section__head {
  display: grid;
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
@media (min-width: 800px) {
  .section__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .section__lede { justify-self: end; }
}
.h2 {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.92;
  font-weight: 650;
  letter-spacing: -0.06em;
  margin-left: -0.03em;
}
.section__lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 36ch;
}

/* Work */
.work { padding-top: clamp(88px, 11vw, 160px); position: relative; }
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 28px;
}
.work__sub { color: var(--muted); margin-top: 12px; font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(58, 36, 24, 0.45);
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter:hover { background: rgba(58, 36, 24, 0.06); }
.filter[aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--card); }
.filter[aria-pressed="true"]::before {
  content: "";
  width: 12px; height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -2px);
}

.bento {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr 1fr;
}
.tile { position: relative; min-width: 0; }
.tile[hidden] { display: none; }
.tile__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: none;
  cursor: pointer;
  text-align: left;
  transform: scale(var(--s, 1));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: var(--shadow);
}
.tile__btn:focus-visible { outline-offset: 4px; border-radius: var(--r); }
.tile__media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateZ(0);
}
.tile__media video { transition: transform 1.2s var(--ease); }
.tile__cap {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 14px 11px;
  border-radius: 16px;
  background: rgba(251, 246, 239, 0.95);
  color: var(--cocoa);
  width: max-content;
  max-width: calc(100% - 24px);
}
.tile__brand { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile__title { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.tile__meta { display: none; font-size: 14px; color: var(--muted); margin-top: 4px; }
.tile.is-active .tile__meta { display: block; }
.tile.is-active .tile__btn { box-shadow: var(--shadow-lift); }
.tile.is-active .tile__title { font-size: clamp(18px, 1.6vw, 24px); }
.tile:not(.is-active) .tile__btn { --s: 0.975; }
.tile__btn:hover { --s: 1; }
.tile__btn:hover video { transform: scale(1.035); }
.tile.is-active::after {
  content: "Playing";
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--cocoa);
  color: var(--card);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
html.is-paused .tile.is-active::after { content: "Paused"; }

.work__count { display: none; }

/* small screens: fixed mixed-size grid, the clip nearest the middle of the screen plays */
.bento > .tile { aspect-ratio: 3 / 4; }
.bento > .tile.is-wide { grid-column: span 2; aspect-ratio: 4 / 5; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento > .tile.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* Large screens: bento grid, the playing clip takes the large cell */
@media (min-width: 1000px) and (min-height: 700px) {
  html.js .work__head { margin-bottom: 24px; }
  html.js .work .h2 { font-size: clamp(56px, 6vw, 88px); }
  html.js .bento {
    height: clamp(520px, 44vw, 720px);
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "a a b c d" "a a b e f";
  }
  html.js .bento > .tile,
  html.js .bento > .tile.is-wide { aspect-ratio: auto; grid-column: auto; grid-row: auto; }
  html.js .bento[data-count="5"] { grid-template-areas: "a a b c c" "a a b d e"; }
  html.js .bento[data-count="4"] { grid-template-columns: repeat(4, 1fr); grid-template-areas: "a a b c" "a a b d"; }
  html.js .bento[data-count="3"] { grid-template-columns: repeat(4, 1fr); grid-template-areas: "a a b b" "a a c c"; }
  html.js .bento[data-count="2"] { grid-template-columns: repeat(4, 1fr); grid-template-areas: "a a b b" "a a b b"; }
  html.js .bento[data-count="1"] { grid-template-columns: 1fr; grid-template-areas: "a" "a"; }
  html.js .work__count {
    display: block;
    margin-left: auto;
    align-self: flex-end;
    line-height: 44px;
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
}

/* Photography */
.photos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px var(--gap);
}
.photo figure { display: flex; flex-direction: column; gap: 14px; }
.photo__img { aspect-ratio: 4 / 5; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.photo__img img { transition: transform 1.2s var(--ease); }
.photo:hover .photo__img { box-shadow: var(--shadow-lift); }
.photo:hover .photo__img img { transform: scale(1.04); }
.photo figcaption { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; padding-left: 4px; }
.photo__brand { display: block; font-size: 14px; font-weight: 550; color: var(--muted); }
@media (min-width: 1000px) {
  .photos__grid { grid-template-columns: 1.25fr 1fr 1fr 1.25fr; align-items: start; }
  .photo:nth-child(2) { margin-top: 96px; }
  .photo:nth-child(3) { margin-top: 40px; }
  .photo:nth-child(4) .photo__img { aspect-ratio: 4 / 5; }
}

/* Brands */
.brands__top {
  display: grid;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) { .brands__top { grid-template-columns: 1fr 1.4fr; } }
.brands__statement {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 550;
  max-width: 30ch;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; min-height: 180px; justify-content: space-between; }
.stat:nth-child(1) { background: var(--cocoa); color: var(--cream); }
.stat:nth-child(1) .stat__label { color: #E3D3C0; }
.stat:nth-child(3) { background: var(--sand); }
.stat__num {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 16px; color: var(--muted); line-height: 1.35; max-width: 20ch; }

.brands__label {
  font-size: 16px;
  font-weight: 650;
  color: var(--muted);
  margin: clamp(56px, 7vw, 96px) 0 20px;
  letter-spacing: -0.005em;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(20px, 3vw, 36px);
}
.logos li {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.logos li:nth-child(2n) { font-weight: 350; }
@media (min-width: 1000px) { .logos { justify-content: space-between; } }

.quotes { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .quotes { grid-template-columns: 1.3fr 1fr 1fr; } }
.quote { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote:first-child { background: var(--sand); }
.quote blockquote p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; }
.quote:first-child blockquote p { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.025em; }
.quote__by { font-size: 15px; color: var(--muted); }
.quote__name { display: block; font-weight: 650; color: var(--cocoa); font-size: 16px; }

/* Services */
.svc-grid { display: grid; gap: var(--gap); }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc:last-child { grid-column: span 2; }
}
.svc { padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; }
.svc__name { font-size: clamp(28px, 2.6vw, 38px); font-weight: 650; letter-spacing: -0.045em; line-height: 1.05; }
.svc__for { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.svc__h { margin-top: 28px; font-size: 15px; font-weight: 650; }
.svc__list { margin-top: 10px; display: grid; gap: 8px; font-size: 17px; }
.svc__list li { position: relative; padding-left: 22px; line-height: 1.4; }
.svc__list li::before {
  content: "";
  position: absolute; left: 2px; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ochre);
}
.svc__dl { margin-top: 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc__dl div { padding-block: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.svc__dl dt { font-size: 14px; font-weight: 650; color: var(--muted); }
.svc__dl dd { font-size: 16px; line-height: 1.4; }
.svc__cta { margin-top: auto; align-self: flex-start; }
.svc__dl + .svc__cta { margin-top: 28px; }

.addons {
  margin-top: var(--gap);
  padding: clamp(24px, 2.8vw, 40px);
  display: grid;
  gap: 16px 48px;
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--line);
}
@media (min-width: 900px) { .addons { grid-template-columns: 220px 1fr; align-items: start; } }
.addons__title { font-size: 28px; font-weight: 650; letter-spacing: -0.04em; }
.addons__list { display: grid; gap: 14px 40px; }
@media (min-width: 640px) { .addons__list { grid-template-columns: 1fr 1fr; } }
.addons__list li { font-size: 17px; line-height: 1.4; color: var(--muted); }
.addons__list strong { display: block; color: var(--cocoa); font-weight: 650; }

/* About */
.about { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 700px) { .about { grid-template-columns: 5fr 6fr; } }
.about__img { aspect-ratio: 4 / 5; }
.about__text { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.about__text .h2 { margin-bottom: 12px; }
.about__lead { font-size: clamp(23px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 550; }
.about__text > p:not(.about__lead):not(.about__note) { color: var(--muted); }
.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.about__facts div { background: var(--card); border-radius: var(--r-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.about__facts dt { font-size: 14px; color: var(--muted); font-weight: 550; }
.about__facts dd { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; }
.about__note { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
@media (max-width: 520px) { .about__facts { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; gap: var(--gap); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.step__n {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--sand);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}
.step:last-child .step__n { background: var(--clay); color: var(--card); }
.step__title { font-size: 26px; font-weight: 650; letter-spacing: -0.04em; }
.step p { color: var(--muted); font-size: 17px; line-height: 1.45; }

/* Contact */
.contact__panel {
  display: grid;
  gap: 32px;
  padding: clamp(20px, 4vw, 56px);
}
@media (min-width: 1000px) { .contact__panel { grid-template-columns: 5fr 7fr; gap: 64px; } }
.contact__intro { display: flex; flex-direction: column; gap: 20px; padding: 8px 4px; }
.contact__lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; color: #EADCCB; max-width: 32ch; }
.contact__links { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid rgba(246, 238, 227, 0.2); }
.contact__links li { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid rgba(246, 238, 227, 0.2); flex-wrap: wrap; }
.contact__k { color: #E3D3C0; font-size: 16px; }
.contact__links a { font-weight: 650; text-underline-offset: 4px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.contact__links a:hover { color: var(--ochre-soft); }
.card--cocoa :focus-visible { outline-color: var(--ochre-soft); }

.form { padding: clamp(20px, 3vw, 40px); color: var(--cocoa); display: grid; gap: 20px; box-shadow: none; }
.form__note { font-size: 15px; color: var(--muted); }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .checks legend { font-weight: 650; font-size: 16px; }
.req { font-weight: 500; color: var(--muted); font-size: 15px; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--cocoa);
  background: #FFFDF9;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 50px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:not([type="checkbox"]):hover, .field textarea:hover { border-color: var(--cocoa); }
.field input:not([type="checkbox"]):focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(158, 74, 43, 0.35); border-radius: 14px; }
.field [aria-invalid="true"] { border-color: #A12E1E; border-width: 2px; }
.field__err { font-size: 15px; font-weight: 600; color: #A12E1E; }
.field__err:empty { display: none; }
.field__err::before { content: "Error: "; }

.checks { border: 0; padding: 0; margin: 0; }
.checks legend { padding: 0; margin-bottom: 10px; }
.checks__grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .checks__grid { grid-template-columns: 1fr 1fr; } }
.check {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  background: #FFFDF9;
  cursor: pointer;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.3;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.check:hover { border-color: var(--cocoa); }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid var(--field);
  border-radius: 7px;
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 10px; height: 5px;
  border-left: 2px solid var(--card);
  border-bottom: 2px solid var(--card);
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.check input:checked { background: var(--clay); border-color: var(--clay); }
.check input:checked::after { opacity: 1; }
.check:has(input:checked) { border-color: var(--clay); background: #F8EDE4; border-width: 2px; }
.check input:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 7px; }
.form__submit { justify-self: start; min-width: 200px; }
.form__done:empty { display: none; }
.form__done {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--sand);
  font-size: 17px;
  line-height: 1.45;
}
.form__done strong { display: block; font-size: 19px; letter-spacing: -0.02em; }

/* Footer */
.foot { padding-block: clamp(80px, 10vw, 140px) 120px; }
.foot__in { display: grid; gap: 18px; }
.foot__name { font-size: clamp(56px, 12vw, 180px); font-weight: 650; letter-spacing: -0.065em; line-height: 0.85; margin-left: -0.04em; }
.foot__line { font-size: 18px; color: var(--muted); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: -12px; }
.foot__nav a { padding: 10px 12px; font-weight: 600; text-underline-offset: 4px; }
.foot__fine { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 12px; }
.foot__fine a { color: var(--cocoa); font-weight: 650; text-underline-offset: 3px; margin-left: 4px; display: inline-block; padding-block: 4px; }

/* Lightbox */
.lb {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background: var(--card);
  color: var(--cocoa);
  box-shadow: 0 40px 120px -30px rgba(46, 28, 19, 0.6);
  overflow: auto;
}
.lb::backdrop { background: rgba(46, 28, 19, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb[open] { animation: lb-in 0.45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.lb__inner { position: relative; display: grid; gap: 0; }
@media (min-width: 760px) { .lb__inner { grid-template-columns: auto 1fr; } }
.lb__media { aspect-ratio: 9 / 16; height: min(78svh, 760px); max-width: 100%; border-radius: var(--r); margin: 12px; }
.lb__media video { object-fit: cover; }
@media (max-width: 759px) { .lb__media { height: auto; width: calc(100% - 24px); max-height: 62svh; aspect-ratio: 9 / 14; } }
.lb__side { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.lb__brand { font-weight: 600; color: var(--muted); }
.lb__title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.05em; font-weight: 650; }
.lb__meta { color: var(--muted); font-size: 16px; }
.lb__nav { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.lb__hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.lb__close {
  position: absolute; top: 20px; right: 20px;
  min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 0;
  background: var(--cocoa); color: var(--card);
  font-weight: 600; cursor: pointer;
}
@media (max-width: 759px) { .lb__close { top: 22px; right: 22px; } }

/* Demo ribbon */
.ribbon {
  position: fixed;
  z-index: 50;
  left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--card);
  box-shadow: 0 16px 36px -14px rgba(46, 28, 19, 0.55);
  font-size: 14px;
  max-width: calc(100vw - 24px);
}
.ribbon[hidden], html.embed .ribbon { display: none; }
.ribbon__link { text-decoration: none; padding: 10px 4px; font-weight: 500; }
.ribbon__link span { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ochre-soft); }
.ribbon__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(246, 238, 227, 0.12);
  color: var(--card);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ribbon__close:hover { background: rgba(246, 238, 227, 0.22); }
.ribbon :focus-visible { outline-color: var(--ochre-soft); border-radius: 999px; }
@media (max-width: 699px) {
  .ribbon { left: 50%; transform: translateX(-50%); bottom: 12px; font-size: 13px; white-space: nowrap; }
}

/* Reveal on scroll (only when JS runs and motion is allowed) */
html.js.can-move .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js.can-move .reveal.is-in { opacity: 1; transform: none; }

/* Hero entrance */
html.js.can-move .hero > * { animation: rise 0.9s var(--ease) both; }
html.js.can-move .hero > :nth-child(2) { animation-delay: 0.08s; }
html.js.can-move .hero > :nth-child(3) { animation-delay: 0.16s; }
html.js.can-move .hero > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }

/* Pause motion: everything holds still */
html.is-paused *, html.is-paused *::before, html.is-paused *::after {
  animation-play-state: paused !important;
}
html.is-paused .dot { animation: none; }
html.is-paused .hero > * { animation: none !important; }
html.is-paused .tile__btn, html.is-paused .tile__media video, html.is-paused .photo__img img { transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Phone refinements */
@media (max-width: 639px) {
  .hero { grid-template-areas: "intro" "clip" "note"; }
  .hero__small { display: none; }
  .tile__cap { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px 9px; border-radius: 12px; max-width: calc(100% - 16px); }
  .tile__brand { font-size: 12px; }
  .tile__title { font-size: 14px; }
  .tile.is-wide .tile__title { font-size: 17px; }
  .tile.is-active::after { top: 10px; left: 10px; }
  .step { min-height: 0; padding: 24px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: center; }
  .step__n { margin: 0; }
  .step p { grid-column: 1 / -1; margin-top: 8px; }
  .stat { min-height: 150px; }
  .filters { gap: 6px; }
  .filter { padding: 0 13px; font-size: 15px; gap: 6px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .about__facts { grid-template-columns: 1fr; }
  .about__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .about__facts dd { margin-top: 0; text-align: right; }
}
