/* Marivo. Direction: "The page is the object" (taste-skill seed 636048499).
   Two inks and a paper: orange ground, blue-black ink, white fields. Square corners everywhere. */
:root {
  --bg: #ff7a1f;
  --ink: #050f16;
  --muted: #5a2306;
  --paper: #ffffff;
  --tone: #f1efec;
  --soft: #3d4a52;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.25rem, 1rem + 4.4vw, 4.75rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; border-radius: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; }
h2 { font-size: var(--step-head); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

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

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  padding: 16px 26px; font-weight: 500; text-decoration: none;
  transition: transform 180ms var(--ease);
}
.btn--inv { background: var(--bg); color: var(--ink); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.text-link { font-weight: 500; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-thickness: 4px; }

/* ---------- Hero: card over a dim room ---------- */
.hero { height: 165svh; background: var(--ink); }
.hero-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%; filter: brightness(0.8);
}
.hero-card {
  position: relative; width: min(56%, 860px); min-height: 62svh;
  background: var(--bg); padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
  transform-origin: 0 100%; will-change: transform;
}
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.wordmark { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.04em; text-decoration: none; }
.card-nav { display: flex; gap: clamp(12px, 2vw, 28px); }
.card-nav a { text-decoration: none; font-weight: 500; font-size: var(--step-body); }
.card-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.hero h1 { font-size: var(--step-display); line-height: 0.92; margin-top: auto; }
.hero h1 span { display: block; }
.hero-facts { font-size: var(--step-lead); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.hero-sub { max-width: 44ch; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: auto; }
.hero-credit {
  position: absolute; right: var(--m); bottom: var(--m); max-width: 26ch;
  color: var(--paper); font-size: var(--step-small); text-align: right;
}

/* ---------- Templates: square plate, spare text ---------- */
.showcase { background: var(--paper); padding-block: var(--gap-section); }
.section-title { max-width: 16ch; margin-bottom: clamp(40px, 5vw, 72px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.plate {
  aspect-ratio: 1; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
.plate svg, .plate img { width: 58%; height: auto; transform: rotate(-4deg); }
.plate img { width: 100%; height: 100%; object-fit: cover; transform: none; }
.plate.swap > * { animation: deal 420ms var(--ease) both; }
@keyframes deal { from { opacity: 0; transform: translateY(40px) rotate(3deg); } }

.picker { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tab { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; color: var(--soft); padding: 6px 0; transition: transform 160ms var(--ease); }
.tab:hover { transform: translateY(-2px); }
.tab[aria-pressed="true"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.3em; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.choice { background: var(--tone); padding: 12px 16px; font-weight: 500; transition: transform 160ms var(--ease); }
.choice:hover { transform: translateY(-2px); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.tpl-name { font-size: var(--step-head); max-width: 14ch; }
.tpl-desc { max-width: 34ch; margin-top: 20px; }
.bubble-note { font-size: var(--step-small); color: var(--soft); margin-top: 28px; }
.bubble {
  position: relative; max-width: 40ch; margin-top: 10px;
  background: var(--tone); padding: 16px 18px 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 28px calc(100% - 14px), 12px 100%, 12px calc(100% - 14px), 0 calc(100% - 14px));
  padding-bottom: 32px;
}
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; font-weight: 500; text-decoration: none;
  transition: transform 180ms var(--ease);
}
.cell:hover { transform: translateY(-3px); }
.cell:active { transform: scale(0.98); }
.cell--ink { background: var(--ink); color: var(--bg); }
.cell--tone { background: var(--tone); }
.cell .cell-price { font-size: var(--step-lead); font-weight: 600; }
.noscript { margin-top: 24px; }

.list-block { margin-top: clamp(128px, 14vw, 176px); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.list-title { font-size: var(--step-head); }
.list-intro p { margin-top: 20px; max-width: 30ch; }
.price-list { width: 100%; border-collapse: collapse; }
.price-list th { text-align: left; font-weight: 500; font-size: var(--step-small); color: var(--soft); padding: 0 16px 12px; }
.price-list td { padding: 16px; vertical-align: baseline; }
.price-list tbody tr:nth-child(odd) { background: var(--tone); }
.price-list tbody tr[aria-current="true"] { background: var(--ink); color: var(--paper); }
.price-list .row-btn { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; text-align: left; }
.price-list .row-btn:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.price-list .col-price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- How it works: drag row ---------- */
.how { padding-block: var(--gap-section); overflow: hidden; }
.how-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.how-head h2 { max-width: 14ch; }
.row-buttons { display: flex; gap: 8px; }
.sq-btn { width: 48px; height: 48px; background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform 160ms var(--ease); }
.sq-btn:hover { transform: translateY(-3px); }
.sq-btn:active { transform: scale(0.94); }
.progress { height: 6px; background: #e0640f; margin-top: 32px; }
.progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0.2); }
.moments {
  display: flex; gap: 32px; padding: 40px var(--m) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m);
  scrollbar-width: none;
}
.moments::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; }
.moment h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.moment > p { color: var(--muted); margin-top: 10px; min-height: 4.5em; }
.moment figure { margin-top: var(--gap); }
.moment img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms var(--ease); }
.moment figure:hover img { transform: scale(1.03); }
figcaption { font-size: var(--step-small); margin-top: 10px; line-height: 1.4; }

/* ---------- FAQ: questions beside a tall picture ---------- */
.faq { background: var(--paper); padding-block: var(--gap-section); }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-facts { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-top: 28px; }
.faq-list { margin-top: 48px; display: grid; gap: 28px; }
.faq-list summary {
  list-style: none; cursor: pointer; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: rotate(45deg); transition: transform 220ms var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { margin-top: 10px; max-width: 46ch; color: var(--soft); }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 48px; }
.faq-pictures { position: relative; margin-top: calc(var(--gap-section) * -1); padding-bottom: 80px; }
.faq-tall { margin-left: 22%; }
.faq-tall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq-tall figcaption { padding-left: 18%; }
.faq-square { position: absolute; left: 0; bottom: 0; width: 34%; }
.faq-square img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.faq-square figcaption { background: var(--paper); padding-top: 10px; margin-top: 0; }

/* ---------- CTA: the action tile ---------- */
.cta { padding-block: var(--gap-section); overflow: hidden; }
.tiles { display: grid; grid-template-columns: 22vw 1fr 22vw; gap: 12px; margin-inline: -6vw; }
.tile { height: 360px; }
.tile--photo figure { height: 100%; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; }
.tile--flat { background: var(--paper); }
.tile--main {
  background: var(--ink); color: var(--paper); padding: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
}
.tile--main h2 { color: var(--bg); max-width: 16ch; }
.tile--main p { max-width: 46ch; }

/* ---------- Footer: invitation over a cropped name ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  min-height: 100svh; overflow: hidden; position: relative;
  display: flex; flex-direction: column; padding-top: clamp(56px, 8vw, 112px);
}
.footer-top { display: grid; grid-template-columns: 8fr 3fr; gap: 32px; align-items: start; }
.invite { font-size: var(--step-display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.92; max-width: 12ch; text-wrap: balance; margin-bottom: 32px; }
.footer-links { display: grid; gap: 8px; justify-items: start; }
.footer-links a { text-decoration: none; font-weight: 500; transition: transform 160ms var(--ease); display: inline-block; }
.footer-links a:hover { transform: translateX(6px); color: var(--bg); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-top: auto; padding-top: 64px; font-size: var(--step-small); }
.footer-legal p:last-child { max-width: 52ch; }
.footer-wordmark {
  font-size: 30vw; font-weight: 600; letter-spacing: -0.06em; line-height: 0.74; white-space: nowrap;
  color: var(--bg); margin: 12px 0 -7vw calc(var(--m) - 1.5vw);
}

/* ---------- Motion: entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100svh; }
  .plate.swap > * { animation: none; }
  * { transition-duration: 1ms !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hero-card { width: min(84%, 720px); }
  .split { grid-template-columns: 1fr; }
  .list-block { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-pictures { margin-top: 0; max-width: 560px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Phone: its own composition ---------- */
@media (max-width: 640px) {
  .hero { height: 130svh; }
  .hero-card { width: calc(100% - 32px); min-height: 72svh; padding: 20px; gap: 16px; }
  .hero h1 { font-size: 8.6vw; }
  .card-nav a { font-size: var(--step-small); }
  .card-bottom .btn { width: 100%; }
  .hero-credit { display: none; }
  .plate svg { width: 62%; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .price-list .col-what { display: none; }
  .price-list td, .price-list th { padding-inline: 10px; }
  .row-buttons { display: none; }
  .moments { gap: 16px; }
  .moment { flex-basis: 72vw; }
  .moment figure { margin-top: calc(var(--gap) * 0.45); }
  .faq-tall { margin-left: 0; }
  .faq-tall figcaption { padding-left: 0; }
  .faq-tall img { aspect-ratio: 4 / 5; }
  .faq-pictures { padding-bottom: 0; }
  .faq-square { left: auto; right: 0; bottom: auto; top: 58%; width: 38%; }
  .faq-square figcaption { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; margin-inline: var(--m); gap: 8px; }
  .tile--main { grid-column: 1 / -1; height: auto; min-height: 300px; padding: 28px 20px; }
  .tile--main .btn { width: 100%; }
  .tile--photo, .tile--flat { height: 120px; }
  .tile--photo { order: 2; } .tile--flat { order: 3; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .invite { font-size: 11vw; }
  .footer-invite .btn { width: 100%; }
  .footer-wordmark { font-size: 34vw; }
}
