/* Dry Ink Studio — the gem paper. Velvet tray ground, parcel-paper panels, one yellow sapphire. */
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/HankenGrotesk-100-900-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/HankenGrotesk-100-900-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Biro"; src: url(../fonts/NanumPenScript-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --velvet: #121211;
  --ink: #121211;
  --ink-soft: #2A2A27;
  --paper: #F4F5F7;
  --paper-back: #E4E7EC;
  --text-2: #4D5057;
  --biro: #2340A8;
  --gem: #F4B400;
  --gem-hi: #FFC21F;
  --fog: #F4F5F7;
  --fog-2: #A6A8AE;
  --line-v: rgba(244, 245, 247, .14);
  --pad: clamp(16px, 4vw, 64px);
  --wrap: min(1320px, 100% - 2 * var(--pad));
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --paper-img: url(../img/paper.webp);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #3A3A3E var(--velvet); scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--velvet); color: var(--fog); font: 400 17px/1.55 "Hanken Grotesk", system-ui, sans-serif; font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* velvet graded neutral so its mean sits at ink #121211; the nap keeps its own shadows */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, transparent 50%, rgba(0, 0, 0, .18)), url(../img/velvet.webp) center / cover no-repeat, var(--velvet); }
@media (max-width: 899px) { body::before { background-image: radial-gradient(120% 90% at 50% 0%, transparent 50%, rgba(0, 0, 0, .18)), url(../img/velvet-sm.webp); } }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gem); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gem); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible, .next__paper :focus-visible, .report :focus-visible, .chat :focus-visible, .close :focus-visible, .bar.is-gem :focus-visible { outline-color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--gem); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- type ---------- */
.h2 { font-size: clamp(34px, 4.3vw, 66px); font-weight: 600; line-height: 1; letter-spacing: -0.038em; text-wrap: balance; max-width: 17ch; }
.h2--xl { font-size: clamp(48px, 6.4vw, 112px); line-height: .95; letter-spacing: -0.045em; max-width: 14ch; }
.biro { font-family: "Biro", "Bradley Hand", cursive; color: var(--biro); font-size: 26px; line-height: 1.05; letter-spacing: .005em; }
.biro--out { color: var(--biro); font-size: 28px; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 160ms var(--ease), background-color 160ms ease; }
.btn:active { transform: scale(.97); }
.btn--gem { background: var(--gem); color: var(--ink); }
.btn--gem:hover { background: var(--gem-hi); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-soft); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-decoration-thickness 160ms ease; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 32px; height: 72px; padding: 0 var(--pad); transition: background-color 300ms ease, box-shadow 300ms ease; }
main:focus, section:focus, article:focus { outline: none; }
.bar.is-solid { background: rgba(14, 14, 15, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-v); }
.bar__home { position: relative; display: block; }
.bar__home img { width: 132px; height: auto; transition: opacity 200ms ease; }
.bar__home .bar__ink { position: absolute; inset: 0; opacity: 0; }
.bar.is-gem { background: var(--gem); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 rgba(18, 18, 17, .12); }
.bar.is-gem .bar__home img:first-child { opacity: 0; }
.bar.is-gem .bar__home .bar__ink { opacity: 1; }
.bar.is-gem .bar__nav a { color: rgba(18, 18, 17, .72); }
.bar.is-gem .bar__nav a:hover { color: var(--ink); }
.bar.is-gem .soon { color: var(--ink); }
.bar.is-gem .bar__cta { background: var(--ink); color: var(--paper); }
.bar__nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.bar__nav a { color: var(--fog-2); text-decoration: none; transition: color 160ms ease; }
.bar__nav a:hover { color: var(--fog); }
.soon { font-size: 12px; font-weight: 500; color: var(--fog-2); margin-left: 2px; }
.bar__cta { height: 40px; padding: 0 18px; font-size: 15px; }
.bar__pause { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; margin-right: -14px; border: 0; border-radius: 999px; background: none; color: var(--fog-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: color 160ms ease; }
.bar__pause:hover { color: var(--fog); }
.bar__pause-ico { width: 10px; height: 12px; background: linear-gradient(currentColor, currentColor) left / 3px 100% no-repeat, linear-gradient(currentColor, currentColor) right / 3px 100% no-repeat; }
.bar__pause[aria-pressed="true"] .bar__pause-ico { background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.bar.is-gem .bar__pause { color: rgba(18, 18, 17, .72); }
@media (max-width: 760px) { .bar__nav { display: none; } .bar__pause { margin-left: auto; margin-right: -18px; } .bar__pause-more { display: none; } .bar { height: 64px; } }

/* ============ THE PAPER (3x3 sheet, folds on its creases) ============ */
.paper { --cl: 18%; --cr: 18%; position: relative; display: grid; grid-template-columns: var(--cl) minmax(0, 1fr) var(--cr); grid-template-rows: auto auto auto; transform-style: preserve-3d; color: var(--ink); }
.paper__shadow { position: absolute; inset: 0; transform-origin: 50% 50%; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 18px 34px -14px rgba(0, 0, 0, .6); pointer-events: none; }
.paper__crease { position: absolute; background: rgba(35, 64, 168, .0); pointer-events: none; transform: translateZ(14px); opacity: 0; }
.paper__crease--v { width: 2px; background: rgba(18, 18, 17, .32); box-shadow: 1px 0 0 rgba(255, 255, 255, .9); }
.paper__crease--h { height: 2px; background: rgba(18, 18, 17, .32); box-shadow: 0 1px 0 rgba(255, 255, 255, .9); }
.pc { position: relative; transform-style: preserve-3d; min-width: 0; }
.pc--tl { grid-area: 1 / 1; transform-origin: right bottom; }
.pc--tc { grid-area: 1 / 2; transform-origin: center bottom; }
.pc--tr { grid-area: 1 / 3; transform-origin: left bottom; }
.pc--ml { grid-area: 2 / 1; transform-origin: right center; }
.pc--mc { grid-area: 2 / 2; }
.pc--mr { grid-area: 2 / 3; transform-origin: left center; }
.pc--bl { grid-area: 3 / 1; transform-origin: right top; }
.pc--bc { grid-area: 3 / 2; transform-origin: center top; }
.pc--br { grid-area: 3 / 3; transform-origin: left top; }
.pc__in, .pc__out { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pc__in { position: relative; height: 100%; background: var(--paper) var(--paper-img) center / 1600px; }
.pc__in::after, .pc__out::after { content: ""; position: absolute; inset: 0; background: #0B0C10; opacity: var(--sh, 0); pointer-events: none; z-index: 3; }
.pc__out { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper-back) var(--paper-img) center / 1600px; transform: rotateY(180deg); }
.pc--tc .pc__out, .pc--bc .pc__out { transform: rotateX(180deg); }
/* creases: each cell draws the fold on its left and top edges, a valley line beside a lit ridge */
.pc--tc .pc__in, .pc--mc .pc__in, .pc--bc .pc__in, .pc--tr .pc__in, .pc--mr .pc__in, .pc--br .pc__in { box-shadow: inset 1px 0 0 rgba(18, 18, 17, .09), inset 2px 0 0 rgba(255, 255, 255, .85); }
.pc--ml .pc__in, .pc--bl .pc__in { box-shadow: inset 0 1px 0 rgba(18, 18, 17, .09), inset 0 2px 0 rgba(255, 255, 255, .85); }
.pc--mc .pc__in, .pc--mr .pc__in, .pc--bc .pc__in, .pc--br .pc__in { box-shadow: inset 1px 0 0 rgba(18, 18, 17, .09), inset 2px 0 0 rgba(255, 255, 255, .85), inset 0 1px 0 rgba(18, 18, 17, .09), inset 0 2px 0 rgba(255, 255, 255, .85); }
.pc__in { background-image: var(--valley, linear-gradient(transparent, transparent)), var(--paper-img); }
.pc--ml .pc__in { --valley: linear-gradient(270deg, rgba(18, 18, 17, .1), transparent 38%); }
.pc--mr .pc__in { --valley: linear-gradient(90deg, rgba(255, 255, 255, .55), transparent 4px, rgba(18, 18, 17, .07) 6px, transparent 40%); }
.pc--tc .pc__in { --valley: linear-gradient(0deg, rgba(18, 18, 17, .1), transparent 65%); }
.pc--bc .pc__in { --valley: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 4px, rgba(18, 18, 17, .07) 6px, transparent 60%); }
.pc--tl .pc__in { --valley: linear-gradient(225deg, transparent 30%, rgba(18, 18, 17, .07)); }
.pc--tr .pc__in { --valley: linear-gradient(135deg, transparent 30%, rgba(18, 18, 17, .07)); }
.pc--bl .pc__in { --valley: linear-gradient(315deg, transparent 30%, rgba(18, 18, 17, .07)); }
.pc--br .pc__in { --valley: linear-gradient(45deg, transparent 30%, rgba(18, 18, 17, .07)); }
.pc--mc .pc__in { background-image: linear-gradient(90deg, rgba(18, 18, 17, .06), transparent 26px, transparent calc(100% - 26px), rgba(18, 18, 17, .04)), linear-gradient(180deg, rgba(18, 18, 17, .05), transparent 22px, transparent calc(100% - 22px), rgba(18, 18, 17, .04)), var(--paper-img); }
.stamp-mark { width: 40px; height: 40px; opacity: .2; }

/* ============ HERO ============ */
.hero { min-height: 100svh; display: grid; justify-items: center; align-content: start; padding: 92px var(--pad) 0; }
.tray { width: min(1200px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: 26px; }
.parcel { --rot: -1.2deg; position: relative; display: grid; gap: 3px; padding: 14px 16px 16px; border-radius: 2px; color: var(--ink); text-decoration: none; background: linear-gradient(162deg, transparent 49.4%, rgba(18, 18, 17, .07) 50%, rgba(255, 255, 255, .85) 50.6%, transparent 51.4%), var(--paper) var(--paper-img) center / 1600px; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .8), 0 6px 12px -6px rgba(0, 0, 0, .5); transform: rotate(var(--rot)); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.parcel:nth-child(2) { --rot: .8deg; } .parcel:nth-child(3) { --rot: -.5deg; } .parcel:nth-child(4) { --rot: 1.1deg; }
.parcel:hover { transform: translateY(-6px) rotate(calc(var(--rot) - 1deg)); box-shadow: 0 34px 50px -18px rgba(0, 0, 0, .85), 0 10px 18px -8px rgba(0, 0, 0, .5); }
.parcel:active { transform: translateY(-2px) rotate(var(--rot)) scale(.98); }
.parcel__no { font-size: 23px; }
.parcel__name { font-size: clamp(16px, 1.3vw, 19px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.parcel__what { font-size: 14px; color: var(--text-2); }
.parcel__gem { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; color: var(--text-2); }
.parcel__gem::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85), transparent 45%), var(--g); box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .25); }
.stage { width: min(1200px, 100%); perspective: 2200px; perspective-origin: 50% 30%; }
.paper--hero { transform: rotateX(4deg); transform-origin: 50% 60%; }
.paper--hero { --cl: 19%; --cr: 19%; }
.js .paper--hero:not(.is-ready) .pc { animation: unfold-safety 0s 3s forwards; }
.js .paper--hero:not(.is-ready) .pc--tl { transform: translateZ(8.7px) rotateY(174deg) rotateX(-177deg); }
.js .paper--hero:not(.is-ready) .pc--tc { transform: translateZ(3.9px) rotateX(-177deg); }
.js .paper--hero:not(.is-ready) .pc--tr { transform: translateZ(8.7px) rotateY(-174deg) rotateX(-177deg); }
.js .paper--hero:not(.is-ready) .pc--ml { transform: translateZ(8.7px) rotateY(174deg); }
.js .paper--hero:not(.is-ready) .pc--mr { transform: translateZ(8.7px) rotateY(-174deg); }
.js .paper--hero:not(.is-ready) .pc--bl { transform: translateZ(8.7px) rotateY(174deg) rotateX(177deg); }
.js .paper--hero:not(.is-ready) .pc--bc { transform: translateZ(2px) rotateX(177deg); }
.js .paper--hero:not(.is-ready) .pc--br { transform: translateZ(8.7px) rotateY(-174deg) rotateX(177deg); }
.js .paper--hero:not(.is-ready) .pc--mc .pc__in::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #DCE5F3 var(--paper-img) center / 1600px; background-blend-mode: multiply; animation: liner-safety 0s 3s forwards; }
@keyframes unfold-safety { to { transform: none; } }
@keyframes liner-safety { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .paper--hero:not(.is-ready) .pc { transform: none; } .js .paper--hero:not(.is-ready) .pc--mc .pc__in::before { content: none; } }
/* opened papers on phones flatten into one layer */
.paper.is-flat, .paper.is-flat .pc { transform-style: flat; }
.paper.is-flat .pc { transform: none !important; }
.paper.is-flat .pc__in { -webkit-backface-visibility: visible; backface-visibility: visible; }
.paper.is-flat .pc__out, .paper.is-flat .pc__in::after { display: none; }
.paper--hero .pc--tc .pc__in { display: flex; justify-content: center; align-items: center; padding: 10px 16px; }
.lots-switch { display: flex; align-items: center; gap: 2px; }
.lots-switch__label { font-size: 24px; margin-right: 10px; }
.lots-switch__label b { font-weight: 400; }
.gem-dot { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; padding: 0; }
.gem-dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 45%), var(--g); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25), 0 1px 2px rgba(0, 0, 0, .25); transition: transform 160ms var(--ease); }
.gem-dot:hover::before { transform: scale(1.18); }
.gem-dot[aria-pressed="true"]::before { box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25), 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.side-note { padding: 28px 22px; }
.paper--hero .pc--ml .side-note { display: flex; align-items: flex-start; justify-content: flex-end; text-align: right; padding-top: 34%; }
.paper--hero .pc--mr .side-note { padding-top: 34%; }
.paper--hero .side-note .biro { font-size: 25px; transform: rotate(-3deg); }
.paper--hero .pc--mr .biro { transform: rotate(2deg); }
.hero__in { padding: clamp(18px, 2.4vw, 34px) clamp(18px, 2.6vw, 38px) clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; }
.hero__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.tp { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: #DADDE3; box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(18, 18, 17, .06); }
.tp img, .tp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp--hero .layer { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.tp--hero .layer.is-on { clip-path: inset(0 0 0 0); z-index: 2; }
.tp--hero .layer.is-in { z-index: 3; transition: clip-path 760ms var(--ease-io); clip-path: inset(0 0 0 0); }
.hero__h { font-size: clamp(36px, 4.6vw, 70px); font-weight: 600; line-height: .96; letter-spacing: -0.04em; text-wrap: balance; max-width: 15ch; }
.hero__lead { margin-top: 14px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: var(--text-2); max-width: 46ch; }
.hero__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 22px; }
.hero__acts .link { color: var(--ink); }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(18px, 2.6vw, 38px); min-height: 56px; }
.hero__foot-note { font-size: 22px; display: none; }
.hero__more { font-size: 24px; text-decoration: none; margin-left: auto; }
.hero__more:hover { text-decoration: underline; text-decoration-thickness: 1px; }
[data-hero-note], [data-hero-note-sm] { transition: clip-path 600ms var(--ease); clip-path: inset(0 0 0 0); }
.is-writing { clip-path: inset(0 100% 0 0) !important; transition: none !important; }
@media (max-height: 960px) and (min-width: 900px) { .tp--hero { aspect-ratio: 1 / 1; } }
@media (max-height: 740px) and (min-width: 900px) { .tp--hero { aspect-ratio: 5 / 4; } .hero__lead { margin-top: 10px; } .hero__acts { margin-top: 16px; } }

