:root {
  --bg: #0D0D0E;
  --raised: #1A1A1C;
  --text: #F4F4F6;
  --muted: #A0A0A8;
  --line: rgba(255, 255, 255, 0.1);
  --mark: #F24E8E;
  --mark-fill: #C81B62;
  --paper: #F3F0EA;
  --ink: #141416;
  --gutter: clamp(20px, 5vw, 48px);
  --wide: 1120px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--mark); }
a:focus-visible, .pill:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 999px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.wordmark {
  display: inline-flex; align-items: center;
  font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
  text-decoration: none; color: var(--text);
}
.wordmark .seam { display: inline-block; width: 1.5px; height: 1.55em; margin: 0 0.13em; background: var(--mark); }

.site-nav { display: flex; gap: clamp(16px, 4vw, 30px); }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Buttons */

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--text); color: var(--ink);
  border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none;
  text-align: center;
}
.pill.is-soon { cursor: default; user-select: none; }
.pill.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); }
.pill.ghost:hover { border-color: rgba(255, 255, 255, 0.5); }

/* Hero */

.hero { padding: clamp(56px, 10vw, 120px) 0 0; }
.hero h1 { font-size: clamp(40px, 8.4vw, 92px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 26px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.hero .cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero .cta small { color: var(--muted); font-size: 15px; }

/* The strip: one canvas cut into slides */

.strip-outer { margin-top: clamp(48px, 8vw, 88px); }
.strip-scroll {
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-inline: max(var(--gutter), calc((100vw - var(--wide)) / 2));
}
.strip-scroll::-webkit-scrollbar { display: none; }
.strip { --w: clamp(208px, 24vw, 300px); position: relative; display: flex; width: max-content; height: calc(var(--w) * 1.25); border-radius: 6px; overflow: hidden; }
.strip > .piece { flex: none; width: var(--w); height: 100%; min-width: 0; position: relative; overflow: hidden; background: var(--raised); }
.strip > .piece.x2 { width: calc(var(--w) * 2); }
.strip .piece img { width: 100%; height: 100%; object-fit: cover; }
.strip .piece.shade::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); }
.strip .over { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--w) * 0.1); color: #fff; }
.strip .over.center { justify-content: center; align-items: center; text-align: center; padding: 6%; }
.strip .big-ar { font-size: calc(var(--w) * 0.21); line-height: 1.5; font-weight: 500; white-space: nowrap; }
.strip .handle { position: absolute; top: 7%; inset-inline-start: 4.5%; z-index: 1; font-size: calc(var(--w) * 0.045); color: rgba(255, 255, 255, 0.86); }
.strip > .paper { background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--w) * 0.11) calc(var(--w) * 0.1); }
.strip .paper .num { font-size: calc(var(--w) * 0.2); line-height: 1; font-weight: 400; color: var(--mark-fill); }
.strip .paper .ar { font-size: calc(var(--w) * 0.1); line-height: 1.75; font-weight: 500; white-space: nowrap; }
.strip .paper .en { margin-top: 0.5em; font-size: calc(var(--w) * 0.052); line-height: 1.5; color: #5c5c64; }
.strip .cap { font-size: calc(var(--w) * 0.075); line-height: 1.3; font-weight: 500; }
.seams { position: absolute; inset: 0; display: flex; pointer-events: none; z-index: 2; }
.seams i { flex: none; width: var(--w); box-shadow: inset -1px 0 0 var(--mark); }
.seams i:last-child { box-shadow: none; }
.ticks { display: flex; width: max-content; margin-top: 12px; color: var(--muted); font-size: 13px; }
.ticks span { flex: none; width: clamp(208px, 24vw, 300px); }

/* Sections */

.section { padding: clamp(72px, 12vw, 148px) 0 0; }
.section h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 400; letter-spacing: -0.03em; }
.section .body { margin-top: 20px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 30em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }

.card { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; }

