/* AI Marketing NZ: the content sits on the same paper page the cutouts stand on. */
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/young-serif-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/atkinson-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/atkinson-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F6EFDF;
  --paper-deep: #EDE3CC;
  --card: #FCF8EF;
  --edge: #E2D6BC;
  --ink: #1E3529;
  --ink-soft: #4A5E52;
  --fern: #3F7D4E;
  --harbour: #245A72;
  --sky-top: #BFDCEA;
  --sky-low: #E9F1EC;
  --amber: #E8A33A;
  --amber-deep: #C9822A;
  --pohutukawa: #C4412F;
  --display: 'Young Serif', 'Georgia', serif;
  --body: 'Atkinson', 'Segoe UI', system-ui, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --lift: 0 1px 0 var(--edge), 0 2px 0 var(--edge), 0 3px 0 var(--edge), 0 14px 24px -14px rgba(30, 53, 41, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--body);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--harbour); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--harbour); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .4em; max-width: var(--measure); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.label { font: 700 .78rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #2A6139; margin: 0 0 .9em; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.42rem); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1rem/1 var(--body); text-decoration: none;
  padding: .95em 1.3em; border-radius: 999px;
  background: var(--amber); color: var(--ink);
  box-shadow: 0 1px 0 var(--amber-deep), 0 2px 0 var(--amber-deep), 0 3px 0 var(--amber-deep), 0 10px 18px -10px rgba(30,53,41,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 1px 0 var(--amber-deep), 0 2px 0 var(--amber-deep), 0 3px 0 var(--amber-deep), 0 4px 0 var(--amber-deep), 0 14px 22px -10px rgba(30,53,41,.5); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--amber-deep), 0 4px 10px -6px rgba(30,53,41,.5); }
.btn--quiet { background: var(--card); box-shadow: var(--lift); }
.btn--quiet:hover { box-shadow: var(--lift); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--sky-top) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(30,53,41,.08); }
.page--plain .site-header { background: color-mix(in srgb, var(--paper) 88%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.3rem/1 var(--display); white-space: nowrap; }
.brand svg { width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 10px 12px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background: rgba(252, 248, 239, .7); }
.nav .btn { margin-left: 8px; padding: .8em 1.1em; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--lift); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu__panel { display: flex; }
.menu__panel { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); border-radius: var(--radius); box-shadow: var(--lift); padding: 8px; min-width: 260px; }
.menu__panel a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
.menu__panel a:hover { background: var(--paper); }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }

/* ---------- hero (sky) ---------- */
.hero { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 100%); padding-top: clamp(28px, 6vw, 72px); }
.hero .wrap { position: relative; z-index: 2; }
.crumbs { font-size: .95rem; margin-bottom: 1.2rem; color: var(--ink-soft); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--ink-soft); }
.hero h1 { max-width: 21ch; font-size: clamp(2.4rem, 5.2vw, 4.3rem); }
.hero--service h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.4vw, 4.3rem); }

/* ---------- hero as one film frame: copy in the sky, world below ---------- */
.hero--stage { position: relative; padding-top: clamp(28px, 6vw, 56px); }
.hero--stage .stage { margin-top: 8px; }
@media (min-width: 900px) {
  .hero--stage { padding-top: 0; background: var(--sky-low); }
  .hero--stage .stage { --hz: 64%; height: clamp(660px, calc(100svh - 68px), 920px); margin-top: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) var(--hz), var(--paper) calc(var(--hz) + .2%), var(--paper) 100%); }
  .hero--stage .stage__back { height: 18%; }
  .hero--stage .hero__copy { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding-top: clamp(32px, 5vh, 64px); pointer-events: none;
    display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; }
  .hero--stage .hero__copy > * { pointer-events: auto; grid-column: 1; }
  .hero--stage .hero__copy > .lede, .hero--stage .hero__copy > .btn-row { grid-column: 2; }
  .hero--stage .hero__copy > .lede { grid-row: 1 / span 3; align-self: end; margin-bottom: 0; font-size: 1.2rem; }
  .hero--stage .hero__copy > .btn-row { grid-row: 4; margin-top: 1.2rem; }
  .hero--stage .hero__copy > h1 { grid-row: 3; margin-bottom: 0; }
  .hero--stage .hero__copy > .crumbs { grid-row: 1; }
  .hero--stage .hero__copy > .label { grid-row: 2; }
  .hero--stage h1 { font-size: clamp(2.4rem, 4vw, 3.9rem); max-width: 18ch; }
  .hero--stage.hero--service h1 { font-size: clamp(2.2rem, 3.5vw, 3.4rem); max-width: 22ch; }
}

/* ---------- the stage (signature) ---------- */
.stage {
  --u: .17857cqh;            /* 1 authored px = stage height / 560 */
  --hz: 40%;                 /* horizon, from the top */
  position: relative; height: clamp(340px, 46vw, 600px);
  container-type: size; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-low) 0%, var(--sky-low) var(--hz), var(--paper) calc(var(--hz) + .2%), var(--paper) 100%);
}
.stage__view { position: absolute; inset: 0; perspective: calc(900 * var(--u)); perspective-origin: 50% var(--hz); }
.stage__world { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.stage__back { position: absolute; left: -40%; right: -40%; bottom: calc(100% - var(--hz) - .4%); height: 22%; transform-origin: 50% 100%; transform: translateZ(calc(-1600 * var(--u))) scale(2.78); }
.stage__back svg { width: 100%; height: 100%; }
.stage__floor { position: absolute; left: -100%; width: 300%; bottom: 6%; height: calc(2000 * var(--u)); transform-origin: 50% 100%; transform: rotateX(90deg); background: radial-gradient(ellipse 60% 40% at 50% 100%, #FBF5E7 0%, var(--paper) 70%); }
.stage__floor::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 26px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(30,53,41,.05) 50%, transparent); -webkit-mask: linear-gradient(180deg, #000 30%, transparent 90%); mask: linear-gradient(180deg, #000 30%, transparent 90%); }
.stage__floor svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cut {
  position: absolute; bottom: calc(6% + var(--y, 0) * var(--u)); left: calc(50% + var(--x) * 1%);
  height: calc(var(--h) * var(--u)); transform-style: preserve-3d;
  transform: translate3d(-50%, 0, calc(var(--z) * var(--u))) rotateY(calc(var(--ry, 0) * 1deg));
  transform-origin: 50% 100%;
}
.cut img { height: 100%; width: auto; max-width: none; }
.cut__edge { position: absolute; inset: 0; filter: brightness(0) invert(91%) sepia(12%) saturate(420%) hue-rotate(4deg); }
.cut__edge:nth-child(1) { transform: translateZ(-3px); }
.cut__edge:nth-child(2) { transform: translateZ(-1.5px); }
.cut__face { position: relative; filter: drop-shadow(0 0 .5px rgba(30,53,41,.25)); }
.cut[style*='--y'] .cut__shadow { display: none; }
.cut__shadow { position: absolute; left: 4%; right: 4%; bottom: 0; height: 40%; transform-origin: 50% 100%; transform: rotateX(90deg) skewX(-24deg); background: radial-gradient(ellipse 50% 46% at 50% 100%, rgba(30,53,41,.26), rgba(30,53,41,0) 70%); pointer-events: none; }
.flag {
  position: absolute; bottom: 6%; left: calc(50% + var(--x) * 1%);
  transform: translate3d(-50%, 0, calc(var(--z) * var(--u)));
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--ink);
}
.flag__card { font: 700 clamp(.8rem, 1.4cqw, 1rem)/1.15 var(--body); background: var(--card); padding: .55em .85em; border-radius: 10px; box-shadow: var(--lift); white-space: nowrap; transition: transform .2s ease; }
.flag::after { content: ''; width: 4px; height: calc(46 * var(--u)); background: var(--ink); opacity: .55; border-radius: 2px; }
.flag:hover .flag__card, .flag:focus-visible .flag__card { transform: translateY(-4px); background: #fff; }
.flag:hover { color: var(--ink); }
@media (max-width: 640px) {
  .stage { height: 360px; --hz: 34%; }
  .cut { height: calc(var(--h) * var(--u) * 1.3); }
  .cut[data-m="0"], .flag { display: none; }
}
.stage-caption { font-size: .9rem; color: var(--ink-soft); text-align: center; margin: .8rem auto 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 8vw, 104px); }
.section + .section { padding-top: 0; }
.fold { height: 1px; background: linear-gradient(90deg, transparent, rgba(30,53,41,.16) 20%, rgba(30,53,41,.16) 80%, transparent); margin-block: 0; border: 0; }
.split { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.split > aside { position: sticky; top: 100px; }
.toc { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--edge); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--ink-soft); text-decoration: none; font-size: .98rem; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-left-color: var(--fern); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > aside { position: static; } .toc { display: none; } .split > aside:not(:has(h2)) { display: none; } }
.prose > section { padding-bottom: clamp(36px, 5vw, 64px); }
.prose > section:last-child { padding-bottom: 0; }
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 6px; background: var(--fern) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='%23FCF8EF' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 0; list-style: none; margin: 0; }
.cards li { margin: 0; max-width: none; background: var(--card); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--lift); }
.cards h3 { font-size: 1.2rem; margin-bottom: .35em; }
.cards p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; margin: 0; max-width: none; }
.steps li::before { content: counter(s); font: 400 1.5rem/52px var(--display); text-align: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: var(--lift); }
.steps h3 { margin: .45em 0 .2em; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid rgba(30,53,41,.14); }
.faq details { border-bottom: 1px solid rgba(30,53,41,.14); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 400 1.22rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--fern); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p { padding-bottom: 20px; margin: 0; color: var(--ink-soft); }

