/* Basekey. One direction for all locales: the printed annual, black and crimson, one axis at 42%. */

:root {
  --bg: #0a0a0a;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --ink: #efefef;
  --muted: #b0b0b0;
  --accent: #b11226;
  --accent-hover: #8a0e1d;
  --accent-ink: #ffffff;
  --field: #efefef;
  --field-ink: #0a0a0a;
  --field-muted: #3d3d3d;

  --m: 48px;
  --axis: 42%;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);

  --step-small: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --step-display: clamp(3.5rem, 2.2rem + 6.4vw, 6.75rem);

  --font: "Bricolage Grotesque", system-ui, sans-serif;
}

:lang(ja) { --font: "Bricolage Grotesque", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --font: "Bricolage Grotesque", "Pretendard", system-ui, sans-serif; }
:lang(ar) { --font: "IBM Plex Sans Arabic", "Bricolage Grotesque", system-ui, sans-serif; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) { letter-spacing: 0; }

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; max-width: 38ch; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute;
  inset-inline-start: var(--m);
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.top {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  align-items: center;
  padding: 36px var(--m) 0;
}
.wordmark {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.links a { text-decoration: none; font-size: var(--step-small); color: var(--ink); }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.langs a { font-size: var(--step-small); text-decoration: none; color: var(--muted); padding: 6px 0; }
.langs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 {
  font-size: var(--step-display);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
h2 {
  font-size: var(--step-head);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-block-end: 40px;
  max-width: 16ch;
}
h3 {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-block-end: 12px;
}
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; max-width: 36ch; }
.note { font-size: var(--step-small); color: var(--muted); max-width: 40ch; margin-block-start: 16px; }
.big {
  font-size: var(--step-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-block-end: 32px;
}

/* ---------- grid: one axis at 42% ---------- */

.hero, .sec, .field { padding-inline: var(--m); }

.hero {
  min-height: calc(100svh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block-end: 72px;
}
.hero-body {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  align-items: end;
  row-gap: 40px;
}
.hero h1 { grid-column: 2; grid-row: 1; }
.hero-lead {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  font-size: var(--step-body);
  padding-inline-end: 32px;
  margin: 0;
  max-width: 32ch;
}
.hero-act { grid-column: 2; grid-row: 2; }

.line { display: block; overflow: hidden; padding-block-end: 0.04em; }
.line > span { display: block; }

.sec, .field {
  display: grid;
  grid-template-columns: var(--axis) minmax(0, 1fr);
  padding-block: 140px;
}
.sec > .side, .field > .side { padding-inline-end: 32px; font-size: var(--step-small); color: var(--muted); }
.sec > .main, .field > .main { min-width: 0; }
.field { background: var(--field); color: var(--field-ink); }
.field .lead, .field p { color: var(--field-ink); }
.field .note, .field .caption { color: var(--field-muted); }

/* ---------- buttons: square, one fill ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 1.0625rem/1 var(--font);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline-color: var(--ink); }

/* ---------- work ---------- */

.main-demo { margin-block-end: 56px; }
.pair { display: flex; gap: 0; align-items: flex-end; }
.pair .desk { flex: 1 1 auto; min-width: 0; }
.pair .phone { flex: 0 0 26%; max-width: 26%; margin-inline-start: 0; }
.drift { overflow: hidden; }
.drift img { transform: scale(1.06); transition: transform 14s linear; }
.drift.in img { transform: scale(1); }
.caption { font-size: var(--step-small); color: var(--muted); margin-block-start: 10px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.mosaic figure { position: relative; }
.mosaic img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.mosaic figcaption { font-size: var(--step-small); color: var(--muted); padding: 10px 14px 18px 0; }

/* ---------- steps and features ---------- */

.steps { display: grid; gap: 56px; max-width: 58ch; }
.steps h3 { margin-block-end: 10px; }

.side img, .side video { width: 100%; height: auto; object-fit: cover; }
.side .portrait { aspect-ratio: 4 / 5; object-fit: cover; }
.side .landscape { aspect-ratio: 4 / 3; object-fit: cover; }
.side .caption { margin-block-start: 10px; }

.points { display: grid; gap: 56px; max-width: 58ch; }

.about-copy p { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; max-width: 40ch; }

/* ---------- field: the measure ---------- */

.clip { margin-block-start: 48px; max-width: 100%; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--field-muted); }

/* ---------- full-width picture band ---------- */

.band { position: relative; margin: 0; }
.band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.band figcaption { padding: 12px var(--m) 0; font-size: var(--step-small); color: var(--muted); }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.plan {
  background: var(--surface);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan.rec { background: var(--field); color: var(--field-ink); }
.plan.rec p, .plan.rec li, .plan.rec .unit { color: var(--field-ink); }
.plan .unit { color: var(--muted); font-size: var(--step-small); margin: 0; max-width: none; }
.plan .rec-label { font-size: var(--step-small); font-weight: 600; color: var(--accent); margin: 0 0 14px; max-width: none; }
.plan .price {
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 18px 0 6px;
  font-variant-numeric: tabular-nums;
}
.plan .delivery { font-size: var(--step-small); margin: 0 0 24px; max-width: none; }
.plan ul { display: grid; gap: 12px; }
.plan li { padding-inline-start: 0; max-width: 34ch; }

.care {
  margin-block-start: 0;
  background: var(--surface-2);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 40px;
  align-items: end;
}
.care h3 { margin: 0; }
.care .price { font-size: var(--step-lead); font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.care p { margin: 0; max-width: 46ch; }

.fine { margin-block-start: 40px; font-size: var(--step-small); color: var(--muted); max-width: 70ch; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 8px; max-width: 64ch; }
.faq details { background: var(--surface); padding: 22px 26px; }
.faq summary {
  cursor: pointer;
  font-size: var(--step-lead);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; transition: transform 0.3s var(--ease); flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 4px; font-size: var(--step-body); max-width: 60ch; }
.faq summary:hover { color: var(--accent); }
.faq details[open] { background: var(--surface-2); }

/* ---------- live thing: the quote pad ---------- */

.form { display: grid; gap: 14px; max-width: 52ch; margin-block-end: 40px; }
.form label { font-size: var(--step-small); color: var(--muted); }
.form input {
  font: 500 var(--step-lead) var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
  min-height: 60px;
  width: 100%;
  transition: background-color 0.25s var(--ease);
}
.form input::placeholder { color: #5f5f5f; }
.form input:hover { background: var(--surface-2); }
.form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.pad {
  background: var(--field);
  color: var(--field-ink);
  padding: 44px 40px 48px;
  max-width: 52ch;
  margin-block-end: 36px;
  border-inline-start: 0;
}
.pad .pad-sub { font-size: var(--step-small); color: var(--field-muted); margin: 0 0 18px; max-width: none; }
.pad .pad-name {
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  margin: 0 0 28px;
  max-width: 16ch;
  color: var(--accent);
}
.pad .pad-line { font-size: var(--step-body); margin: 0; max-width: none; color: var(--field-ink); }

.contacts { display: grid; gap: 12px; margin-block-start: 8px; }
.contacts a { font-size: var(--step-lead); text-decoration: none; font-weight: 500; letter-spacing: -0.01em; }
.contacts a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.foot { padding: 120px var(--m) 48px; background: var(--surface); }
.wordmark-big {
  font-size: clamp(4.5rem, 22vw, 22rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
  margin: 0 0 56px;
  white-space: nowrap;
  overflow: hidden;
}
.foot-grid { display: grid; grid-template-columns: var(--axis) minmax(0, 1fr); gap: 32px; }
.foot-grid .credits { font-size: var(--step-small); color: var(--muted); max-width: 70ch; }
.foot-grid .credits span { display: block; margin-block-end: 6px; }
.foot-grid .legal { display: flex; gap: 20px; font-size: var(--step-small); margin-block-start: 20px; flex-wrap: wrap; }
.foot-grid .legal a { color: var(--muted); }
.foot-grid .langs { margin-block-start: 24px; }
.foot-grid .tag { font-size: var(--step-body); max-width: 36ch; }

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

@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.line > span { animation: rise 1s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: 0.11s; }
.hero-lead, .hero-act { animation: fadeup 0.9s 0.35s var(--ease) both; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.btn, .plan, .links a, .langs a { will-change: auto; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --m: 24px; --axis: 100%; }
  .top { grid-template-columns: 1fr; row-gap: 18px; }
  .top nav { justify-content: flex-start; }
  .hero-body { grid-template-columns: 1fr; row-gap: 28px; }
  .hero h1, .hero-lead, .hero-act { grid-column: 1; grid-row: auto; }
  .hero-lead { padding-inline-end: 0; max-width: 36ch; }
  .sec, .field { grid-template-columns: 1fr; padding-block: 88px; }
  .sec > .side, .field > .side { padding: 0 0 36px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .care { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .band img { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  h1 { font-size: 12.4vw; }
  .pair .phone { flex-basis: 34%; max-width: 34%; }
  .pad { padding: 30px 24px 34px; }
  .plan { padding: 28px 24px 32px; }
  .faq summary { font-size: var(--step-body); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .drift img { transform: none; }
  .plan:hover, .btn:active { transform: none; }
}

.contacts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.contacts .lbl { font-size: var(--step-small); color: var(--muted); }

/* ---------- long-form guides ---------- */

.article { display: grid; grid-template-columns: var(--axis) minmax(0, 1fr); padding: 120px var(--m) 140px; }
.article .side { padding-inline-end: 32px; }
.article .main { min-width: 0; }
.article-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 40ch;
  margin: 0 0 20px;
  text-wrap: balance;
}
.meta { font-size: var(--step-small); color: var(--muted); margin: 0 0 56px; max-width: none; }
.prose { max-width: 68ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; }
.prose p, .prose li { max-width: none; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; margin: 64px 0 20px; max-width: none; text-wrap: balance; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-block-end: 0.5em; }
.prose a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose strong { font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 32px 0 40px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; background: var(--surface); }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 14px 16px; border: 1px solid #2a2a2a; }
.prose th { background: var(--surface-2); font-weight: 600; }
.sources { margin-block-start: 72px; }
.sources h2 { margin-block-start: 0; }
.sources-body { font-size: 1rem; line-height: 1.5; }
.sources-body .accessed { color: var(--muted); }
.sources-body li { overflow-wrap: anywhere; }
.closing { margin-block-start: 80px; background: var(--surface); padding: 40px 40px 44px; max-width: 68ch; }
.closing h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 16px; letter-spacing: -0.02em; line-height: 1.1; }
.closing p { max-width: none; }
.guide-list { display: grid; gap: 56px; max-width: 68ch; }
.guide-list h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; max-width: none; }
.guide-list h2 a { text-decoration: underline; text-underline-offset: 0.2em; }
.guide-list h2 a:hover { color: var(--accent); }
.guide-list p { max-width: none; }
@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; padding: 88px var(--m) 110px; }
  .article .side { display: none; }
  .closing { padding: 30px 24px 34px; }
}

.guide-hero { margin: 0; }
.guide-hero img { width: 100%; height: 84vh; height: 84svh; min-height: 420px; object-fit: cover; }
.guide-hero figcaption { padding: 12px var(--m) 0; font-size: var(--step-small); color: var(--muted); }
.guide-hero + .article { padding-block-start: 72px; }
.prose-fig { margin: 48px 0; max-width: none; }
.prose-fig img, .prose-fig video { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.prose-fig figcaption { margin-block-start: 10px; font-size: var(--step-small); color: var(--muted); }


.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) { .prose h2 { font-size: 1.1875rem; line-height: 1.25; } }
@media (max-width: 560px) { .prose table { min-width: 36rem; } }

/* ---------- modoo! page (ko/modoo) ---------- */

@media (min-width: 901px) {
  .hero-modoo h1 { grid-column: 1 / -1; grid-row: 1; }
  .hero-modoo .hero-lead { grid-row: 2; align-self: start; }
  .hero-modoo .hero-act { grid-row: 2; }
}

.bars { display: grid; gap: 14px; max-width: 64ch; margin-block: 24px 56px; }
.bars li { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 5em; align-items: center; gap: 16px; font-size: var(--step-small); }
.bars i { display: block; height: 14px; width: var(--w); background: var(--accent); }
.bar-n { font-variant-numeric: tabular-nums; text-align: end; }

.method { background: var(--field); color: var(--field-ink); padding: 36px 32px; max-width: 64ch; margin-block: 56px 0; }
.method, .method li, .method p, .method h3 { color: var(--field-ink); }
.method .note { color: var(--field-muted); }
.method h3 { margin-block-end: 16px; }
.method ul { display: grid; gap: 10px; }
.method li { max-width: none; }
@media (max-width: 900px) { .hero-modoo h1 { font-size: 10.5vw; } }
@media (max-width: 560px) { .prose table.regions { min-width: 0; } }
