/* Helgi Þór, vefhönnun. Dark editorial studio look, one accent (soft violet). */
:root {
  --bg: #0a0a0b;
  --bg2: #121214;
  --fg: #ecebe6;
  --muted: #9b9a95;
  --line: rgba(236, 235, 230, .16);
  --accent: #a99bff;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 3.2vw, 3rem);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, html.loading { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--display); font-size: 1.0625rem; line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 600; background: var(--accent); color: var(--bg); padding: .6rem 1rem; font-family: var(--mono); }
.skip:focus { top: 1rem; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.label { display: flex; gap: 1rem; align-items: baseline; color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; }
.label b { color: var(--accent); font-weight: 500; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; grid-template-rows: 1fr auto; padding: var(--gutter); transition: transform 1s var(--expo); animation: ldfail .01s 5s forwards; }
.loader.done { transform: translateY(-100%); }
@keyframes ldfail { to { visibility: hidden; } }
.ld-name { align-self: center; font-size: clamp(2.4rem, 9vw, 8rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.04em; line-height: .95; overflow: hidden; padding: .1em 0; }
.ld-name span { display: inline-block; animation: ldup 1s var(--expo) .1s both; }
@keyframes ldup { from { transform: translateY(110%); } }
.ld-count { display: flex; justify-content: space-between; align-items: end; font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.ld-count strong { font-family: var(--display); font-size: clamp(3rem, 10vw, 8rem); color: var(--fg); font-weight: 800; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ld-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Grain */
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 250; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-4%, -3%); } 80% { transform: translate(7%, 5%); } 100% { transform: translate(0, 0); } }

/* Cursor */
.cur-dot, .cur-ring { display: none; position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; border-radius: 50%; }
.has-cursor .cur-dot, .has-cursor .cur-ring { display: grid; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; mix-blend-mode: difference; }
.cur-ring { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid rgba(236, 235, 230, .6); place-items: center; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bg); transition: width .35s var(--expo), height .35s var(--expo), margin .35s var(--expo), background .3s, border-color .3s, opacity .3s; }
.cur-ring span { opacity: 0; transition: opacity .2s; }
.cur-ring.is-link { width: 76px; height: 76px; margin: -38px 0 0 -38px; border-color: var(--accent); background: rgba(169, 155, 255, .16); }
.cur-ring.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cur-ring.is-view span { opacity: 1; }
.cur-ring.is-hidden, .cur-dot.is-hidden { opacity: 0; }

/* Progress and nav */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 220; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 200; padding: 1.2rem 0; mix-blend-mode: difference; color: #fff; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.25rem; letter-spacing: -.03em; }
.nav ul { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav ul a { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; position: relative; padding: .3rem 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--expo); }
.nav ul a:hover::after, .nav ul a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Split text and reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em 0 .14em; margin: -.12em 0 -.14em; }
.wi { display: inline-block; }
.anim .is-split .wi { transform: translateY(115%); transition: transform 1.2s var(--expo); transition-delay: calc(var(--i, 0) * 70ms); }
.anim .is-split.in .wi { transform: none; }
.anim .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--expo), transform 1.2s var(--expo); transition-delay: var(--d, 0s); }
.anim .rv.in { opacity: 1; transform: none; }
.anim .cc-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--expo) var(--d, 0s); }
.anim .cc.in .cc-img { clip-path: inset(0); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem 0 2rem; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: var(--gx, 75%); top: var(--gy, 30%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(169, 155, 255, .22), transparent 62%); transition: left 1.2s var(--expo), top 1.2s var(--expo); pointer-events: none; }
.hero-media { position: absolute; inset: -20px; transition: transform 1.2s var(--expo); z-index: -2; pointer-events: none; }
.hero-media video { position: absolute; right: 0; top: 0; width: min(100%, 120vh * 1.82); height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .72; -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 55%); mask-image: linear-gradient(90deg, transparent 8%, #000 55%); }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(to top, var(--bg), transparent); }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.hero-cta .btn { padding: 1rem 1.7rem; transition: background .3s, transform .5s var(--expo); }
.hero-cta .btn:hover { transform: translateX(.3rem); }
.hero-top { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { font-weight: 800; font-variation-settings: "wdth" 106; font-size: clamp(3.1rem, 11.4vw, 12.5rem); line-height: .9; letter-spacing: -.045em; max-width: 14ch; }
.hero h1 .acc { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 2rem; align-items: end; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-bottom p { color: var(--muted); max-width: 44ch; }
.pill { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 99px; padding: .5rem 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(169, 155, 255, .7); } 100% { box-shadow: 0 0 0 .7rem rgba(169, 155, 255, 0); } }

/* Marquee */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 1rem 0; user-select: none; }
.marquee:first-of-type { border-top: 1px solid var(--line); }
.mq { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee.out .mq { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .mq { animation-play-state: paused; }
.mq ul { display: flex; flex-shrink: 0; }
.mq li { font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(2.2rem, 6.5vw, 5.5rem); letter-spacing: -.03em; line-height: 1; text-transform: uppercase; display: flex; align-items: center; padding-right: .5em; white-space: nowrap; }
.mq li::after { content: ""; width: .28em; height: .28em; border-radius: 50%; background: var(--accent); margin-left: .5em; }
.marquee.out li { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
@keyframes mq { to { transform: translateX(-50%); } }

/* Statement */
section { padding: clamp(5rem, 11vw, 10rem) 0; }
#statement { font-weight: 600; font-variation-settings: "wdth" 100; font-size: clamp(1.8rem, 4.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.03em; max-width: 24ch; }
#statement .sw { display: inline-block; }
.statement .acc { color: var(--accent); }

/* Work */
h2 { font-weight: 800; font-variation-settings: "wdth" 106; font-size: clamp(2.6rem, 7.4vw, 7.4rem); line-height: .92; letter-spacing: -.045em; margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 14ch; }
.work-list { border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); transition: opacity .5s; }
.work-row { display: grid; grid-template-columns: 4.5rem 1fr minmax(0, 1.1fr) auto; gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.6rem) 0; position: relative; }
.work-row .no { font-family: var(--mono); color: var(--muted); font-size: .85rem; }
.work-row .ttl { font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(2.4rem, 6.6vw, 6.8rem); line-height: .95; letter-spacing: -.045em; transition: transform .7s var(--expo), color .4s; }
.work-row .dsc { color: var(--muted); }
.work-row .dsc small { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.work-row .ar { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.2rem; transition: background .4s, color .4s, transform .6s var(--expo), border-color .4s; }
.work-row:hover .ttl, .work-row:focus-visible .ttl { transform: translateX(1.2rem); color: var(--accent); }
.work-row:hover .ar, .work-row:focus-visible .ar { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: rotate(45deg); }
.work-row .inline { grid-column: 1 / -1; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--bg2); }
.work-row .inline img { width: 100%; height: 112%; object-fit: cover; object-position: top; }
.has-peek .work-row .inline { display: none; }
.anim .work-row .inline { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--expo); }
.anim .work-item.in .inline { clip-path: inset(0); }
.anim .work-item .inline img { scale: 1.25; transition: scale 1.6s var(--expo); }
.anim .work-item.in .inline img { scale: 1; }
.has-peek .work-list:hover .work-item:not(:hover), .has-peek .work-list:focus-within .work-item:not(:focus-within) { opacity: .3; }

/* Peek (cursor-following preview, desktop only) */
.peek { display: none; position: fixed; left: 0; top: 0; z-index: 150; width: min(26rem, 32vw); aspect-ratio: 16 / 10; pointer-events: none; border-radius: 12px; overflow: hidden; opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--expo); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: var(--bg2); }
.has-peek .peek { display: block; }
.peek.show { opacity: 1; scale: 1; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .35s; }
.peek img.on { opacity: 1; }

