/* ============================================================
   Adrian Maciburko — ANZ Plus portfolio
   Ultra-minimal, single page. White canvas · big type · air.
   Hand-crafted, dependency-free.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F5F6F8;   /* media wells for transparent assets */
  --bg-blue:   #EEF3FF;   /* occasional tint */
  --ink:       #0A0A0B;
  --ink-2:     #3C3C44;
  --muted:     #8A8A93;
  --line:      rgba(10,10,12,0.10);
  --line-2:    rgba(10,10,12,0.06);
  --blue:      #1A5CF0;
  --blue-bright:#2F73FF;

  --font:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --r:    20px;
  --r-lg: 32px;
  --pill: 999px;

  --sh:   0 1px 2px rgba(13,24,60,.04), 0 18px 44px -22px rgba(13,24,60,.20);
  --sh-lg:0 2px 4px rgba(13,24,60,.05), 0 50px 90px -40px rgba(13,24,60,.40);

  --container: 1180px;
  --reading: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5.5rem, 13vw, 12rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.12rem);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 0; top: 0; z-index: 200; transform: translateY(-130%);
  background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 0 0 12px 0;
  font-weight: 550; transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 600; line-height: 1.03; letter-spacing: -0.032em; }
.display {
  font-size: clamp(2.7rem, 1.1rem + 6.6vw, 6rem);
  line-height: 0.98; letter-spacing: -0.042em; font-weight: 600;
}
.h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -0.038em; }
.h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); letter-spacing: -0.025em; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.lead {
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.8rem);
  line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-2);
}
.body-lg { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem); line-height: 1.66; color: var(--ink-2); }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .idx { color: var(--blue); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wide { max-width: 1380px; }
.reading { max-width: var(--reading); }
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }   /* let sections breathe via one rhythm */
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.sec-head { max-width: 52ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .h2 { margin-block: 1.1rem 1.2rem; }

.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > * { min-width: 0; }
.span-2 { grid-column: span 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding-block: 1.1rem;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line-2); padding-block: 0.75rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.03em; font-size: 1.05rem; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
.brand .tag { color: var(--muted); font-weight: 450; margin-left: .15rem; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.9em 1.5em; border-radius: var(--pill);
  font-weight: 550; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .3s, box-shadow .35s var(--ease), color .3s;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn-ink:hover svg { transform: translate(2px,-2px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { transform: translateY(-2px); background: var(--blue-bright); box-shadow: 0 18px 40px -16px rgba(26,92,240,.55); }
.btn-blue:hover svg { transform: translate(2px,-2px); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.tlink { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 550; color: var(--blue); }
.tlink svg { width: 0.95em; height: 0.95em; transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translate(3px,-3px); }
.navlink { font-weight: 550; font-size: 0.98rem; color: var(--ink); transition: color .25s; }
.navlink:hover { color: var(--blue); }
.system-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); grid-template-columns: 1.31fr 1.10fr; align-items: center; }
@media (max-width: 860px) { .system-grid { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(8rem, 17vh, 12rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero h1 { max-width: 16ch; margin-bottom: 1.8rem; }
.hero .lead { max-width: 46ch; margin-bottom: 2.6rem; }
.hero-reel {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  background: var(--bg-soft); aspect-ratio: 16 / 9; margin-top: clamp(2rem, 5vw, 4rem);
}
.hero-reel video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Media frames ---------- */
.well {
  background: var(--bg-soft); border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3.5rem);
}
.well.blue { background: var(--bg-blue); }
.well.pad-0 { padding: 0; }
.well img { width: 100%; height: auto; object-fit: contain; }
.fig { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
figure.cap figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.88rem; }
.phone { filter: drop-shadow(0 30px 50px rgba(8,22,70,.28)); width: 100%; height: auto; }
.tall { aspect-ratio: 4 / 5; }
.media-row { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); align-items: end; }

/* ---------- Stats (system text) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.stat .num { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.stat .num .u { color: inherit; }
.stat p { margin-top: 0.6rem; color: var(--ink-2); max-width: 24ch; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.5rem 1rem; border-radius: var(--pill);
  border: 1px solid var(--line); font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- Playful CTA ---------- */
.cta { text-align: center; padding-block: clamp(6rem, 14vw, 12rem); }
.cta .kick { font-family: var(--serif); font-size: clamp(1.2rem,1rem+1vw,1.6rem); color: var(--muted); margin-bottom: 0.6rem; }
.cta-line {
  font-size: clamp(2.6rem, 1.2rem + 7vw, 7rem);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 600;
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.2em;
}
.cta-link {
  display: inline-flex; align-items: center; gap: 0.12em;
  color: var(--blue); position: relative; transition: color .3s;
}
.cta-link .arrow {
  width: 0.78em; height: 0.78em; transition: transform .4s var(--ease);
}
.cta-link:hover { color: var(--blue-bright); }
.cta-link:hover .arrow { transform: translate(0.12em, -0.12em) rotate(8deg); }
.cta-wave { display: inline-block; transition: transform .3s var(--ease); transform-origin: 70% 70%; }
.cta-link:hover .cta-wave { animation: wave 1s ease-in-out; }
@keyframes wave { 0%,100%{transform:rotate(0)} 25%{transform:rotate(18deg)} 50%{transform:rotate(-8deg)} 75%{transform:rotate(14deg)} }
.cta .sub { margin-top: 2rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding-block: 2.6rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer .fine { color: var(--muted); font-size: 0.86rem; }
.footer .links { display: flex; gap: 1.4rem; }
.footer a.s { color: var(--ink-2); font-size: 0.92rem; transition: color .25s; }
.footer a.s:hover { color: var(--blue); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(.97) translateY(22px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal-scale.in { opacity: 1; transform: none; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty.slow { animation-duration: 10s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --section-y: clamp(4.5rem, 14vw, 7rem); }
  .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.flip .well, .split.flip figure { order: -1; }
  .g-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2rem; }
  .hero-reel { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .g-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .nav .brand .tag { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
}
@media print { .nav, .cta { display: none; } body { background: #fff; } }
