/* 3D Magic. Native birds printed layer by layer from recycled filament.
   The layer line is the whole idea: it's in the wordmark, the hero reveal (the bird "prints"
   upward once on load), the striped texture behind pictures and the section rules.
   Fonts: Bricolage Grotesque for display, Figtree for text. Motion is once-only and off under
   prefers-reduced-motion; nothing is hidden unless html.js is set. */
:root {
  --bush: #143d30;      /* deep forest green: headings, dark bands */
  --ink: #10281f;       /* body text */
  --moss: #2e6b52;      /* mid green: layer lines, secondary text on dark */
  --mist: #edf1ea;      /* page background, pale sage */
  --breast: #fbfbf6;    /* cards, the white of a kererū's chest */
  --kowhai: #f2b33d;    /* action colour */
  --kowhai-deep: #d99a1e;
  --beak: #d9533a;      /* tiny accents, focus ring */
  --muted: #4b5f55;
  --rule: #cfd9d0;
  --on-dark: #d7e4dc;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --measure: 58ch;
  --radius: 14px;
  --shadow: 0 24px 48px -24px rgba(16, 40, 31, .38), 0 2px 6px rgba(16, 40, 31, .06);
  --shadow-sm: 0 10px 24px -16px rgba(16, 40, 31, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --layers: repeating-linear-gradient(180deg, transparent 0 7px, rgba(20, 61, 48, .13) 7px 8px);
  --layers-dark: repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, .08) 7px 8px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--mist); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--mist); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bush); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--beak); outline-offset: 3px; }