/* Idea box */
.idea { padding: clamp(22px, 3vw, 32px); }
.idea .q { color: var(--muted); font-size: 15px; }
.idea .typed { margin-top: 14px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; font-weight: 400; }
.idea .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-inline-start: 4px; background: var(--mark); vertical-align: -0.15em; }
.idea .pill { margin-top: 26px; min-height: 46px; font-size: 15px; cursor: default; }
.outline { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.outline li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.outline li:last-child { border-bottom: 0; padding-bottom: 0; }
.outline li span:last-child { color: var(--muted); text-align: end; }

/* Arabic specimen */
.specimen { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(28px, 4.4vw, 52px); }
.specimen .ar { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.7; font-weight: 500; }
.specimen .en { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, 0.14); font-size: clamp(17px, 1.8vw, 21px); color: #45454c; }

/* One photograph opened into three slides */
.cut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 14px); }
.cut div { aspect-ratio: 4 / 5; border-radius: 6px; background-image: url("/assets/coast-0.jpg"); background-size: 300% 100%; background-repeat: no-repeat; }
.cut div:nth-child(1) { background-position: 0% 50%; }
.cut div:nth-child(2) { background-position: 50% 50%; }
.cut div:nth-child(3) { background-position: 100% 50%; }
.cut-note { margin-top: 14px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

/* Loose prints */
.prints { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; padding: 12px 0; }
.print { background: var(--paper); padding: 3.5%; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.print:nth-child(1) { grid-column: 1 / span 3; transform: rotate(-3.2deg); z-index: 1; }
.print:nth-child(2) { grid-column: 4 / span 3; transform: rotate(2.4deg) translateY(9%); }
.print:nth-child(3) { grid-column: 2 / span 3; transform: rotate(1.6deg) translateY(-14%); z-index: 2; }
.print:nth-child(4) { grid-column: 5 / span 2; transform: rotate(-4deg) translateY(-2%); z-index: 3; }

/* Private */
.private { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(72px, 12vw, 148px); }
.private .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.private h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 400; letter-spacing: -0.03em; }
.private ul { list-style: none; margin: 0; padding: 0; }
.private li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.private li:first-child { padding-top: 0; }
.private li:last-child { border-bottom: 0; padding-bottom: 0; }
.private li strong { color: var(--text); font-weight: 500; }

/* Pricing */
.plans { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.plan { padding: clamp(26px, 4vw, 44px); }
.plan + .plan { border-inline-start: 1px solid var(--mark); }
.plan h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.plan .price { margin-top: 18px; font-size: clamp(34px, 4.4vw, 48px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.plan .price small { font-size: 17px; color: var(--muted); letter-spacing: 0; }
.plan .alt { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 3.2em; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.plan li:last-child { border-bottom: 0; }
.fine { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 72ch; }

.closing { padding: clamp(80px, 13vw, 160px) 0 clamp(72px, 11vw, 132px); text-align: center; }
.closing h2 { font-size: clamp(32px, 6vw, 68px); font-weight: 400; letter-spacing: -0.035em; }
.closing .pill { margin-top: 34px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Documents: legal, help */

.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.doc .col { max-width: 72ch; }
.doc h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 400; letter-spacing: -0.03em; }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc .intro { margin-top: 28px; font-size: 19px; color: var(--text); }
.doc h2 { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 25px; letter-spacing: -0.02em; }
.doc h3 { margin-top: 2em; font-size: 18px; letter-spacing: -0.01em; line-height: 1.35; }
.doc p, .doc ul, .doc ol { margin-top: 1em; color: #C9C9CF; }
.doc ul, .doc ol { padding-inline-start: 1.25em; }
.doc li { margin-top: 0.55em; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { color: var(--text); }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--raised); padding: 2px 6px; border-radius: 6px; }

.table-scroll { margin-top: 1.4em; overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: start; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); color: #C9C9CF; }
.doc th { font-weight: 500; color: var(--text); background: var(--raised); }
.doc tr:last-child td { border-bottom: 0; }

.contact { margin-top: 2.4em; padding: clamp(24px, 4vw, 36px); }
.contact h2 { margin: 0; padding: 0; border: 0; }
.contact .mail { display: inline-block; margin-top: 10px; font-size: clamp(22px, 4.6vw, 32px); letter-spacing: -0.02em; color: var(--text); text-decoration-color: var(--mark); overflow-wrap: anywhere; }
.contact p { color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 2.4em; margin-top: 0.9em; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0.1em; width: 1.6em; height: 1.6em; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0.85em; color: var(--text); }

.notfound { min-height: 56vh; display: grid; align-content: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(40px, 8vw, 84px); font-weight: 400; letter-spacing: -0.035em; }
.notfound p { margin-top: 18px; color: var(--muted); max-width: 30em; }
.notfound .pill { margin-top: 30px; justify-self: start; }

/* Narrow */

@media (max-width: 820px) {
  .split, .private .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--mark); }
  .plan .alt { min-height: 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 60px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
  .hero .cta .pill { width: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
