/* GSPMEDIALAB · site styles
   Mobile first: base rules are written for phones, min-width queries add tablet and desktop.
   Type roles: Playfair Display for editorial moments (H1, H2, editorial H3, quote marks),
   Manrope for everything people read or operate, Inter only for the GSPMEDIALAB wordmark.
   All fonts are served from this site's own host (latin character set). */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; 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: "Playfair Display";
  src: url("../fonts/playfair-display-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; 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: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; 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;
}
/* The wordmark subset holds only the letters of GSPMEDIALAB */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-wordmark.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+41-42, U+44-45, U+47, U+49, U+4C-4D, U+50, U+53;
}

/* Metric-matched fallbacks, so lines keep their length and height while the web fonts load */
@font-face {
  font-family: "Playfair Display Fallback";
  src: local("Georgia");
  size-adjust: 101.75%;
  ascent-override: 106.34%;
  descent-override: 24.67%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 102.91%;
  ascent-override: 103.59%;
  descent-override: 29.15%;
  line-gap-override: 0%;
}

:root {
  /* Colour: the established GSPMEDIALAB palette */
  --bg: #0A0A0A;
  --bg-2: #0F0E0D;
  --bg-3: #141312;
  --fg: #F2F0ED;
  --muted: #9A968F;
  --accent: #C8B58D;
  --rule: rgba(242, 240, 237, 0.14);
  --rule-strong: rgba(242, 240, 237, 0.32);
  --rule-control: rgba(242, 240, 237, 0.45); /* outlines of form fields and the checkbox: at least 3:1 */
  --on-media: rgba(242, 240, 237, 0.86);
  --fg-soft: rgba(242, 240, 237, 0.86);
  --scrim: rgba(10, 10, 10, 0.62);

  /* Type families */
  --font-display: "Playfair Display", "Playfair Display Fallback", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Manrope Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Type scale. Phone values here, tablet and desktop values in the 768px block */
  --fs-h1: clamp(2.5rem, 11.2vw, 3.5rem);
  --fs-h1-page: clamp(2.25rem, 9.8vw, 3.25rem);
  --fs-h2: clamp(2.125rem, 9vw, 2.75rem);
  --fs-h3-ed: clamp(1.75rem, 7.4vw, 1.9rem);
  --fs-h3: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1.6vw, 1.375rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-caption: 0.875rem;
  --fs-label: 0.6875rem;
  --fs-nav: 0.8125rem;
  --fs-btn: 0.8125rem;

  --lh-h1: 1.04;
  --lh-h2: 1.1;
  --lh-h3-ed: 1.16;
  --lh-ui: 1.3;
  --lh-lede: 1.6;
  --lh-body: 1.7;
  --lh-caption: 1.5;

  --tr-h1: -0.025em;
  --tr-h2: -0.02em;
  --tr-h3-ed: -0.015em;
  --tr-h3: -0.01em;
  --tr-label: 0.18em;
  --tr-nav: 0.04em;
  --tr-btn: 0.06em;

  /* Layout */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --top: env(safe-area-inset-top, 0px);
  --maxw: 1160px;
  --section: 96px;
  --header-h: 60px;
  --frame-x: 12px;
  --radius: 12px;
  color-scheme: dark;
}
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section: 128px;
    --header-h: 72px;
    --frame-x: 20px;
    --fs-h1: clamp(3.5rem, 7.5vw, 8rem);
    --fs-h1-page: clamp(3.25rem, 6.2vw, 6.5rem);
    --fs-h2: clamp(2.75rem, 5vw, 5.5rem);
    --fs-h3-ed: clamp(1.9rem, 3vw, 3.25rem);
    --fs-h3: 1.1875rem;
    --fs-caption: 0.9375rem;
    --fs-label: 0.75rem;
    --fs-btn: 0.875rem;
  }
}
@media (min-width: 1200px) {
  :root { --gutter: 56px; --section: 152px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, blockquote, figure { margin: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.skip {
  position: fixed; left: 50%; top: calc(10px + var(--top)); z-index: 300;
  transform: translate(-50%, -200%);
  background: var(--fg); color: var(--bg); padding: 12px 18px;
  font-size: var(--fs-caption); font-weight: 600;
}
.skip:focus { transform: translate(-50%, 0); }

/* Type system */
h1, h2, h3 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h1, .display { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tr-h1); }
.display--page { font-size: var(--fs-h1-page); }
.display--page.h--long { font-size: calc(var(--fs-h1-page) * 0.84); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); }
h2.h--long { font-size: calc(var(--fs-h2) * 0.8); }

/* Functional headings stay in Manrope; editorial ones switch to Playfair */
h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--fs-h3); line-height: var(--lh-ui); letter-spacing: var(--tr-h3);
}
.case h3, .obj h3, .places .cell h3, .founder-strip h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3-ed); line-height: var(--lh-h3-ed); letter-spacing: var(--tr-h3-ed);
}
:is(h1, h2, h3) em { font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

.label {
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  line-height: 1.5; letter-spacing: var(--tr-label); text-transform: uppercase;
  color: var(--muted);
}
.n { color: var(--accent); font-variant-numeric: tabular-nums; }
.lede {
  font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--muted);
  max-width: 44ch; margin-inline: auto; text-wrap: balance;
}
.sent { display: inline-block; }
.note { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); text-wrap: balance; }
.tabnum { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.i { width: 14px; height: 14px; flex: none; }

/* Layout */
.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
}
.section { padding-block: var(--section); position: relative; }
.section--line { border-top: 1px solid var(--rule); }

