/* ===== 1. EASY SETTINGS: change colours, fonts and spacing here ===== */
:root {
  --bg: #ecebe6;        /* page background */
  --ink: #2a2a2a;       /* main text */
  --muted: #6b6a66;     /* secondary text */
  --violet: #6d5a8f;    /* accent (Urban Violet) */
  --sand: #cdbfae;      /* Sand Beige */
  --grey: #4b4b4b;      /* Concrete Grey */
  --line: #d6d4cc;      /* thin lines */
  --pad: clamp(20px, 5vw, 72px);   /* side spacing, shrinks on mobile */
  --font: 'Poppins', system-ui, sans-serif;
  --logo-font: 'Fraunces', Georgia, serif;
}

/* ===== 2. BASICS ===== */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h2 { font-weight: 500; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 2rem; }
.sub { font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 5rem 0 1.5rem; }
.logo { font-family: var(--logo-font); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ===== 3. HEADER ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); background: rgba(236, 235, 230, .88); backdrop-filter: blur(8px);
}
.nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: .95rem; }
.nav a { padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a.active { border-color: var(--ink); }

/* ===== 4. HERO + SLIDER ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding: 110px var(--pad) 60px; }
h1 { font-weight: 500; font-size: clamp(3.2rem, 9vw, 7.5rem); letter-spacing: -0.04em; line-height: 1; }
.hero-logo { perspective: 500px; }
.hero-logo img { width: clamp(10px, 12vw, 50px); height: auto; animation: logo-turn 6s ease-in-out infinite; }  /* 50px = size, 6s = turns once every 6 seconds */
@keyframes logo-turn { 0% { transform: rotateY(0); } 18% { transform: rotateY(360deg); } 100% { transform: rotateY(360deg); } }
.lead { max-width: 30ch; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--muted); font-weight: 300; }
.controls { display: flex; align-items: center; gap: 12px; margin-top: 1rem; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: none; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s; }
.arrow:hover { background: var(--ink); color: var(--bg); }
.dots { display: flex; gap: 8px; margin-left: 12px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.dots button.on { background: var(--violet); transform: scale(1.3); }

.slider { overflow: hidden; background: #dcdad3; min-height: 100svh; }
.track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.slide { flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; min-height: 100svh; object-fit: cover; object-position: center 25%; }

/* ===== 5. LOGO STRIP (moves as you scroll; JS sets --shift) ===== */
.marquee { overflow: hidden; padding: 3rem 0; border-block: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 2.5rem; width: max-content; white-space: nowrap; font-family: var(--logo-font); font-weight: 800; font-size: clamp(2.6rem, 8vw, 6.5rem); letter-spacing: -0.04em; line-height: 1.2; }
.row-a { transform: translateX(calc(-30vw + var(--shift, 0px))); }
.row-b { transform: translateX(calc(-70vw - var(--shift, 0px))); color: transparent; -webkit-text-stroke: 1px var(--ink); }
.row i { width: .45em; height: .45em; border-radius: 50%; display: inline-block; }

/* ===== 6. FEATURES ===== */
.section { padding: 6rem var(--pad); }
/* Featured In: dark glass look. Darker/lighter photo = brightness(.5); glass strength = the .72 in ".partners li" */
.featured { position: relative; isolation: isolate; overflow: hidden; padding: 6rem var(--pad); background: #0f0e0c; color: #f4f2ec; }
.featured-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; filter: brightness(.5) saturate(1.15) blur(3px); transform: scale(1.08); z-index: -2; }
.featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.1), transparent 60%), linear-gradient(180deg, rgba(8,8,8,.55), rgba(8,8,8,.12) 45%, rgba(8,8,8,.6)); }
.featured h2 { color: #fff; }
.partners { list-style: none; display: flex; justify-content: space-around; padding: 10px 0; margin: 0; background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255,255,255,.2); border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.partners li { flex: 1 1 0; min-width: 0; height: 110px; display: flex; align-items: center; justify-content: center; }
.partners li + li { border-left: 1px solid rgba(255,255,255,.18); }
/* logos are shown in white; delete "filter: brightness(0) invert(1);" to show original colours */
.partners img { max-width: 72%; max-height: 54px; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .88; transition: opacity .2s, transform .2s; }
.partners li:hover img { opacity: 1; transform: translateY(-2px); }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card figcaption { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.video-frame { position: relative; aspect-ratio: 1 / 1; background: #dcdad3; border-radius: 16px;  /* square video frame */ display: grid; place-items: center; overflow: hidden; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; }
.play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 17px solid var(--ink); border-block: 11px solid transparent; }
.soon { position: absolute; bottom: 14px; font-size: .85rem; color: var(--muted); }

.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ticks li { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start; }
.ticks li:first-child .step-icon { object-position: 14px center; }  /* shifts the 1st icon right; raise 14px to move it more */
.step-icon { width: 88px; height: 68px; object-fit: contain; object-position: left center; }  /* same box for all 3 icons: change 88px / 68px to resize them together */
.ticks h4 { font-weight: 500; font-size: 1.15rem; margin-bottom: .4rem; }
.ticks p { color: var(--muted); font-weight: 300; max-width: 34ch; }

.specs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.specs img { width: 100%; max-height: 80svh; object-fit: cover; }
.specs dl > div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ===== 7. INTENT one-liner ===== */
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.intent-title + .sub { margin-top: 2.5rem; }  /* gap between the title and "How Lenscase works" (was 5rem) */
.intent-title { margin-bottom: 0; max-width: 18ch; font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 1.06; letter-spacing: -0.035em; }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 2.5rem var(--pad); color: var(--muted); }
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-left .logo { color: var(--ink); }
.ip-badge { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.ip-badge img { height: 72px; width: auto; }  /* logo size */
.ip-badge b { color: var(--ink); font-weight: 500; }

/* ===== 8. MOBILE / TABLET: layout adapts automatically ===== */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .slider { order: -1; min-height: 0; height: 68svh; margin-top: 64px; }
  .slide img { min-height: 0; }
  .hero-text { padding: 2rem var(--pad) 3rem; }
  .videos, .ticks, .specs { grid-template-columns: 1fr; }
  .partners { flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 6px 0; }
  .partners li, .partners li + li { flex: 0 0 33.333%; height: 78px; border-left: 0; }
  .partners img { max-height: 40px; }
  .specs dl > div { grid-template-columns: 7rem 1fr; }
  .specs img { height: auto; max-height: none; aspect-ratio: 1414 / 1162; object-fit: cover; }  /* cropped photo: no text visible */
  .ip-badge img { height: 56px; }
  .section, .featured { padding-block: 4rem; }
}

/* Tap-to-play button: only appears if a phone (e.g. Low Power Mode) blocks video autoplay */
.video-frame .play { z-index: 2; cursor: pointer; border-color: #fff; background: rgba(0,0,0,.35); }
.video-frame .play::after { border-left-color: #fff; }
.video-open { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .85rem; }
