/* Keemify — swiss-editorial single page. Huge stacked type, parenthetical labels,
   sticky section labels, stacked product cards, giant wordmark. Light look only. */
:root {
  --bg: #FFFFFF;
  --ink: #1E1719;        /* warm near-black, rose-biased */
  --muted: #6E5F63;
  --line: #EDE3E4;
  --blush: #F7EEEE;
  --dusty: #C08289;      /* logo stem */
  --rose: #B5546B;       /* logo curve, main accent */
  --rose-ink: #8E3B50;   /* accent text on white (AA) */
  --night: #2B2326;
  --night-ink: #F6E3E5;

  --font: "Outfit", "IBM Plex Sans KR", system-ui, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1280px;
  --radius: 28px;

  --t-label: 0.8125rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-h2: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  --t-statement: clamp(1.75rem, 1rem + 2.8vw, 3.25rem);
  --t-nav: clamp(3rem, 1.4rem + 7vw, 7.25rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ko) body, html[lang="ko"] body { word-break: keep-all; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.label {
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
[hidden] { display: none !important; }
.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; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; }

/* ---------- fixed corners ---------- */
.corner {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
}
.corner--left { left: calc(env(safe-area-inset-left, 0px) + 20px); }
.corner--right { right: calc(env(safe-area-inset-right, 0px) + 20px); }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px -8px rgba(142, 59, 80, .45); }
.lang {
  display: flex; gap: 2px; padding: 4px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-label); letter-spacing: 0.08em;
}
.lang a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  min-height: 36px; display: inline-flex; align-items: center;
}
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang a:not([aria-current="true"]):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 112px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(192, 130, 137, .22), rgba(192, 130, 137, 0));
  pointer-events: none;
}
.hero__grid { display: grid; gap: 40px; position: relative; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.04em; }
.mainnav a {
  display: inline-block;
  font-size: var(--t-nav);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}
.mainnav a:hover { color: var(--rose); transform: translateX(8px); }
.mainnav .count { font-size: 0.22em; vertical-align: top; color: var(--rose-ink); margin-left: .25em; letter-spacing: 0; }
.hero__copy { display: grid; gap: 14px; max-width: 46ch; }
.hero__copy h1 { font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.01em; }
.hero__copy p { color: var(--muted); }
/* hero symbol: the K writes itself in two strokes (stem, then the knotted curve) */
.hero__mark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: clamp(-120px, -6vw, -40px);
  right: clamp(-140px, -6vw, -24px);
  width: clamp(420px, 68vw, 1040px);
  aspect-ratio: 1;
}
.mainnav, .hero__copy h1, .hero__copy p { position: relative; z-index: 1; }
.hero__tile { position: absolute; inset: 0; }
.hero__tile svg, .hero__tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__tile img { opacity: 0; animation: mark-fade .4s ease 2.55s forwards; }
.hero__ink { animation: mark-fade-out .4s ease 2.6s forwards; }
.hero__ink path {
  fill: none; stroke-width: 13.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  opacity: 0;
}
.hero__ink .ink-stem { stroke: var(--dusty); stroke-opacity: .9; animation: ink .6s cubic-bezier(.55, 0, .25, 1) .25s forwards; }
.hero__ink .ink-curve { stroke: var(--rose); stroke-opacity: .86; animation: ink 1.55s cubic-bezier(.4, 0, .3, 1) 1s forwards; }
@keyframes ink { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes mark-fade { to { opacity: 1; } }
@keyframes mark-fade-out { to { opacity: 0; } }
@media (max-width: 899px) {
  .hero__mark { width: 118vw; top: -40px; right: -34vw; }
}

.wordmark {
  font-size: clamp(4rem, 19.5vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--rose);
  text-transform: uppercase;
  margin-top: 56px;
  white-space: nowrap;
  user-select: none;
  padding-bottom: 0.04em;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .hero__copy { justify-self: end; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; gap: 28px; }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 220px 1fr; gap: 48px; }
  .split__label { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); align-self: start; }
}
.statement { font-size: var(--t-statement); line-height: 1.18; letter-spacing: -0.025em; max-width: 22em; }
.statement em { font-style: normal; color: var(--rose-ink); }
.prose { display: grid; gap: 18px; max-width: 62ch; color: var(--muted); }
.stack-lg { display: grid; gap: clamp(56px, 8vw, 104px); }

