/* NSO Northern Sport Optics, landing page */

@font-face { font-family: Gilroy; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/Gilroy-Light.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/Gilroy-Regular.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/Gilroy-Medium.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/Gilroy-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Gilroy; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/Gilroy-Bold.woff2) format("woff2"); }

:root {
  --dark: #1c1b1a;
  --darker: #151413;
  --ink: #3c3c3b;
  --strong: #231f20;
  --muted: #6b6a67;
  --alt: #f2f2f2;
  --line: #dad7d2;
  --accent: #ed6a24;
  --accent-text: #b8461c;
  --on-dark: #ffffff;
  --on-dark-soft: #c9c6c1;
  --on-dark-muted: #a6a4a0;
  --logo-gradient: linear-gradient(240deg, #ffd618 0%, #fdca22 3%, #f9b833 10%, #f7ac3d 17%, #f7a941 24%, #eb5c37 60%, #e7313b 100%);
  --gutter: clamp(20px, 8.3vw, 120px);
  --max: 1440px;
  --radius-card: 24px;
  --radius-btn: 12px;
  --section: clamp(80px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Gilroy, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.center { display: flex; justify-content: center; }

/* Type */
.display { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.025em; color: var(--on-dark); font-weight: 300; }
.display b, .display span, .h2 b, .h2 span { display: block; }
.display b, .h2 b, .card-title b { font-weight: 700; }
.h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; color: var(--strong); font-weight: 300; }
.h2-inline b, .h2-inline span { display: inline; }
.on-dark { color: var(--on-dark); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.lead { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-dark-soft); max-width: 440px; }
.body-lg { margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 560px; }
.small { margin-top: 20px; font-size: 15px; color: var(--on-dark-muted); }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--strong); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--logo-gradient); opacity: 0; transition: opacity .4s ease; }
.btn-primary:hover::before, .btn-primary:focus-visible::before { opacity: 1; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: var(--on-dark); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border: 1.5px solid #b9b6b1; color: var(--strong); }
.btn-outline:hover { border-color: var(--strong); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link .ic { width: 18px; height: 18px; fill: currentColor; transition: transform .25s ease; }
.link:hover .ic { transform: translateX(4px); }

/* Hero */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1400px; overflow: hidden; }
.hero-art--wide { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hero-art--narrow { display: none; }
.logo { position: absolute; z-index: 2; left: var(--gutter); top: 48px; width: 220px; }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(80px, 15.5vh, 140px); width: min(470px, 42vw); will-change: opacity, transform; }

/* Why NSO */
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 6.7vw, 96px); align-items: center; }
.why-media { border-radius: var(--radius-card); overflow: hidden; background: var(--dark); aspect-ratio: 467 / 580; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why .body-lg { max-width: 540px; }

/* Series */
.series { padding-top: 0; }
.series .h2 { margin-bottom: 128px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 104px 24px; }
.card { background: var(--alt); border-radius: var(--radius-card); display: flex; flex-direction: column; transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(20,18,18,.35); }
.card-media { height: 250px; margin-top: -80px; display: flex; align-items: flex-end; justify-content: center; padding: 0 20px; }
.card-media img { max-height: 290px; width: auto; filter: drop-shadow(0 22px 22px rgba(20,18,18,.30)); transition: transform .5s ease; }
.card:hover .card-media img { transform: translateY(-6px); }
.card-body { padding: 28px 36px 40px; display: flex; flex-direction: column; flex: 1; }
.card-body > p:not(.models):not(.eyebrow) { margin: 16px 0 28px; flex: 1; }
.card-title { font-size: 34px; line-height: 1; letter-spacing: -0.02em; color: var(--strong); font-weight: 300; }
.models { margin-top: 12px; font-size: 15px; font-weight: 500; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; align-items: end; min-height: 360px; }
.card-wide .card-body { padding: 56px 0 56px 56px; align-self: center; }
.card-wide .eyebrow { margin-bottom: 18px; }
.card-wide .card-media { height: auto; margin-top: -110px; padding: 0 40px 48px; }
.card-wide .card-media img { max-height: none; width: 100%; max-width: 680px; }
.series .center { margin-top: 56px; }

/* Places */
.places { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; color: #f0ede8; }
.places-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scaleX(-1); }
.places-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 120% at 0% 100%, rgba(20,19,18,.92) 0%, rgba(20,19,18,.78) 45%, rgba(20,19,18,0) 100%),
  linear-gradient(90deg, rgba(20,19,18,.45) 0%, rgba(20,19,18,.15) 45%, rgba(20,19,18,0) 70%); }
