/* ROBOOSH.ae stylesheet. Tokens are documented in docs/DESIGN.md. */

:root {
  --champagne: #F7F1E8;
  --sand: #EEE4D5;
  --pearl: #FCF9F4;
  --rose: #F1E3DB;
  --gold: #D4B98F;
  --gold-soft: #E6D4B4;
  --bronze: #866A3F;
  --graphite: #2E2E33;
  --graphite-2: #5F5D5B;
  --graphite-3: #8A8785;
  --hairline: rgba(46, 46, 51, .14);
  --hairline-gold: rgba(212, 185, 143, .55);
  --shadow: 0 30px 60px -40px rgba(80, 60, 30, .35);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;

  --radius: 2px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--champagne);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 6.2vw, 84px); }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
h4 { font-size: 22px; }
strong { font-weight: 500; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--graphite); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.prose { max-width: 62ch; }
.prose p { font-size: 18px; }
.muted { color: var(--graphite-2); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--arabic); direction: rtl; unicode-bidi: isolate; font-size: 1.15em; line-height: 1.5; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(247, 241, 232, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-gold);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 0; color: var(--graphite); font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: .16em; line-height: 1; }
.wordmark svg { width: 42px; height: 22px; margin: 0 1px 0 2px; }
.wordmark .tld { font-weight: 300; letter-spacing: .06em; color: var(--bronze); margin-left: 6px; font-size: 16px; align-self: flex-end; transform: translateY(-1px); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { font-size: 15px; font-weight: 400; letter-spacing: .02em; color: var(--graphite-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--graphite); border-color: var(--gold); }
.site-nav .nav-cta { color: var(--graphite); border: 1px solid var(--graphite); padding: 9px 18px; border-radius: var(--radius); }
.site-nav .nav-cta:hover { background: var(--graphite); color: var(--champagne); border-color: var(--graphite); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 400; color: var(--graphite); cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--pearl); border-bottom: 1px solid var(--hairline-gold); padding: 8px var(--gutter) 20px; }
  .site-header.is-open .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; }
  .site-header.is-open .site-nav .nav-cta { margin-top: 14px; text-align: center; border: 1px solid var(--graphite); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: var(--radius); font-family: var(--sans); font-size: 15px; font-weight: 400; letter-spacing: .04em; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--graphite); color: var(--gold); border-color: var(--graphite); }
.btn-primary:hover { background: #1F1F23; color: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--champagne); }
.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--bronze); font-weight: 400; border-bottom: 1px solid var(--hairline-gold); padding-bottom: 2px; transition: border-color .25s var(--ease), color .25s var(--ease); }
.btn-link:hover { color: var(--graphite); border-color: var(--graphite); }
.btn-link svg { width: 14px; height: 14px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(48px, 8vh, 96px); }
.hero .container { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy h1 { max-width: 12ch; margin-bottom: 26px; }
.hero-copy h1 em { font-style: italic; font-weight: 400; }
.hero-copy .lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 44ch; margin-bottom: 36px; color: var(--graphite-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--pearl) 0%, var(--sand) 55%, #E7D7C2 100%); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .ar-line { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; color: var(--bronze); font-size: 22px; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 5 / 4; order: -1; max-height: 44vh; }
  .hero-copy h1 { max-width: none; }
}

/* the hero rings draw in once on load, then stay still */
.rings circle { fill: none; stroke: var(--gold); stroke-width: 1.6; }
.rings .ring-fill { fill: rgba(212, 185, 143, .10); stroke: none; }
.js .rings circle:not(.ring-fill) { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s var(--ease) .2s forwards; }
.js .rings circle.ring-b { animation-delay: .5s; }
.js .hero-copy > * { opacity: 0; transform: translateY(10px); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: .12s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .24s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .rings circle, .js .hero-copy > * { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vh, 120px) 0; }
.section-tint { background: var(--sand); }
.section-rose { background: var(--rose); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vh, 56px); }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--graphite-2); margin: 0; }
.rule { border: 0; border-top: 1px solid var(--hairline-gold); margin: 0; }