/* ============ STONE ============ */
.stone { position: relative; padding-top: clamp(80px, 14vh, 160px); }
.stone__pin { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.stone__copy p { margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); color: var(--fog-2); max-width: 42ch; }
.stone__copy p:first-of-type { margin-top: 28px; }
.stone__gem { position: relative; aspect-ratio: 4 / 5; max-height: 60svh; justify-self: center; width: 100%; max-width: 620px; overflow: clip; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.stone__ring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 0; height: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1.5px rgba(244, 245, 247, .55), 0 0 0 6px rgba(244, 245, 247, .08); transition: opacity 200ms ease; }
.stone__gem > img, .stone__cut, .stone__cut img, .stone__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stone__cut { clip-path: circle(var(--r, 80%) at 50% 50%); opacity: var(--cut, 1); }
.stone__tag { position: absolute; left: 50%; top: 12%; translate: -50% 0; color: #C9D3F5; font-size: 30px; transition: opacity 300ms ease; white-space: nowrap; }
.stone__tag--a { opacity: 0; }
.js .stone__gem:not(.is-cut) .stone__tag--a { opacity: 1; }
.js .stone__gem:not(.is-cut) .stone__tag--b { opacity: 0; }
.stone__word { grid-column: 1 / -1; position: relative; margin: clamp(32px, 6vh, 80px) 0 0; font-size: clamp(64px, 19.5vw, 320px); font-weight: 700; line-height: .82; letter-spacing: -0.065em; color: transparent; -webkit-text-stroke: 1px rgba(244, 245, 247, .28); white-space: nowrap; }
.stone__word::after { content: "Polished."; position: absolute; inset: 0; color: var(--fog); -webkit-text-stroke: 0; clip-path: inset(-10% calc(100% - var(--w, 100%)) -10% 0); }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .stone { height: 180vh; padding-top: 0; }
  .js .stone__pin { position: sticky; top: 0; height: 100svh; grid-template-rows: minmax(0, 1fr) auto; padding: max(100px, 12vh) 0 3vh; }
  .js .stone__gem { max-height: 100%; width: auto; height: 100%; }
  .js .stone__word { margin: 0; align-self: end; }
}
@media (max-width: 899px) { .stone__pin { grid-template-columns: 1fr; } .stone__gem { max-width: 420px; } }

