/* TV Designer website. One bright room; the TV on its wall is the product, and every section below is
   another of that room's walls, painted one of its colours, hanging one TV doing one thing.
   Colours are the room's own: powder blue wall, tomato sideboard, sunshine cushion, blush rug, leaf. */

@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght.woff2) format("woff2"); font-weight: 600 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --wall: #BDCFE1;
  --wall-tall: #CCDAE8;
  --ink: #14131A;
  --ink-2: #44424C;
  --ink-3: #5F5D67;
  --tomato: #F2441B;
  --sky: #9CCBF0;
  --sun: #FFC81E;
  --blush: #F8D3CC;
  --leaf: #11804B;
  --bezel: #0B0B0D;

  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.4vw, 72px);
  --max: 1360px;
  --radius-xl: clamp(22px, 2.6vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-tv: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 34px 60px -30px rgba(30, 20, 30, 0.5), 0 12px 24px -12px rgba(30, 20, 30, 0.28);
  accent-color: var(--tomato);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, .h2, .p-title { font-family: var(--display); font-weight: 900; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(52px, 7.6vw, 124px); line-height: 0.9; letter-spacing: -0.04em; }
.h2 { font-size: clamp(38px, 5.4vw, 84px); line-height: 0.96; letter-spacing: -0.035em; }
.sub { margin: 20px 0 0; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s var(--ease-out); }
.pill-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 19, 26, 0.6); }
.pill-ink:hover { background: #2A2833; transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(20, 19, 26, 0.65); }
.pill-ink:active { transform: translateY(0) scale(0.98); }
.pill-lg { height: 58px; padding: 0 30px; font-size: 18px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 900 21px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); padding: 8px 16px 8px 12px; border-radius: 999px; transition: background-color 0.3s, box-shadow 0.3s; }
.brand-mark { width: 28px; height: 28px; fill: var(--tomato); stroke: none; }
.brand-mark path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.nav-cta { height: 44px; padding: 0 20px; font-size: 15px; opacity: 0; transform: translateY(-6px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), background-color 0.25s; }
.nav.solid .brand { background: var(--paper); box-shadow: 0 8px 22px -14px rgba(20, 19, 26, 0.45); }
.nav.solid .nav-cta { opacity: 1; transform: none; }

/* ---------- hero: the room ---------- */
.hero { position: relative; height: 220svh; background: var(--wall); }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--wall); }
.scene { position: absolute; left: 0; top: 0; width: 150vw; aspect-ratio: 5504 / 3072; transform-origin: 0 0; will-change: transform; }
.scene picture, .room { position: absolute; inset: 0; width: 100%; height: 100%; }
.room { object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 6%, #000 15%); mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 6%, #000 15%); }
.screen { position: absolute; left: 35.48%; top: 32.55%; width: 29.03%; height: 28.58%; overflow: hidden; background: #000; border-radius: 0.25%; }
.shot, .screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot { opacity: 0; transition: opacity 0.55s ease; }
.screen.live .shot { opacity: 0; transition-duration: 0.2s; }
.shot.on { opacity: 1; }
.screen-video { opacity: 0; transition: opacity 0.2s linear; }
.screen-video.on { opacity: 1; }
.glare { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 46%); pointer-events: none; }

.hero-copy { position: absolute; z-index: 2; left: 50%; top: clamp(84px, 13svh, 150px); width: min(100% - 2 * var(--gutter), 1100px); transform: translateX(-50%); text-align: center; will-change: transform, opacity; }
.lede { margin: clamp(14px, 1.8vw, 24px) auto 0; max-width: 31em; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.42; color: var(--ink-2); text-wrap: balance; }
.hero-act { margin-top: clamp(20px, 2.4vw, 32px); display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.free { font-size: 15px; font-weight: 500; color: var(--ink-2); }

.now { position: absolute; z-index: 2; left: 0; top: 0; margin: 0; display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(251, 250, 247, 0.94); color: var(--ink); font: 600 14px/1 var(--text); letter-spacing: -0.005em; box-shadow: 0 8px 20px -12px rgba(30, 20, 40, 0.5); opacity: 0; transition: opacity 0.5s; white-space: nowrap; }
.now.show { opacity: 1; }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }

/* ---------- a TV hung on a wall (wall frames, promises, close) ---------- */
.tv { position: relative; border-radius: clamp(8px, 0.8vw, 12px); background: var(--bezel); padding: clamp(3px, 0.32vw, 5px); box-shadow: var(--shadow-tv); }
.tv video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(5px, 0.5vw, 8px); background: #000; }
.tv img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(5px, 0.5vw, 8px); }

