/* Sphesial website styles
   Brand: deep green, gold and cream. Source Serif Pro (headlines) and Source Sans Pro (text),
   both SIL Open Font License 1.1 (licence texts in /legal).
   One dark theme by design: this matches the brand pack and film.

   Motion principle: movement should be felt more than noticed.
   - Every animation is inside prefers-reduced-motion: no-preference. With reduced motion the page is
     static: only colour and border changes remain.
   - Only transform and opacity are animated (plus one tiny box-shadow on the primary button).
   - Hover effects only apply on devices with a real pointer; touch devices never rely on hover. */

@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerifPro-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerifPro-SemiboldIt.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/SourceSansPro-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("fonts/SourceSansPro-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
/* Metric-matched local fallbacks so text does not jump when the web fonts arrive. */
@font-face {
  font-family: "Source Serif Fallback";
  src: local("Georgia");
  size-adjust: 103.2%; ascent-override: 100.4%; descent-override: 32.5%; line-gap-override: 0%;
}
@font-face {
  font-family: "Source Sans Fallback";
  src: local("Arial");
  size-adjust: 94.1%; ascent-override: 104.5%; descent-override: 29%; line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  --bg: #0d1c1a;
  --bg-tint: #112421;
  --surface: #162b27;
  --surface-2: #1b3430;
  --line: rgba(244, 239, 230, 0.12);
  --text: #f4efe6;
  --muted: #bec8c0;
  --gold: #b07c3c;
  --gold-light: #f4d896;
  --ink: #0d1c1a;

  --serif: "Source Serif Pro", "Source Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Source Sans Pro", "Source Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape system: pills for anything clickable, one radius for containers, one for images. */
  --r-box: 16px;
  --r-img: 10px;

  --header-h: 68px;
  --gutter: 20px;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(244, 216, 150, 0.16);
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a, button { touch-action: manipulation; }
p { text-wrap: pretty; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2, .section-title { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 36ch; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--gold-light); color: var(--ink);
  padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Zero-size marker at the very top of the page. The script watches it to know when the page has scrolled. */
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--gold-light); color: var(--ink); box-shadow: 0 0 0 0 rgba(244, 216, 150, 0); }
.btn-ghost { border-color: rgba(244, 239, 230, 0.55); color: var(--text); background: transparent; }
.btn-sm { min-height: 44px; padding: 10px 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
/* One soft sheen, driven only by hover or keyboard focus. It rests off-canvas and never plays on its own. */
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.5) 50%, transparent 68%);
  transform: translateX(-130%);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.5s var(--ease-soft), background-color 0.5s var(--ease-soft);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(13, 28, 26, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.site-header[data-scrolled="true"] { border-bottom-color: rgba(244, 216, 150, 0.2); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: 6px; padding-block: 10px; }
.brand img { width: 156px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav a { position: relative; display: inline-block; text-decoration: none; color: var(--muted); font-weight: 600; padding: 10px 2px; transition: color 0.25s; }
.site-nav a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
}
.site-nav a:focus-visible, .site-nav a[aria-current] { color: var(--text); }
.site-nav a:focus-visible::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid rgba(244, 239, 230, 0.4);
  background: transparent; color: var(--text); font: 600 1rem var(--sans); cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 28, 26, 0) calc(100% - 140px), var(--bg) 100%),
    radial-gradient(60% 70% at 78% 40%, rgba(46, 94, 84, 0.55), transparent 70%),
    radial-gradient(35% 40% at 8% 70%, rgba(176, 124, 60, 0.10), transparent 70%),
    var(--bg);
}
/* Concentric rings echo the film and sit behind everything. They are on their own layer so they can drift. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 76% 48%, transparent 0 150px, rgba(244, 216, 150, 0.07) 151px 152px);
  -webkit-mask-image: radial-gradient(70% 90% at 76% 48%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 90% at 76% 48%, #000 20%, transparent 80%);
}
/* A very faint pool of gold light behind the rings, the same warm light that travels through the film. */
.hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -10%; right: -12%; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(244, 216, 150, 0.085), rgba(244, 216, 150, 0) 72%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 40px; align-items: center;
  padding-block: 36px 40px;
}
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 5.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.hero h1 em {
  display: inline-block; padding-bottom: 0.08em; padding-right: 0.04em;
  font-style: italic; color: var(--gold-light);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 em {
    background: linear-gradient(100deg, #b88a45 0%, #f4d896 52%, #c9a05a 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}

.hero-visual { display: grid; gap: 14px; }
.hero-visual-stage { position: relative; padding-bottom: 8%; }
.hero-site {
  width: 88%; border-radius: var(--r-img);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(244, 239, 230, 0.08);
}
.hero-app {
  position: absolute; right: 0; bottom: 0; width: 29%;
  border: 5px solid #091210; border-radius: 22px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(244, 239, 230, 0.12);
}
figcaption { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
figcaption strong { color: var(--gold-light); font-weight: 600; }

/* Sections. Each has its own faint glow and soft edges instead of hard lines. */
.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section-services {
  padding-top: clamp(40px, 5vw, 64px);
  background: radial-gradient(ellipse 38% 24% at 96% 60%, rgba(46, 94, 84, 0.16), transparent), var(--bg);
}
.section-why {
  background:
    radial-gradient(ellipse 36% 30% at 90% 42%, rgba(46, 94, 84, 0.2), transparent),
    linear-gradient(180deg, var(--bg) 0, var(--bg-tint) 150px, var(--bg-tint) calc(100% - 150px), var(--bg) 100%);
}
.section-how { background: radial-gradient(ellipse 38% 26% at 94% 52%, rgba(176, 124, 60, 0.08), transparent), var(--bg); }
.section-about {
  background:
    radial-gradient(ellipse 34% 34% at 10% 54%, rgba(176, 124, 60, 0.1), transparent),
    linear-gradient(180deg, var(--bg) 0, var(--bg-tint) 150px, var(--bg-tint) calc(100% - 150px), var(--bg) 100%);
}
.section-title { margin-bottom: 36px; }
/* A short gold rule above each section title: the light that links sections, kept to a few pixels. */
.section-title::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform-origin: left;
}

/* Services */
.services { display: grid; gap: 16px; }
.tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line); border-radius: var(--r-box);
}
/* Gold edge-light and soft shadow, shown on hover only (opacity, so it stays smooth). */
.tile::before, .tile::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; }
.tile::before {
  background: radial-gradient(90% 55% at 50% 0%, rgba(244, 216, 150, 0.09), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(244, 216, 150, 0.4);
}
.tile::after { z-index: -1; box-shadow: 0 26px 48px -26px rgba(0, 0, 0, 0.75); }
.tile-body { display: grid; gap: 10px; max-width: 46ch; }
.tile-body p { color: var(--muted); }
.tile-body .tile-tag { color: var(--gold-light); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
/* Sample images always show in full (never cropped); extra height in a tile sits above the image. */
.tile-media { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.tile-media img { width: 100%; height: auto; border-radius: var(--r-img); border: 1px solid rgba(244, 239, 230, 0.1); }

/* Why */
.why-grid { display: grid; gap: 32px; }
.why-intro .section-title { margin-bottom: 16px; }
.why-list li { padding-block: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list p { color: var(--muted); max-width: 52ch; }

/* How: the gold line over each step draws in, one after another. */
.steps { display: grid; gap: 28px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 22px; }
.steps li::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 70%, var(--gold));
  transform-origin: left;
}
.steps li::before {
  content: counter(step);
  font: italic 600 2.5rem/1 var(--serif); color: var(--gold-light);
}
.steps p { color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 32px; align-items: center; justify-items: start; }
.about-mark { width: min(200px, 50vw); height: auto; }
.about-copy .section-title { margin-bottom: 20px; }
.about-text { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.45; max-width: 36em; }

/* Contact */
.contact-panel {
  position: relative; overflow: hidden;
  display: grid; gap: 22px; justify-items: start;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid rgba(244, 216, 150, 0.35); border-radius: var(--r-box);
  background:
    radial-gradient(60% 90% at 90% 0%, rgba(46, 94, 84, 0.6), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, rgba(176, 124, 60, 0.16), transparent 70%),
    var(--surface);
}
.contact-panel::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: min(380px, 60%); aspect-ratio: 1;
  background: url("img/mark.webp?v=2") center / contain no-repeat; opacity: 0.1; pointer-events: none;
}
/* One slow pass of light along the panel's border, the first time it comes into view. Nothing loops. */
.contact-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(244, 216, 150, 0.95) 50%, transparent 62%) 140% 0 / 260% 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel h2 { max-width: 16ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: grid; gap: 10px; justify-items: start; }
.footer-brand img { width: 140px; height: auto; }
.footer-links { display: grid; gap: 4px; }
.footer-links a {
  display: inline-block; padding-block: 10px; white-space: nowrap;
  text-decoration-line: underline; text-decoration-color: rgba(244, 239, 230, 0.4); text-underline-offset: 4px;
  transition: color 0.25s, text-decoration-color 0.25s;
}
.footer-note, .footer-copy { font-size: 0.9rem; max-width: 60ch; }

