/* No pure black anywhere on the page (owner): #111111 throughout.
   Section 2's ring-page film on the homepage: the draft's stage rules (hifi/morph-draft.css), without its own
   section layout, which the showcase's section and grid replace. The section carries the class .md for the
   script's hooks and the frame-shadow variable. */
/* The switch, knocked right back (owner, 14 Oct: "far too much like a big button … the same similar principles
   as the chevrons in the gallery … very light, shouldn't pop out … massively de-emphasised"): two quiet words,
   the chosen one in ink with a fine underline, no surface, no shadow; each still a 44px target. Was: the light
   ghost button's surface with the chosen half in black. */
.md-switch { display: flex; gap: 18px; margin-left: 10px; }
.md-switch button {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 400 0.875rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: underline 1px transparent;
  text-underline-offset: 6px;
  cursor: pointer;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.md-switch button[aria-pressed='true'] { color: var(--ink); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .md-switch button[aria-pressed='false']:hover { color: var(--ink); } }
.md-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ------------------------------------------------------------ the stage */
.md-space { position: relative; display: grid; place-items: center; min-height: 0; }
/* Turned from its left edge, so the right side swings towards the reader and runs off the page. */
.md-tilt { will-change: transform; transform-origin: 0% 50%; transform: perspective(1800px) rotateX(5deg) rotateY(-7deg); }
@media (min-width: 1024px) { .md-space { justify-items: start; } }
/* 1100 × 720 design px, scaled to fit by the script. Everything on it is absolutely placed. */
.md-stage { position: relative; width: 1100px; height: 720px; transform-origin: 0 0; pointer-events: none; }
/* The camera, pushing in on the phone about the stage's centre (morph-draft.js). */
.md-camera { position: absolute; inset: 0; transform-origin: 550px 360px; }
.md-camera > * { position: absolute; left: 0; top: 0; }

/* Depth of field towards the screen's right edge, where it runs off the page: stacked backdrop blurs, each
   masked to fade towards the sharp left, so the softness grows gradually to the edge. */
.md-dof i {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(var(--b));
  backdrop-filter: blur(var(--b));
  -webkit-mask-image: linear-gradient(to left, #000, transparent var(--to));
  mask-image: linear-gradient(to left, #000, transparent var(--to));
}

/* On the light ground the shadows are the hi-fi page's: a hairline edge and a long, pale fall. */
.md-ground { border-radius: 50%; background: radial-gradient(closest-side, oklch(0 0 0 / 0.16), transparent); filter: blur(14px); }
/* One family of frames: no bezels, a hairline edge and the same soft shadow on every screen (owner, 14 Oct:
   "harmonise the frame of the web browser, desktop, and mobile device"). */
.md { --md-frame: 0 0 0 1px oklch(0 0 0 / 0.08), 0 44px 88px -40px oklch(0 0 0 / 0.3), 0 14px 28px -16px oklch(0 0 0 / 0.12); }
.md-device { box-shadow: var(--md-frame); }
.md-chrome { display: flex; align-items: center; justify-content: center; height: 26px; font: 500 9px/1 -apple-system, "Helvetica Neue", sans-serif; color: #7a7a7a; }
.md-chrome__dots { position: absolute; left: 12px; top: 9px; display: flex; gap: 5px; }
.md-chrome__dots i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d4; }
.md-chrome__url { padding: 4px 70px; border-radius: 5px; background: #e0e0e0; }
.md-screen { background: #fff; }

.md-piece { overflow: hidden; background: #fff; }
.md-gallery { background: #f8f8f8; }
.md-bandshadow { background: #f8f8f8; box-shadow: 0 1px 0 oklch(0 0 0 / 0.04), 0 6px 14px -8px oklch(0 0 0 / 0.12); opacity: 0; } /* as the ring page's, lighter (owner, 14 Oct: "much more subtle") */
.md-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* The gallery's pictures, stacked; each on the films' own ground, so a fade never shows a box. */
.g-media { position: absolute; inset: 0; background: #f8f8f8; }
.g-media video, .g-media img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.g-ring video, .g-top img { left: 0; top: 6%; width: 100%; height: 88%; }
/* The diamond's film between its name and its tabs, with air both sides at either size of the gallery
   (owner: "the diamond grading … is too low and almost touching the stone"): fixed distances in each device's
   px, not shares of the gallery, which squeezed the gap as the phone's gallery contracted. */
.g-stone video { left: 0; top: 22%; width: 100%; height: 50%; }
.md-gallery[data-dev='D'] .g-stone video { top: calc(80px * 0.6944); height: calc(100% - 196px * 0.6944); }
.md-gallery[data-dev='P'] .g-stone video { top: calc(84px * 0.7109); height: calc(100% - 152px * 0.7109); }
.g-top, .g-stone { opacity: 0; }

/* The gallery's controls, one set per device, sized by that device's --k. Bare ink (owner, 14 Oct). */
.g-ui { position: absolute; inset: 0; color: oklch(0.24 0.02 190); font-family: Karla, sans-serif; }
.g-caption { position: absolute; top: calc(14px * var(--k)); left: calc(16px * var(--k)); margin: 0; font-size: calc(11px * var(--k)); color: #5b6770; }
.g-chev { position: absolute; top: calc(50% - 22px * var(--k)); width: calc(44px * var(--k)); height: calc(44px * var(--k)); display: grid; place-items: center; }
.g-chev svg, .g-pager svg { width: calc(20px * var(--k)); height: calc(20px * var(--k)); }
.g-chev--prev { left: calc(4px * var(--k)); }
.g-chev--next { right: calc(4px * var(--k)); }
.g-pager { position: absolute; left: 0; right: 0; bottom: calc(12px * var(--k)); display: flex; align-items: center; justify-content: center; height: calc(44px * var(--k)); gap: calc(12px * var(--k)); }
.g-pager span { display: flex; gap: calc(7px * var(--k)); }
.g-pager i { width: calc(6px * var(--k)); height: calc(6px * var(--k)); border-radius: 50%; background: oklch(0.24 0.02 190 / 0.25); }
.g-pager i:first-child { background: oklch(0.24 0.02 190); }
.g-stoneui { position: absolute; inset: 0; opacity: 0; }
.g-line { position: absolute; top: calc(16px * var(--k)); left: 0; right: 0; margin: 0; text-align: center; }
.g-line strong { display: block; font: 400 calc(20px * var(--k)) / 1.3 "DM Serif Display", serif; }
.g-line span { font-size: calc(13px * var(--k)); color: #5b6770; }
.g-tabs {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabs-at) * var(--k));
  translate: -50% 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: calc(2px * var(--k));
  padding: calc(3px * var(--k));
  border-radius: 999px;
  background: oklch(1 0 0 / 0.88);
  box-shadow: 0 1px 4px oklch(0 0 0 / 0.08);
}
.g-tabs span { display: grid; place-items: center; height: calc(32px * var(--k)); padding: 0 calc(14px * var(--k)); border-radius: 999px; font-size: calc(13px * var(--k)); font-weight: 600; line-height: 1; color: #5b6770; white-space: nowrap; }
.g-tabs span:first-child { background: #fff; color: oklch(0.24 0.02 190); box-shadow: inset 0 0 0 1px oklch(0.24 0.02 190); }

.md-dim { background: #111111; opacity: 0; }
.md-sheet { position: absolute; left: 0; right: 0; bottom: 0; transform-origin: 0 0; }
.md-dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: oklch(0.2 0 0 / 0.14); box-shadow: 0 0 0 2px oklch(1 0 0 / 0.9), 0 2px 6px oklch(0 0 0 / 0.12); opacity: 0; }

/* The phones dealt beside the main one: frameless like it, each its own page scrolling under its pinned header,
   and its own shadow on the floor. */
.md-back { transform-origin: 50% 50%; opacity: 0; }
.md-back__body { position: absolute; inset: 0; overflow: hidden; border-radius: 38px; background: #fff; box-shadow: var(--md-frame); }
.md-back__page { position: absolute; left: 0; width: 390px; overflow: hidden; }
.md-back__img { display: block; width: 390px; }
.md-back__head { position: absolute; left: 0; width: 390px; height: 57px; }
.md-back__ground { position: absolute; left: 8%; right: 8%; bottom: -54px; height: 44px; border-radius: 50%; background: radial-gradient(closest-side, oklch(0 0 0 / 0.14), transparent); filter: blur(12px); }

/* The phone's status bar and home indicator, over its screen's curved corners. */
.md-phonechrome { overflow: hidden; border-radius: 34px; opacity: 0; }
.o-status { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 40px; background: #fff; font: 600 16px/1 -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif; color: #111111; }
.o-status__icons { display: flex; align-items: center; gap: 6px; }
.o-status__icons svg:first-child { width: 18px; height: 12px; }
.o-status__icons svg:last-child { width: 26px; height: 12px; }
.o-home { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: grid; place-items: center; background: #fff; }
.o-home i { width: 134px; height: 5px; border-radius: 3px; background: #111; }

/* ------------------------------------------------------------ Orla's page, at real size */
.o { --o-ink: oklch(0.24 0.02 190); --o-mute: #5b6770; --o-ask: #50606e; --o-rule: #e2e7e7; --o-green: #2a6b57; box-sizing: border-box; color: var(--o-ink); font: 400 14px/1.45 Karla, "Helvetica Neue", Arial, sans-serif; }
.o *, .o *::before { box-sizing: border-box; }
.o p { margin: 0; }
.o-serif { font-family: "DM Serif Display", serif; font-weight: 400; }
.o-caps { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; line-height: 14px; text-transform: uppercase; color: var(--o-mute); }

/* The header: Orla 1.4 — white, the wordmark and links left, the cart alone at the right. */
.o-head { display: flex; align-items: center; height: 100%; border-bottom: 1px solid var(--o-rule); background: #fff; }
.o-head--D { gap: 40px; padding-inline: 40px; height: 74px; }
.o-head--S { gap: 16px; padding-inline: 16px; height: 57px; }
.o-mark { display: inline-flex; align-items: center; gap: 0.6rem; font: 400 25.6px/1 "DM Serif Display", serif; letter-spacing: 0.34em; }
.o-head--S .o-mark { font-size: 22px; }
.o-mark svg { width: 26px; height: 26px; }
.o-nav { display: flex; gap: 30px; margin-left: 56px; font-size: 15px; letter-spacing: 0.01em; }
.o-cart { margin-left: auto; width: 20px; height: 20px; }
.o-menu { width: 20px; height: 20px; }

/* The column. */
.o-col { display: flex; flex-direction: column; gap: 32px; }
.o-col--D { width: 440px; margin-left: 54px; padding: 40px 0 48px; }
.o-col--S { padding: 24px 16px 48px; }
.o-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.o-title { font-size: 34px; line-height: 1.1; }
.o-col--S .o-title { font-size: 28px; }
.o-share { flex: none; display: grid; place-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--o-rule); border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.o-sub { margin-top: 6px !important; }
.o-price { display: grid; }
.o-ships { justify-self: end; font-size: 12px; color: var(--o-mute); }
.o-total { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 0 12px; }
.o-sum { font-size: 28px; line-height: 1.2; }
.o-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; padding: 6px 0; }
.o-total + .o-row { padding-top: 14px; border-top: 1px solid var(--o-rule); } /* one rule above the parts, none between (Paper, 13 Oct) */
.o-row b { font-weight: 700; }
.o-row span { color: var(--o-mute); }
.o-note { padding-top: 10px; border-top: 1px solid var(--o-rule); font-size: 12px; color: var(--o-mute); }
.o-q { display: grid; gap: 14px; }
.o-ask { font-size: 22px; line-height: 1.2; }
.o-ask span { color: var(--o-ask); }
.o-tiles { display: grid; gap: 8px; }
.o-tiles--shape { grid-template-columns: repeat(3, 1fr); }
.o-col--D .o-tiles--shape { grid-template-columns: repeat(6, 1fr); }
.o-tiles--metal { grid-template-columns: repeat(3, 1fr); }
.o-tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 80px; border: 1px solid var(--o-rule); border-radius: 4px; font-size: 13px; }
.o-tile[data-on] { border: 2px solid var(--o-ink); }
.o-tile svg { width: 28px; height: 28px; }
.o-swatch { width: 22px; height: 22px; border-radius: 50%; }
.o-more { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.o-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-seg span { display: grid; place-items: center; height: 36px; border: 1px solid var(--o-rule); border-radius: 4px; font-size: 13px; }
.o-seg span:first-child { border: 2px solid var(--o-ink); }
.o-card { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--o-rule); border-radius: 4px; }
.o-card[data-on] { border: 2px solid var(--o-ink); padding: 11px; }
.o-card[data-on]::before { content: '✓'; position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--o-ink); color: #fff; font-size: 11px; }
.o-thumb { width: 64px; height: 64px; border-radius: 3px; background: #f3f4f4 radial-gradient(circle at 50% 50%, transparent 16px, #dfe4e8 17px, transparent 18px); }
.o-thumb--find { display: grid; place-items: center; background: #f3f4f4; }
.o-card__top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.o-card p { font-size: 13px; }
.o-card .o-ships2 { font-size: 12px; color: var(--o-mute); }
.o-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-selects span { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 1px solid var(--o-rule); border-radius: 4px; color: var(--o-mute); }

/* The buy bar. */
.o-bar { height: 100%; border-top: 1px solid var(--o-rule); background: #fff; }
.o-bar--D { display: flex; align-items: center; gap: 28px; height: 80px; padding: 0 40px; }
.o-bar--S { display: grid; gap: 10px; align-content: center; height: 125px; padding: 10px 16px 12px; }
.o-id { margin-right: auto; display: grid; gap: 2px; }
.o-id strong { font: 400 20px/1.15 "DM Serif Display", serif; }
.o-id span { font-size: 12px; color: var(--o-mute); }
.o-money { display: grid; justify-items: end; gap: 4px; } /* its label over its figure (Paper, 13 Oct) */
.o-btn { display: grid; place-items: center; min-width: 168px; height: 50px; padding: 0 16px; border: 1px solid var(--o-ink); border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.o-btn--go { border-color: var(--o-green); background: var(--o-green); color: #fff; }
.o-bar--S .o-total { padding: 0; }
.o-bar--S .o-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.o-bar--S .o-btn { min-width: 0; height: 52px; letter-spacing: 0.08em; }

/* The stone sheet, on the phone. */
.o-sheet { display: grid; gap: 14px; padding: 10px 16px 44px; border-radius: 18px 18px 0 0; background: #fff; } /* 44 below: the home indicator's safe area */
.o-grab { justify-self: center; width: 36px; height: 4px; border-radius: 2px; background: #d6d9da; }
.o-sheet__film { position: relative; height: 300px; border-radius: 4px; background: #f8f8f8; overflow: hidden; }
.o-sheet__film video { position: absolute; inset: 6% 0; width: 100%; height: 88%; object-fit: contain; }
.o-grades { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--o-rule); }
.o-grades div { display: grid; gap: 2px; padding: 10px 0; }
.o-grades b { font: 400 18px/1.2 "DM Serif Display", serif; }

/* The section's pause control: the page's light film toggle, in the section's bottom right corner. */
.md .md-toggle { right: var(--gutter); bottom: clamp(20px, 3vh, 32px); }

/* ------------------------------------------------------------ review controls (?review only) */
.md-review { display: none !important; }
.md[data-review] .md-review { display: grid !important; }
.md-review { display: grid; grid-template-columns: auto minmax(180px, 260px) 1fr auto; align-items: center; gap: 16px; max-width: 1440px; width: 100%; margin-inline: auto; font: 400 13px/1.3 var(--font-sans); color: var(--ink-2); }
.md-play { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: oklch(0 0 0 / 0.06); color: var(--ink); cursor: pointer; }
.md-play svg { width: 18px; height: 18px; fill: currentColor; }
.md-play .md-play__play { display: none; }
.md-play[data-paused] .md-play__play { display: inline; }
.md-play[data-paused] .md-play__pause { display: none; }
.md-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.md-now { margin: 0; display: flex; gap: 10px; }
.md-now__n { color: #FF5A36; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.md-now__t { color: var(--ink); }
.md-scrub { position: relative; height: 36px; }
.md-scrub input { position: absolute; inset: 0; width: 100%; margin: 0; accent-color: var(--ink); cursor: pointer; }
.md-ticks { position: absolute; left: 0; right: 0; top: 28px; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.md-ticks li { position: absolute; translate: -1px 0; font-size: 10px; letter-spacing: 0.06em; color: var(--ink-2); }
.md-ticks li::before { content: ''; position: absolute; left: 0; top: -10px; width: 1px; height: 7px; background: var(--ink-2); }
.md-time { font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }

@media (max-width: 760px) {
  .md-review { grid-template-columns: auto 1fr; }
  .md-scrub { grid-column: 1 / -1; }
  .md-time { display: none; }
}

/* Touch screens: the film as one video (showcase-film-video.js). The box keeps the stage's 1100:720 shape; the video
   runs out to the screen's edges either side (the film's area on a 393-wide phone plus its 20px margins: 393 of 353)
   and a little above and below for the shadows, and its edges fade into the page, as the hero's do. */
.md-space--video { aspect-ratio: 1100 / 720; } /* until showcase-film-video.js sizes it */
.md-space--video .md-tilt { display: none; }
.md-video {
  position: absolute; left: -5.666%; top: -10.388%; width: 111.33%; height: auto; max-width: none; aspect-ratio: 1178 / 884; /* placed by script; it runs off the page's edge side by side */
  display: block; pointer-events: none; background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}