.sec-head {
  display: grid; justify-items: center; gap: 20px;
  text-align: center; margin-bottom: 48px;
}
.sec-head .label { display: inline-flex; align-items: center; gap: 14px; }
.sec-head .label::before, .sec-head .label::after {
  content: ""; width: 28px; height: 1px; background: var(--rule-strong);
}
.sub-label {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 56px 0 20px;
}
.sub-label::before, .sub-label::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--rule); }
@media (min-width: 768px) {
  .sec-head { margin-bottom: 64px; gap: 24px; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 22px;
  font-family: var(--font-body); font-size: var(--fs-btn); font-weight: 600;
  line-height: 1.2; letter-spacing: var(--tr-btn); text-align: center; text-wrap: balance;
  border: 1px solid var(--fg); border-radius: 2px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { position: relative; overflow: hidden; background: var(--fg); color: var(--bg); }
/* A light sweeps across solid buttons on hover (pointer devices only) */
.btn--solid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-110%);
}
@media (hover: hover) { .btn--solid:hover::after { transform: translateX(110%); transition: transform 0.8s var(--ease); } }
@media (hover: hover) { .btn--solid:hover { background: var(--accent); border-color: var(--accent); } }
.btn--line { border-color: var(--rule-strong); }
@media (hover: hover) { .btn--line:hover { border-color: var(--fg); } }
.btn-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  width: 100%; max-width: 420px; margin-inline: auto;
}
.btn-row .btn { width: 100%; padding: 10px; }
@media (max-width: 359px) { .btn-row { grid-template-columns: 1fr; } }
.cta { display: grid; justify-items: center; gap: 14px; text-align: center; }
.links { display: flex; justify-content: center; gap: 28px; margin-top: 48px; flex-wrap: wrap; }
.link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px;
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s, color 0.3s;
}
.link::before { content: ""; position: absolute; inset: -6px -4px; }
@media (hover: hover) { .link:hover { border-color: var(--accent); color: var(--accent); } }

/* Viewfinder corners, the house device */
.c { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(242, 240, 237, 0.78); }
.c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.vf { position: relative; }
.vf > .frame { position: absolute; inset: 10px; pointer-events: none; transition: inset 0.6s var(--ease); }
@media (hover: hover) { .vf:hover > .frame { inset: 6px; } }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + var(--top));
  padding-top: var(--top); padding-left: var(--pad-l); padding-right: var(--pad-r);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.is-solid {
  background: rgba(10, 10, 10, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.site-header.is-menu { background: var(--bg); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand {
  font-family: var(--font-logo); font-size: 11.5px; font-weight: 600; line-height: 1;
  letter-spacing: 0.28em; padding-left: 0.28em;
  text-transform: uppercase; white-space: nowrap;
}
.menu-btn, .hdr-book {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-body); font-size: 0.71875rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.menu-btn { justify-self: start; }
.hdr-side { display: flex; align-items: center; min-width: 0; }
.hdr-side--left { display: none; }
.hdr-side--right { justify-content: flex-end; }
@media (max-width: 359px) { .menu-btn { letter-spacing: 0.06em; } }
@media (min-width: 400px) {
  .brand { font-size: 12.5px; letter-spacing: 0.32em; padding-left: 0.32em; }
  .menu-btn, .hdr-book { font-size: 0.75rem; }
}
.bars { position: relative; width: 18px; height: 8px; }
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.45s var(--ease);
}
.bars::before { top: 0; }
.bars::after { bottom: 0; }
[aria-expanded="true"] .bars::before { transform: translateY(3.5px) rotate(45deg); }
[aria-expanded="true"] .bars::after { transform: translateY(-3.5px) rotate(-45deg); }
.nav { display: none; }
@media (min-width: 1280px) {
  .menu-btn { display: none; }
  .brand { font-size: 13px; }
  .hdr-side--left, .hdr-side--right { display: flex; justify-content: space-between; }
  .nav {
    display: flex; gap: clamp(18px, 1.8vw, 32px);
    font-size: var(--fs-nav); font-weight: 500; letter-spacing: var(--tr-nav); white-space: nowrap;
  }
  .nav--left { margin-right: clamp(28px, 3vw, 56px); }
  .nav--right { margin-left: clamp(28px, 3vw, 56px); }
  .nav a { opacity: 0.74; padding-block: 6px; transition: opacity 0.3s, box-shadow 0.3s; }
  .nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
  .nav a:hover { box-shadow: 0 1px 0 var(--rule-strong); }
  .nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--accent); }
}

