:root {
  --bg: #F7F4F0;
  --ink: #1C1816;
  --ink-2: #5E5752;
  --line: #E4DED7;
  --burgundy: #5E1A26;
  --burgundy-2: #7A2533;
  --cream: #EFE8E0;
  --act: #2F48E8;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 80px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--act); }
a[aria-disabled="true"] { color: var(--ink-2) !important; text-decoration: none; cursor: default; }
:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 12px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 14px var(--pad); background: rgba(247,244,240,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.back { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.who { margin: 0 auto 0 0; font-size: 14px; }
.who a { color: var(--ink); font-weight: 800; text-decoration: none; }
.who span { color: var(--ink-2); }
.bar ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.bar nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
section[id], div[id] { scroll-margin-top: 140px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 0; padding: 14px 22px; font: 700 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:hover { transform: translateY(-1px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(32px, 6vw, 88px) var(--pad) 40px; }
.kicker { color: var(--burgundy-2); margin: 0 0 14px; }
.hero h1 { font-weight: 800; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; }
.sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 46ch; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; border-radius: 0; overflow: hidden; background: var(--burgundy); aspect-ratio: 1 / .9; display: grid; place-items: center; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(1.1); }
.phones { position: relative; display: flex; gap: 3%; align-items: center; justify-content: center; width: 92%; }
/* Device frame: generated with ChatGPT image generation (assets/iphone18pm-frame.webp, 700x1434, screen inset 27/21/26/22 px) */
.phone { position: relative; margin: 0; width: 30%; aspect-ratio: 690 / 1435; background: none; filter: drop-shadow(0 28px 26px rgba(0,0,0,.38)) drop-shadow(0 6px 8px rgba(0,0,0,.22)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.phone img { position: absolute; top: 1.324%; left: 3.375%; width: 93.556%; height: 97.352%; max-width: none; object-fit: cover; object-position: top; border-radius: 13% / 6%; background: #fff; }
.phone::after { content: ""; position: absolute; inset: 0; background: url(assets/iphone18pm-frame.webp) center / 100% 100% no-repeat; pointer-events: none; }
.tilt-l { transform: rotate(-5deg) translateY(16px); }
.tilt-r { transform: rotate(5deg) translateY(16px); }
.lift { transform: translateY(-10px) scale(1.06); z-index: 2; }
.hero-visual:hover .tilt-l { transform: rotate(-8deg) translate(-8px, 10px); }
.hero-visual:hover .tilt-r { transform: rotate(8deg) translate(8px, 10px); }

/* Details */
.details { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 var(--pad); padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); gap: 18px; }
.details dt { color: var(--ink-2); margin-bottom: 6px; }
.details dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; }

/* Two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 7vw, 100px) var(--pad); }
.two h2, .feature h2, .proto h2, .process h2, .brand h2, .shipped h2 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 16px; }
.two h2 { font-size: clamp(28px, 2.6vw, 38px); }
.two p { color: var(--ink-2); margin: 0 0 14px; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 30px var(--pad) 70px; }
.feature.flip .f-text { order: 2; }
.num { color: var(--burgundy-2); margin: 0 0 10px; }
.feature h2 { font-size: clamp(26px, 2.6vw, 38px); }
.feature p { color: var(--ink-2); max-width: 44ch; }
.panel { border-radius: 0; padding: clamp(24px, 4vw, 48px); display: flex; gap: 4%; justify-content: center; align-items: center; min-height: 420px; }
.panel .phone { width: 28%; max-width: 230px; }
.panel .phone:nth-child(2) { transform: translateY(-16px); }
.panel:hover .phone { transform: translateY(-6px); }
.panel:hover .phone:nth-child(2) { transform: translateY(-24px); }
.burgundy { background: radial-gradient(120% 90% at 30% 10%, var(--burgundy-2), var(--burgundy)); }
.cream { background: var(--cream); }
.ink { background: radial-gradient(120% 90% at 70% 10%, #3A332F, var(--ink)); }

/* Prototype */
.proto { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 6vw, 90px); align-items: center; margin: 30px var(--pad) 0; padding: clamp(32px, 5vw, 64px); border-radius: 0; background: var(--ink); color: #fff; }
.proto .kicker { color: #E9B7BF; }
.proto h2 { font-size: clamp(30px, 3vw, 46px); }
.proto p { color: #CFC8C2; max-width: 40ch; }
.demo { list-style: none; padding: 0; margin: 18px 0; color: #E6E0DA; display: grid; gap: 8px; text-transform: none; letter-spacing: .02em; font-size: 13px; }
.demo b { color: #fff; }
.text-link { color: #fff; font-weight: 700; }
.device { position: relative; width: 300px; aspect-ratio: 690 / 1435; filter: drop-shadow(0 36px 34px rgba(0,0,0,.55)); }
.device::after { content: ""; position: absolute; inset: 0; background: url(assets/iphone18pm-frame.webp) center / 100% 100% no-repeat; pointer-events: none; z-index: 2; }
.device-screen { position: absolute; top: 1.324%; left: 3.375%; width: 93.556%; height: 97.352%; border-radius: 13% / 6%; overflow: hidden; background: #fff; }
.device-screen .poster { width: 100%; height: 100%; object-fit: cover; filter: blur(1px) brightness(.9); }
.device-screen .load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.device-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Process */
.process { padding: clamp(60px, 8vw, 120px) var(--pad) 40px; }
.process > h2 { font-size: clamp(30px, 3vw, 46px); }
.timeline { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: s; }
.timeline li { padding: 18px 18px 0 0; position: relative; }
.timeline li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -13px; left: 0; background: var(--bg); padding-right: 8px; font: 500 12px var(--mono); color: var(--burgundy-2); }
.timeline .mono { color: var(--ink-2); margin: 6px 0 6px; font-size: 11px; }
.timeline h3 { font-size: 19px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.timeline p:last-child { color: var(--ink-2); font-size: 15px; margin: 0; }
.ai { margin-top: 64px; padding: clamp(24px, 4vw, 44px); border-radius: 0; background: var(--cream); }
.ai h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; margin: 0 0 18px; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ai-grid .mono { color: var(--burgundy-2); margin: 0 0 6px; }
.ai-grid p:last-child { margin: 0; color: var(--ink-2); font-size: 15px; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.photo-row img { border-radius: 0; aspect-ratio: 1; object-fit: cover; }

/* Brand */
.brand { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(50px, 7vw, 100px) var(--pad); }
.brand h2 { font-size: clamp(28px, 2.6vw, 38px); }
.brand p { color: var(--ink-2); }
.brand-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.logo-tile, .type-tile { border-radius: 0; min-height: 170px; display: grid; place-items: center; padding: 24px; }
.logo-tile { background: var(--burgundy); }
.logo-tile img { filter: brightness(0) invert(1); width: 70%; }
.type-tile { background: #fff; border: 1px solid var(--line); text-align: center; gap: 10px; }
.type-tile [lang="ar"] { font: 300 34px/1.2 "Readex Pro", sans-serif; }
.type-tile .mono { color: var(--ink-2); font-size: 10px; }
.swatches { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatches li { background: var(--c); border: 1px solid var(--line); border-radius: 0; height: 96px; padding: 12px; display: flex; align-items: flex-end; }
.swatches .mono { font-size: 10px; color: var(--ink); }
.swatches .dark .mono { color: #fff; }

/* Shipped */
.shipped { margin: 0 var(--pad); padding: 50px 0 40px; border-top: 1px solid var(--ink); }
.shipped h2 { font-size: clamp(28px, 2.6vw, 38px); }
.shipped > p { color: var(--ink-2); max-width: 52ch; }
.ship-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ship-list li { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 20px; display: grid; gap: 6px; }
.ship-list b { font-size: 18px; }
.ship-list span { color: var(--ink-2); font-size: 15px; }

.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px var(--pad) 70px; font-weight: 700; }
.next a { color: var(--ink); text-decoration: none; }

/* Reveal on scroll */
.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.has-js .reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero, .feature, .brand, .proto { grid-template-columns: 1fr; }
  .feature.flip .f-text { order: 0; }
  .details { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .ai-grid, .ship-list { grid-template-columns: 1fr 1fr; }
  .proto-device { justify-self: center; }
  .bar { position: relative; gap: 8px 20px; }
  .bar nav { width: 100%; }
  .bar ul { flex-wrap: wrap; gap: 0 20px; }
  .bar nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 560px) {
  .panel { min-height: 0; padding: 22px 14px; }
  .panel .phone { width: 31%; }
  .timeline, .ai-grid, .ship-list, .photo-row { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: repeat(3, 1fr); }
  .device { width: min(300px, 82vw); }
  .brand-board { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .has-js .reveal { opacity: 1; transform: none; }
  .phone, .panel .phone:nth-child(2), .hero-visual:hover .phone, .panel:hover .phone, .panel:hover .phone:nth-child(2) { transform: none; }
  .btn:hover { transform: none; }
}