/* Pointer devices only: colour and edge changes. Touch devices never rely on hover. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #fbe6b4; box-shadow: 0 10px 30px -8px rgba(244, 216, 150, 0.45); }
  .btn-ghost:hover { background: rgba(244, 239, 230, 0.08); border-color: var(--text); }
  .menu-toggle:hover { border-color: var(--text); background: rgba(244, 239, 230, 0.06); }
  .site-nav a:hover { color: var(--text); }
  .site-nav a:hover::after { transform: scaleX(1); }
  .tile:hover { border-color: transparent; }
  .tile:hover::before, .tile:hover::after { opacity: 1; }
  .footer-links a:hover { color: var(--gold-light); text-decoration-color: currentColor; }
  .brand:hover img { opacity: 0.85; }
}

/* Motion. Everything below is removed for visitors who prefer reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Page entrance */
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-site { animation: rise-site 1.1s var(--ease) 0.1s both; }
  .hero-app { animation: rise-app 1.1s var(--ease) 0.34s both; }
  .hero-visual figcaption { animation: fade-in 1s var(--ease-soft) 0.6s both; }

  /* Hero light: 40 second drift, a few pixels in total. It pauses while the hero is off screen. */
  .hero::before { will-change: transform; animation: ring-drift 40s ease-in-out infinite alternate; }
  .hero::after { will-change: transform, opacity; animation: glow-drift 40s ease-in-out infinite alternate; }
  .hero.is-away::before, .hero.is-away::after { animation-play-state: paused; }
  @supports (animation-timeline: scroll()) {
    /* As the visitor starts to scroll, the rings and glow ease back so the content takes over. */
    .hero::before { animation: ring-drift 40s ease-in-out infinite alternate, hero-ease linear both; animation-timeline: auto, scroll(root block); animation-range: normal, 0 560px; }
    .hero::after { animation: glow-drift 40s ease-in-out infinite alternate, hero-ease linear both; animation-timeline: auto, scroll(root block); animation-range: normal, 0 560px; }
    .hero.is-away::before, .hero.is-away::after { animation-play-state: paused, running; }
  }

  /* Reveal on scroll. Whole blocks appear together; siblings follow a few milliseconds apart. */
  .js .reveal:not(.in) { opacity: 0; }
  .js .reveal.in { animation: reveal 0.9s var(--ease) var(--d, 0s) backwards; }
  .services > :nth-child(2), .why-list > :nth-child(2), .steps > :nth-child(2) { --d: 0.07s; }
  .services > :nth-child(3), .why-list > :nth-child(3), .steps > :nth-child(3) { --d: 0.14s; }
  .services > :nth-child(4), .why-list > :nth-child(4), .steps > :nth-child(4) { --d: 0.21s; }

  /* Gold thread */
  .js .section-title::before { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.2s; }
  .js .section-title.in::before, .js .in .section-title::before { transform: none; }
  .js .steps li::after { transform: scaleX(0); }
  .js .steps li.in::after { transform: none; transition: transform 1.3s var(--ease) calc(var(--d, 0s) + 0.15s); }
  .js .contact-panel.in::before { animation: border-light 2.6s var(--ease-soft) 0.5s 1 both; }

  /* Buttons */
  .btn { transition: transform 0.3s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease-soft); }
  .btn:active { transform: scale(0.98); transition-duration: 0.1s; }

  /* Navigation */
  .site-nav a::after { transition: transform 0.4s var(--ease); }
  @media (max-width: 899px) {
    .js .site-nav { transform: translateY(-8px); transition: opacity 0.3s var(--ease-soft), transform 0.4s var(--ease), visibility 0s linear 0.4s; }
    .js .site-nav.open { transform: none; transition: opacity 0.3s var(--ease-soft), transform 0.4s var(--ease), visibility 0s; }
  }

  /* Pointer devices only: a small lift and the primary button sheen */
  @media (hover: hover) and (pointer: fine) {
    .tile { transition: transform 0.6s var(--ease), border-color 0.4s; }
    .tile::before, .tile::after { transition: opacity 0.6s var(--ease-soft); }
    .tile:hover { transform: translateY(-2px); }
    .btn-primary::before { transition: transform 0s linear 0.95s; }
    .btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateX(130%); transition: transform 0.95s var(--ease-soft); }
    .btn-primary:hover { transform: translateY(-1px); }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-site { from { transform: translateY(18px); } to { transform: none; } }
