/* gjb.clockmillbarn.uk — shared design system
   Big type, short copy, the visual carries the story. */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --night: #000000;
  --night-2: #111114;
  --night-3: #1c1c20;
  --line: #d2d2d7;
  --line-dark: #2a2a30;
  --blue: #006fcf;          /* Amex bright blue */
  --blue-deep: #00175a;
  --accent: var(--blue);
  --radius: 22px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { 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; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Global nav (not sticky) ---------- */
.gnav { background: rgba(22,22,23,.92); color: #e8e8ed; font-size: 12px; }
.gnav .wrap { display: flex; align-items: center; height: 44px; gap: 28px; }
.gnav a { color: #e8e8ed; opacity: .82; }
.gnav a:hover { opacity: 1; text-decoration: none; }
.gnav .logo { font-weight: 700; letter-spacing: .02em; font-size: 15px; opacity: 1; display: flex; align-items: center; gap: 8px; }
.gnav .logo svg { width: 22px; height: 22px; }
.gnav .links { display: flex; gap: 28px; margin-left: auto; }
.gnav .menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #e8e8ed; padding: 8px; cursor: pointer; }
@media (max-width: 760px) {
  .gnav .links { display: none; position: absolute; left: 0; right: 0; top: 44px; background: #161617; flex-direction: column; gap: 0; padding: 8px 22px 18px; z-index: 50; }
  .gnav.open .links { display: flex; }
  .gnav .links a { font-size: 22px; font-weight: 600; padding: 10px 0; }
  .gnav .menu-btn { display: block; }
}

/* ---------- Product sub-nav ---------- */
.subnav { position: sticky; top: 0; z-index: 40; background: rgba(251,251,253,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.12); }
.subnav.dark { background: rgba(22,22,23,.8); border-bottom-color: rgba(255,255,255,.14); color: #f5f5f7; }
.subnav .wrap { display: flex; align-items: center; height: 52px; gap: 24px; }
.subnav .title { font-size: 21px; font-weight: 600; letter-spacing: .011em; color: inherit; }
.subnav .title:hover { text-decoration: none; }
.subnav ul { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; font-size: 12px; }
.subnav ul a { color: inherit; opacity: .8; }
.subnav ul a:hover, .subnav ul a.on { opacity: 1; text-decoration: none; }
.subnav ul a.on { font-weight: 600; }
.subnav .cta { background: var(--accent); color: #fff; border-radius: 980px; padding: 4px 12px; font-size: 12px; opacity: 1 !important; }
.subnav .toggle { display: none; margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.subnav .toggle svg { transition: transform .25s; }
/* Mobile: not sticky, links fold into a menu */
@media (max-width: 833px) {
  .subnav { position: relative; }
  .subnav .toggle { display: block; }
  .subnav ul { display: none; position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 22px 16px; background: inherit; backdrop-filter: inherit; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 17px; }
  .subnav.open ul { display: flex; }
  .subnav.open .toggle svg { transform: rotate(180deg); }
  .subnav ul li { border-bottom: 1px solid rgba(128,128,128,.2); }
  .subnav ul a { display: block; padding: 12px 0; }
  .subnav .cta { display: inline-block; margin-top: 12px; padding: 8px 16px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.chapter { padding: 120px 0; overflow: hidden; }
.chapter.tight { padding: 80px 0; }
.dark { background: var(--night); color: #f5f5f7; }
.dark .muted, .dark .lede { color: #a1a1a6; }
.grey { background: var(--paper-2); }
.center { text-align: center; }

.eyebrow { font-size: 21px; font-weight: 600; color: var(--accent); margin: 0 0 8px; letter-spacing: .01em; }
.headline { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.headline.md { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; }
.headline.sm { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.33; color: var(--ink-2); max-width: 680px; margin: 20px 0 0; font-weight: 500; letter-spacing: .009em; }
.center .lede { margin-left: auto; margin-right: auto; }
.lede strong { color: var(--ink); font-weight: 600; }
.dark .lede strong { color: #f5f5f7; }
.muted { color: var(--ink-2); }
.grad { background: linear-gradient(90deg, var(--g1, #006fcf), var(--g2, #00b2ff)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .name { font-size: clamp(56px, 11vw, 120px); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1; }
.hero .tag { font-size: clamp(22px, 3vw, 32px); font-weight: 600; margin: 16px auto 0; max-width: 820px; line-height: 1.2; }
.hero .shot { margin: 56px auto 0; }
.hero .actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 980px; padding: 11px 22px; font-size: 17px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.link-arrow::after { content: " ›"; }

/* ---------- Status strip (auto-updated) ---------- */
.status { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; }
.chip { border-radius: 980px; padding: 5px 12px; background: rgba(128,128,128,.14); color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.chip .dot.amber { background: #ffb000; }
.chip[hidden] { display: none; }

/* ---------- Highlights carousel ---------- */
.highlights { padding: 100px 0 110px; }
.highlights h2 { margin-bottom: 36px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 640px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(22px, calc((100vw - var(--wrap)) / 2 + 22px)) 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: center; border-radius: var(--radius); background: var(--night-2); color: #f5f5f7; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; position: relative; }
.card .cap { padding: 34px 34px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.25; max-width: 460px; }
.card .cap span { color: #a1a1a6; }
.card .art { margin-top: auto; padding: 24px; display: flex; justify-content: center; align-items: flex-end; }
.card.light { background: var(--paper); color: var(--ink); }
.card.light .cap span { color: var(--ink-2); }
.rail-ctrl { display: flex; justify-content: flex-end; gap: 12px; max-width: var(--wrap); margin: 6px auto 0; padding: 0 22px; }
.rail-ctrl button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(128,128,128,.2); color: inherit; font-size: 18px; cursor: pointer; }

/* ---------- Tiles / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile { border-radius: var(--radius); padding: 32px; background: var(--paper); overflow: hidden; position: relative; min-height: 240px; display: flex; flex-direction: column; }
.grey .tile { background: var(--paper); }
.dark .tile { background: var(--night-3); }
.tile.s2 { grid-column: span 2; } .tile.s3 { grid-column: span 3; } .tile.s4 { grid-column: span 4; } .tile.s6 { grid-column: span 6; }
.tile h3 { font-size: 24px; line-height: 1.17; margin: 0; font-weight: 600; }
.tile p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.dark .tile p { color: #a1a1a6; }
.tile .big { font-size: clamp(48px, 6vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.tile .unit { font-size: 24px; font-weight: 600; }
.tile .art { margin-top: auto; padding-top: 24px; }
@media (max-width: 833px) { .bento { grid-template-columns: 1fr 1fr; } .tile.s2, .tile.s3 { grid-column: span 1; } .tile.s4, .tile.s6 { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.s2, .tile.s3, .tile.s4, .tile.s6 { grid-column: span 1; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip .copy { order: 2; }
@media (max-width: 833px) { .split, .split.flip { grid-template-columns: 1fr; gap: 40px; } .split.flip .copy { order: 0; } }

/* ---------- Picker (theme / mode switcher) ---------- */
.picker { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.picker button { border: 0; border-radius: 980px; padding: 9px 18px; font: inherit; font-size: 14px; cursor: pointer; background: rgba(128,128,128,.16); color: inherit; transition: background .2s; }
.picker button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.picker-label { text-align: center; margin-top: 18px; font-size: 14px; color: #a1a1a6; min-height: 1.5em; }

/* ---------- Steps / flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; counter-reset: s; }
.flow > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.flow > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.flow h3 { margin: 6px 0 6px; font-size: 21px; }
.flow p { margin: 0; color: var(--ink-2); font-size: 15px; }
.dark .flow p { color: #a1a1a6; }
@media (max-width: 833px) { .flow { grid-template-columns: 1fr 1fr; } }

/* ---------- Spec sheet ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.dark .specs { border-color: var(--line-dark); }
.specs > div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.dark .specs > div { border-color: var(--line-dark); }
.specs dt { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.dark .specs dt { color: #86868b; }
.specs dd { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; }
@media (max-width: 833px) { .specs { grid-template-columns: 1fr 1fr; } }

/* ---------- Gallery strip ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(22px, calc((100vw - var(--wrap)) / 2 + 22px)) 20px; scrollbar-width: none; margin-top: 48px; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 12px; width: 100%; }
.strip figcaption { font-size: 13px; color: #a1a1a6; margin-top: 10px; }

/* ---------- Device frames ---------- */
.tft { width: min(92vw, 640px); margin: 0 auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.tft .pcb { background: linear-gradient(180deg, #1d3b2a, #12271b); border-radius: 10px; padding: 22px 26px 26px; position: relative; }
.tft .pcb::before { content: ""; position: absolute; top: 7px; left: 50%; width: 46%; height: 8px; transform: translateX(-50%); background: repeating-linear-gradient(90deg, #c9a34a 0 4px, transparent 4px 9px); opacity: .85; border-radius: 1px; }
.tft .bezel { background: #050505; border-radius: 4px; padding: 3.2% 3.2% 3.2%; box-shadow: inset 0 0 0 1px #2b2b2b; }
.tft .glass { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.tft .glass img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.tft .glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.09), transparent 40%); pointer-events: none; }
.tft .label { position: absolute; bottom: 6px; right: 14px; font: 600 9px/1 var(--mono); color: #c9d8cc; opacity: .6; letter-spacing: .1em; }

.phone { width: 300px; aspect-ratio: 9 / 19.3; border-radius: 48px; background: #0b0b0d; padding: 11px; box-shadow: 0 0 0 2px #3a3a3f, 0 50px 80px -20px rgba(0,0,0,.5); margin: 0 auto; position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #0d1117; position: relative; }
.phone .screen::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.phone svg { width: 100%; height: 100%; display: block; }

.laptop { width: min(94vw, 980px); margin: 0 auto; }
.laptop .lid { background: #0b0b0d; border-radius: 18px 18px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: 0 0 0 2px #36363b; }
.laptop .lid .screen { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #0d1117; }
.laptop .lid svg { width: 100%; height: 100%; display: block; }
.laptop .base { height: 18px; background: linear-gradient(180deg, #d4d4d8, #a1a1a8); border-radius: 0 0 14px 14px; width: 112%; margin-left: -6%; position: relative; }
.laptop .base::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16%; height: 7px; background: #8e8e94; border-radius: 0 0 8px 8px; }

.note { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 18px; }
.dark .note { color: #86868b; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Next / footer ---------- */
.next-list { list-style: none; padding: 0; margin: 48px auto 0; max-width: 760px; text-align: left; }
.next-list li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; display: flex; gap: 16px; }
.dark .next-list li { border-color: var(--line-dark); }
.next-list li b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); min-width: 72px; padding-top: 5px; text-transform: uppercase; letter-spacing: .06em; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.more a { border-radius: var(--radius); background: var(--paper); padding: 26px; color: var(--ink); display: block; }
.more a:hover { text-decoration: none; transform: translateY(-2px); }
.more a b { display: block; font-size: 21px; }
.more a span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .more { grid-template-columns: 1fr; } }
footer.site { background: var(--paper-2); color: var(--ink-2); font-size: 12px; padding: 30px 0 40px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