/* Language switch: short codes in the header, full names in the menu and footer */
.lang { display: flex; align-items: center; }
.lang a { color: var(--muted); transition: color 0.3s; }
.lang a[aria-current="true"] { color: var(--fg); }
@media (hover: hover) { .lang a:hover { color: var(--fg); } }
.lang a[aria-current="true"] {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.lang--header { gap: 2px; }
.lang--header a {
  display: inline-grid; place-items: center; min-width: 24px; min-height: 44px; padding-inline: 3px;
  font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: 0.08em;
}
.lang--full { justify-content: center; gap: 24px; font-size: var(--fs-caption); font-weight: 500; }
.lang--full a { padding-block: 8px; }

/* Menu overlay (phones and tablets) */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 44px;
  overflow-y: auto; overscroll-behavior: contain; /* a phone held sideways scrolls the menu instead of cutting it off */
  padding-top: calc(var(--header-h) + var(--top) + 16px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu > nav { margin-top: auto; } /* centred when it fits, from the top when it scrolls */
.menu > .menu-foot { margin-bottom: auto; }
@media (max-height: 500px) { .menu { gap: 24px; } .menu ol { gap: 2px; } }
.menu ol { display: grid; gap: 10px; text-align: center; }
.menu ol a {
  position: relative; display: inline-block;
  font-family: var(--font-body); font-size: clamp(1.75rem, 7.6vw, 2.25rem); font-weight: 500;
  line-height: 1.2; letter-spacing: -0.015em;
  transition: color 0.3s;
}
.menu ol a .n {
  position: absolute; right: calc(100% + 12px); top: 0.55em;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em;
}
.menu ol a[aria-current="page"] { color: var(--accent); }
@media (hover: hover) { .menu ol a:hover { color: var(--accent); } }
.menu-foot { display: grid; justify-items: center; gap: 16px; width: 100%; }
.menu-foot .btn { width: 100%; max-width: 340px; }
.menu-foot a:not(.btn) { font-size: var(--fs-caption); font-weight: 500; color: var(--muted); }
@media (min-width: 1280px) { .menu { display: none; } }

/* Home hero and opener */
.hero {
  position: relative; z-index: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  display: grid; align-items: end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bg-3); }
.hero__poster img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0) 18%, rgba(10, 10, 10, 0) 28%, rgba(10, 10, 10, 0.68) 50%, rgba(10, 10, 10, 0.9) 70%, rgba(10, 10, 10, 0.97) 100%),
    rgba(10, 10, 10, 0.18);
}
.hero__vf {
  position: absolute; z-index: 3; /* above .hero__content, so the Pause tag takes taps; the layer itself lets them through */
  top: calc(var(--header-h) + var(--top) + 6px);
  right: max(var(--frame-x), env(safe-area-inset-right, 0px));
  bottom: var(--frame-x);
  left: max(var(--frame-x), env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.vf-tag {
  position: absolute;
  font-family: var(--font-body); font-size: 0.625rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-media);
}
.vf-tag--tl { top: 14px; left: 16px; }
.vf-tag--tr { top: 14px; right: 16px; }
.vf-tag--bl { bottom: 14px; left: 16px; }
.vf-tag--br { bottom: 4px; right: 6px; padding: 10px; pointer-events: auto; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E5484D;
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }
@media (hover: hover) { .hero__pause:hover { color: var(--accent); } }
.hero__content {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: 18px;
  width: 100%;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.hero__content h1 { max-width: 9.6em; }
/* Small text over the film reads in the on-media colour, which keeps 4.5:1 on every frame */
.hero__content .label, .home .site-header:not(.is-solid):not(.is-menu) .lang a:not([aria-current="true"]) { color: var(--on-media); }
.hero__icp {
  display: grid; gap: 2px;
  font-size: clamp(0.625rem, 2.9vw, 0.75rem); font-weight: 600; line-height: 1.7;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-media);
}
.hero__content .btn-row { margin-top: 6px; }
@media (min-width: 768px) {
  .vf-tag--tl, .vf-tag--tr { top: 18px; }
  .vf-tag--tl, .vf-tag--bl { left: 20px; }
  .vf-tag--tr { right: 20px; }
  .vf-tag--bl { bottom: 18px; }
  .hero__content { gap: 24px; padding-bottom: 88px; }
  .hero__icp { display: block; }
  .hero__icp span + span::before { content: " · "; }
}

.opener { display: none; }
.js .opener {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  animation: op-gone 0s linear 2.15s forwards;
}
.opener__bg { position: absolute; inset: 0; background: var(--bg); animation: op-fade 0.85s var(--ease) 1.2s forwards; }
.opener__inner {
  position: relative; display: grid; justify-items: center; gap: 16px;
  animation: op-fade 0.45s ease 1.02s forwards;
}
.opener__mark {
  font-family: var(--font-logo); font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: 0.42em; padding-left: 0.42em; text-transform: uppercase;
  animation: op-mark 1.05s var(--ease) 0.1s both;
}
.opener__rule {
  width: 132px; height: 1px; background: var(--accent);
  animation: op-rule 0.9s var(--ease) 0.35s both;
}
.opener__sub {
  font-family: var(--font-body); font-size: 0.625rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.28em; padding-left: 0.28em; text-transform: uppercase;
  color: var(--muted);
  animation: op-in 0.8s var(--ease) 0.55s both;
}
.opener__vf {
  position: fixed;
  inset: calc(50% - 66px) calc(50% - 158px);
  animation: op-vf 1s var(--ease) 1.05s forwards;
}
@keyframes op-gone { to { visibility: hidden; } }
@keyframes op-fade { to { opacity: 0; } }
@keyframes op-mark { from { opacity: 0; letter-spacing: 0.9em; padding-left: 0.9em; filter: blur(8px); } }
@keyframes op-rule { from { transform: scaleX(0); } }
@keyframes op-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes op-vf { to { inset: calc(var(--header-h) + var(--top) + 6px) var(--frame-x) var(--frame-x); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes show { from { opacity: 0; } }

.js .home .hero__content > * { animation: rise 1s var(--ease) both; animation-delay: calc(1.4s + var(--i, 0) * 90ms); }
.js .home .hero__vf { animation: show 0.01s linear 2.1s both; }
.js .home .site-header { animation: show 0.9s var(--ease) 1.55s both; }
.js.op-seen .opener { display: none; }
.js.op-seen .home .hero__content > * { animation-delay: calc(0.05s + var(--i, 0) * 70ms); }
.js.op-seen .home .hero__vf, .js.op-seen .home .site-header { animation: show 0.6s var(--ease) both; }

/* Inner page hero */
.page-hero {
  position: relative; z-index: 0;
  min-height: 78vh; min-height: 78svh;
  display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
  padding-top: calc(var(--header-h) + var(--top) + 56px); padding-bottom: 72px;
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  text-align: center; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.35) 45%, var(--bg) 100%);
}
.page-hero > .frame {
  position: absolute; pointer-events: none;
  top: calc(var(--header-h) + var(--top) + 6px);
  right: max(var(--frame-x), env(safe-area-inset-right, 0px));
  bottom: var(--frame-x);
  left: max(var(--frame-x), env(safe-area-inset-left, 0px));
}
.page-hero__inner { display: grid; justify-items: center; gap: 20px; width: 100%; max-width: 1120px; }
.page-hero__inner h1 { max-width: 11.5em; }
.page-hero__inner > * { animation: rise 1s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 90ms); }
.page-hero .btn-row { margin-top: 8px; }
@media (min-width: 768px) {
  .page-hero { min-height: 84vh; min-height: 84svh; }
  .page-hero__inner { gap: 24px; }
}

