/* Auswide Construction Group. Two tones, split hard: their teal and their charcoal, both measured from their logo. */
:root {
  --teal: #00b0ad;      /* "auswide" in their logo */
  --char: #404041;      /* the band under their logo */
  --char-2: #333334;
  --char-3: #29292a;
  --ink: #1d1b1c;       /* text on teal */
  --paper: #f4f2ec;
  --paper-2: #e7e4db;
  --teal-hi: #3fd0cc;   /* teal for small text on charcoal (5.4:1) */
  --teal-dk: #00706e;   /* teal for small text on paper (5.6:1) */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: Bahnschrift, "DIN Alternate", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --hh: 60px;
  --gut: 18px;
  --r: 22px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 24px); }
body { margin: 0; background: var(--char-3); color: var(--paper); font: 400 1.0625rem/1.55 var(--sans); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal-hi); outline-offset: 3px; border-radius: 4px; }
.t :focus-visible { outline-color: var(--ink); }
h1, h2, h3 { font-family: var(--head); font-stretch: 87.5%; font-weight: 700; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 9.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 7.4vw, 3.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.lede { font-size: 1.15rem; }
.label { font: 500 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .9rem; display: block; }
.c .label { color: var(--teal-hi); }
.t .label { color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* Skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- Header: their logo on their charcoal, the number always on screen ---------- */
.hd { position: sticky; top: 0; z-index: 60; background: var(--char); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hd-in { height: var(--hh); display: flex; align-items: center; gap: 12px; transition: height .3s var(--ease); }
.hd-logo { display: block; flex: none; margin-right: auto; }
.hd-logo img { height: 46px; width: auto; transition: height .3s var(--ease); }
.hd-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.hd-links a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .95rem; color: #e6e3db; }
.hd-links a:hover, .hd-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.07); }
.hd-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.hd-call { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: var(--ink); text-decoration: none; font: 700 .95rem/1 var(--mono); padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.hd-call svg { width: 16px; height: 16px; flex: none; }
.hd-call:hover { background: #19c2bf; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.menu[open] summary span { box-shadow: none; transform: rotate(45deg); }
.menu[open] summary span::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; transform: rotate(-90deg); }
.menu ul { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 24px)); list-style: none; margin: 0; padding: 8px; background: var(--char-2); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.menu li a { display: flex; justify-content: space-between; padding: 12px; border-radius: 9px; text-decoration: none; font-size: 1.05rem; }
.menu li a:hover, .menu li a[aria-current="page"] { background: rgba(255,255,255,.07); }
.menu li a::after { content: "→"; color: var(--teal-hi); font-family: var(--mono); }
.scrolled .hd-in { height: 52px; }
.scrolled .hd-logo img { height: 36px; }
@media (max-width: 400px) { .hd-in { gap: 8px; } .hd-logo img { height: 38px; } .hd-call { font-size: .82rem; padding: 9px 10px; gap: 6px; } .menu summary { width: 42px; height: 42px; } }
@media (max-width: 345px) { .hd-call b { display: none; } .hd-call { padding: 12px; } }
@media (min-width: 1080px) {
  :root { --hh: 72px; --gut: 32px; }
  .hd-links { display: flex; }
  .menu { display: none; }
  .hd-logo img { height: 54px; }
  .scrolled .hd-in { height: 58px; }
  .scrolled .hd-logo img { height: 42px; }
}

/* The progress line: a tape measure, pulled out as the page is read. */
.tape { position: absolute; left: 0; right: 0; bottom: -11px; height: 11px; pointer-events: none; display: none; }
.js .tape { display: block; }
.tape-case { position: absolute; left: 0; top: -3px; width: 22px; height: 17px; background: var(--char-3); border-radius: 0 9px 9px 0; box-shadow: inset -3px 0 0 var(--teal); }
.tape-blade { position: absolute; left: 18px; top: 0; height: 11px; width: calc((100% - 30px) * var(--p, 0)); background: var(--teal) url("/art/tape.svg") 0 0 / auto 11px no-repeat; border-bottom: 1px solid rgba(0,0,0,.35); }
.tape-blade::after { content: ""; position: absolute; right: -4px; top: -2px; width: 5px; height: 15px; background: #b9b8b2; border-radius: 1px; box-shadow: inset -1px 0 0 #77766f; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--teal); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-paper { --bg: var(--paper); --fg: var(--ink); }
.btn-mono { font-family: var(--mono); letter-spacing: .01em; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.more { display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem var(--mono); text-decoration: none; padding: 10px 0; }
.more::after { content: "→"; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(4px); }
.c .more { color: var(--teal-hi); }

/* ---------- The deck: sections are cards that stack, slide and settle ---------- */
.card { position: relative; border-radius: var(--r) var(--r) 0 0; margin-top: calc(var(--r) * -1); padding: 42px 0 44px; box-shadow: 0 -14px 34px rgba(0,0,0,.28); overflow: clip; transform-origin: 50% 0; }
.card:first-child { margin-top: 0; border-radius: 0; box-shadow: none; }
.card.t { background: var(--teal); color: var(--ink); }
.card.c { background: var(--char); color: var(--paper); }
.card.p { background: var(--paper); color: var(--ink); }
.js .stack > .card { position: sticky; top: var(--top, var(--hh)); }
.js .stack > .card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--cover, 0) * .45); pointer-events: none; z-index: 5; border-radius: inherit; }
.js .stack > .card.settling { transform: scale(calc(1 - var(--cover, 0) * .05)); }

