/* examples.gtll.app — light, futuristic, calm.
 *
 * Canon palette, inverted to a light ground. Plum/Void/Gold/Ivory are unchanged;
 * what changes is which one is the ground. Ivory becomes the surface, Plum becomes
 * the type, Gold stays reserved for geometry and the line only. Canon rules held:
 * gold is never the wordmark, ivory is never pure white, plum is never pure black.
 *
 * Fonts are self-hosted from /fonts. Zero external requests.
 * Proportion is on phi (1.618) rather than ad-hoc pixels.
 */

@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded-var-latin.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-var.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  /* canon */
  --plum:      #3D1A2E;
  --void:      #1A0A12;
  --gold:      #C9943A;
  --ivory:     #FBF8F3;
  --champagne: #F3E3C2;

  /* light-ground derivations */
  --ground:    #FBF8F3;
  --ground-2:  #F6F1E9;
  --ink:       #2A1220;
  --ink-2:     rgba(42, 18, 32, 0.72);
  --ink-3:     rgba(42, 18, 32, 0.52);
  --line:      rgba(61, 26, 46, 0.12);
  --line-gold: rgba(201, 148, 58, 0.32);

  --font-display: "Unbounded", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --phi: 1.618;

  /* phi-derived scale */
  --s-1: 0.618rem;
  --s0:  1rem;
  --s1:  1.618rem;
  --s2:  2.618rem;
  --s3:  4.236rem;
  --s4:  6.854rem;

  --t--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --t-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --t-2:  clamp(1.7rem, 1.5rem + 1vw, 2.6rem);
  --t-3:  clamp(2.3rem, 1.9rem + 2.2vw, 4.3rem);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* light static, canon --fx-grain */
  --fx-grain: radial-gradient(rgba(61,26,46,.55) .5px, transparent .5px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  font-family: var(--font-body);
  font-size: var(--t-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
  position: relative;
}

/* light static overlay, pointer-events none is load-bearing */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1;
  background-image: var(--fx-grain);
  background-size: 3px 3px;
  opacity: .04;
  pointer-events: none;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.6rem); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.8);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s1); padding-block: var(--s-1); }
.mark { display: flex; align-items: center; gap: .6rem; }
.mark__sig { width: 26px; height: 26px; flex: 0 0 auto; }
/* Canon: gold is geometry, never the wordmark. Wordmark is plum. */
.mark__wd { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: .09em; text-transform: uppercase; color: var(--plum); }
.hdr__nav { display: none; gap: var(--s1); font-size: var(--t--1); letter-spacing: .05em; }
.hdr__nav a { color: var(--ink-3); transition: color .25s var(--ease); }
.hdr__nav a:hover { color: var(--plum); }
@media (min-width: 880px) { .hdr__nav { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.55em; border-radius: var(--r-pill);
  font-weight: 500; font-size: var(--t-0); letter-spacing: .005em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--plum); color: var(--ivory); box-shadow: 0 1px 2px rgba(61,26,46,.14), 0 8px 22px rgba(61,26,46,.10); }
.btn--solid:hover { background: #4b2138; box-shadow: 0 2px 6px rgba(61,26,46,.18), 0 16px 38px rgba(61,26,46,.14); }
.btn--line { border: 1px solid var(--line-gold); color: var(--plum); }
.btn--line:hover { border-color: var(--gold); background: rgba(201,148,58,.06); }
.btn--sm { padding: .62em 1.15em; font-size: var(--t--1); }

/* Every tap target clears 44px, the Apple HIG and WCAG 2.5.5 minimum. The header
 * "Talk to us" button measured 37px on an iPhone 13, and on a page whose whole job is
 * getting a phone call, an undersized call button is lost revenue rather than a nitpick.
 * min-height rather than more padding, so the desktop proportions do not change. */
.btn { min-height: 44px; }
@media (pointer: coarse) { .btn { min-height: 48px; } }

/* ---------- hero ---------- */
/* overflow:hidden clips the bloom's negative inset. Without it the -5% left/right on
 * ::before widens the document by 5% of the viewport at every breakpoint. */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.2rem, 10vw, var(--s4)) clamp(2.6rem, 7vw, var(--s3)); }
/* Direction C, atmospheric. Futuristic through light rather than through glow effects
 * or hard structure. Three overlapping fields of champagne, gold and blush, all
 * low-opacity, so edges dissolve instead of terminating. Still never a fill. */
.hero::before {
  content: ""; position: absolute; inset: -28% -8% auto -8%; height: 156%; z-index: 0;
  background:
    radial-gradient(42% 40% at 72% 18%, rgba(243,227,194,.90), transparent 66%),
    radial-gradient(40% 38% at 16% 74%, rgba(201,148,58,.20), transparent 70%),
    radial-gradient(34% 30% at 48% 46%, rgba(255,240,244,.80), transparent 68%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 2; display: grid; gap: var(--s1); }
.eyebrow {
  width: fit-content; display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--t--1); letter-spacing: .16em; text-transform: uppercase;
  color: #8a6520; border: 1px solid var(--line-gold); background: rgba(255,255,255,.5);
  padding: .48em 1.05em; border-radius: var(--r-pill);
}
/* C: type floats. Light weight, tight tracking, nothing containing it. */
.hero h1 {
  font-family: var(--font-display); font-weight: 200;
  font-size: var(--t-3); line-height: 1.04; letter-spacing: -0.032em;
  max-width: 19ch;
}
.hero h1 .thin { font-weight: 200; color: var(--ink-2); }
.hero__lede { font-size: var(--t-1); color: var(--ink-2); max-width: 46ch; line-height: 1.5; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-1); }
.hero__note { font-size: var(--t--1); color: var(--ink-3); }