/* Hairline grids: one pattern for sectors, services, steps and objections */
.grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.grid--1 { grid-template-columns: 1fr; }
.grid > li { display: grid; min-width: 0; }
.cell--span { grid-column: 1 / -1; }
.cell {
  background: var(--bg);
  display: grid; align-content: start; justify-items: center; gap: 10px;
  padding: 26px 14px; text-align: center; min-width: 0;
}
.cell .n { font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: 0.2em; }
.cell p { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); max-width: 24ch; text-wrap: balance; }
a.cell { transition: background 0.35s var(--ease); }
@media (hover: hover) { a.cell:hover { background: var(--bg-3); } }
@media (hover: hover) { a.cell:hover h3 { color: var(--accent); } }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--1.grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--1.grid--2up { grid-template-columns: 1fr 1fr; }
  .cell { padding: 40px 24px; gap: 12px; }
  .cell p { max-width: 28ch; }
}
.cell--step { padding: 32px 20px; }
.cell--step p { max-width: 32ch; }
.after-grid { margin-top: 20px; text-align: center; color: var(--muted); font-size: var(--fs-caption); }

/* Founder strip (home) */
.founder-strip {
  display: grid; justify-items: center; gap: 12px;
  margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--rule);
  text-align: center;
}
.founder-strip img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.founder-strip h3 { font-size: clamp(1.6rem, 6vw, 2.125rem); }

/* Work tiles (home) */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: grid; gap: 10px; align-content: start; text-align: center; min-width: 0; }
.tile__media {
  position: relative; display: block; width: 100%; max-width: 100%;
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3);
}
.tile__media img, .tile__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
@media (hover: hover) { .tile__media:hover img, .tile__media:hover video { transform: scale(1.035); } }
.tile__tag {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 11px;
  font-family: var(--font-body); font-size: 0.59375rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tile__tag .i { width: 9px; height: 9px; }
.tile h3 { font-size: 1rem; margin-top: 4px; }
.tile p { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--muted); }
@media (min-width: 768px) {
  .work { gap: 24px; }
  .tile { gap: 12px; }
  .tile h3 { font-size: 1.125rem; }
  .tile__tag { font-size: 0.625rem; padding: 9px 13px; }
}
@media (min-width: 1100px) {
  .work { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* Testimonials */
.quotes {
  display: grid; gap: 1px; margin-top: 64px;
  background: var(--rule); border-block: 1px solid var(--rule);
}
.quote { background: var(--bg); display: grid; justify-items: center; gap: 16px; padding: 36px 4px; text-align: center; }
.quote::before {
  content: "\201C"; height: 26px;
  font-family: var(--font-display); font-size: 64px; font-style: italic; line-height: 0.7;
  color: var(--accent);
}
.quote blockquote {
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem); line-height: 1.65;
  max-width: 34ch; text-wrap: pretty;
}
.quote cite {
  font-size: var(--fs-label); font-style: normal; font-weight: 600; line-height: 1.5;
  letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted);
}
/* The testimonial film: one landscape cell across every column, centred above the quotes */
.quote-film {
  grid-column: 1 / -1; min-width: 0;
  background: var(--bg); display: grid; justify-items: center; gap: 18px; padding: 36px 0; text-align: center;
}
.quote-film .tile__media { aspect-ratio: 2 / 1; max-width: 960px; }
.quote-film figcaption { display: grid; justify-items: center; gap: 12px; }
.quote-film h3 { font-size: 1rem; }
@media (min-width: 768px) { .quote-film h3 { font-size: 1.125rem; } }
@media (min-width: 960px) {
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quote { padding: 48px 28px; align-content: start; }
  .quote-film { padding: 48px 28px; gap: 22px; }
}

/* Offer */
.offer {
  display: grid; justify-items: center; gap: 24px;
  padding: 40px 18px; text-align: center;
  border: 1px solid var(--rule-strong);
}
.offer .grid { width: 100%; max-width: 640px; }
.offer .cell { padding: 20px 10px; }
.offer .cell p { color: var(--fg); font-size: var(--fs-caption); font-weight: 500; max-width: 18ch; }
.final { margin-top: 56px; }
@media (min-width: 768px) {
  .offer { padding: 64px 48px; gap: 28px; }
  .offer .cell { padding: 26px 16px; }
}
.closer .offer { gap: 22px; }

/* Deliverable lists inside the service cards */
.deliv { width: 100%; max-width: 380px; border-top: 1px solid var(--rule); }
.deliv li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-small); line-height: var(--lh-caption); }

/* Objections (why us) */
.obj { background: var(--bg); display: grid; justify-items: center; align-content: start; gap: 14px; padding: 36px 18px; text-align: center; min-width: 0; }
.obj h3 { font-size: clamp(1.5rem, 6.2vw, 1.875rem); max-width: 16ch; }
.obj p { font-size: var(--fs-small); line-height: 1.65; color: var(--muted); max-width: 36ch; }
@media (min-width: 900px) {
  .grid--obj { grid-template-columns: 1fr 1fr; }
  .obj { padding: 52px 40px; }
  .obj h3 { font-size: clamp(1.75rem, 2.3vw, 2.5rem); }
}

/* Featured film (work page) */
.feature { display: grid; justify-items: center; gap: 22px; text-align: center; }
.feature__media { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.feature__media video, .feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-aspect-ratio: 1/1) { .feature__media { aspect-ratio: 16 / 9; } } /* follows the screen's orientation, like the film inside it */
.meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.meta span {
  padding: 7px 10px; border: 1px solid var(--rule);
  font-size: 0.625rem; font-weight: 600; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* Case studies (work page) */
.cases { display: grid; gap: 72px; }
.case { display: grid; justify-items: center; gap: 16px; text-align: center; min-width: 0; scroll-margin-top: calc(var(--header-h) + var(--top) + 24px); }
.case .tile__media { aspect-ratio: 4 / 5; }
.case .lede { margin-top: -6px; }
.case blockquote { font-size: var(--fs-body); line-height: 1.65; max-width: 38ch; color: var(--fg); text-wrap: pretty; }
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; gap: 96px 48px; } }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 44px; text-align: center;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em;
  transition: color 0.3s;
}
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; line-height: 1; color: var(--accent); transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 12px 26px; text-align: center; color: var(--muted); max-width: 56ch; margin-inline: auto; text-wrap: pretty; }

/* About */
.founder-card { display: grid; justify-items: center; gap: 18px; text-align: center; }
.founder-card img { width: min(320px, 72vw); max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person { display: grid; align-content: start; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-3); }
.person h3 { margin-top: 4px; }
@media (min-width: 768px) { .team { max-width: 720px; margin-inline: auto; gap: 32px; } }

/* Contact */
.routes .cell { padding: 36px 18px; gap: 14px; }
.routes .btn { margin-top: 6px; }
.form { display: grid; gap: 14px; max-width: 680px; margin-inline: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; text-align: center; min-width: 0; }
.field span {
  font-size: 0.65625rem; font-weight: 600; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--rule-control); border-radius: 2px;
  appearance: none; -webkit-appearance: none;
  transition: border-color 0.3s;
}
.field ::placeholder { color: var(--muted); opacity: 1; }
.field select {
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); }
.form .btn { width: 100%; margin-top: 6px; }
.form .note { text-align: center; }
.form .note a { border-bottom: 1px solid var(--rule-strong); }
/* The GSP Brief sign-up */
.form--news { max-width: 520px; }
.check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  text-align: left; cursor: pointer;
  font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--fg-soft);
}
.check input {
  appearance: none; -webkit-appearance: none; display: grid; place-items: center;
  width: 22px; height: 22px; margin: 0; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--rule-control); border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}
.check input::after {
  content: ""; width: 10px; height: 5px; margin-top: -2px;
  border: solid var(--bg); border-width: 0 0 2px 2px; transform: rotate(-45deg); opacity: 0;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
/* Trap for spam bots: off screen, skipped by keyboards and screen readers */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; text-align: center; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--accent); }
.form-status:empty { min-height: 0; }

.direct { display: grid; justify-items: center; gap: 14px; text-align: center; }
.direct a {
  font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  overflow-wrap: anywhere; padding-block: 7px; margin-block: -7px; transition: color 0.3s;
}
@media (hover: hover) { .direct a:hover { color: var(--accent); } }