/* The thread through the site: the hollow lettering of "CONSTRUCTIONS" in their logo, used as a card's index. */
.idx { position: absolute; top: 18px; right: var(--gut); font: 700 clamp(4.6rem, 22vw, 9rem)/.8 var(--head); font-stretch: 87.5%; color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .55; pointer-events: none; user-select: none; letter-spacing: -.02em; }
.c .idx { color: transparent; -webkit-text-stroke-color: var(--teal-hi); }
.t .idx { -webkit-text-stroke-color: var(--ink); }
.hollow { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.c .hollow { -webkit-text-stroke-color: var(--paper); }
.t .hollow { -webkit-text-stroke-color: var(--ink); }

/* ---------- Opening: the deck being built, in the page ---------- */
.hero { padding: 0; min-height: calc(100svh - var(--hh)); display: grid; grid-template-rows: minmax(210px, 37svh) auto; }
.hero-art { position: relative; overflow: hidden; background: var(--teal); }
.hero-art > img, .hero-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.2) 50%, transparent 62%) 0 0 / 300% 100% no-repeat; mix-blend-mode: soft-light; pointer-events: none; }
.hero-art .tag { position: absolute; left: var(--gut); bottom: 12px; z-index: 2; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 4px 8px; border-radius: 4px; }
.hero-words { background: var(--char); padding: 22px 0 26px; display: flex; flex-direction: column; justify-content: center; }
.hero-words h1 { margin-bottom: .35em; }
.hero-words p { color: #e4e1d8; }
.hero-words .btns { margin-top: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 16px 0 0; padding: 0; list-style: none; font: .8rem/1.4 var(--mono); color: #cfccc3; }
.hero-meta li::before { content: "▪ "; color: var(--teal-hi); }
@media (min-width: 900px) {
  .hero { grid-template-rows: none; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--hh)); }
  .hero-art { order: 2; }
  .hero-words { padding: 60px 0; }
  .hero-words .wrap { max-width: 640px; margin-right: 0; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); padding-right: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art > img { animation: drift-b 26s ease-in-out infinite alternate; }
  .hero-art > svg { animation: drift-f 26s ease-in-out infinite alternate; }
  .hero-art::after { animation: sweep 11s linear 3.4s infinite; }
  .hero-front .bd { animation: lay .42s var(--ease) both; }
  .hero-front .bd-edge { animation: fadein .5s ease 2.7s both; }
  .hero-front .rail { animation: fadein .9s ease 2.9s both; }
}
@keyframes drift-b { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.06) translateX(-1.2%); } }
@keyframes drift-f { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.06) translateX(-2.6%); } }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes lay { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.hero-front .bd:nth-child(1) { animation-delay: .5s; }
.hero-front .bd:nth-child(2) { animation-delay: .57s; }
.hero-front .bd:nth-child(3) { animation-delay: .64s; }
.hero-front .bd:nth-child(4) { animation-delay: .71s; }
.hero-front .bd:nth-child(5) { animation-delay: .78s; }
.hero-front .bd:nth-child(6) { animation-delay: .85s; }
.hero-front .bd:nth-child(7) { animation-delay: .92s; }
.hero-front .bd:nth-child(8) { animation-delay: .99s; }
.hero-front .bd:nth-child(9) { animation-delay: 1.06s; }
.hero-front .bd:nth-child(10) { animation-delay: 1.13s; }
.hero-front .bd:nth-child(11) { animation-delay: 1.2s; }
.hero-front .bd:nth-child(12) { animation-delay: 1.27s; }
.hero-front .bd:nth-child(13) { animation-delay: 1.34s; }
.hero-front .bd:nth-child(14) { animation-delay: 1.41s; }
.hero-front .bd:nth-child(15) { animation-delay: 1.48s; }
.hero-front .bd:nth-child(16) { animation-delay: 1.55s; }
.hero-front .bd:nth-child(17) { animation-delay: 1.62s; }
.hero-front .bd:nth-child(18) { animation-delay: 1.69s; }
.hero-front .bd:nth-child(19) { animation-delay: 1.76s; }
.hero-front .bd:nth-child(20) { animation-delay: 1.83s; }
.hero-front .bd:nth-child(21) { animation-delay: 1.9s; }
.hero-front .bd:nth-child(22) { animation-delay: 1.97s; }
.hero-front .bd:nth-child(23) { animation-delay: 2.04s; }
.hero-front .bd:nth-child(24) { animation-delay: 2.11s; }
.hero-front .bd:nth-child(25) { animation-delay: 2.18s; }
.hero-front .bd:nth-child(26) { animation-delay: 2.25s; }
.hero-front .bd:nth-child(27) { animation-delay: 2.32s; }
.hero-front .bd:nth-child(28) { animation-delay: 2.39s; }
.hero-front .bd:nth-child(n+29) { animation-delay: 2.46s; }

/* ---------- Rows you swipe on a phone (the next card shows at the edge) ---------- */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 340px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 4px var(--gut) 18px; margin: 0 calc(var(--gut) * -1); scrollbar-width: thin; scrollbar-color: currentColor transparent; list-style: none; }
.swipe > * { scroll-snap-align: start; }
.swipe-hint { font: .78rem var(--mono); opacity: .8; margin: -4px 0 0; }
@media (min-width: 900px) { .swipe-hint { display: none; } }