@keyframes rise-app { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }
@keyframes ring-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6px, 4px, 0) scale(1.025); } }
@keyframes glow-drift { from { transform: translate3d(0, 0, 0); opacity: 0.75; } to { transform: translate3d(12px, -8px, 0); opacity: 1; } }
@keyframes hero-ease { to { opacity: 0.3; scale: 0.97; } }
@keyframes border-light { 0% { opacity: 1; background-position: 140% 0; } 100% { opacity: 1; background-position: -40% 0; } }

/* Small phones */
@media (max-width: 519px) {
  .brand img { width: 118px; }
  .xs-hide { display: none; }
  .btn-sm { padding-inline: 16px; }
  .hero .cta-row .btn, .contact-panel .cta-row .btn { flex: 1 1 100%; }
}
/* 320px class phones: logo, WhatsApp and Menu must all fit on one row */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand img { width: 100px; }
  .header-row { gap: 6px; }
  .header-actions { gap: 6px; }
  .btn-sm { padding-inline: 12px; }
  .menu-toggle { padding-inline: 12px; }
}

/* Mobile navigation. Without JavaScript the links simply wrap below the logo. */
@media (max-width: 899px) {
  .header-row { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .site-nav ul { gap: 4px 20px; flex-wrap: wrap; padding-bottom: 12px; }
  .js .menu-toggle { display: inline-flex; }
  /* With JavaScript the menu is a panel that drops from under the header without pushing the page down. */
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0;
    padding: 0 var(--gutter) 8px;
    background: var(--bg); border-bottom: 1px solid rgba(244, 216, 150, 0.2);
    opacity: 0; visibility: hidden;
  }
  .js .site-nav.open { opacity: 1; visibility: visible; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 0; }
  .js .site-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .site-nav a::after { display: none; }
  .js .site-nav a[aria-current] { color: var(--gold-light); }
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tile { padding: 32px; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  /* The hero stops short of the full window height so the next section's title shows below it. */
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; min-height: min(calc(100svh - var(--header-h) - 140px), 660px); padding-block: 40px 28px; }
  /* 18 columns: row one is 9 + 9, row two is 8 + 10, which makes the two row-two samples the same height. */
  .services { grid-template-columns: repeat(18, 1fr); }
  .tile-websites, .tile-creative { grid-column: span 9; }
  .tile-automation { grid-column: span 8; }
  .tile-custom { grid-column: span 10; }
  .why-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .why-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .about-grid { grid-template-columns: auto 1fr; gap: 72px; }
  .about-mark { width: 240px; }
  .footer-grid { grid-template-columns: 1fr auto; gap: 32px 48px; }
  .footer-note, .footer-copy { grid-column: 1 / -1; }
}

/* Privacy notice page */
.doc { max-width: 720px; padding-block: 56px 96px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 6px; margin-top: 10px; }
.doc a { color: var(--text); text-underline-offset: 3px; }

/* 404 page */
.notfound { min-height: 100dvh; display: grid; align-content: center; justify-items: start; gap: 20px; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }
