/* Calcara — design tokens */
:root {
  --ink: #17231D;        /* eucalypt */
  --ink-2: #2B3A32;
  --sage: #5E7262;
  --sand: #C4A877;       /* Sydney sandstone */
  --sand-deep: #8A6F3E;
  --mist: #EEF1EC;
  --line: #CBD3CA;
  --white: #FFFFFF;
  --text: #1F2B25;
  --muted: #56645B;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --band: clamp(72px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sand-deep); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Type ---------- */
.h-hero, .h-display, .h-section, .h-sub, .statement, .lead, .hero-h, .project-name, .footer-brand, .brand {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.h-hero { font-size: var(--step-4); line-height: 1.05; margin: 0 0 0.4em; }
.h-display { font-size: var(--step-3); line-height: 1.1; margin: 0 0 0.5em; }
.h-section { font-size: var(--step-3); line-height: 1.1; margin: 0; }
.h-sub { font-size: var(--step-2); line-height: 1.2; margin: 0 0 0.4em; font-weight: 400; }
.h-small { font: 600 var(--step-0)/1.4 var(--sans); margin: 1.8em 0 0.5em; }
.lead { font-size: var(--step-2); line-height: 1.35; color: var(--ink-2); max-width: 34ch; margin: 0 0 1em; }
.statement { font-size: var(--step-3); line-height: 1.25; margin: 0 0 1.2em; max-width: 30ch; color: var(--ink); }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.1em; }
.prose-legal { padding-bottom: var(--band); }
.muted { color: var(--muted); font-size: var(--step--1); }
.h-sub a { text-decoration: none; }
.h-sub a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.text-link {
  display: inline-block;
  font: 500 var(--step--1)/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}
.text-link:hover { color: var(--sand-deep); }
.link-row { display: flex; gap: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink); border-radius: 0;
  font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink-2); }
.btn-light { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn-light:hover { background: #d3bb8f; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  color: var(--ink);
}
body:not(.on-dark) .site-header { position: relative; border-bottom: 1px solid var(--line); }
.site-header.is-dark { color: var(--white); }
.brand { font-size: 1.6rem; font-weight: 400; text-decoration: none; letter-spacing: 0.02em; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 44px); }
#site-nav a {
  font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.08em;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent;
}
#site-nav a:hover, #site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-btn {
  display: none; background: none; border: 1px solid currentColor; color: inherit;
  font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.06em; padding: 10px 16px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 920px);
  background: var(--ink); color: var(--white);
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(64px, 9vw, 112px);
}
.contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours .c { fill: none; stroke: var(--sage); stroke-width: 1; opacity: 0.55; vector-effect: non-scaling-stroke; }
.contours .c.major { stroke: var(--sand); opacity: 0.6; stroke-width: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .contours .c { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: draw 2.6s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(var(--i) * 70ms); }
  .wordmark span { opacity: 0; animation: rise 1s ease forwards; }
  .wordmark span:nth-child(2) { animation-delay: .08s } .wordmark span:nth-child(3) { animation-delay: .16s }
  .wordmark span:nth-child(4) { animation-delay: .24s } .wordmark span:nth-child(5) { animation-delay: .32s }
  .wordmark span:nth-child(6) { animation-delay: .40s } .wordmark span:nth-child(7) { animation-delay: .48s }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-inner { position: relative; }
.wordmark {
  display: flex; justify-content: space-between;
  margin: 0 0 clamp(28px, 4vw, 48px);
  font: 300 clamp(3.2rem, 13vw, 11rem)/0.9 var(--serif);
  font-optical-sizing: auto;
  color: var(--white);
}
.hero-h { font-size: var(--step-2); line-height: 1.3; margin: 0 0 0.3em; max-width: 26ch; }
.hero-tag { margin: 0; font: italic 300 var(--step-1)/1.4 var(--serif); color: var(--sand); }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 32px;
  font: 500 var(--step--1)/1 var(--sans); letter-spacing: .06em; color: var(--white);
  text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 6px;
}