/* ---------- sections ---------- */
.sec { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, var(--s3)); }
/* C: sections fade into each other. A hard 1px rule terminates the page into stacked
 * slabs, which is the opposite of atmospheric, so the tint dissolves at both edges
 * instead of being ruled off. */
.sec--tint {
  background:
    linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 14%, var(--ground-2) 86%, var(--ground) 100%);
}
/* one faint champagne field per tinted section, offset so it never reads as a repeat */
.sec--tint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 44% at 82% 30%, rgba(243,227,194,.34), transparent 68%);
}
.sec--tint:nth-of-type(even)::before {
  background: radial-gradient(36% 42% at 14% 66%, rgba(255,240,244,.55), transparent 70%);
}
.sec__head { display: grid; gap: var(--s-1); margin-bottom: var(--s2); max-width: 58ch; }
.kicker { font-size: var(--t--1); letter-spacing: .16em; text-transform: uppercase; color: #8a6520; }
.sec h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2); line-height: 1.12; letter-spacing: -0.015em; }
.sec__sub { color: var(--ink-2); font-weight: 300; font-size: var(--t-1); line-height: 1.5; }

/* ---------- grid of cards ---------- */
.grid { display: grid; gap: var(--s-1); grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s0); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* C: cards sit in the light rather than being boxed out of it. More translucency,
 * a barely-there edge, and the shadow does the separating instead of the border. */
.card {
  background: rgba(255,255,255,.52);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(61,26,46,.055);
  box-shadow: 0 1px 2px rgba(61,26,46,.03), 0 10px 30px rgba(61,26,46,.045);
  border-radius: var(--r-lg);
  padding: var(--s1);
  display: grid; gap: .55rem; align-content: start;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.card__n { font-family: var(--font-display); font-weight: 300; font-size: var(--t--1); letter-spacing: .1em; color: var(--gold); }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-1); line-height: 1.2; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-weight: 300; font-size: var(--t-0); }

/* ---------- channels ---------- */
.chan { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  border-radius: var(--r-pill); padding: .55em 1.15em; font-size: var(--t-0); color: var(--ink-2);
}
.chip svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { display: grid; gap: .3rem; padding-block: var(--s1); border-bottom: 1px solid var(--line); position: relative; padding-left: 3.3rem; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: var(--s1);
  font-family: var(--font-display); font-weight: 300; font-size: var(--t-1);
  color: var(--gold); line-height: 1;
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-1); letter-spacing: -0.01em; }
.step p { color: var(--ink-2); font-weight: 300; }

/* ---------- sovereignty band ---------- */
.sov { background: var(--plum); color: var(--ivory); border-radius: var(--r-lg); padding: var(--s2) var(--s1); position: relative; overflow: hidden; }
.sov::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 140%;
  background: radial-gradient(circle at 70% 50%, rgba(243,227,194,.16), transparent 62%);
  pointer-events: none;
}
.sov__in { position: relative; display: grid; gap: var(--s0); max-width: 62ch; }
.sov h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2); line-height: 1.14; letter-spacing: -0.015em; }
.sov p { color: rgba(251,248,243,.78); font-weight: 300; font-size: var(--t-1); line-height: 1.5; }

/* ---------- close ---------- */
.close { text-align: center; display: grid; gap: var(--s0); justify-items: center; }
.close h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--t-2); letter-spacing: -0.015em; max-width: 24ch; }
.close p { color: var(--ink-2); font-weight: 300; max-width: 48ch; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: var(--s1); font-size: var(--t--1); color: var(--ink-3); position: relative; z-index: 2; }
.ftr__in { display: grid; gap: var(--s-1); }
@media (min-width: 720px) { .ftr__in { grid-template-columns: 1fr auto; align-items: center; } }
.ftr a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveals ---------- */
.r { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.r.in { opacity: 1; transform: none; }

/* Above the fold is a different job from below it. This link gets texted to people who
 * glance for two seconds, so the hero must be readable almost immediately. Below-fold
 * content can take its time on scroll; the hero cannot. */
.hero .r { transition-duration: .42s; }

/* ---------- pointer-only ---------- */
@media (pointer: fine) {
  .card:hover { transform: translateY(-3px); border-color: var(--line-gold); box-shadow: 0 2px 8px rgba(61,26,46,.06), 0 18px 44px rgba(61,26,46,.08); }
}

/* ---------- reduced motion kills all of it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .r { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}