/* Section heads */
.head { position: relative; z-index: 2; max-width: 680px; margin-bottom: 22px; padding-right: 88px; }
@media (min-width: 900px) { .card { padding: 64px 0 76px; } }
.head p { margin-bottom: 0; }

/* ---------- Gallery by job type: tabs with no script ---------- */
.tabs { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs label { cursor: pointer; font: 600 .9rem var(--mono); padding: 10px 14px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .85; }
.tabs input:checked + label { background: var(--teal); color: var(--ink); border-color: var(--teal); opacity: 1; }
.t .tabs input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs input:focus-visible + label { outline: 3px solid var(--teal-hi); outline-offset: 3px; }
.tabbed .panel { display: contents; }
@supports selector(:has(*)) {
  .tabbed .panel { display: none; }
  .tabbed:has(#g-decks:checked) .p-decks, .tabbed:has(#g-pergolas:checked) .p-pergolas, .tabbed:has(#g-renos:checked) .p-renos, .tabbed:has(#g-commercial:checked) .p-commercial,
  .tabbed:has(#ga-all:checked) .panel, .tabbed:has(#ga-decks:checked) .p-decks, .tabbed:has(#ga-pergolas:checked) .p-pergolas, .tabbed:has(#ga-renos:checked) .p-renos, .tabbed:has(#ga-commercial:checked) .p-commercial { display: contents; }
}
.job { margin: 0; display: block; text-decoration: none; color: inherit; }
.job .pic { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--teal); }
.job .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.job:hover .pic img { transform: scale(1.04); }
.job .tag, .pic-tag { position: absolute; left: 10px; top: 10px; font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 4px; }
.job figcaption, .job .cap { display: block; padding: 10px 2px 0; font-size: .96rem; line-height: 1.4; }
.job .cap b { display: block; font-family: var(--head); font-stretch: 87.5%; font-size: 1.2rem; }

/* ---------- Timber cards ---------- */
.timber { display: block; text-decoration: none; color: var(--paper); background: var(--char); border-radius: 16px; overflow: hidden; height: 100%; position: relative; }
.timber .swatch { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.timber .swatch img { width: 100%; height: 100%; object-fit: cover; }
.timber .swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%) 120% 0 / 260% 100% no-repeat; mix-blend-mode: soft-light; transition: background-position 1.1s var(--ease); }
.timber:hover .swatch::after, .timber:focus-visible .swatch::after { background-position: -40% 0; }
.timber-body { padding: 16px 16px 18px; }
.timber h3 { margin: 0 0 4px; }
.timber p { font-size: .95rem; margin: 0 0 12px; color: #dcd9d0; }
.traits { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font: .8rem/1.35 var(--mono); }
.traits dt { color: var(--teal-hi); }
.traits dd { margin: 0; }
.species .traits { grid-template-columns: 1fr; gap: 2px; }
.species .traits dd { font: 1rem/1.5 var(--sans); margin-bottom: 10px; }
.ft a.email, .contact-list a.email { overflow-wrap: anywhere; }
.chip-colour { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; margin-right: 6px; border: 1px solid rgba(255,255,255,.4); }
.cc-spotted { background: #9a7a5c; } .cc-blackbutt { background: #c9a978; } .cc-merbau { background: #7a3f2b; } .cc-pine { background: #c8b27e; } .cc-composite { background: #6d6a66; }

/* ---------- Spec sheet (who you're dealing with) ---------- */
.spec { margin: 0; border-top: 2px solid currentColor; font-family: var(--mono); font-size: .92rem; }
.spec div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid currentColor; }
.spec dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.spec dd { margin: 0; font-size: 1rem; font-weight: 600; }
@media (min-width: 640px) { .spec div { grid-template-columns: 200px 1fr; align-items: baseline; } }

/* ---------- Contact card ---------- */
.big-call { display: inline-block; font: 700 clamp(2.2rem, 11vw, 4.6rem)/1 var(--mono); letter-spacing: -.03em; text-decoration: none; color: var(--teal-hi); margin: 6px 0 14px; }
.big-call:hover { color: #fff; }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 1rem; }
.contact-list span { display: block; font: .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-hi); }
.t .contact-list span { color: var(--ink); }

/* ---------- Inner pages ---------- */
.ph { display: grid; background: var(--char); }
.ph-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal); }
.ph-art img { width: 100%; height: 100%; object-fit: cover; }
.ph-words { padding: 30px 0 40px; }
.ph-words p { color: #e4e1d8; }
.crumbs { font: .78rem var(--mono); margin: 0 0 14px; color: #cfccc3; }
.crumbs a { color: var(--teal-hi); }
@media (min-width: 900px) {
  .ph { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .ph-art { order: 2; aspect-ratio: auto; }
  .ph-words { display: flex; flex-direction: column; justify-content: center; padding: 56px 0; }
  .ph-words .wrap { max-width: 640px; margin-right: 0; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); padding-right: 48px; }
}
.sect { padding: 56px 0; position: relative; }
.sect.t { background: var(--teal); color: var(--ink); }
.sect.c { background: var(--char); }
.sect.p { background: var(--paper); color: var(--ink); }
.sect.d { background: var(--char-2); }
.cols { display: grid; gap: 28px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; gap: 56px; } .cols.wide-l { grid-template-columns: 1.3fr 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor; }
.c .ticks li::before { background: var(--teal-hi); box-shadow: 0 5px 0 var(--teal-hi); }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; border-top: 2px solid currentColor; padding: 14px 0 0 0; display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 2.6rem/.85 var(--head); color: transparent; -webkit-text-stroke: 1.3px currentColor; }
.c .steps li::before { -webkit-text-stroke-color: var(--teal-hi); }
.steps b { display: block; font-family: var(--head); font-stretch: 87.5%; font-size: 1.25rem; margin-bottom: 2px; }
.steps p { margin: 0; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(4, 1fr); gap: 20px; } .steps.row li { grid-template-columns: 1fr; } }
.note { border-left: 4px solid var(--teal); padding: 4px 0 4px 16px; margin: 20px 0; }
.p .note { border-color: var(--teal-dk); }
.faq details { border-top: 1px solid currentColor; padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid currentColor; }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 1.5rem var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; }
.p a, .t a { color: var(--ink); }
.p .more { color: var(--teal-dk); }
.cta-band { background: var(--teal); color: var(--ink); padding: 44px 0; }
.cta-band .wrap { display: grid; gap: 16px; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; } .cta-band h2 { margin: 0; } }
.grid-jobs { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-jobs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-jobs { grid-template-columns: repeat(3, 1fr); } }
.table-wrap { overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
.compare { border-collapse: collapse; width: 100%; min-width: 620px; font: .88rem/1.4 var(--mono); }
.compare th, .compare td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid currentColor; vertical-align: top; }
.compare thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-bottom-width: 2px; }
.compare tbody th { font-family: var(--head); font-stretch: 87.5%; font-size: 1.05rem; white-space: nowrap; }
.species { display: grid; gap: 22px; align-items: start; }
.species .sw { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.species .sw img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .species { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.ft { background: var(--char-3); color: #d9d6cd; padding: 48px 0 120px; font-size: .95rem; }
.ft-grid { display: grid; gap: 28px; }
.ft img { width: 200px; height: auto; margin-bottom: 14px; }
.ft h2 { font: 600 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-hi); margin: 0 0 10px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft a { color: #f1eee6; }
.ft-small { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font: .78rem/1.6 var(--mono); display: flex; flex-wrap: wrap; gap: 6px 22px; color: #b9b6ad; }
.ft-small a { color: #b9b6ad; }
@media (min-width: 900px) { .ft { padding-bottom: 48px; } .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Phone bar: slims while reading down, comes back on the way up ---------- */
.cb { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; display: flex; gap: 8px; padding: 8px; background: var(--char-3); border-radius: 18px; box-shadow: 0 12px 34px rgba(0,0,0,.45); transition: padding .3s var(--ease), gap .3s var(--ease); }
.cb a, .cb button { flex: 1 1 50%; min-height: 50px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; overflow: hidden; transition: flex-basis .35s var(--ease), opacity .25s, padding .35s; }
.cb .cb-call { background: var(--teal); color: var(--ink); font-family: var(--mono); }
.cb .cb-quote { background: var(--paper); color: var(--ink); }
.cb svg { width: 18px; height: 18px; flex: none; }
.down .cb { padding: 5px; gap: 0; }
.down .cb .cb-quote { flex-basis: 0; flex-grow: 0; padding: 0; opacity: 0; }
.down .cb .cb-call { min-height: 46px; }
@media (min-width: 900px) { .cb { display: none; } }

/* ---------- Quote drawer: rises over the page ---------- */
.qd { margin: auto 0 0; width: 100%; max-width: none; max-height: 92svh; overflow: auto; border: 0; padding: 0; background: var(--paper); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.4); inset: auto 0 0 0; }
.qd::backdrop { background: rgba(20,20,20,.55); }
.qd-in { padding: 22px var(--gut) calc(26px + env(safe-area-inset-bottom)); }
.qd-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.qd h2 { font-size: 1.9rem; margin: 0 0 4px; }
.qd-close { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; font: 400 1.4rem var(--mono); line-height: 1; }
@media (min-width: 900px) { .qd { inset: auto 24px 24px auto; width: 440px; border-radius: 20px; max-height: calc(100svh - 48px); } }
@media (prefers-reduced-motion: no-preference) {
  .qd:popover-open { animation: rise .38s var(--ease); }
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Forms */
.form { display: grid; gap: 14px; margin-top: 14px; }
.field label { display: block; font: 600 .8rem var(--mono); letter-spacing: .04em; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1.5px solid #77756f; background: #fff; color: var(--ink); border-radius: 10px; padding: 12px 13px; font-size: 1rem; min-height: 50px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid var(--teal); outline-offset: 0; }
.form .two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form .btn { width: 100%; }
.form-small { font-size: .82rem; margin: 2px 0 0; }
.c .form .field input, .c .form .field textarea { border-color: #8d8b85; }
.c .form .field label { color: var(--paper); }
.carry { display: none; background: #fff; border: 1.5px dashed var(--teal-dk); border-radius: 12px; padding: 10px 12px; }
.carry.has { display: block; }
.carry p { margin: 0 0 6px; font: 600 .76rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dk); }
.carry ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.carry li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font: .88rem/1.35 var(--mono); color: var(--ink); }
.carry button { flex: none; border: 0; background: var(--paper-2); color: var(--ink); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.next { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #c9c6bd; list-style: none; display: grid; gap: 4px; font-size: .86rem; }
.next li::before { content: "→ "; font-family: var(--mono); color: var(--teal-dk); }
.alt-link { display: none !important; }
.no-popover .alt-link { display: inline-flex !important; }
.no-popover [popovertarget] { display: none !important; }

/* Scroll reveal (only with script, only with motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* A job's picture grows into the top of its own page. */
@view-transition { navigation: auto; }
.pc-decks { view-transition-name: pc-decks; }
.pc-pergolas { view-transition-name: pc-pergolas; }
.pc-renos { view-transition-name: pc-renos; }
.pc-commercial { view-transition-name: pc-commercial; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 404 */
.lost { min-height: 70svh; display: grid; align-content: center; padding: 60px 0; }
.lost .big { font: 700 clamp(7rem, 40vw, 16rem)/.8 var(--head); color: transparent; -webkit-text-stroke: 2px var(--teal-hi); margin: 0 0 20px; }
@media (min-width: 1100px) { ul.swipe { grid-auto-columns: calc((100% - 56px) / 5); overflow: visible; } }
/* Hollow lettering: fill with the ground colour and paint the stroke under it, so overlapping glyph contours don't show. */
.idx, .lost .big, .steps li::before { paint-order: stroke fill; -webkit-text-stroke-width: 3px; }
.c .idx, .lost .big, .c .steps li::before { color: var(--char); }
.t .idx, .t .steps li::before { color: var(--teal); }
.p .steps li::before { color: var(--paper); -webkit-text-stroke-color: var(--ink); }