/* ---------- Bands ---------- */
.band { padding-block: var(--band); }
.band-mist { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { max-width: 44ch; margin: 0; color: var(--muted); }
.statement-grid { display: grid; gap: 8px; justify-items: start; }

.phases { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.phase { padding: 28px 32px 8px 0; }
.phase + .phase { padding-left: 32px; border-left: 1px solid var(--line); }
.phase-step { display: block; font: 500 var(--step--1)/1 var(--sans); color: var(--sand-deep); margin-bottom: 18px; }
.phase p { color: var(--muted); margin: 0; }

/* ---------- Projects ---------- */
.project-grid { display: grid; gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.project-grid-3 { grid-template-columns: repeat(3, 1fr); }
.project-grid-2 { grid-template-columns: repeat(2, 1fr); }
.region { padding-bottom: var(--band); }
.region .h-section { margin-bottom: 40px; padding-top: 28px; border-top: 1px solid var(--ink); }
.project-link { display: block; text-decoration: none; color: inherit; }
.project-art { background: var(--mist); aspect-ratio: 10 / 7; overflow: hidden; margin-bottom: 20px; }
.band-mist .project-art { background: var(--white); }
.project-art svg { width: 100%; height: 100%; }
.project-meta { font: 500 var(--step--1)/1.3 var(--sans); color: var(--sand-deep); margin: 0 0 10px; }
.project-name { font-size: var(--step-2); line-height: 1.2; margin: 0 0 8px; font-weight: 400; }
.project-lede { color: var(--muted); margin: 0 0 18px; max-width: 40ch; }
.project-link:hover .project-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.project-link:hover .p-lot-key { fill: var(--sand); }

.plan .p-contour { fill: none; stroke: var(--line); stroke-width: 1; }
.plan .p-lot { fill: transparent; stroke: var(--ink); stroke-width: 1.1; }
.plan .p-lot-key { fill: rgba(196, 168, 119, 0.45); transition: fill .25s; }
.plan .p-road { fill: none; stroke: var(--sand-deep); stroke-width: 3; stroke-linecap: round; }
.plan .p-open { fill: rgba(94, 114, 98, 0.18); stroke: var(--sage); stroke-width: 1; }
.plan .p-north path { fill: var(--ink); }
.plan .p-north text { font: 600 14px var(--sans); fill: var(--ink); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 0; margin: 0; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-head { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 6vw, 80px); }
.project-hero-art { margin: 0 auto; }
.project-hero-art svg { background: var(--mist); aspect-ratio: 10 / 7; width: 100%; height: auto; }
.project-hero-art figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 12px; }
.project-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px); }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Services ---------- */
.svc-list { padding-bottom: var(--band); }
.svc { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); scroll-margin-top: 24px; }
.svc-body > p:first-child { margin-top: 0; max-width: 58ch; }
.ticks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.ticks li { break-inside: avoid; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--sand-deep); }

/* ---------- About / where ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); }
.values { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values li { border-top: 1px solid var(--ink); padding-top: 24px; }
.values p, .where-grid p { color: var(--muted); margin: 0; }
.where-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }

/* ---------- Forms ---------- */
.band-updates { background: var(--mist); }
.updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; }
.updates-grid p { color: var(--muted); max-width: 44ch; }
label { font-size: var(--step--1); font-weight: 500; display: block; margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sand-deep); outline-offset: 0; border-color: var(--ink); }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); margin-top: 14px; }
.check input { width: 18px; min-height: 18px; height: 18px; margin-top: 3px; flex: none; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); }
.field { margin-bottom: 22px; }
.contact-aside { border-top: 1px solid var(--ink); }
.contact-aside .h-small:first-child { margin-top: 24px; }
.contact-aside p { color: var(--muted); }

.band-enquire { background: var(--ink); color: var(--white); }
.band-enquire .lead { color: #D8DED9; max-width: 44ch; font-size: var(--step-1); }
.enquire-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; }
.enquire-actions { justify-self: end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8DED9; border-top: 1px solid var(--ink-2); padding-top: 72px; font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { font-size: 2rem; color: var(--white); margin: 0 0 12px; font-weight: 400; }
.footer-tag { max-width: 30ch; margin: 0; }
.footer-h { font: 600 var(--step--1)/1 var(--sans); color: var(--sand); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink-2); padding-block: 24px; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .project-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .where-grid { grid-template-columns: 1fr 1fr; }
  .where-grid .h-section { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 8px var(--gutter) 24px; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav a { display: block; padding: 14px 0; color: var(--white); border-bottom: 1px solid var(--ink-2); }

  .phases, .values, .where-grid, .project-grid-2, .project-grid-3,
  .project-cols, .svc, .about-grid, .updates-grid, .contact-grid, .enquire-grid { grid-template-columns: 1fr; }
  .phase, .phase + .phase { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ticks { columns: 1; }
  .enquire-actions { justify-self: start; }
  .inline-field { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
}

/* ---------- Photography ---------- */
.project-art picture, .project-art img { width: 100%; height: 100%; }
.project-art img { object-fit: cover; object-position: center 60%; transition: transform .6s ease; }
@media (prefers-reduced-motion: no-preference) { .project-link:hover .project-art img { transform: scale(1.03); } }
.project-hero-img { margin: 0 auto; }
.project-hero-img img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; background: var(--mist); }
.project-hero-img figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 12px; max-width: 70ch; }
.project-extra { padding-bottom: clamp(48px, 7vw, 96px); }