/* ---------- collection (home) ---------- */
.collection { display: grid; grid-template-columns: repeat(14, 1fr); gap: 28px; }
.coll-item { position: relative; display: block; }
.coll-item.is-wide { grid-column: 1 / 9; grid-row: 1; }
.coll-item.is-tall { grid-column: 9 / 15; grid-row: 1 / 3; }
.coll-item.is-half { grid-column: 1 / 5; grid-row: 2; }
.coll-item.is-half + .coll-item.is-half { grid-column: 5 / 9; }
.coll-figure { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.is-tall .coll-figure { aspect-ratio: auto; height: calc(100% - 78px); min-height: 420px; }
.is-half .coll-figure { aspect-ratio: 1 / 1; }
.coll-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.coll-item:hover .coll-figure img { transform: scale(1.03); }
.coll-caption { padding: 18px 0 0; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.coll-caption h3 { font-size: 26px; }
.coll-caption span { color: var(--bronze); font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.coll-caption p { margin: 4px 0 0; color: var(--graphite-2); font-size: 15px; }
.coll-figure.is-empty { display: grid; place-items: center; }
.coll-figure.is-empty .plate { font-family: var(--serif); font-size: clamp(48px, 6.5vw, 96px); color: var(--gold); line-height: 1; font-style: italic; text-align: center; padding: 0 16px; }
.is-half .coll-figure.is-empty .plate { font-size: clamp(34px, 3.4vw, 52px); }
@media (max-width: 860px) {
  .collection { grid-template-columns: 1fr; gap: 36px; }
  .coll-item.is-wide, .coll-item.is-tall, .coll-item.is-half, .coll-item.is-half + .coll-item.is-half { grid-column: auto; grid-row: auto; }
  .is-tall .coll-figure, .is-half .coll-figure { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .is-half .coll-figure.is-empty .plate { font-size: clamp(40px, 9vw, 64px); }
}

/* ---------- robot grid ---------- */
.robot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.robot-card { display: block; }
.robot-card figure { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--pearl); display: grid; place-items: center; }
.robot-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.robot-card:hover figure img { transform: scale(1.03); }
.robot-card .plate { display: grid; place-items: center; text-align: center; padding: 24px; width: 100%; height: 100%; background: linear-gradient(160deg, var(--pearl), var(--sand)); }
.robot-card .plate b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; color: var(--graphite); }
.robot-card .plate b small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: var(--bronze); margin-top: 10px; }
.robot-card .plate.is-open b { font-style: italic; color: var(--bronze); }
.robot-card .meta { padding-top: 16px; }
.robot-card .maker { font-size: 13px; letter-spacing: .06em; color: var(--graphite-3); text-transform: none; }
.robot-card h3 { font-size: 26px; margin: 2px 0 6px; }
.robot-card .price { font-size: 15px; color: var(--graphite-2); }
.robot-card .price b { font-weight: 400; color: var(--graphite); }
.status { display: inline-block; font-size: 13px; letter-spacing: .02em; color: var(--bronze); border-bottom: 1px solid var(--hairline-gold); padding-bottom: 1px; margin-top: 8px; }
.status.is-now { color: var(--graphite); border-color: var(--gold); }
@media (max-width: 1000px) { .robot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .robot-grid { grid-template-columns: 1fr; gap: 36px; } }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { font: inherit; font-size: 14px; font-weight: 400; letter-spacing: .02em; background: transparent; color: var(--graphite-2); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 9px 16px; cursor: pointer; transition: all .25s var(--ease); }
.filters button:hover { color: var(--graphite); border-color: var(--graphite-3); }
.filters button[aria-pressed="true"] { background: var(--graphite); color: var(--gold); border-color: var(--graphite); }
.filters-note { color: var(--graphite-2); font-size: 15px; margin: -22px 0 36px; }
.robot-grid:empty + .empty { display: block; }
.empty { display: none; padding: 40px 0; color: var(--graphite-2); }

/* ---------- robot page ---------- */
.robot-hero { padding: clamp(32px, 5vh, 64px) 0 clamp(40px, 6vh, 72px); }
.robot-hero .container { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.robot-hero figure { margin: 0; }
.robot-hero .frame { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--pearl); display: grid; place-items: center; box-shadow: var(--shadow); }
.robot-hero .frame .plate { display: grid; place-items: center; width: 100%; height: 100%; padding: 24px; text-align: center; background: linear-gradient(160deg, var(--pearl), var(--sand)); font-family: var(--serif); font-style: italic; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.05; color: var(--gold); }
.robot-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.robot-hero figcaption { font-size: 13px; color: var(--graphite-3); margin-top: 12px; }
.robot-hero .maker { font-size: 14px; letter-spacing: .06em; color: var(--graphite-3); margin-bottom: 8px; }
.robot-hero h1 { font-size: clamp(40px, 5vw, 66px); margin-bottom: 18px; }
.robot-hero .lede { font-size: 19px; color: var(--graphite-2); max-width: 46ch; }
.price-block { margin: 28px 0 24px; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.price-block div { display: grid; gap: 2px; }
.price-block dt { font-size: 13px; color: var(--graphite-3); letter-spacing: .04em; }
.price-block dd { margin: 0; font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.price-block dd small { font-family: var(--sans); font-size: 14px; color: var(--graphite-2); margin-left: 6px; }
.robot-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.where { margin-top: 28px; }
.where h4 { font-family: var(--sans); font-weight: 400; font-size: 14px; letter-spacing: .04em; color: var(--graphite-3); margin-bottom: 10px; }
.where ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.where a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 9px 14px; font-size: 14px; color: var(--graphite); transition: border-color .25s var(--ease); }
.where a:hover { border-color: var(--graphite); }
.where a svg { width: 14px; height: 14px; }
.robot-body { padding: 0 0 clamp(56px, 9vh, 110px); }
.robot-body .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.robot-body h2 { font-size: 34px; margin-bottom: 18px; }
.does { list-style: none; margin: 0; padding: 0; }
.does li { padding: 14px 0; border-top: 1px solid var(--hairline); font-size: 17px; }
.does li:last-child { border-bottom: 1px solid var(--hairline); }
.reality { background: var(--pearl); border-left: 2px solid var(--gold); padding: 22px 26px; font-size: 17px; }
.reality p:last-child { margin: 0; }
.checked { font-size: 13px; color: var(--graphite-3); margin-top: 20px; }
.related { padding: clamp(48px, 8vh, 96px) 0; }
.related h2 { font-size: 34px; margin-bottom: 32px; }
@media (max-width: 860px) {
  .robot-hero .container, .robot-body .container { grid-template-columns: 1fr; }
}

/* ---------- journal ---------- */
.journal-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px 32px; }
.journal-card { display: block; border-top: 1px solid var(--hairline-gold); padding-top: 22px; }
.journal-card .kicker { font-size: 13px; color: var(--graphite-3); letter-spacing: .04em; }
.journal-card h3 { font-size: 28px; margin: 8px 0 10px; }
.journal-card p { color: var(--graphite-2); font-size: 16px; margin: 0; }
.journal-card:hover h3 { color: var(--bronze); }
@media (max-width: 900px) { .journal-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .journal-list { grid-template-columns: 1fr; } }

.article { padding: clamp(40px, 6vh, 80px) 0 clamp(64px, 9vh, 120px); }
.article header { max-width: 62ch; margin-bottom: 40px; }
.article header h1 { font-size: clamp(38px, 4.6vw, 62px); margin: 10px 0 18px; }
.article header .kicker { font-size: 14px; color: var(--graphite-3); letter-spacing: .04em; }
.article header .lede { font-size: 20px; color: var(--graphite-2); }
.article .prose h2 { font-size: 32px; margin: 44px 0 14px; }
.article .prose p { font-size: 18px; }
.article .prose ul { padding-left: 20px; }
.article .prose li { margin-bottom: 8px; }
.article .prose a { color: var(--bronze); border-bottom: 1px solid var(--hairline-gold); }
.article .prose blockquote { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline-gold); font-size: 15px; color: var(--graphite-2); }