/* ============ WORK ============ */
.work { padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); }
.work__head .h2 { max-width: 16ch; }
.work__lead { margin-top: 24px; font-size: clamp(17px, 1.35vw, 20px); color: var(--fog-2); max-width: 58ch; }

.lots { display: grid; justify-items: center; gap: clamp(40px, 8vh, 100px); margin-top: clamp(80px, 14vh, 150px); }
.lot { width: min(1340px, 100% - 2 * var(--pad)); margin: 0 auto; scroll-margin-top: 90px; perspective: 2600px; perspective-origin: 50% 50%; }
/* the inner liner: gem papers carry a pale blue sheet around the stone; it lifts as the paper opens */
.liner { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #DCE5F3 var(--paper-img) center / 1600px; background-blend-mode: multiply; box-shadow: inset 0 0 0 1px rgba(35, 64, 168, .12); pointer-events: none; }
.liner svg { opacity: .42; transform: rotate(-8deg); }
.paper--lot { --cl: 17%; --cr: 17%; transform-origin: 50% 0; }
.next { display: grid; place-items: center; margin-top: clamp(80px, 14vh, 150px); }
.next__paper { width: min(760px, 100%); padding: clamp(28px, 4vw, 52px); text-align: center; color: var(--ink); border-radius: 2px; background: linear-gradient(90deg, transparent 33%, rgba(18, 18, 17, .05) 33.3%, rgba(255, 255, 255, .8) 33.5%, transparent 34%, transparent 66%, rgba(18, 18, 17, .05) 66.3%, rgba(255, 255, 255, .8) 66.5%, transparent 67%), var(--paper) var(--paper-img) center / 1600px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 18px 34px -14px rgba(0, 0, 0, .6); transform: rotate(-1deg); }
.next__paper { position: relative; }
.next__no { position: absolute; top: 16px; right: 22px; font-size: 24px; transform: rotate(4deg); }
.next__h { margin-top: 6px; font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.next__acts { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; }
.next__acts .link { color: var(--ink); }
.lot__top { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); padding: 18px clamp(18px, 2.4vw, 32px); }
.lot__logo { width: clamp(150px, 15vw, 210px); height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(18, 18, 17, .08); }
.lot__no { font-size: 22px; margin-top: 4px; }
.lot__name { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin-top: 2px; }
.lot__what { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.lot__gemcell { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 12px; }
.lot__chip { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .85), transparent 45%), var(--g); box-shadow: inset 0 -3px 4px rgba(0, 0, 0, .25), 0 2px 4px rgba(0, 0, 0, .2); }
.lot__gemname { font-size: 22px; }
.lot__note { padding: clamp(18px, 2vw, 28px) clamp(16px, 1.6vw, 24px); }
.lot__label { font-size: 14px; font-weight: 650; letter-spacing: -0.005em; }
.lot__note p + p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.lot__six { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: clamp(14px, 1.8vw, 24px); }
.lot__six figure { min-width: 0; }
.lot__six figcaption { font-size: 13px; font-weight: 600; color: var(--text-2); margin-top: 7px; }
.lot__spec { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 16px clamp(18px, 2.4vw, 32px); }
.lot__colours { display: flex; gap: 18px; flex-wrap: wrap; }
.lot__colours li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.lot__colours i { width: 22px; height: 22px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(18, 18, 17, .14); }
.lot__colours b { font-weight: 600; color: var(--ink); }
.lot__type { font-size: 13.5px; color: var(--text-2); }
.lot__flag { font-size: 21px; margin-left: auto; color: #5A6CB0; }
.lot__link { font-size: 23px; text-decoration: none; }
.lot__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
[data-loupe] { cursor: zoom-in; }
.loupe-on [data-loupe] { cursor: none; }

/* ============ SERVICES ============ */
.services { padding: clamp(110px, 18vh, 200px) 0; }
.services__lead { margin-top: 24px; font-size: clamp(17px, 1.35vw, 20px); color: var(--fog-2); max-width: 52ch; }
.facets { margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line-v); }
.facet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: clamp(22px, 3.4vh, 34px) 0; border-bottom: 1px solid var(--line-v); transition: opacity 260ms ease; }
.facet h3 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; transition: transform 420ms var(--ease); }
.facet p { color: var(--fog-2); font-size: 17px; max-width: 40ch; }
@media (hover: hover) and (pointer: fine) {
  .facets:hover .facet h3 { opacity: .38; }
  .facets .facet:hover h3 { opacity: 1; }
  .facet h3 { transition: transform 420ms var(--ease), opacity 260ms ease; }
  .facet:hover h3 { transform: translateX(14px); }
}
@media (max-width: 760px) { .facet { grid-template-columns: 1fr; gap: 10px; } }
.slip { position: fixed; left: 0; top: 0; z-index: 40; width: 250px; padding: 9px 9px 36px; clip-path: inset(50% 0 50% 0); transition: opacity 220ms ease, clip-path 260ms var(--ease); background: var(--paper) var(--paper-img) center / 1600px; border-radius: 2px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8); pointer-events: none; opacity: 0; transition: opacity 220ms ease; will-change: transform; }
.slip.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.slip__note { position: absolute; left: 12px; right: 12px; bottom: 8px; font-size: 18px; white-space: nowrap; }
.slip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ============ FOUR Cs ============ */
.grading { padding: clamp(60px, 10vh, 120px) 0 clamp(110px, 18vh, 200px); overflow-x: clip; }
.report { position: relative; margin-top: 0; background: var(--paper) var(--paper-img) center / 1600px; color: var(--ink); padding: clamp(22px, 4vw, 60px); border-radius: 2px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 18px 34px -14px rgba(0, 0, 0, .6); }
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: 18px; border-bottom: 3px double rgba(18, 18, 17, .5); padding-right: clamp(0px, 14vw, 200px); }
.report__title { font-size: clamp(34px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.042em; line-height: .98; max-width: 14ch; text-wrap: balance; }
.report__head { flex-direction: column; align-items: flex-start; }
.report__meta { font-size: 14px; color: var(--text-2); }
.report__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 32px; align-items: baseline; padding: clamp(20px, 3vh, 30px) 0; border-bottom: 1px solid rgba(18, 18, 17, .12); }
.report__row:last-child { border-bottom: 0; padding-bottom: 0; }
.report__row dt { position: relative; font-size: clamp(38px, 4.6vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: .95; }
.tick { display: inline-block; width: .5em; height: .38em; margin-left: .18em; vertical-align: .05em; fill: none; stroke: var(--biro); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .report:not(.is-stamped) .tick { stroke-dashoffset: 60; }
.js .report.is-stamped .tick { transition: stroke-dashoffset 500ms var(--ease) 400ms; }
.js .report.is-stamped .report__row:nth-child(2) .tick { transition-delay: 520ms; } .js .report.is-stamped .report__row:nth-child(3) .tick { transition-delay: 640ms; } .js .report.is-stamped .report__row:nth-child(4) .tick { transition-delay: 760ms; }
.report__what { font-size: 17px; color: var(--text-2); }
.report__gets { font-family: "Biro", cursive; font-size: 28px; line-height: 1.05; color: var(--biro); }
.report__stamp { position: absolute; top: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 44px); width: clamp(100px, 11vw, 160px); color: var(--ink); opacity: .7; transform: rotate(-14deg); mix-blend-mode: multiply; }
.js .report__stamp { opacity: 0; transform: rotate(-24deg) scale(1.35); }
.js .report.is-stamped .report__stamp { opacity: .7; transform: rotate(-14deg) scale(1); transition: opacity 160ms ease, transform 380ms cubic-bezier(.2, 1.6, .4, 1); }
@media (max-width: 760px) { .report__row { grid-template-columns: 1fr; gap: 6px; } .report__head { padding-right: 96px; } .report__stamp { right: 12px; top: 14px; width: 84px; } }

/* ============ PLATFORM ============ */
.platform { padding: clamp(60px, 10vh, 120px) 0 clamp(110px, 18vh, 200px); }
.platform__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.tag { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--gem); color: var(--gem); font-size: 13px; font-weight: 650; margin-bottom: 22px; }
.platform__copy p:not(.tag) { margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); color: var(--fog-2); max-width: 44ch; }
.chat { background: var(--paper) var(--paper-img) center / 1600px; color: var(--ink); border-radius: 2px; padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 14px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 18px 34px -14px rgba(0, 0, 0, .6); transform: rotate(1.2deg); }
.chat__label { font-family: "Biro", cursive; font-size: 24px; color: var(--biro); }
.chat__msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.chat__msg--me { justify-self: end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.chat__msg--ai { justify-self: start; background: #E4E7EC; border-bottom-left-radius: 6px; display: grid; gap: 12px; }
.chat__msg--ai img { width: min(230px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.chat__acts { display: flex; gap: 8px; }
.chat__acts span { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chat__acts span:first-child { background: var(--gem); box-shadow: none; }
.chat__typing { display: none; justify-self: start; gap: 5px; padding: 14px 16px; background: #E4E7EC; border-radius: 18px; }
.chat__typing i { width: 7px; height: 7px; border-radius: 50%; background: #7B7F88; animation: dot 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .15s; } .chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
.js .chat.is-waiting .chat__msg--ai { display: none; }
.js .chat.is-waiting .chat__typing { display: flex; }
.js .chat.is-done .chat__msg--ai { animation: rise 520ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 860px) { .platform__in { grid-template-columns: 1fr; } .chat { transform: none; } }

/* ============ FAQ ============ */
.faq { padding: 0 0 clamp(110px, 18vh, 200px); }
.faq__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__in .h2 { position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line-v); }
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 340ms var(--ease), content-visibility 340ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details { border-bottom: 1px solid var(--line-v); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat; transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--fog-2); max-width: 58ch; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } .faq__in .h2 { position: static; } }

/* ============ CLOSE ============ */
.close { background: var(--gem); color: var(--ink); padding: clamp(90px, 15vh, 170px) 0; }
.close ::selection { background: var(--ink); color: var(--gem); }
.close__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.close__h { font-size: clamp(56px, 8.6vw, 148px); font-weight: 650; line-height: .86; letter-spacing: -0.055em; max-width: 7ch; }
.close__copy > p { margin: 28px 0 30px; font-size: clamp(18px, 1.5vw, 22px); max-width: 34ch; }
.close__mail { margin-top: 22px !important; font-size: 16px !important; }
.close__mail a { font-weight: 600; text-underline-offset: 4px; }
.letter { position: relative; perspective: 2200px; }
.paper--letter { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
.paper--letter .pc--tc { grid-area: 1 / 1; } .paper--letter .pc--mc { grid-area: 2 / 1; } .paper--letter .pc--bc { grid-area: 3 / 1; }
.paper--letter .paper__shadow { box-shadow: 0 40px 70px -30px rgba(18, 18, 17, .45), 0 10px 24px -12px rgba(18, 18, 17, .3); }
.letter__panel { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 2.6vw, 32px); }
.letter__h { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; }
.letter__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.letter__out { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.letter__out .stamp-mark { opacity: .35; }
.letter__send { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.letter__status { font-size: 15px; font-weight: 600; }
.letter__sent { margin-top: 18px; font-size: 18px; font-weight: 600; text-align: center; }
.close__letter { display: grid; justify-items: center; }
.close__letter > .letter { justify-self: stretch; grid-area: 1 / 1; }
.close__letter.is-folded > .letter__sent { grid-area: 1 / 1; align-self: start; margin-top: 7%; }
.close__letter.is-folded > .letter__again { grid-area: 1 / 1; align-self: start; margin-top: calc(7% + 40px); }
.letter__again { margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; color: var(--ink); }
.hint { font-size: 14px; color: var(--text-2); margin-top: -3px; }
.opt { font-weight: 400; color: var(--text-2); }
.field { display: grid; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .needs legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px rgba(18, 18, 17, .55); transition: box-shadow 160ms ease; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(18, 18, 17, .8); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #8A1C0C; }
.err { font-size: 14px; color: #8A1C0C; font-weight: 600; }
.needs { min-width: 0; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.needs legend { margin-bottom: 9px; padding: 0; }
.needs label { position: relative; cursor: pointer; }
.needs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.needs span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(18, 18, 17, .55); transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease); }
.needs label:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.needs input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.needs label:active span { transform: scale(.96); }
.needs input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .close__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .letter__pair { grid-template-columns: 1fr; } }

/* ============ FOOT ============ */
.foot { padding: 72px 0 0; overflow: hidden; }
.foot__word { position: relative; width: var(--wrap); margin: clamp(40px, 8vh, 90px) auto 0; font-size: clamp(64px, 19.5vw, 320px); font-weight: 700; line-height: .8; letter-spacing: -0.065em; color: transparent; -webkit-text-stroke: 1px rgba(244, 245, 247, .22); white-space: nowrap; translate: 0 12%; }
.foot__word::after { content: "Polished."; position: absolute; inset: 0; color: var(--fog); -webkit-text-stroke: 0; clip-path: inset(-10% calc(100% - var(--w, 100%)) -10% 0); }
.foot__in { display: grid; gap: 18px; }
.foot__in > img { width: 140px; height: auto; }
.foot__line { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; font-size: 15px; }
.foot__nav a { color: var(--fog-2); text-decoration: none; }
.foot__nav a:hover { color: var(--fog); }
.foot__small { margin-top: 28px; font-size: 13.5px; color: #8A8C92; }

/* ============ LOUPE ============ */
.loupe { position: fixed; left: 0; top: 0; z-index: 70; width: 210px; height: 210px; border-radius: 50%; pointer-events: none; opacity: 0; background-color: #222; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 0 24px rgba(0, 0, 0, .25), 0 0 0 7px #17171A, 0 0 0 8px rgba(255, 255, 255, .22), 0 24px 50px rgba(0, 0, 0, .55); transition: opacity 180ms ease; will-change: transform; }
.loupe.is-on { opacity: 1; }
.loupe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(60% 50% at 32% 26%, rgba(255, 255, 255, .22), transparent 60%); }

/* ============ PHONES AND TABLETS: the sheet folds top and bottom only ============ */
@media (max-width: 899px) {
  .paper { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .paper .pc--tl, .paper .pc--tr, .paper .pc--bl, .paper .pc--br { display: none; }
  .pc--tc { grid-area: 1 / 1; } .pc--mc { grid-area: 2 / 1; } .pc--bc { grid-area: 3 / 1; }
  .paper--lot .pc--ml { grid-area: 2 / 1; } .paper--lot .pc--mr { grid-area: 3 / 1; } .paper--lot .pc--mc { grid-area: 4 / 1; } .paper--lot .pc--bc { grid-area: 5 / 1; }
  .paper--letter { grid-template-rows: auto auto auto; }
  .tray { grid-template-columns: 1fr 1fr; }
  .lot__flag { margin-left: 0; }
  .pc--ml .pc__in, .pc--mr .pc__in { box-shadow: inset 0 1px 0 rgba(18, 18, 17, .09), inset 0 2px 0 rgba(255, 255, 255, .85); }
  .paper--hero .pc--ml, .paper--hero .pc--mr { display: none; }
  .hero { padding-top: 80px; align-items: start; }
  .hero__foot-note { display: block; }
  .hero__more { display: none; }
  .hero__cells { gap: 6px; }
  .lot__six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lot__top { flex-wrap: wrap; }
  .lot__link { margin-left: 0; }
  .lots-switch__label { font-size: 22px; }
}
@media (max-width: 520px) { .lot__logo { width: 140px; } .hero__acts .btn { width: 100%; } }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js .report__stamp { opacity: .82; transform: rotate(-14deg); }
}