.places-copy { position: relative; padding-bottom: 120px; padding-top: 120px; }
.places-copy .h2, .places-copy .body-lg { max-width: 520px; }

/* Trust */
.trust { border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 64px; padding-top: 44px; padding-bottom: 44px; }
.trust-list li { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--strong); }
.trust-list .ic { width: 28px; height: 28px; fill: var(--accent); flex: none; }

/* Closing */
.closing { background: var(--dark); color: var(--on-dark-soft); }
.closing-grid { display: grid; grid-template-columns: 1fr 500px; gap: 80px; align-items: center; }
.closing-copy .body-lg { max-width: 560px; }
.kilen { position: relative; overflow: hidden; aspect-ratio: 43.6 / 55.4; clip-path: url(#kilen); -webkit-clip-path: url(#kilen); }
/* Same crop as the design: the bird's head and beak sit inside the wedge */
.kilen img { position: absolute; left: -0.9%; top: -1.1%; width: 137.6%; max-width: none; height: auto; }

/* Footer */
.footer { background: var(--darker); color: var(--on-dark-muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.footer-brand { display: flex; align-items: center; gap: 40px; }
.footer-brand img { width: 120px; height: auto; }
.footer a { color: #d9d7d3; text-underline-offset: 3px; }
.social { display: flex; gap: 16px; }
.social svg { width: 28px; height: 28px; fill: #d9d7d3; transition: fill .2s ease; }
.social a:hover svg { fill: #fff; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing-grid { grid-template-columns: 1fr 380px; gap: 48px; }
}

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-stage { height: auto; min-height: 0; max-height: none; padding-bottom: 56px; }
  .hero-art--wide { display: none; }
  .hero-art--narrow { display: block; width: calc(100% + 40px); margin: 32px -28px 0 -12px; }
  .logo { left: 24px; top: 24px; width: 144px; }
  .hero-copy { position: static; width: auto; padding: 8px 24px 0; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-media { aspect-ratio: 342 / 420; }
  .series .h2 { margin-bottom: 100px; }
  .cards { grid-template-columns: 1fr; gap: 96px; }
  .card-media { height: 190px; margin-top: -56px; padding: 0 16px; }
  .card-media img { max-height: 210px; }
  .card-body { padding: 20px 24px 28px; }
  .card-title { font-size: 28px; }
  .models { font-size: 14px; margin-top: 10px; }
  .card-wide { display: flex; flex-direction: column-reverse; min-height: 0; }
  .card-wide .card-body { padding: 20px 24px 28px; }
  .card-wide .card-media { margin-top: -56px; padding: 0 12px 8px; }
  .series .center { margin-top: 24px; }
  .series .center .btn { width: 100%; }
  .places { min-height: 560px; }
  .places-img { object-position: 39% 60%; }
  .places-shade { background: linear-gradient(0deg, rgba(20,19,18,.85) 0%, rgba(20,19,18,.5) 45%, rgba(20,19,18,0) 75%); }
  .places-copy { padding-bottom: 48px; }
  .trust-list { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
  .trust-list li { font-size: 12px; letter-spacing: .18em; line-height: 1.5; }
  .trust-list .ic { width: 26px; height: 26px; }
  .closing-grid { grid-template-columns: 1fr; gap: 40px; }
  .kilen { order: -1; width: 300px; max-width: 80%; margin-left: auto; }
  .footer-row { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::before, .card, .card-media img, .link .ic { transition: none; }
}