/* ---------- seen in the UAE ---------- */
.seen { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.seen article { padding: 22px 0; border-top: 1px solid var(--hairline); }
.seen h3 { font-size: 24px; margin-bottom: 6px; }
.seen p { margin: 0; color: var(--graphite-2); font-size: 16px; }
@media (max-width: 760px) { .seen { grid-template-columns: 1fr; } }

/* ---------- atelier band ---------- */
.atelier .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.atelier h2 { margin-bottom: 14px; }
.atelier p { color: var(--graphite-2); font-size: 18px; }
.atelier .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.atelier .swatches span { aspect-ratio: 3 / 4; border-radius: var(--radius); display: block; }
@media (max-width: 760px) { .atelier .container { grid-template-columns: 1fr; } }

/* ---------- signup ---------- */
.signup .container { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.signup h2 { margin-bottom: 14px; }
.signup p { color: var(--graphite-2); font-size: 18px; }
.form { display: grid; gap: 14px; }
.form label { font-size: 14px; color: var(--graphite-2); }
.form .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form input[type="email"] { width: 100%; font: inherit; font-size: 16px; font-weight: 300; padding: 14px 16px; color: var(--graphite); background: var(--pearl); border: 1px solid var(--hairline); border-radius: var(--radius); }
.form input::placeholder { color: var(--graphite-3); }
.form input:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(212, 185, 143, .35); }
.form .note { font-size: 13px; color: var(--graphite-3); margin: 0; }
.form .status { display: block; margin: 0; border: 0; font-size: 15px; min-height: 1.4em; color: var(--graphite-2); }
.form .status.is-error { color: #8C3B2E; }
.form .status.is-success { color: var(--graphite); }
@media (max-width: 860px) { .signup .container { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ---------- family strip ---------- */
.family { padding: 40px 0; border-top: 1px solid var(--hairline-gold); }
.family .container { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; justify-content: space-between; }
.family p { margin: 0; font-size: 15px; color: var(--graphite-2); }
.family nav { display: flex; gap: 28px; }
.family nav a { font-size: 15px; color: var(--bronze); border-bottom: 1px solid var(--hairline-gold); }
.family nav a:hover { color: var(--graphite); border-color: var(--graphite); }

/* ---------- footer ---------- */
.site-footer { background: var(--graphite); color: rgba(247, 241, 232, .78); padding: clamp(48px, 7vh, 80px) 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(212, 185, 143, .25); }
.site-footer .wordmark { color: var(--champagne); }
.site-footer .wordmark .tld { color: var(--gold); }
.site-footer .wordmark svg circle { stroke: var(--gold); }
.site-footer .tag { margin: 18px 0 0; max-width: 34ch; font-size: 15px; }
.site-footer .tag .ar { display: block; color: var(--gold); margin-top: 8px; }
.site-footer h4 { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .06em; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a { font-size: 15px; transition: color .25s var(--ease); }
.site-footer li a:hover { color: var(--champagne); }
.site-footer .bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: rgba(247, 241, 232, .5); }
.site-footer .bottom a { color: inherit; }
.site-footer .bottom a:hover { color: var(--champagne); }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- plain pages ---------- */
.page { padding: clamp(40px, 6vh, 80px) 0 clamp(64px, 9vh, 120px); }
.page h1 { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: 20px; }
.page .prose h2 { font-size: 30px; margin: 36px 0 12px; }
.page .prose a { color: var(--bronze); border-bottom: 1px solid var(--hairline-gold); }