/* founder */
.founder { display: grid; gap: 28px; padding: clamp(28px, 4vw, 48px); background: var(--blush); border-radius: var(--radius); }
.founder__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.founder__name { font-size: var(--t-h2); letter-spacing: -0.03em; }
.founder__role { color: var(--rose-ink); }
.founder__quote { font-size: var(--t-lead); line-height: 1.4; max-width: 30ch; }
.founder__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(142, 59, 80, .18); }
.founder__facts li { display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 16px; border-bottom: 1px solid rgba(142, 59, 80, .18); }
.founder__facts strong { font-weight: 400; color: var(--ink); }
.founder__facts span { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 720px) {
  .founder { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .founder__facts li { grid-template-columns: 9.5em 1fr; gap: 20px; }
}

/* clients marquee */
.clients { display: grid; gap: 22px; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
.client {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); color: #8C8084; letter-spacing: -0.01em;
}
.client svg { width: 28px; height: 28px; flex: none; }
.client--placeholder { color: #B9AFB2; }
.client-logo { display: flex; align-items: center; }
.marquee { padding-block: 6px; }
.client-logo img { height: calc(clamp(40px, 4.4vw, 56px) * var(--s, 1)); width: auto; max-width: 220px; object-fit: contain; display: block;
  filter: grayscale(1); opacity: .5; transition: filter .3s ease, opacity .3s ease; }
.client-logo:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- consulting ---------- */
.areas { display: grid; gap: 0; border-top: 1px solid var(--line); }
.area { display: grid; gap: 8px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.area h3 { font-size: var(--t-h3); }
.area p { color: var(--muted); max-width: 58ch; }
@media (min-width: 900px) {
  .areas { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
.subhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.subhead h2 { font-size: var(--t-h2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.step { display: grid; gap: 20px; align-items: center; }
.step__tile {
  width: clamp(96px, 14vw, 156px); aspect-ratio: 1; max-width: 100%;
  background: var(--rose); color: var(--bg);
  display: grid; place-items: center;
  font-size: clamp(4rem, 2rem + 6vw, 8rem); line-height: 1; letter-spacing: -0.06em;
  transform: rotate(-8deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  border-radius: 6px;
  overflow: hidden;
}
.step:nth-child(even) .step__tile { transform: rotate(7deg); background: var(--dusty); }
.step:hover .step__tile { transform: rotate(0deg) scale(1.03); }
.step__body { display: grid; gap: 10px; min-width: 0; }
.step__body h3 { font-size: var(--t-h3); }
.step__body p { color: var(--muted); max-width: 56ch; }
@media (min-width: 720px) {
  .step { grid-template-columns: 220px 1fr; gap: 40px; }
  .step__tile { justify-self: center; }
}

/* ---------- products ---------- */
.products { display: grid; gap: 28px; }
.product {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 56px);
  display: grid; gap: 32px;
  min-height: min(640px, 82vh);
  align-content: space-between;
  overflow: hidden;
}
.product--deck { background: var(--night); color: var(--night-ink); }
.product--cart { background: var(--rose); color: #fff; }
.product__top { display: grid; gap: 18px; }
.product__label { font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; opacity: .72; }
.product__name { font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); letter-spacing: -0.045em; line-height: .92; }
.product__ko { font-size: var(--t-lead); opacity: .75; }
.product__desc { max-width: 46ch; font-size: var(--t-lead); line-height: 1.4; }
.product__body { display: grid; gap: 32px; }
.product__body > * { min-width: 0; }
.features { list-style: none; margin: 0; padding: 0; display: grid; }
.features li { padding-block: 12px; border-top: 1px solid currentColor; border-color: rgba(255,255,255,.18); display: flex; gap: 12px; }
.features li::before { content: "↳"; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
}
.chip--solid { background: #fff; color: var(--night); border-color: #fff; }
.product--cart .chip--solid { color: var(--rose-ink); }
@media (min-width: 900px) {
  .product__body { grid-template-columns: 1fr 1.1fr; align-items: end; }
}

/* abstract UI mock */
.mock {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 16px;
  display: grid; gap: 12px; font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.product--cart .mock { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.mock__bar { display: flex; justify-content: space-between; align-items: center; opacity: .8; }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; display: block; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.board__col { display: grid; gap: 6px; align-content: start; }
.board__col b { font-weight: 400; opacity: .7; padding-bottom: 2px; }
.card-s { background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px; display: grid; gap: 4px; }
.card-s i { display: block; height: 5px; border-radius: 3px; background: currentColor; opacity: .3; }
.card-s i:nth-child(2) { width: 60%; }
.card-s--hot { box-shadow: inset 3px 0 0 var(--dusty); }
.rows { display: grid; gap: 6px; }
.row-s { display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 8px; align-items: center; background: rgba(255,255,255,.12); border-radius: 8px; padding: 8px 10px; }
.row-s span:last-child { justify-self: end; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); }
.row-s--head { background: none; opacity: .75; }
.row-s--head span:last-child { background: none; }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--night-ink); }
.contact .label { color: rgba(246, 227, 229, .62); }
.contact__grid { display: grid; gap: 48px; }
.contact__grid > * { min-width: 0; }
.mail { display: grid; gap: 16px; }
.mail__addr { font-size: clamp(1.75rem, 1rem + 3.2vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.mail__addr a { text-decoration: none; }
.mail__addr a:hover { color: var(--dusty); }
.btn-copy {
  justify-self: start; font: inherit; font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--night-ink); background: transparent; border: 1px solid rgba(246,227,229,.35);
  border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer;
}
.btn-copy:hover { border-color: var(--night-ink); }
.contact__note { color: rgba(246, 227, 229, .7); max-width: 40ch; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 227, 229, .72); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--night-ink);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(246,227,229,.22);
  border-radius: 14px; padding: 14px 16px; min-height: 52px; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--dusty); background: rgba(255,255,255,.08); }
.field input::placeholder, .field textarea::placeholder { color: rgba(246,227,229,.38); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 0.875rem; color: rgba(246,227,229,.75); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose); }
.consent details { grid-column: 2; }
.consent summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent details p { margin-top: 8px; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  justify-self: start; font: inherit; font-size: 1rem;
  background: var(--rose); color: #fff; border: 0; border-radius: 999px;
  padding: 16px 30px; min-height: 52px; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.submit:hover { background: #A2465D; transform: translateY(-1px); }
.submit[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.6em; font-size: 0.9375rem; }
.form__status[data-state="ok"] { color: #F3C9D2; }
.form__status[data-state="error"] { color: #FFB4B4; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1.15fr; gap: 72px; }
}

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--night-ink); overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid rgba(246,227,229,.16); padding-block: 24px;
  font-size: var(--t-label); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246,227,229,.62);
}
.footer__meta nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--night-ink); }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 30px; height: 30px; }
.footer__word {
  font-size: clamp(4rem, 19.5vw, 17rem); line-height: .78; letter-spacing: -0.06em;
  text-transform: uppercase; color: var(--dusty); white-space: nowrap; user-select: none;
  padding-bottom: 0.06em; margin-top: 8px;
}

/* ---------- motion ---------- */
.reveal { transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s ease; }
.js .reveal.is-pending { transform: translateY(18px); opacity: .001; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal, .step__tile, .mainnav a { transition: none; }
  .hero__tile img { animation: none; opacity: 1; }
  .hero__ink { display: none; }
  .js .reveal.is-pending { transform: none; opacity: 1; }
}

/* =========================================================
   Portfolio mosaic, case pages, legal pages, iOS apps card
   ========================================================= */
:root { --petal: #EAD3D6; --sand: #F4ECE6; }
mark.todo { background: #FCE3E8; color: var(--rose-ink); padding: 0 .25em; border-radius: 4px; }

/* mosaic */
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 20px;
  min-height: 340px; padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius); text-decoration: none; overflow: hidden;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(43, 35, 38, .55); }
.tile > * { min-width: 0; }
.tile__top { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.tile__visual { display: grid; align-items: center; }
.tile__visual > * { max-width: 100%; }
.tile__name { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; }
.tile__line { opacity: .78; margin-top: 8px; max-width: 40ch; }
.tile__foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.tile__arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .7; transition: transform .35s ease, opacity .35s ease; }
.tile:hover .tile__arrow { transform: rotate(-45deg); opacity: 1; }
.tile--night { background: var(--night); color: var(--night-ink); }
.tile--rose { background: var(--rose); color: #fff; }
.tile--blush { background: var(--blush); color: var(--ink); }
.tile--dusty { background: var(--dusty); color: #fff; }
.tile--petal { background: var(--petal); color: var(--ink); }
.tile--sand { background: var(--sand); color: var(--ink); }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile { grid-column: span 6; }
}
@media (min-width: 1080px) {
  .tile--w7 { grid-column: span 7; min-height: 460px; }
  .tile--w5 { grid-column: span 5; min-height: 460px; }
  .tile--w4 { grid-column: span 4; }
  .tile--w12 { grid-column: span 12; min-height: 280px; }
  .tile--w12 { grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; column-gap: 48px; }
  .tile--w12 .tile__top { grid-column: 1 / -1; }
  .tile--w12 .tile__visual { grid-column: 2; grid-row: 2; }
  .tile--w12 .tile__foot { grid-column: 1; grid-row: 2; align-self: end; }
}

/* extra mocks */
.mock--light { background: rgba(255,255,255,.7); border-color: rgba(30,23,25,.08); color: var(--ink); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal span { aspect-ratio: 1; border-radius: 7px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .6875rem; position: relative; }
.cal span.is-mood::after { content: ""; position: absolute; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cal span.is-today { background: #fff; color: var(--rose-ink); }
.cal b { font-weight: 400; font-size: .6875rem; text-align: center; opacity: .75; }
.phone {
  justify-self: center; width: min(210px, 100%); aspect-ratio: 9 / 16; max-height: 300px;
  border-radius: 30px; border: 6px solid var(--ink); background: #fff; color: var(--ink);
  padding: 18px 12px 12px; display: grid; align-content: start; gap: 8px; font-size: .6875rem;
  box-shadow: 0 24px 40px -24px rgba(43,35,38,.5);
}
.phone__head { display: flex; justify-content: space-between; opacity: .7; }
.phone__item { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: var(--blush); }
.phone__item i { width: 30px; height: 30px; border-radius: 8px; background: var(--petal); display: block; }
.phone__btn { margin-top: 4px; padding: 9px; border-radius: 999px; background: var(--rose); color: #fff; text-align: center; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow span { padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid rgba(30,23,25,.08); }
.flow em { font-style: normal; opacity: .5; }
.soon { display: grid; place-items: center; min-height: 160px; border: 1.5px dashed currentColor; border-radius: 20px; opacity: .55; text-align: center; padding: 16px; }

/* subpage chrome */
.subnav { padding-top: calc(env(safe-area-inset-top, 0px) + 22px); padding-bottom: 8px; }
.subnav ul { list-style: none; margin: 0; padding: 0 0 0 64px; display: flex; flex-wrap: wrap; gap: 4px 22px; min-height: 44px; align-items: center; padding-right: 120px; }
.subnav a { text-decoration: none; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-block: 8px; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 640px) { .subnav ul { padding-left: 0; padding-right: 0; margin-top: 52px; } }

/* case study */
.case { padding-top: clamp(40px, 7vw, 96px); }
.back { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--muted); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; min-height: 44px; }
.back:hover { color: var(--ink); }
.case__head { display: grid; gap: 22px; padding-block: 24px clamp(40px, 6vw, 72px); }
.case__title { font-size: clamp(3rem, 1.4rem + 7vw, 7.5rem); letter-spacing: -0.045em; line-height: .92; }
.case__lead { font-size: var(--t-lead); line-height: 1.4; max-width: 34ch; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.meta div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.meta dt { font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 4px 0 0; }
.case__cover { border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); display: grid; place-items: center; min-height: min(520px, 70vh); overflow: hidden; }
.case__cover > * { width: min(560px, 100%); }
.case__body { display: grid; gap: clamp(48px, 7vw, 88px); padding-block: clamp(64px, 9vw, 120px); }
.case__body .prose { color: var(--ink); }
.case__body .prose p { color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); max-width: 62ch; }
.checklist li { display: grid; grid-template-columns: 2.2em 1fr; padding-block: 14px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(item, decimal-leading-zero); counter-increment: item; color: var(--rose-ink); font-variant-numeric: tabular-nums; }
.checklist { counter-reset: item; }
.next-case { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; padding-block: 36px; border-top: 1px solid var(--line); text-decoration: none; }
.next-case strong { font-weight: 400; font-size: var(--t-h2); letter-spacing: -0.03em; line-height: 1; }
.next-case:hover strong { color: var(--rose); }

/* legal */
.legal { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }
.legal > * { min-width: 0; }
.legal-nav { border: 1px solid var(--line); border-radius: 20px; padding: 6px 18px; background: var(--bg); }
.legal-nav summary { cursor: pointer; padding-block: 12px; font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); list-style: none; display: flex; justify-content: space-between; }
.legal-nav summary::after { content: "+"; }
.legal-nav[open] summary::after { content: "–"; }
.legal-nav summary::-webkit-details-marker { display: none; }
.legal-nav__group { padding-block: 10px 6px; border-top: 1px solid var(--line); }
.legal-nav__group p { font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.legal-nav a { display: block; text-decoration: none; padding: 7px 10px; margin-inline: -10px; border-radius: 10px; font-size: .9375rem; color: var(--muted); }
.legal-nav a:hover { color: var(--ink); background: var(--blush); }
.legal-nav a[aria-current="page"] { color: var(--rose-ink); background: var(--blush); }
.doc { display: grid; gap: 28px; max-width: 72ch; }
.doc__head { display: grid; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; }
.doc__dates { color: var(--muted); font-size: .9375rem; }
.doc__note { background: var(--blush); border-radius: 16px; padding: 14px 18px; font-size: .9375rem; color: var(--rose-ink); }
.doc section { display: grid; gap: 10px; scroll-margin-top: 24px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -0.01em; }
.doc p, .doc li { color: #4A3F42; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 400; color: var(--muted); font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase; background: var(--blush); }
.doc tr:last-child td { border-bottom: 0; }
.doc-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.doc-card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; }
.doc-card:hover { border-color: var(--dusty); background: var(--blush); }
.doc-card span { font-size: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px 1fr; gap: 64px; }
  .legal-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; border: 0; padding: 0; }
  .legal-nav summary { pointer-events: none; }
  .legal-nav summary::after, .legal-nav[open] summary::after { content: none; }
}

/* iOS apps product card */
.product--apps { background: var(--petal); color: var(--ink); }
.product--apps .features li { border-color: rgba(30,23,25,.12); }
.product--apps .chip { border-color: rgba(30,23,25,.25); }
.product--apps .chip--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.apps { display: grid; gap: 12px; }
.app-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.6); text-decoration: none; }
.app-row:hover { background: #fff; }
.app-row i { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 1.25rem; color: #fff; }
.app-row strong { font-weight: 400; display: block; }
.app-row span { color: var(--muted); font-size: .875rem; }