/* Concepts */
.concepts { background: var(--bg2); }
.concepts .lead { color: var(--muted); max-width: 52ch; margin: -1.5rem 0 3rem; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); align-items: start; }
.cc { display: block; perspective: 1000px; }
.cc-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--expo); transform-style: preserve-3d; }
.cc-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; background: #1b1b1f; position: relative; }
.cc-img img { width: 100%; height: 118%; object-fit: cover; transition: scale 1.2s var(--expo), filter .6s; filter: saturate(.85); }
.cc:hover .cc-img img, .cc:focus-visible .cc-img img { scale: 1.06; filter: saturate(1.1); }
.cc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, .75)); }
.cc-tag { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: rgba(10, 10, 11, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cc-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 1rem; }
.cc-meta h3 { font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1; }
.cc-meta p { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.cc-meta .go { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); white-space: nowrap; }
.cc:nth-child(2) { margin-top: 4rem; }
.cc:nth-child(3) { margin-top: 8rem; }

/* Steps */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); counter-reset: s; }
.step-list li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.step-list .sn { color: var(--accent); display: block; margin-bottom: 2.5rem; }
.step-list h3 { font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: .8rem; }
.step-list p { color: var(--muted); max-width: 34ch; }

/* Offer */
.offer-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.price { display: flex; align-items: baseline; gap: .2em; font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(5.2rem, 17vw, 17rem); line-height: .82; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price .cur { font-size: .22em; letter-spacing: -.02em; color: var(--accent); }
.price .cur small { display: block; font-family: var(--mono); font-weight: 500; font-size: max(.3em, .64rem); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .4em; white-space: nowrap; }
.price-note { color: var(--muted); margin-top: 1.6rem; max-width: 36ch; }
.terms { border-top: 1px solid var(--line); }
.terms div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: .2rem; }
.seats { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.seats i { display: inline-flex; gap: .35rem; }
.seats i b { width: .8rem; height: .8rem; border-radius: 50%; background: var(--accent); }

/* Contact */
.contact { padding-bottom: 2rem; overflow: hidden; }
.big { font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(3.6rem, 17.5vw, 18rem); line-height: .85; letter-spacing: -.06em; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; margin-bottom: clamp(3rem, 8vw, 7rem); }
.cta-row p { color: var(--muted); max-width: 36ch; }
.mag { display: inline-grid; place-items: center; text-align: center; width: clamp(9.5rem, 15vw, 13rem); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 700; line-height: 1.2; padding: 1.2rem; font-size: 1rem; transition: transform .35s var(--expo), background .3s, color .3s; }
.mag:hover, .mag:focus-visible { background: var(--fg); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-content: start; gap: 1.2rem; padding: var(--gutter); align-content: center; }
.nf h1 { font-weight: 800; font-size: clamp(7rem, 32vw, 24rem); line-height: .8; letter-spacing: -.06em; color: var(--accent); }
.nf p { color: var(--muted); font-size: 1.2rem; }
.btn { display: inline-block; justify-self: start; background: var(--accent); color: var(--bg); font-weight: 700; padding: .9rem 1.6rem; border-radius: 99px; }
.btn:hover { background: var(--fg); }

@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 1.2rem; }
  .work-row { grid-template-columns: 2.4rem 1fr auto; gap: .6rem 1rem; }
  .work-row .ttl, .work-row .dsc { grid-column: 2; }
  .work-row .ar { grid-column: 3; grid-row: 1 / span 2; }
  .cc-grid { grid-template-columns: 1fr; }
  .cc:nth-child(2), .cc:nth-child(3) { margin-top: 0; }
  .cc-img { aspect-ratio: 4 / 3; }
  .offer-grid { grid-template-columns: 1fr; align-items: start; }
  .grain { animation: none; }
  .step-list { grid-template-columns: 1fr; }
  .step-list .sn { margin-bottom: 1rem; }
  .hero-media video { width: 100%; object-position: 62% 50%; opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(180deg, #000 20%, transparent 85%); }
  .terms div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 480px) {
  .nav ul { gap: .8rem; }
  .nav ul a { font-size: .7rem; }
  .hero-top span:last-child { display: none; }
  .work-row .inline { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain, .loader { display: none; }
  .hero-media video { display: none; }
  .hero-media { background: url(../media/hero-poster.webp) 70% 50% / cover no-repeat; opacity: .9; }
  .mq { width: auto; flex-wrap: wrap; }
  .mq ul[aria-hidden] { display: none; }
  .mq ul { flex-wrap: wrap; }
}

/* Glass work grid */
.work .lead { color: var(--muted); max-width: 52ch; margin: -1.5rem 0 3rem; }
.glass-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.9rem, 2vw, 1.8rem); }
.g-vargr, .g-cross { grid-column: span 3; }
.g-a, .g-b, .g-c { grid-column: span 2; }
.g-b { margin-top: 2.5rem; }
.gcard { --mx: 50%; --my: 30%; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; border-radius: 22px; aspect-ratio: 16 / 10; isolation: isolate; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--expo), box-shadow .6s; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .25); -webkit-tap-highlight-color: transparent; }
.gcard:hover, .gcard:focus-visible { box-shadow: 0 40px 80px -30px rgba(120, 100, 255, .45), 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }
.gcard.is-open { visibility: hidden; }
.gimg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--bg2); }
.gimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--expo); }
.gcard:hover .gimg img, .gcard:focus-visible .gimg img { transform: scale(1.12); }
.gimg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 38%), linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, transparent 28%, transparent 62%, rgba(180, 190, 255, .14) 100%); mix-blend-mode: screen; pointer-events: none; }
.gmeta { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(14, 14, 18, .38); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.gmeta small { display: block; color: var(--accent); font-size: .68rem; }
.gmeta b { display: block; font-weight: 800; font-variation-settings: "wdth" 104; font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: -.03em; line-height: 1.05; }
.gmeta i { font-style: normal; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); opacity: .8; white-space: nowrap; }
.also { margin-top: 2.4rem; color: var(--muted); display: flex; gap: 1.2rem; }
.also a { color: var(--fg); border-bottom: 1px solid var(--line); }
.also a:hover { color: var(--accent); }