/* Legal documents: a centered reading column, left-aligned for long text */
.page-hero--doc { min-height: auto; padding-top: calc(var(--header-h) + var(--top) + 72px); padding-bottom: 56px; }
/* Legal titles are single long words in Norwegian (Personvernerklæring), so phones get a smaller size */
.page-hero--doc .display--page { font-size: clamp(1.9rem, 9vw, 3.25rem); }
@media (min-width: 768px) { .page-hero--doc .display--page { font-size: var(--fs-h1-page); } }
.page-hero--doc > .frame { display: none; }
.doc { display: grid; max-width: 720px; margin-inline: auto; }
.doc section { display: grid; gap: 14px; padding-block: 36px; border-top: 1px solid var(--rule); min-width: 0; }
.doc section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
.doc h2 .n {
  display: block; margin-bottom: 10px;
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: 0.2em;
}
.doc p, .doc li, .doc td { color: var(--fg-soft); text-wrap: pretty; }
.doc ul { display: grid; gap: 10px; }
.doc li { position: relative; padding-left: 20px; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 10px; height: 1px; background: var(--accent); }
.doc a {
  text-decoration: underline; text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere;
  transition: text-decoration-color 0.3s;
}
@media (hover: hover) { .doc a:hover { text-decoration-color: var(--accent); } }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-caption); line-height: var(--lh-caption); }
.doc th {
  padding: 0 12px 12px 0; border-bottom: 1px solid var(--rule-strong); text-align: left; vertical-align: bottom;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted);
}
.doc td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
@media (max-width: 767px) {
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
  .doc td { display: grid; align-content: start; gap: 4px; padding: 0; border: 0; }
  .doc td::before {
    content: attr(data-label);
    font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--muted);
  }
  .doc td:first-child { grid-column: 1 / -1; font-weight: 600; color: var(--fg); }
}
/* Old homepage anchors (#pricing, #about...) kept as invisible landing points */
.anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-h) + var(--top)); }

/* Sticky booking dock */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding-top: 18px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.94) 55%, rgba(10, 10, 10, 0));
  transform: translateY(110%);
  transition: transform 0.55s var(--ease);
}
.dock.is-on { transform: none; }
.dock .btn { width: 100%; }
@media (min-width: 768px) {
  .dock {
    left: 50%; right: auto; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
    background: none; transform: translate(-50%, 140%);
  }
  .dock.is-on { transform: translate(-50%, 0); }
  .dock .btn { width: auto; padding: 0 28px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45); }
}

/* Film player */
.film {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #000; color: var(--fg);
}
.film::backdrop { background: rgba(0, 0, 0, 0.92); }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film__close {
  position: absolute; z-index: 2;
  top: calc(12px + var(--top)); right: max(12px, env(safe-area-inset-right, 0px));
  min-height: 44px; padding: 0 16px;
  font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--scrim); border: 1px solid var(--rule-strong);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* Footer */
.site-footer {
  display: grid; justify-items: center; gap: 32px;
  padding-top: 72px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--pad-l); padding-right: var(--pad-r);
  border-top: 1px solid var(--rule); text-align: center;
}
.foot-nav {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: center; justify-items: center;
  gap: 0 24px; width: 100%; max-width: 360px;
  font-size: var(--fs-caption); font-weight: 500;
}
.foot-nav a { padding-block: 8px; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
@media (max-width: 359px) { .foot-nav { column-gap: 16px; } }
@media (hover: hover) { .foot-nav a:hover { color: var(--fg); } }
.site-footer .brand { padding-block: 14px; margin-block: -14px; }
.foot-contact { display: grid; justify-items: center; gap: 12px; }
.foot-contact a:first-child { font-size: clamp(1.125rem, 4.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; }
@media (hover: hover) { .foot-contact a:first-child:hover { color: var(--accent); } }
.foot-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 420px; }
.foot-social a {
  display: grid; gap: 6px; padding: 14px 8px; border: 1px solid var(--rule);
  font-size: var(--fs-caption); font-weight: 500; line-height: 1.3; transition: border-color 0.3s;
}
.foot-social a span { font-size: 0.59375rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .foot-social a:hover { border-color: var(--rule-strong); } }
.foot-legal { display: grid; justify-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.foot-legal p { display: flex; justify-content: center; gap: 10px; }
.foot-legal a { padding-block: 10px; margin-block: -10px; }
@media (hover: hover) { .foot-legal a:hover { color: var(--fg); } }
@media (min-width: 768px) { .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }

/* Service cards (home and services page). Phones: picture on top, text under it, centred.
   From 900px: two columns, the picture alternating sides. Web & campaigns is the full-width card,
   Advanced SEO carries the chart. */
.cards { display: grid; gap: 16px; }
.sc {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + var(--top) + 24px);
}
.sc__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); }
.sc__media > img, .sc__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc__media > .frame { position: absolute; inset: 10px; pointer-events: none; }
.sc__body {
  display: grid; justify-items: center; align-content: center; gap: 18px;
  padding: 32px 20px 36px; text-align: center; min-width: 0;
}
.sc__body h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-h3-ed); line-height: var(--lh-h3-ed); letter-spacing: var(--tr-h3-ed); max-width: 13em;
}
.sc__body .deliv { max-width: 340px; }
.sc__body .deliv li { padding: 12px 0; color: var(--fg-soft); }
.sc__body .link { margin-top: 4px; }
@media (min-width: 900px) {
  .cards { gap: 24px; }
  .sc { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 520px; }
  .sc__media { aspect-ratio: auto; min-height: 100%; }
  .sc:nth-child(odd):not(.sc--full) .sc__media { order: 2; }
  .sc__body { padding: 56px 48px; gap: 22px; }
}