/* Contents (home + services): the book's table of contents */
.contents { list-style: none; padding: 0; margin: 0; counter-reset: ch; }
.contents li { counter-increment: ch; margin: 0; max-width: none; border-top: 1px solid rgba(30,53,41,.14); }
.contents li:last-child { border-bottom: 1px solid rgba(30,53,41,.14); }
.contents a { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding: 26px 4px; text-decoration: none; color: var(--ink); }
.contents a::before { content: 'Ch. ' counter(ch); font: 700 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--fern); }
.contents h3 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 2rem); }
.contents p { grid-column: 2; margin: .3em 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.contents .go { grid-column: 3; grid-row: 1; font-weight: 700; color: var(--harbour); white-space: nowrap; }
.contents a:hover h3 { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.contents a:hover .go { color: var(--ink); }
@media (max-width: 640px) { .contents a { grid-template-columns: 1fr; } .contents p, .contents .go { grid-column: 1; grid-row: auto; } }

/* Statement */
.statement { font: 400 clamp(1.8rem, 4vw, 3.2rem)/1.15 var(--display); max-width: 22ch; margin: 0; text-wrap: balance; }
.statement em { font-style: normal; color: var(--fern); }

/* Two sides (connect page) */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sides > div { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--lift); }
.sides h3 { margin-bottom: .4em; }
.sides .btn { margin-top: .4rem; }
@media (max-width: 720px) { .sides { grid-template-columns: 1fr; } }

/* Related */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 0; list-style: none; }
.related li { margin: 0; max-width: none; }
.related a { display: block; height: 100%; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--lift); text-decoration: none; color: var(--ink); transition: transform .15s ease; }
.related a:hover { transform: translateY(-2px); }
.related strong { display: block; font: 400 1.25rem/1.2 var(--display); margin-bottom: .35em; }
.related span { color: var(--ink-soft); font-size: 1rem; }

/* CTA band: a sheet of card on the page */
.cta { background: var(--card); border-radius: 22px; box-shadow: var(--lift); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: var(--ink-soft); }
.cta .btn-row { margin: 0; }
.cta__mail { font-weight: 700; color: var(--ink); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Person (about) */
.person { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.person img { width: 140px; height: auto; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

/* Contact */
.mail-big { font: 400 clamp(1.6rem, 4.6vw, 3rem)/1.1 var(--display); color: var(--ink); text-decoration: none; word-break: break-word; }
.mail-big:hover { color: var(--harbour); }
.topic-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.topic-list li { margin: 0; max-width: none; }
.topic-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 16px 18px; box-shadow: var(--lift); text-decoration: none; color: var(--ink); font-weight: 600; }
.topic-list a::after { content: '\2192'; color: var(--harbour); }

/* Footer */
.site-footer { margin-top: clamp(56px, 9vw, 120px); background: var(--ink); color: #DCE5DE; padding-block: 56px 40px; }
.site-footer a { color: #F3EBD9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot h2 { font: 700 .78rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: #A9C3B0; margin-bottom: 1em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .55em; font-size: 1rem; }
.foot .brand { color: #F3EBD9; margin-bottom: 14px; }
.foot p { font-size: 1rem; color: #C3D0C6; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; color: #A9B9AD; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Plain pages (about, faq, contact, privacy, 404) */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-head h1 { max-width: 18ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .stage, .site-footer, .btn-row { display: none !important; }
  body { background: #fff; }
}