/* Shatter layers */
.shatter { position: fixed; left: 0; top: 0; z-index: 330; pointer-events: none; display: none; }
.shatter.on { display: block; }
.glassfx { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 340; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity .25s; }
.glassfx.on { opacity: .85; }
.viewer { position: fixed; inset: 0; z-index: 320; background: #0a0a0b; opacity: 0; transform: scale(1.14); transition: opacity var(--vdur, 1s) var(--expo), transform var(--vdur, 1s) var(--expo); }
.viewer[hidden] { display: none; }
.viewer.on { opacity: 1; transform: none; }
.viewer.plain { transition: opacity .25s; transform: none; }
.v-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.v-bar { position: absolute; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 1rem; padding: .5rem .6rem .5rem .6rem; border-radius: 99px; background: rgba(14, 14, 18, .62); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-width: calc(100vw - 1.5rem); }
.v-back { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .7rem 1.2rem; border-radius: 99px; background: var(--accent); color: var(--bg); white-space: nowrap; }
.v-back:hover { background: var(--fg); }
.v-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ext { color: var(--muted); white-space: nowrap; padding-right: .8rem; }
.v-ext:hover { color: var(--accent); }

/* Tweak panel */
.tweak { position: fixed; right: 1rem; top: 1rem; z-index: 700; width: min(19rem, calc(100vw - 2rem)); padding: 1rem; border-radius: 16px; background: rgba(14, 14, 18, .82); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--fg); font-family: var(--mono); font-size: .72rem; display: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.tweak.on { display: block; }
.tweak .tw-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .08em; }
.tweak .tw-h button { background: none; border: 0; color: var(--fg); font-size: 1.3rem; cursor: pointer; }
.tweak label { display: block; margin: .7rem 0; }
.tweak label span { display: flex; justify-content: space-between; margin-bottom: .25rem; color: var(--muted); }
.tweak output { color: var(--accent); }
.tweak input[type=range] { width: 100%; accent-color: var(--accent); }
.tweak select { width: 100%; background: #1b1b1f; color: var(--fg); border: 1px solid var(--line); padding: .4rem; font: inherit; }
.tweak .chk { display: flex; gap: .5rem; align-items: center; }
.tweak .tw-b { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tweak .tw-b button { flex: 1 1 auto; padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: #1b1b1f; color: var(--fg); font: inherit; cursor: pointer; }
.tweak .tw-b button:hover { background: var(--accent); color: var(--bg); }
.tweak .tw-n { color: var(--muted); margin: .7rem 0 0; line-height: 1.4; }
@media (max-width: 900px) {
  .glass-grid { grid-template-columns: 1fr; }
  .g-vargr, .g-cross, .g-a, .g-b, .g-c { grid-column: auto; margin-top: 0; }
  .v-title { display: none; }
  .gmeta i { display: none; }
}
@media (prefers-reduced-motion: reduce) { .glassfx, .shatter { display: none !important; } .gcard { transform: none !important; } }

/* while the glass is moving, switch off everything that is not the glass (keeps the frame rate up) */
html.shattering .grain, html.shattering .cur-dot, html.shattering .cur-ring { display: none; }
html.shattering .mq, html.shattering .hero::before { animation-play-state: paused; }

/* HERO v3: shattered glass over thumbnails, then the window */
.hero2 { position: relative; height: 320svh; padding: 0; }
.h2-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #040406; isolation: isolate; }
.h2-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 70% at 66% 44%, rgba(110, 140, 255, .22), transparent 70%), radial-gradient(40% 50% at 15% 85%, rgba(169, 155, 255, .12), transparent 70%); }
.h2-scene { position: absolute; inset: 0; z-index: 0; opacity: 0; transform-origin: 56% 47%; will-change: transform, opacity; }
.h2-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.h2-snow { position: absolute; left: 0; right: 0; top: -200px; bottom: 0; will-change: transform; background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 120px 90px, #fff 50%, transparent 52%), radial-gradient(2.5px 2.5px at 200px 160px, #fff 50%, transparent 52%); background-size: 240px 200px; opacity: .55; animation: snow 14s linear infinite; pointer-events: none; }
@keyframes snow { to { transform: translate3d(-60px, 200px, 0); } }
.h2-veil { position: absolute; inset: 0; z-index: 1; background: #040406; pointer-events: none; }
.h2-thumbs { position: absolute; inset: 0; z-index: 2; perspective: 900px; }
.h2-t { position: absolute; left: var(--l); top: var(--t); width: var(--w); rotate: var(--r); will-change: transform, opacity; }
.h2-t .gcard { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .3); }
.h2-t .gmeta { padding: .5rem .7rem; left: .5rem; right: .5rem; bottom: .5rem; }
.h2-t .gmeta b { font-size: clamp(.95rem, 1.5vw, 1.3rem); }
.h2-t .gmeta small { font-size: .6rem; }
.h2-glass { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.h2-still { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; mix-blend-mode: screen; pointer-events: none; opacity: .8; }
.h2-copy { position: absolute; z-index: 4; left: 0; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 6rem 0 2rem; pointer-events: none; will-change: transform, opacity; margin-inline: auto; }
.h2-copy a, .h2-copy .btn { pointer-events: auto; }
.h2-copy .hero-top { color: var(--muted); margin-bottom: clamp(1rem, 3vw, 2.4rem); display: flex; justify-content: space-between; gap: 1rem; }
.h2-copy h1 { font-weight: 800; font-variation-settings: "wdth" 106; font-size: clamp(2.8rem, 8.6vw, 9.4rem); line-height: .9; letter-spacing: -.045em; max-width: 11ch; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.h2-copy h1 .acc { color: var(--accent); }
.h2-copy .hero-bottom { margin-top: auto; display: grid; grid-template-columns: minmax(0, 36ch) auto; gap: 2rem; align-items: end; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.h2-copy .hero-bottom p { color: #b9b8b3; }
.h2-hint { position: absolute; z-index: 4; left: 50%; bottom: 1rem; transform: translateX(-50%); color: var(--muted); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 50% { transform: translate(-50%, 6px); } }
.h2-end { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding-bottom: clamp(2.5rem, 8vh, 6rem); opacity: 0; margin-inline: auto; pointer-events: none; background: none; }
.h2-end::before { content: ""; position: absolute; left: -10vw; right: -10vw; bottom: 0; height: 160%; z-index: -1; background: linear-gradient(to top, rgba(4, 4, 6, .82), transparent); }
.h2-endt { font-weight: 800; font-variation-settings: "wdth" 106; font-size: clamp(2.2rem, 6vw, 6rem); letter-spacing: -.04em; line-height: .95; max-width: 14ch; }
.h2-ends { color: #c9d0e0; max-width: 40ch; margin-top: .8rem; }
.hero2 + .marquee { position: relative; z-index: 2; background: var(--bg); }
html:not(.hero-ready) .h2-thumbs { visibility: visible; }
@media (max-width: 900px) {
  .hero2 { height: 300svh; padding: 0; }
  .h2-copy { padding-top: 5rem; }
  .h2-copy h1 { font-size: clamp(2.5rem, 12vw, 4.4rem); max-width: 10ch; }
  .h2-copy .hero-bottom { grid-template-columns: 1fr; gap: .8rem; }
  .h2-copy .hero-bottom p { display: none; }
  .h2-copy .hero-top span:last-child { display: none; }
  .h2-t:nth-child(1) { --l: 4% !important; --t: 37% !important; --w: 47% !important; }
  .h2-t:nth-child(2) { --l: 49% !important; --t: 42% !important; --w: 46% !important; }
  .h2-t:nth-child(3) { --l: 6% !important; --t: 52% !important; --w: 44% !important; }
  .h2-t:nth-child(4) { --l: 51% !important; --t: 57% !important; --w: 42% !important; }
  .h2-t:nth-child(5) { --l: 27% !important; --t: 67% !important; --w: 44% !important; }
  .h2-t .gmeta i { display: none; }
  .h2-t .gmeta { padding: .35rem .5rem; }
  .h2-t .gmeta small { display: none; }
}
/* reduced motion or no script: the glass is a still picture, no pinning, no window push */
html.hero-still .hero2 { height: auto; }
html.hero-still .h2-stage { position: relative; min-height: 100svh; height: 100svh; }
html.hero-still .h2-glass, html.hero-still .h2-snow, html.hero-still .h2-veil, html.hero-still .h2-scene, html.hero-still .h2-hint, html.hero-still .h2-end { display: none; }
html.hero-still .h2-still { display: block; }
html.hero-still .h2-t, html.hero-still .h2-copy { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero2 { height: auto; }
  .h2-stage { position: relative; height: 100svh; }
  .h2-glass, .h2-snow, .h2-veil, .h2-scene, .h2-hint, .h2-end { display: none; }
  .h2-still { display: block; }
}
html.shattering .h2-snow { animation-play-state: paused; }

.h2-copy .hero-bottom p, .h2-copy .hero-top span { text-shadow: 0 2px 16px #000, 0 0 3px #000; }
.h2-copy .hero-bottom { background: linear-gradient(to top, rgba(4,4,6,.7), transparent); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }

/* cheap-to-paint hero: no backdrop blur and no blend modes on layers that move over the glass */
.h2-t .gmeta { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 10, 14, .62); }
.h2-t .gimg::after { mix-blend-mode: normal; opacity: .45; }
@media (max-width: 900px) { .nav { mix-blend-mode: normal; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); } }

/* Draggable dots */
.cta-row { align-items: flex-start; }
.dots { position: relative; flex: 1 1 28rem; min-height: 19rem; touch-action: pan-y; }
.dotd { position: absolute; left: 0; top: 0; width: clamp(8rem, 12vw, 11.5rem); font-size: .95rem; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; will-change: transform; -webkit-tap-highlight-color: transparent; }
.dotd.dragging { cursor: grabbing; background: var(--fg); }
.dotd:hover:not(.dragging) { background: #bdb2ff; }
.powered { margin: -2.2rem 0 2.2rem; color: var(--muted); font-size: .72rem; }
.powered a, .foot-rune { border-bottom: 1px solid var(--line); }
.powered a:hover, .foot-rune:hover { color: var(--accent); }
@media (max-width: 900px) { .dots { min-height: 21rem; width: 100%; flex-basis: 100%; } .dotd { width: 8.6rem; font-size: .85rem; padding: .8rem; } .powered { margin-top: -1.4rem; } }

.h2-cap { position: absolute; z-index: 4; right: var(--gutter); bottom: 5.2rem; color: #d7dbea; text-shadow: 0 2px 12px #000; margin: 0; pointer-events: none; font-size: .72rem; }
@media (max-width: 900px) { .h2-cap { left: var(--gutter); right: auto; bottom: 4.4rem; } }

/* HERO v4: one continuous take (video frames scrubbed by scroll) */
.h2-stage { background: #05060a; }
.h2-cam { position: absolute; inset: 0; z-index: 1; transform-origin: 70% 42%; will-change: transform; }
#h2seq { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #05060a; }
.h2-hits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; transition: opacity .4s; }
.h2-hits .hit { cursor: pointer; outline: none; }
.h2-hits .hit polygon.hp { fill: rgba(255, 255, 255, 0); stroke: none; pointer-events: all; }
.h2-hits .wash, .h2-hits .rim, .h2-hits .gloss { pointer-events: none; mix-blend-mode: normal; }
.h2-hits .shine { transform-box: fill-box; transform: translateX(-130%) skewX(-18deg); opacity: 0; }
.h2-hits .hit:hover .shine, .h2-hits .hit:focus-visible .shine { transform: translateX(300%) skewX(-18deg); opacity: 1; transition: transform 1.5s cubic-bezier(.45,.05,.3,1); }
.h2-hits .hit .shine { transition: transform 0s 1.5s, opacity .2s 1s; }
.h2-hits .hit:hover .shine, .h2-hits .hit:focus-visible .shine { transition: transform 1.5s cubic-bezier(.45,.05,.3,1), opacity .1s; }
@media (prefers-reduced-motion: reduce) { .h2-hits .shine { display: none; } }
/* top backing so logo, nav and name stay readable over bright shards; scrim keeps the headline readable */
.h2-stage::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 13rem; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, rgba(5,6,10,.82), rgba(5,6,10,.5) 45%, rgba(5,6,10,0)); }
.h2-stage::before { display: block; content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 40% 46% at 22% 88%, rgba(5,6,10,.8), rgba(5,6,10,.5) 45%, rgba(5,6,10,0) 100%); }
.h2-copy .hero-top { color: #dfe3f2; }
.hero-top { text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.nav::before { content: ""; position: absolute; inset: 0 0 -1.5rem 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: linear-gradient(to bottom, rgba(5,6,10,.7), rgba(5,6,10,0)); }
html.in-hero .nav { mix-blend-mode: normal; }
html.in-hero .nav::before { opacity: 1; }
.h2-copy .hero-bottom { background: none; }
.h2-copy { z-index: 4; }
.h2-still { z-index: 1; mix-blend-mode: normal; opacity: 1; }
html.hero-still .h2-cam { display: block; }
html.hero-still .h2-cam #h2seq { display: none; }
html.hero-still .h2-hits { opacity: 1; }
html.hero-still .h2-still { display: block; }
@media (prefers-reduced-motion: reduce) { .h2-still { display: block; } #h2seq { display: none; } .h2-cam { transform: none !important; } }
@media (max-width: 900px) { .h2-cam { transform-origin: 62% 42%; } }

/* hero v4 layout: headline sits low-left on the dark sill, the shards keep the middle of the picture */
.h2-copy { justify-content: flex-end; padding: 0 0 3.6rem; }
.h2-copy::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -1; background: linear-gradient(to top, rgba(4, 5, 9, .82), rgba(4, 5, 9, .35) 55%, transparent); pointer-events: none; }
.h2-copy .hero-top { position: absolute; top: 5.2rem; left: 0; right: 0; }
.h2-copy h1 { font-size: clamp(2.3rem, 5.4vw, 6.4rem); max-width: 11ch; margin-bottom: 1.4rem; }
.h2-copy .hero-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; border-top: 0; padding-top: 0; margin-top: 0; }
.h2-copy .hero-bottom p { max-width: 36ch; }
.h2-cap { bottom: 1.1rem; right: var(--gutter); left: auto; }
.h2-hint { bottom: 1.1rem; }
@media (max-width: 900px) {
  .h2-copy { padding-bottom: 4.6rem; }
  .h2-copy h1 { font-size: clamp(2.2rem, 10.5vw, 3.8rem); max-width: 10ch; margin-bottom: 1rem; }
  .h2-copy .hero-top { top: 4.6rem; }
  .h2-cap { left: var(--gutter); right: auto; bottom: 2.6rem; }
  .h2-hint { left: auto; right: var(--gutter); transform: none; animation: none; bottom: 1.1rem; }
}
.h2-copy::before { left: calc(50% - 50vw); right: calc(50% - 50vw); }