p { margin: 0 0 1rem; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; color: var(--bush); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: .35rem; letter-spacing: -.01em; }
.lead { font-size: 1.2rem; color: var(--muted); }
main { flex: 1 0 auto; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--kowhai); color: var(--ink); padding: .6rem 1rem; z-index: 50; font-weight: 700; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .8rem 1.4rem; font: 700 1rem/1.2 var(--text); text-decoration: none; color: var(--ink); background: var(--kowhai); border: 2px solid var(--kowhai); border-radius: 999px; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s; }
.btn:hover { background: var(--kowhai-deep); border-color: var(--kowhai-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn.quiet { background: transparent; border-color: var(--bush); color: var(--bush); }
.btn.quiet:hover { background: var(--bush); color: var(--breast); }
.btn.on-dark { border-color: rgba(255, 255, 255, .55); color: var(--breast); background: transparent; }
.btn.on-dark:hover { background: var(--breast); color: var(--bush); border-color: var(--breast); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(237, 241, 234, .9); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; color: var(--bush); font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .1rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--kowhai); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--bush); }
.site-nav .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 2px solid var(--bush); background: transparent; border-radius: 999px; color: var(--bush); font: 700 .9rem var(--text); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 6.2vw, 5.4rem); font-weight: 800; }
.hero .lead { margin-top: 1.4rem; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.75rem; }
.figure { position: relative; margin: 0; }
.figure::before { content: ""; position: absolute; inset: 10% -6% -8% 14%; background: var(--bush); border-radius: 22px; background-image: var(--layers-dark); }
.figure img { position: relative; border-radius: 18px; box-shadow: var(--shadow); width: 100%; }
.hero-figure { aspect-ratio: 16 / 10; }
.hero-video { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 18px; box-shadow: var(--shadow); background: #e6d9bf; }
/* The hero bird "prints": the picture is painted at once (so it counts as the first big paint), and a
   mist-coloured cover with a thin kōwhai edge, the print head, shrinks upward to reveal it, once. */
.figure .cover { display: none; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--mist); border-radius: 18px; z-index: 1; pointer-events: none; }
.video-toggle { position: absolute; left: .75rem; bottom: .75rem; z-index: 2; min-width: 96px; min-height: 44px; padding: 0 .9rem; border: 0; border-radius: 999px; background: rgba(16, 40, 31, .78); color: var(--breast); font: 600 .85rem var(--text); cursor: pointer; }
.video-toggle:hover { background: var(--bush); }
.figure .cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--kowhai); }
.figure figcaption { position: absolute; right: -2%; bottom: -1.1rem; max-width: 90%; text-wrap: balance; background: var(--breast); color: var(--bush); font-size: .85rem; font-weight: 600; padding: .5rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* Proof strip: three facts, no numbers until there are numbers */
.proof { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.proof li { background: var(--breast); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.proof svg { width: 44px; height: 44px; }
.proof b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--bush); letter-spacing: -.01em; }
.proof span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section.breast { background: var(--breast); }
.section.dark { background: var(--bush); color: var(--on-dark); background-image: var(--layers-dark); }
.section.dark h2, .section.dark h3 { color: var(--breast); }
.section.dark p { color: var(--on-dark); }
.section.dark a:not(.btn) { color: var(--breast); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { margin: 0; }

/* Bird gallery */
.birds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.birds li { background: var(--breast); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.birds li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.birds .pic { background: #e3e9e1; background-image: var(--layers); aspect-ratio: 1; }
.birds img { width: 100%; height: 100%; object-fit: cover; }
.birds .meta { padding: 1rem 1.1rem 1.15rem; }
.birds .meta h3 { font-size: 1.2rem; margin-bottom: .1rem; }
.birds .meta .en { color: var(--muted); font-size: .92rem; display: block; margin-bottom: .5rem; }
.birds .meta p { font-size: .95rem; margin: 0; }
.birds .meta .size { display: inline-block; margin-top: .6rem; font-size: .82rem; color: var(--moss); font-weight: 600; }

/* Process sequence (it is a sequence, so it's numbered) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; }
.steps .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: #dfe6dd; }
.steps .pic img { width: 100%; height: 100%; object-fit: cover; }
.steps h3 { margin-top: 1rem; padding-left: 2.4rem; position: relative; }
.steps h3::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--kowhai); color: var(--ink); font: 700 .95rem/1.8rem var(--text); text-align: center; }
.steps p { font-size: .98rem; }

/* Split feature (image beside text, image over an offset block) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split .figure::before { inset: 8% 10% -8% -6%; background: var(--moss); background-image: var(--layers-dark); }
.split.flip .figure { order: 2; }

/* Giving back band */
.give .card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 1.5rem 1.75rem; max-width: 60ch; }
.placeholder { background: rgba(242, 179, 61, .18); border-bottom: 2px dashed var(--kowhai); padding: 0 .25rem; border-radius: 3px; }

/* Enquiry form */
.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
form { display: grid; gap: 1rem; scroll-margin-top: 6rem; background: var(--breast); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); box-shadow: var(--shadow); }
form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--bush); }
form input, form textarea, form select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--rule); border-radius: 10px; padding: .75rem .9rem; min-height: 48px; }
form textarea { min-height: 140px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--bush); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-form-status]:empty { display: none; }
[data-form-status] { margin: 0; font-weight: 600; color: var(--bush); }
.form-privacy { font-size: .85rem; color: var(--muted); margin: 0; }
.ask .aside p { font-size: 1.02rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 2.5rem 0 2rem; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
.site-footer a { color: var(--breast); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1rem; color: #9fb3a8; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer .credit a { color: #c7d6cd; display: inline-block; padding: .7rem 0; margin: -.7rem 0; }

/* Page intro (inner pages) */
.intro { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.intro h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; }
.intro .lead { margin-top: 1rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }

/* Motion: on only with JavaScript, and off under reduced motion */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .hero h1, html.js .hero .lead, html.js .hero .actions { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
html.js .hero .lead { animation-delay: .25s; }
html.js .hero .actions { animation-delay: .45s; }
html.js .hero .figure::before { opacity: 0; transform: translate(10px, 10px); animation: rise .9s var(--ease) .1s forwards; }
html.js .hero .figure .cover { display: block; animation: uncover 1.5s var(--ease) .15s forwards; }
@keyframes uncover { 90% { opacity: 1; } to { height: 0; opacity: 0; visibility: hidden; } }
html.js .hero .figure figcaption { opacity: 0; animation: rise .7s var(--ease) 1.5s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .hero h1, html.js .hero .lead, html.js .hero .actions, html.js .hero .figure img, html.js .hero .figure::before, html.js .hero .figure figcaption { opacity: 1; transform: none; animation: none; }
  html.js .hero .figure .cover { display: none; }
  .btn, .birds li { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .split, .ask { grid-template-columns: 1fr; }
  .split.flip .figure { order: 0; }
  .birds { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .proof ul { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .figure::before { inset: 8% -4% -6% 10%; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  html.js .site-nav { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--breast); border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow); }
  html.js .site-nav.open { display: flex; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: static; box-shadow: none; }
  .site-nav a { min-height: 48px; border-bottom: 1px solid var(--rule); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--bush); }
  .site-nav .btn { margin-top: .75rem; justify-content: center; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top: 1.6rem; }
  .hero .wrap { gap: 1.5rem; }
  .hero .lead { margin-top: 1rem; font-size: 1.08rem; }
  .hero .actions { margin-top: 1.25rem; gap: .6rem; }
  .hero .actions .btn { min-height: 46px; padding: .7rem 1.2rem; }
  .birds { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .birds .meta { padding: .8rem .85rem 1rem; }
  .birds .meta h3 { font-size: 1.05rem; }
  .birds .meta p { font-size: .88rem; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .figure figcaption { right: 0; }
}
@media (min-width: 700px) and (max-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 820px) and (max-width: 900px) {
  .proof ul { grid-template-columns: repeat(3, 1fr); }
}
