/* ============================================================
   CURRENT - current.co.nz
   Video-first marketing agency, Auckland
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Karla:wght@400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --black:        #0c0b0a;
  --parchment:    #f0ebe3;
  --rust:         #c8552a;
  --stone:        #6e6960;

  /* stepped card surfaces */
  --surface-1:    #131210;
  --surface-2:    #1a1917;
  --surface-3:    #232120;

  /* derived */
  --parchment-3:  rgba(240, 235, 227, 0.18);
  --hairline:     rgba(240, 235, 227, 0.10);
  --hairline-2:   rgba(240, 235, 227, 0.18);

  --font-head:    'Cormorant Garamond', Georgia, serif;
  --font-body:    'Karla', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  --maxw:         1240px;
  --gutter:       clamp(20px, 5vw, 64px);
  --radius:       2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--black);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 160px); }

.rule { height: 1px; background: var(--hairline); border: 0; }

/* ---------- Typography ---------- */
.label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rust);
  display: inline-block;
}
.label--stone { color: var(--stone); }
.label--parchment { color: var(--parchment); }

.display {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; font-weight: 400; }

h1, .h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--parchment);
  max-width: 56ch;
}

p { max-width: 64ch; }
p + p { margin-top: 1.1em; }

.muted { color: var(--stone); }

.eyebrow-gap { margin-bottom: 22px; }
.title-gap { margin-bottom: 26px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--parchment);
  color: var(--black);
}
.btn--primary:hover { background: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--hairline-2);
}
.btn--ghost:hover { border-color: var(--parchment); }

.btn--rust {
  background: var(--rust);
  color: var(--parchment);
}
.btn--rust:hover { background: #d9602f; }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--parchment);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 3px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.link-arrow:hover { gap: 0.9em; color: var(--rust); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
}
.wordmark .dot { color: var(--rust); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--parchment);
  opacity: 0.78;
  transition: opacity 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"] { color: var(--rust); }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--parchment);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav__cta:hover { color: var(--rust); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 12vw, 150px) clamp(48px, 7vw, 96px); }
.hero__eyebrow { margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero__sub {
  margin-top: 32px;
  max-width: 60ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--parchment);
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Logos bar ---------- */
.logos {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: 30px;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
}
.logos__item {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--parchment-3);
  white-space: nowrap;
}
.logos__label { margin-bottom: 20px; }

/* ---------- Generic grid ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Split header ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

/* ---------- Pillars ---------- */
.pillar {
  border-top: 1px solid var(--hairline-2);
  padding-top: 26px;
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 18px;
}
.pillar__title { margin-bottom: 14px; }
.pillar__body { color: var(--stone); font-size: 15px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding-block: 28px;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.tl-row:last-child { border-bottom: 1px solid var(--hairline); }
.tl-week {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}
.tl-body h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 6px;
}
.tl-body p { color: var(--stone); font-size: 15px; }

/* ---------- Packages ---------- */
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.pkg {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
}
.pkg--featured {
  background: var(--surface-2);
  border-color: var(--rust);
}
.pkg__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.pkg__name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 8px;
}
.pkg__price {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 40px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.pkg__price span { font-size: 15px; color: var(--stone); font-family: var(--font-body); }
.pkg__list { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.pkg__list li {
  font-size: 15px;
  padding-left: 22px;
  position: relative;
  color: var(--parchment);
}
.pkg__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--rust);
}
.pkg__for { color: var(--stone); font-size: 14px; margin-bottom: 24px; font-style: italic; font-family: var(--font-head); font-size: 17px; }
.pkg .btn { margin-top: auto; justify-content: center; }
.pkg__note { margin-top: 24px; font-size: 13px; color: var(--stone); max-width: 70ch; }

/* ---------- Risk reversal ---------- */
.risk {
  background: var(--surface-1);
  border-left: 3px solid var(--rust);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 72px);
}
.risk .section-title { max-width: 22ch; margin-bottom: 20px; }
.risk p { max-width: 62ch; color: var(--parchment); }
.risk .btn { margin-top: 34px; }

/* ---------- Image placeholder ---------- */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(240,235,227,0.014) 0 14px, transparent 14px 28px),
    var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 16px;
}
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 21 / 9; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---------- Case study cards ---------- */
.case {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.case:hover { border-color: var(--hairline-2); transform: translateY(-3px); }
.case__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.case__name { font-family: var(--font-head); font-weight: 500; font-size: 26px; }
.case__desc { color: var(--stone); font-size: 14px; }
.case__soon {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 6px;
}

/* ---------- Pull quote ---------- */
.pullquote {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.pullquote .mark { color: var(--rust); }

/* ---------- Contact / form ---------- */
.form-embed {
  background: var(--surface-1);
  border: 1px dashed var(--hairline-2);
  border-radius: var(--radius);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.form-embed .label { font-size: 12px; }
.qlist { list-style: none; display: grid; gap: 20px; margin-top: 40px; counter-reset: q; }
.qlist li {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  counter-increment: q;
  position: relative;
  padding-left: 42px;
}
.qlist li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0; top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rust);
  letter-spacing: 0.1em;
}
.qlist strong { font-weight: 500; }
.qlist .sub { display: block; color: var(--stone); font-size: 13px; margin-top: 6px; }

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.filter:hover { color: var(--parchment); border-color: var(--hairline-2); }
.filter.active { color: var(--black); background: var(--parchment); border-color: var(--parchment); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.work-card {
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font: inherit;
  color: inherit;
}
.work-card .ph { transition: border-color 0.25s ease; }
.work-card:hover .ph { border-color: var(--rust); }
.work-card__meta { display: flex; flex-direction: column; gap: 4px; }
.work-card__title { font-family: var(--font-head); font-weight: 500; font-size: 21px; line-height: 1.1; }
.work-card__client { color: var(--stone); font-size: 13px; }
.work-card__cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 4px;
}

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.modal.open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-1);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: 1px solid var(--hairline-2);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 2;
}
.modal__close:hover { border-color: var(--parchment); }
.modal__player {
  background: var(--black);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: var(--radius);
}
.modal__player .label { color: var(--stone); }
.modal__cat { margin-bottom: 12px; }
.modal__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.modal__client { color: var(--stone); font-size: 14px; margin-bottom: 20px; }
.modal__desc { color: var(--parchment); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 7vw, 88px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer__brand .wordmark { font-size: 26px; display: inline-block; margin-bottom: 14px; }
.footer__tag { color: var(--stone); font-family: var(--font-head); font-style: italic; font-size: 20px; max-width: 22ch; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer__col ul { list-style: none; display: grid; gap: 12px; }
.footer__col a { font-size: 15px; color: var(--parchment); opacity: 0.82; transition: opacity 0.2s ease, color 0.2s; }
.footer__col a:hover { opacity: 1; color: var(--rust); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }
  .nav__inner.open + .nav__menu { display: flex; }
  .nav__menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 18px var(--gutter) 28px;
    background: rgba(12,11,10,0.96);
    border-bottom: 1px solid var(--hairline);
  }
  .nav__menu a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--parchment);
  }
  .grid-3, .grid-4, .work-grid { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .footer__top { grid-template-columns: 1fr; }
}