/* Web & campaigns: the full-width card, this site on a laptop and a phone */
.sc--full .sc__media { aspect-ratio: auto; display: grid; place-items: end center; padding: 28px 18px 0; background: radial-gradient(120% 80% at 50% 100%, #1b1a18 0%, var(--bg-2) 70%); border-bottom: 1px solid var(--rule); }
.devices { position: relative; width: 100%; max-width: 520px; aspect-ratio: 16 / 11.5; }
.laptop { position: absolute; left: 0; bottom: 6%; width: 84%; }
.laptop__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000;
  border: 5px solid #1d1c1a; border-bottom-width: 8px; border-radius: 10px 10px 2px 2px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}
.laptop__screen img, .phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop__base { height: 9px; margin: 0 -7%; background: linear-gradient(#34322f, #161513); border-radius: 0 0 12px 12px; }
.phone { position: absolute; right: 0; bottom: 0; width: 27%; }
.phone__screen {
  aspect-ratio: 750 / 1624; overflow: hidden; background: #000;
  border: 4px solid #1d1c1a; border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
@media (min-width: 900px) {
  .sc--full { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sc--full .sc__media { order: 2; padding: 40px 32px 0; border-bottom: 0; }
  .devices { max-width: 640px; }
  .phone__screen { border-radius: 22px; border-width: 5px; }
}

/* Advanced SEO: the chart, drawn to the real figures (views up 181 %, a top day of 953) */
.sc--seo .sc__media { aspect-ratio: auto; background: var(--bg); border-bottom: 1px solid var(--rule); }
.chart { display: grid; gap: 18px; padding: 26px 18px 22px; }
.chart__head { display: flex; justify-content: space-between; gap: 12px; }
.chart__head .label { font-size: 0.625rem; }
.chart__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.chart__num {
  font-family: var(--font-body); font-size: clamp(2.25rem, 11vw, 3rem); font-weight: 500;
  line-height: 1; letter-spacing: -0.03em; white-space: nowrap;
}
.chart__nums .label { margin-top: 8px; font-size: 0.625rem; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--rule); stroke-width: 1; }
.chart__line { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1000; }
.chart__peak { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; }
.chart__dot { fill: var(--fg); transform-box: fill-box; transform-origin: center; }
.chart__dot--peak { fill: var(--accent); }
.chart__ring { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; }
.chart__tag { font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0.08em; fill: var(--accent); text-transform: uppercase; }
.chart__legend { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.625rem; }
.chart__legend span { width: 18px; height: 2px; background: var(--fg); }
@media (min-width: 900px) {
  .sc--seo .sc__media { border-bottom: 0; border-right: 1px solid var(--rule); display: grid; align-content: center; }
  .chart { padding: 40px 36px; gap: 24px; }
  .chart__nums { grid-template-columns: auto auto; justify-content: start; gap: 48px; text-align: left; }
}

/* Statement bands between sections: a full-width picture with one line */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  height: 62vh; height: 62svh; min-height: 420px; max-height: 720px;
  display: grid; place-items: center; text-align: center;
}
.band--short { height: 48vh; height: 48svh; min-height: 340px; }
.band__media { position: absolute; inset: -10% 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; animation: drift-zoom 18s ease-in-out infinite alternate; }
@keyframes drift-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 10, 0.25) 26%, rgba(10, 10, 10, 0.25) 74%, var(--bg) 100%);
}
.band__inner { display: grid; justify-items: center; gap: 20px; width: 100%; max-width: 980px; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.band__line {
  font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2);
  text-wrap: balance; max-width: 16em;
}
.band__line em { font-style: italic; color: var(--accent); letter-spacing: -0.01em; }
.band .label { color: var(--fg-soft); }
.w { display: inline-block; }

/* Sectors running across the screen */
.ticker {
  overflow: hidden; border-block: 1px solid var(--rule); padding-block: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 21.2s linear infinite; /* 70 % faster than the first 36 s */ }
.ticker__track li {
  display: flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(1.5rem, 6.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.01em;
}
.ticker__track li::after { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Three packages. The second, most popular, is inverted, like the reference layout */
.tiers { display: grid; gap: 28px; }
.tier {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 40px 22px 28px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--radius);
}
.tier__n { line-height: 1; }
.tier__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 8vw, 2.4rem); line-height: 1.1; letter-spacing: -0.015em; }
.tier__desc { max-width: 30ch; font-size: var(--fs-small); line-height: 1.6; color: var(--muted); text-wrap: balance; }
.tier__plus { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--accent); }
.tier__for { max-width: 30ch; margin-top: -8px; font-size: var(--fs-caption); line-height: 1.5; color: var(--fg-soft); text-wrap: balance; }
.tier--pop .tier__for { color: #2b2925; }
.checks { display: grid; gap: 12px; width: 100%; max-width: 300px; margin-block: 4px 8px; text-align: left; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--fs-small); line-height: 1.45; }
.tick { width: 20px; height: 20px; }
.tick path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; }
.tier .btn { width: 100%; max-width: 320px; margin-top: auto; }
.tier__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 8px 14px; white-space: nowrap;
  font-size: 0.625rem; font-weight: 700; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg); background: var(--accent); border-radius: 999px;
}
.tier--pop { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tier--pop .tier__desc, .tier--pop .label { color: #57534c; }
.tier--pop .n, .tier--pop .tier__plus { color: #7a6a45; }
.tier--pop .tick path { stroke: var(--bg); }
.tier--pop .btn--solid { background: var(--bg); color: var(--fg); border-color: var(--bg); }
@media (hover: hover) { .tier--pop .btn--solid:hover { background: #2a2825; border-color: #2a2825; } }
.tier--pop :focus-visible { outline-color: var(--bg); }
.tiers__note { margin-top: 28px; text-align: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tr-label); text-transform: uppercase; }
@media (min-width: 960px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .tier { padding: 48px 28px 32px; }
  .tier--pop { transform: translateY(-14px); }
}

/* Scroll reveal, enabled by site.js. Without it, everything is simply visible */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
/* Section heads: the hairlines either side of the label draw outwards */
.reveal-ready .sec-head .label::before, .reveal-ready .sec-head .label::after { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.25s; }
.reveal-ready .sec-head .label::before { transform-origin: right; }
.reveal-ready .sec-head .label::after { transform-origin: left; }
.reveal-ready .sec-head.is-in .label::before, .reveal-ready .sec-head.is-in .label::after { transform: none; }
/* Cards: the frame opens like a viewfinder, the picture settles, then the text rises line by line */
.reveal-ready [data-reveal="card"] { opacity: 1; transform: none; }
.reveal-ready .sc .sc__media { clip-path: inset(9% 9% 9% 9%); transition: clip-path 1.3s var(--ease); }
.reveal-ready .sc .sc__media > img, .reveal-ready .sc .sc__media > video { transform: scale(1.16); transition: transform 1.8s var(--ease); }
.reveal-ready .sc .sc__media > .frame { inset: 24%; opacity: 0; transition: inset 1.3s var(--ease) 0.15s, opacity 0.6s ease 0.15s; }
.reveal-ready .sc .sc__body > * { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(0.3s + var(--i, 0) * 90ms); }
.reveal-ready .sc.is-in .sc__media { clip-path: inset(0 0 0 0); }
.reveal-ready .sc.is-in .sc__media > img, .reveal-ready .sc.is-in .sc__media > video { transform: none; }
.reveal-ready .sc.is-in .sc__media > .frame { inset: 10px; opacity: 1; }
.reveal-ready .sc.is-in .sc__body > * { opacity: 1; transform: none; }
.reveal-ready .sc--full .sc__media, .reveal-ready .sc--seo .sc__media { clip-path: none; }
/* The two screens arrive one after the other */
.reveal-ready .sc--full .laptop { opacity: 0; transform: translateY(16%); transition: opacity 1s ease 0.2s, transform 1.3s var(--ease) 0.2s; }
.reveal-ready .sc--full .phone { opacity: 0; transform: translate(24%, 10%) rotate(5deg); transition: opacity 1s ease 0.55s, transform 1.4s var(--ease) 0.55s; }
.reveal-ready .sc--full.is-in .laptop, .reveal-ready .sc--full.is-in .phone { opacity: 1; transform: none; }
/* The chart: the line draws, the area fills, the top day and today light up */
.reveal-ready .sc--seo .chart__line { stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.4s; }
.reveal-ready .sc--seo .chart__area { opacity: 0; transition: opacity 1.2s ease 1.9s; }
.reveal-ready .sc--seo :is(.chart__peak, .chart__tag) { opacity: 0; transition: opacity 0.6s ease 2.3s; }
.reveal-ready .sc--seo .chart__dot { transform: scale(0); transition: transform 0.6s var(--ease) 2.5s; }
.reveal-ready .sc--seo .chart__dot--peak { transition-delay: 2.1s; }
.reveal-ready .sc--seo.is-in .chart__line { stroke-dashoffset: 0; }
.reveal-ready .sc--seo.is-in :is(.chart__area, .chart__peak, .chart__tag) { opacity: 1; }
.reveal-ready .sc--seo.is-in .chart__dot { transform: none; }
.sc--seo.is-in .chart__ring { animation: ring 2.4s ease-out 3s infinite; }
@keyframes ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(4.2); } }
/* Bands: the line rises word by word */
.reveal-ready [data-reveal="words"] { opacity: 1; transform: none; }
.reveal-ready .band__inner > .label { opacity: 0; transition: opacity 1s ease 0.1s; }
.reveal-ready .band__inner > .label:last-child { transition-delay: 0.9s; }
.reveal-ready .band__line .w { opacity: 0; transform: translateY(0.5em); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); transition-delay: calc(0.15s + var(--i, 0) * 55ms); }
.reveal-ready .band__inner.is-in > .label, .reveal-ready .band__inner.is-in .w { opacity: 1; transform: none; }
/* Packages: each card rises in turn and ticks its checkpoints one by one */
.reveal-ready [data-reveal="tier"] { transition-delay: calc(var(--d, 0) * 120ms); }
.reveal-ready .tier .tick path { stroke-dashoffset: 24; transition: stroke-dashoffset 0.45s var(--ease); transition-delay: calc(0.5s + var(--d, 0) * 120ms + var(--i, 0) * 110ms); }
.reveal-ready .tier.is-in .tick path { stroke-dashoffset: 0; }
.reveal-ready .tier__badge { opacity: 0; transform: translate(-50%, -110%); transition: opacity 0.6s ease 0.6s, transform 0.8s var(--ease) 0.6s; }
.reveal-ready .tier.is-in .tier__badge { opacity: 1; transform: translate(-50%, -50%); }
@media (min-width: 960px) {
  .reveal-ready .tier--pop.is-in { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .opener { display: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  /* Still, the sectors stay readable when they do not run */
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding-inline: var(--gutter); }
  .ticker__track li[aria-hidden="true"] { display: none; }
}