/* ---------- film ---------- */
.film { position: relative; z-index: 3; background: var(--paper); padding: clamp(84px, 11vw, 168px) 0 clamp(72px, 9vw, 136px); }
.film .wrap { text-align: center; }
.film .sub { margin-inline: auto; }
.film-frame { position: relative; margin: clamp(40px, 5vw, 72px) auto 0; width: min(100% - 2 * var(--gutter), 1560px); border-radius: var(--radius-xl); overflow: hidden; background: var(--tomato); aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -50px rgba(60, 20, 10, 0.55); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-toggle { position: absolute; right: clamp(12px, 1.6vw, 24px); bottom: clamp(12px, 1.6vw, 24px); display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: rgba(251, 250, 247, 0.92); color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; transition: background-color 0.2s, transform 0.3s var(--ease-out); }
.film-toggle:hover { background: #fff; }
.film-toggle:active { transform: scale(0.97); }
.film-toggle svg { width: 18px; height: 18px; fill: var(--ink); stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.film-toggle .i-pause { fill: none; }
.film-toggle .i-play { display: none; }
.film-toggle[aria-pressed="true"] .i-play { display: block; }
.film-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- looks: a salon wall, painted blush ---------- */
.looks { padding: clamp(84px, 10vw, 152px) var(--gutter); background: var(--blush); }
.looks .wrap { width: min(100%, var(--max)); }
.looks .sub { color: #5B2F2A; }
.wall { width: min(100%, 1480px); margin: clamp(40px, 5vw, 72px) auto 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.2vw, 36px); row-gap: clamp(28px, 3.6vw, 56px); align-items: center; }
.frame { margin: 0; }
figcaption { margin-top: 14px; font-size: 15px; line-height: 1.4; color: #6A3A33; }
figcaption b { display: block; font: 900 19px/1.15 var(--display); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2px; }
/* the hang: one big centre, smaller around it */
.f-a { grid-column: 1 / span 8; grid-row: 1 / span 2; }
.f-b { grid-column: 9 / span 4; }
.f-c { grid-column: 9 / span 4; }
.f-d { grid-column: 1 / span 4; }
.f-e { grid-column: 5 / span 4; }
.f-f { grid-column: 9 / span 4; }
.f-g { grid-column: 1 / span 5; }
.f-h { grid-column: 6 / span 4; }
.f-i { grid-column: 10 / span 3; }

/* ---------- promises: four walls ---------- */
.promise { display: grid; grid-template-columns: repeat(12, 1fr); align-items: center; column-gap: clamp(24px, 4vw, 72px); padding: clamp(84px, 10vw, 150px) max(var(--gutter), calc((100% - var(--max)) / 2)); }
.p-copy { grid-column: 1 / span 5; }
.p-tv { grid-column: 6 / span 7; }
.promise:nth-child(even) .p-copy { grid-column: 8 / span 5; grid-row: 1; }
.promise:nth-child(even) .p-tv { grid-column: 1 / span 7; grid-row: 1; }
.p-title { font-size: clamp(56px, 7.4vw, 120px); line-height: 0.9; letter-spacing: -0.04em; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.12em 0.3em; }
.promise p { margin: clamp(16px, 1.6vw, 24px) 0 0; max-width: 22em; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; }
.beta { display: inline-flex; align-items: center; vertical-align: 0.1em; height: 26px; padding: 0 10px; margin: 0 2px; border-radius: 999px; font: 700 14px/1 var(--text); letter-spacing: 0.01em; background: rgba(255, 255, 255, 0.94); color: var(--ink); }
.p-fast { background: var(--sun); }
.p-fast p { color: #3A2E05; }
.p-fast .speed { display: block; width: min(70%, 440px); height: auto; aspect-ratio: 880 / 64; margin: clamp(18px, 2vw, 28px) auto 0; border-radius: 999px; box-shadow: 0 18px 34px -18px rgba(60, 40, 0, 0.7); }
.p-private { background: var(--leaf); }
.p-private .p-title { color: #fff; }
.p-private p { color: #fff; }
.p-smart { background: var(--sky); }
.p-smart p { color: #12304A; }
.p-yours { background: var(--tomato); }
.p-yours .p-title { color: var(--ink); }
.p-yours p { color: #2B0A02; }

/* ---------- close: back to the room's blue wall ---------- */
.close { position: relative; text-align: center; background: var(--wall); padding: clamp(84px, 10vw, 150px) 0 0; }
.close > h2, .close > p { padding-inline: var(--gutter); }
.close-room { margin: clamp(32px, 4vw, 56px) 0 0; }
.room-box { position: relative; width: 100%; aspect-ratio: 5504 / 3072; overflow: hidden; }
.room-box picture, .room-box > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.room-box > picture img { object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
.close .sub { margin: 18px auto 32px; max-width: calc(30em + 2 * var(--gutter)); }

/* ---------- foot ---------- */
.foot { padding: 36px var(--gutter) 48px; background: var(--paper); color: var(--ink-3); font-size: 14px; text-align: center; }
.foot p { margin: 4px 0; }

/* ---------- reveal (content is visible by default; js only adds the lift) ---------- */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- phones ---------- */
@media (max-aspect-ratio: 4/5) {
  .hero { height: 170svh; }
  .hero, .hero-stage, .close { background: var(--wall-tall); }
  .scene { width: 160vw; aspect-ratio: 3072 / 5504; }
  .screen { left: 16.24%; top: 39.03%; width: 67.42%; height: 21.17%; }
  .now { display: none; }
  .room-box { aspect-ratio: 3072 / 5504; }
  .room-box .screen { left: 16.24%; top: 39.03%; width: 67.42%; height: 21.17%; }
}
@media (max-aspect-ratio: 1/1) {
  .film-frame { aspect-ratio: 4 / 5; }
}
@media (max-width: 900px) {
  .wall { grid-template-columns: repeat(2, 1fr); }
  .wall .frame { grid-column: auto; grid-row: auto; }
  .wall .f-a { grid-column: 1 / -1; }
  .promise { grid-template-columns: 1fr; row-gap: 36px; }
  .promise .p-copy, .promise .p-tv, .promise:nth-child(even) .p-copy, .promise:nth-child(even) .p-tv { grid-column: 1; grid-row: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pill-lg { height: 54px; padding: 0 26px; font-size: 17px; }
  .free { font-size: 14px; }
  .wall { column-gap: 14px; row-gap: 26px; }
  figcaption { font-size: 14px; margin-top: 10px; }
  figcaption b { font-size: 17px; }
  .film-toggle { font-size: 13px; }
  .nav { padding: 10px 12px; }
  .brand { font-size: 19px; }
  .beta { height: 26px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .shot, .screen-video { transition: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .pill, .nav-cta { transition: none; }
}
