/* Tideline Real Estate (fictional): concept design by Gridloc Studio */

:root {
  --navy: #1d3b36;
  --sky: #a9d4c2;
  --sky-soft: #e6f2ec;
  --orange: #c9a227;

  --bg: #ffffff;
  --surface: #f1f6f3;
  --line: #d8e5de;
  --text: #1d3b36;
  --muted: #4f6660;
  --on-photo: #ffffff;
  --btn-bg: #1d3b36;
  --btn-bg-hover: #142b27;
  --btn-text: #ffffff;
  --band: #a9d4c2;
  --band-text: #13261f;
  --field: #ffffff;
  --logo-ink: #1d3b36;
  --focus: #2a7f6c;
  --shadow: 0 1px 2px rgba(23, 42, 56, 0.06), 0 8px 24px rgba(23, 42, 56, 0.08);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-control: 4px;
  --r-photo: 10px;
  --wrap: 1240px;
  --gutter: 16px;
  --header-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-display: "Gloock", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1c19;
    --surface: #162622;
    --line: #2a3e38;
    --text: #e9f0f4;
    --muted: #a2b8b0;
    --btn-bg: #a9d4c2;
    --btn-bg-hover: #c3e2d4;
    --btn-text: #11201c;
    --band: #1b332d;
    --band-text: #e9f0f4;
    --field: #0f1c19;
    --logo-ink: #f2f6f8;
    --focus: #a9d4c2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h3 { font-family: var(--font-body); font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: var(--s2) var(--s4); border-radius: var(--r-control); }
.skip:focus { top: var(--s2); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5);
  border: 1px solid transparent; border-radius: var(--r-control);
  background: var(--btn-bg); color: var(--btn-text);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #ffffff; color: #1d3b36; }
.btn-light:hover { background: #e6f2ec; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--logo-ink); margin-right: auto; }
.brand svg { width: 112px; height: auto; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; color: var(--logo-ink); padding-left: 2px; white-space: nowrap; }
@media (min-width: 768px) { .brand svg { width: 138px; } .brand-sub { font-size: 13px; } }
.logo-ink { fill: var(--logo-ink); }
.logo-disc { fill: #a9d4c2; }
.logo-dot { fill: #c9a227; }

.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; padding: var(--s2) 0; position: relative; }
.nav a:hover { color: var(--muted); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); }
.header-social { display: none; gap: var(--s1); }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control); color: var(--text); text-decoration: none; }
.icon-link:hover { background: var(--surface); }
.header-phone { display: none; }
.header-call { display: inline-grid; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-control); cursor: pointer; }
.menu-btn:hover { background: var(--surface); }
@media (min-width: 1024px) {
  .nav { display: flex; gap: var(--s5); }
  .header-social { display: flex; }
  .header-phone { display: inline-flex; min-height: 44px; padding: var(--s2) var(--s4); }
  .header-call, .menu-btn { display: none; }
}

.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; background: var(--bg); padding: var(--s5) var(--gutter) var(--s7); display: flex; flex-direction: column; gap: var(--s1); overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer a.drawer-link { font-family: var(--font-display); font-size: 32px; text-decoration: none; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: var(--s5); }
.drawer-social { display: flex; gap: var(--s2); margin-top: var(--s4); }
@media (prefers-reduced-motion: no-preference) {
  .drawer:not([hidden]) { animation: drawer-in 240ms var(--ease-out); }
}
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } }

/* Sample label */
.sample {
  display: inline-block; padding: 2px var(--s2);
  background: #ffffff; color: #1d3b36;
  border-radius: var(--r-control); font-size: 12px; font-weight: 600; line-height: 1.6;
}
.sample-quiet { background: var(--surface); color: var(--muted); }

/* Home hero */
.hero { position: relative; isolation: isolate; color: var(--on-photo); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 28, 40, 0.55); }
.hero-inner { min-height: min(84svh, 780px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: var(--s9); padding-bottom: var(--s8); }
.hero h1 { font-size: clamp(40px, 9vw, 80px); max-width: 13ch; }
.hero-lead { margin-top: var(--s4); font-size: 18px; line-height: 1.55; max-width: 46ch; }
@media (min-width: 768px) { .hero-lead { font-size: 20px; } }

.search {
  margin-top: var(--s6);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  background: var(--bg); color: var(--text);
  padding: var(--s4); border-radius: 8px; box-shadow: var(--shadow);
  max-width: 920px;
}
.search .field-suburb { grid-column: 1 / -1; }
.search .btn { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .search { grid-template-columns: 1.6fr 1fr 1fr auto; align-items: end; padding: var(--s4); }
  .search .field-suburb, .search .btn { grid-column: auto; }
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: var(--s3); border: 1px solid #8fa3b2; border-radius: var(--r-control);
  background: var(--field); color: var(--text); font-size: 16px;
}
.select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355687a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: 14px; color: #b3261e; }
@media (prefers-color-scheme: dark) {
  .input, .select, .textarea { border-color: #5d7384; }
  .input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #ff8a80; }
  .field-error { color: #ff9e96; }
}

/* Hero load motion: one settle, once */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 1600ms var(--ease-out) both; }
  .hero-rise { animation: hero-rise 700ms var(--ease-out) both; }
  .hero-rise:nth-child(2) { animation-delay: 90ms; }
  .hero-rise:nth-child(3) { animation-delay: 180ms; }
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: var(--s8) 0; }
@media (min-width: 768px) { .section { padding: var(--s9) 0; } }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); }
.section-head h2, .h2 { font-size: clamp(32px, 5vw, 48px); }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: var(--s3); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Carousel (recently sold) */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
  gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: var(--s1);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .carousel-track { grid-auto-columns: calc((100% - var(--s5)) / 2); gap: var(--s5); } }
@media (min-width: 1100px) { .carousel-track { grid-auto-columns: calc((100% - var(--s5) * 2) / 3); } }
.carousel-controls { display: flex; align-items: center; gap: var(--s3); }
.counter { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; min-width: 56px; text-align: center; }
.square-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: var(--r-control); background: var(--bg); color: var(--text); cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.square-btn:hover { background: var(--surface); }
.square-btn:active { transform: scale(0.95); }
.square-btn[disabled] { opacity: 0.4; cursor: default; transform: none; }

/* Listing card */
.card { position: relative; display: flex; flex-direction: column; gap: var(--s3); text-decoration: none; color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-photo); overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .sample { position: absolute; left: var(--s3); top: var(--s3); }
.card-status { position: absolute; right: var(--s3); top: var(--s3); background: #1d3b36; color: #ffffff; border-radius: var(--r-control); font-size: 12px; font-weight: 600; padding: 2px var(--s2); line-height: 1.6; }
.card-body { display: flex; flex-direction: column; gap: var(--s1); }
.card-price { font-weight: 600; font-size: 18px; }
.card-street { font-size: 17px; font-weight: 500; }
.card-suburb { color: var(--muted); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s2); color: var(--text); font-size: 15px; }
.facts li { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.facts .icon { width: 20px; height: 20px; color: var(--muted); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-photo); }
.card-link { text-decoration: none; }
.card-link:focus-visible { outline: none; }
.card:focus-within .card-media { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform 260ms var(--ease-out); }
  .card:hover { transform: translateY(-4px); }
  .card:hover .card-street { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
}

.grid { display: grid; gap: var(--s7) var(--s5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Chips / filters */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.chip {
  min-height: 44px; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--bg); cursor: pointer; font-weight: 500; transition: transform 160ms var(--ease-out);
}
.chip:hover { border-color: var(--text); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

.filters {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  padding: var(--s4); background: var(--surface); border-radius: 8px; margin-bottom: var(--s5);
}
.filters .field-suburb { grid-column: 1 / -1; }
@media (min-width: 768px) { .filters { grid-template-columns: repeat(3, 1fr); padding: var(--s5); } .filters .field-suburb { grid-column: auto; } }
@media (min-width: 1100px) { .filters { grid-template-columns: 1.4fr repeat(5, 1fr); } }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s6); }
.results-count { color: var(--muted); }
.results-bar .field { flex-direction: row; align-items: center; gap: var(--s3); }
.results-bar .select { width: auto; min-width: 200px; }
.empty { padding: var(--s8) var(--s5); text-align: center; background: var(--surface); border-radius: var(--r-photo); }
.empty p { color: var(--muted); margin: var(--s2) auto var(--s5); max-width: 40ch; }

/* Appraisal band */
.band { background: var(--band); color: var(--band-text); }
.band-grid { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .band-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; } }
.band h2 { font-size: clamp(36px, 6vw, 56px); max-width: 12ch; }
.band-lead { font-size: 18px; margin-top: var(--s4); max-width: 44ch; }
.steps { margin-top: var(--s6); display: grid; gap: var(--s4); counter-reset: step; }
.steps li { list-style: none; display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); align-items: baseline; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 22px; }
.form-card { background: var(--bg); color: var(--text); border-radius: 8px; padding: var(--s5); box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: var(--s6); } }
.form-grid { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .span { grid-column: 1 / -1; } }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: var(--text); }
.form-done { text-align: left; }
.form-done h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin-bottom: var(--s3); }
.form-done p { color: var(--muted); }
.form-alert { padding: var(--s3) var(--s4); border-radius: var(--r-control); background: #fdecea; color: #7a1c15; font-size: 15px; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }

/* Why Tideline */
.why-grid { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .why-grid { grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: center; } }
.why-photo { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 5; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-list { display: grid; gap: var(--s5); margin-top: var(--s6); }
.why-list li { list-style: none; padding-top: var(--s5); border-top: 1px solid var(--line); }
.why-list h3 { font-size: 20px; margin-bottom: var(--s1); }
.why-list p { color: var(--muted); max-width: 52ch; }

/* Suburbs */
.suburbs { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .suburbs { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.suburb { display: flex; flex-direction: column; gap: var(--s3); color: inherit; text-decoration: none; }
.suburb-media { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg); }
@media (min-width: 768px) { .suburb-media { aspect-ratio: 4 / 5; } }
.suburb img { width: 100%; height: 100%; object-fit: cover; }
.suburb h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.suburb p { color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.suburb:focus-visible { outline: none; }
.suburb:focus-visible .suburb-media { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .suburb img { transition: transform 600ms var(--ease-out); }
  .suburb:hover img { transform: scale(1.03); }
  .suburb:hover p { color: var(--text); }
}
.suburbs-more { margin-top: var(--s5); color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: var(--s7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--s8); } }
.contact-list { display: grid; gap: var(--s5); margin-top: var(--s6); }
.contact-list li { list-style: none; display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); }
.contact-list .icon { margin-top: 3px; color: var(--muted); }
.contact-list strong { display: block; font-weight: 600; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.map { border-radius: var(--r-photo); overflow: hidden; background: var(--surface); min-height: 360px; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Footer */
.site-footer { background: #1d3b36; color: #e9f0f4; padding: var(--s8) 0 var(--s6); }
.site-footer a { color: #ffffff; }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #f2f6f8; --logo-ink: #f2f6f8; margin-right: 0; }
.footer-about { margin-top: var(--s4); max-width: 36ch; color: #c5d3dc; }
.contact-lead { margin-top: var(--s3); color: var(--muted); max-width: 44ch; }
.prop-crumbs { margin-bottom: var(--s4); }
.enquire-card { box-shadow: none; border: 1px solid var(--line); }
.enquire-card h2 { font-size: 28px; margin-bottom: var(--s4); }
.map-note { margin-top: var(--s2); }
.thumbs::-webkit-scrollbar { display: none; }
.site-footer h3 { font-size: 16px; margin-bottom: var(--s3); }
.footer-links { display: grid; gap: var(--s2); }
.footer-links li { list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid #3a5163; display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; font-size: 14px; color: #c5d3dc; }

/* Property page */
.gallery { position: relative; background: #0d1820; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; height: min(64svh, 78vw); outline: none;
}
@media (min-width: 768px) { .gallery-track { height: min(74vh, 760px); } }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; margin: 0; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gallery-ui { position: absolute; inset: auto 0 0 0; pointer-events: none; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--gutter); }
.gallery-bar > * { pointer-events: auto; }
.g-chip {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: var(--s2) var(--s3);
  background: #ffffff; color: #1d3b36; border: 0; border-radius: var(--r-control); font-size: 15px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
button.g-chip { cursor: pointer; transition: transform 160ms var(--ease-out); }
button.g-chip:hover { background: #e6f2ec; }
button.g-chip:active { transform: scale(0.97); }
.g-chip .icon { width: 18px; height: 18px; }
.g-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  display: none; place-items: center; width: 52px; height: 52px; border: 0; border-radius: var(--r-control);
  background: #ffffff; color: #1d3b36; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.g-arrow:hover { background: #e6f2ec; }
.g-arrow:active { transform: scale(0.95); }
.g-arrow[disabled] { opacity: 0; pointer-events: none; }
.g-prev { left: var(--gutter); }
.g-next { right: var(--gutter); }
@media (min-width: 768px) { .g-arrow { display: grid; } }
.g-sample { position: absolute; top: var(--s4); left: var(--gutter); z-index: 2; }

.thumbs { display: none; }
@media (min-width: 768px) {
  .thumbs { display: flex; gap: var(--s2); padding: var(--s3) var(--gutter); overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
  .thumb { flex: 0 0 96px; height: 64px; padding: 0; border: 0; border-radius: var(--r-control); overflow: hidden; cursor: pointer; opacity: 0.62; background: var(--surface); outline-offset: 2px; }
  .thumb:hover { opacity: 1; }
  .thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--text); }
  .thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: #081016; color: #ffffff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) { animation: lb-in 220ms var(--ease-out); }
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--gutter); min-height: 64px; }
.lb-count { font-variant-numeric: tabular-nums; font-size: 15px; }
.lb-close { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--r-control); background: rgba(255, 255, 255, 0.12); color: #ffffff; cursor: pointer; transition: transform 160ms var(--ease-out); }
.lb-close:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close:active { transform: scale(0.95); }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0 0 var(--s4); margin: 0; }
@media (min-width: 768px) { .lb-slide { padding: 0 88px var(--s5); } }
.lb-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { padding: 0 var(--gutter) var(--s4); color: #c5d3dc; font-size: 14px; text-align: center; min-height: 40px; }
.lightbox .g-arrow { background: rgba(255, 255, 255, 0.12); color: #ffffff; box-shadow: none; }
.lightbox .g-arrow:hover { background: rgba(255, 255, 255, 0.24); }
body.is-locked { overflow: hidden; }

.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-top: var(--s6); padding-bottom: var(--s8); }
@media (min-width: 1024px) { .prop-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s8); padding-top: var(--s7); } }
.prop-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.prop-price { font-size: 22px; font-weight: 600; }
.prop-title { font-size: clamp(34px, 5vw, 52px); }
.prop-suburb { margin-top: var(--s2); font-size: 18px; color: var(--muted); }
.prop-facts { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-facts li { list-style: none; display: flex; align-items: center; gap: var(--s2); }
.prop-facts .icon { width: 24px; height: 24px; color: var(--muted); }
.prop-facts strong { font-size: 18px; font-weight: 600; }
.prop-facts span { color: var(--muted); }
.prop-section { margin-top: var(--s7); }
.prop-section h2 { font-size: 30px; margin-bottom: var(--s4); }
.prose p + p { margin-top: var(--s4); }
.prose { max-width: 68ch; font-size: 17px; }
.inspections { display: grid; gap: var(--s3); }
.inspections li { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: 8px; }
.inspections strong { display: block; font-weight: 600; }
.inspections span { color: var(--muted); font-size: 15px; }
.features { columns: 1; column-gap: var(--s6); }
@media (min-width: 640px) { .features { columns: 2; } }
.features li { list-style: none; break-inside: avoid; display: flex; gap: var(--s3); padding: var(--s2) 0; }
.features .icon { color: var(--muted); margin-top: 3px; }
.floorplan { display: grid; place-items: center; text-align: center; gap: var(--s2); min-height: 240px; border-radius: var(--r-photo); background: var(--surface); color: var(--muted); padding: var(--s5); }
.floorplan svg { width: 48px; height: 48px; }
.floorplan strong { color: var(--text); font-weight: 600; }
.prop-map { height: 320px; min-height: 0; }
.prop-map iframe { min-height: 0; height: 100%; }
@media (min-width: 768px) { .prop-map { height: 420px; } }

.aside { display: grid; gap: var(--s5); align-content: start; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--header-h) + var(--s5)); } }
.agent { display: grid; gap: var(--s4); padding: var(--s5); border: 1px solid var(--line); border-radius: 8px; }
.agent-row { display: flex; align-items: center; gap: var(--s4); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--muted); flex: none; }
.avatar svg { width: 32px; height: 32px; }
.agent-name { font-weight: 600; font-size: 18px; }
.agent-role { color: var(--muted); font-size: 15px; }
.agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.agent-actions .btn { padding-left: var(--s3); padding-right: var(--s3); }
.placeholder-note { font-size: 13px; color: var(--muted); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.mobile-bar .btn { width: 100%; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.has-mobile-bar { padding-bottom: 76px; }
@media (min-width: 1024px) { .has-mobile-bar { padding-bottom: 0; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* For sale page */
.page-head { padding: var(--s7) 0 var(--s5); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-head p { margin-top: var(--s3); color: var(--muted); max-width: 56ch; font-size: 18px; }

/* Legal page */
.legal { max-width: 68ch; padding: var(--s7) 0 var(--s9); }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: var(--s5); }
.legal h2 { font-size: 26px; margin: var(--s6) 0 var(--s3); }
.legal p + p { margin-top: var(--s3); }
.notice { padding: var(--s4); background: var(--surface); border-radius: 8px; margin-bottom: var(--s5); }

/* ==========================================================================
   Design pass 2: editorial scale, clear header, scroll-led motion
   ========================================================================== */
:root { --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1); --sw-off: #7d8d9a; }
@media (prefers-color-scheme: dark) { :root { --sw-off: #5f7486; } }
h1, h2 { letter-spacing: -0.02em; }
body { font-size: 17px; }

/* Section heads: big heading left, supporting copy right */
.section-head { display: grid; gap: var(--s5); align-items: end; margin-bottom: var(--s7); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.35fr 1fr; gap: var(--s8); } }
.section-head h2 { font-size: clamp(44px, 7vw, 104px); line-height: 0.98; }
.section-aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding-bottom: var(--s2); }
.section-aside p { margin: 0; color: var(--muted); font-size: 18px; max-width: 44ch; }

/* Header: clear over the home hero, solid once scrolled */
.home .site-header { position: fixed; top: 0; left: 0; right: 0; }
.site-header { transition: background-color 300ms ease, border-color 300ms ease; }
.site-header.is-clear:not(.is-solid) { background: transparent; border-bottom-color: transparent; --logo-ink: #f2f6f8; color: #ffffff; }
.site-header.is-clear:not(.is-solid) .nav a,
.site-header.is-clear:not(.is-solid) .icon-link,
.site-header.is-clear:not(.is-solid) .menu-btn { color: #ffffff; }
.site-header.is-clear:not(.is-solid) .nav a:hover { color: #e6f2ec; }
.site-header.is-clear:not(.is-solid) .header-phone { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }
.site-header.is-clear:not(.is-solid) .header-phone:hover,
.site-header.is-clear:not(.is-solid) .icon-link:hover,
.site-header.is-clear:not(.is-solid) .menu-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* Hero: full height, shrinks into a rounded frame as you scroll */
.hero { min-height: 100svh; display: flex; background: var(--bg); }
.hero::after { content: none; }
.hero-media { transform-origin: 50% 0; will-change: transform, clip-path; overflow: hidden; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(14, 28, 40, 0.55); }
.hero-inner { width: 100%; min-height: 100svh; padding-top: calc(var(--header-h) + var(--s8)); padding-bottom: calc(var(--s8) + var(--s7)); }
.hero h1 { font-size: clamp(52px, 9.4vw, 152px); line-height: 1; letter-spacing: -0.03em; max-width: 11ch; }
.hero-foot { display: grid; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto; align-items: end; gap: var(--s7); } }
.hero-lead { margin: 0; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn-outline-light { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); }
@media (prefers-reduced-motion: no-preference) { .hero-foot.hero-rise { animation-delay: 650ms; } }

.search-dock { position: relative; z-index: 3; margin-top: calc(var(--s7) * -1); }
.search-dock .search { margin-top: 0; max-width: none; padding: var(--s5); box-shadow: 0 2px 4px rgba(23, 42, 56, 0.06), 0 24px 48px -12px rgba(23, 42, 56, 0.22); }

/* Statement: words light up with scroll */
.statement { padding: var(--s9) 0; }
@media (min-width: 900px) { .statement { padding: calc(var(--s9) + var(--s7)) 0; } }
.statement-text { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 68px); line-height: 1.1; letter-spacing: -0.015em; max-width: 1120px; }
.motion .sw { color: var(--sw-off); transition: color 450ms ease; }
.motion .sw.on { color: var(--text); }

/* Listings: one lead home, the rest around it */
.grid { gap: var(--s7) var(--s5); }
@media (min-width: 1100px) {
  .grid-feature { grid-template-columns: repeat(3, 1fr); }
  .grid-feature > .card:first-child { grid-column: span 2; grid-row: span 2; }
  .grid-feature > .card:first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 520px; }
  .grid-feature > .card:first-child .card-price { font-size: 24px; }
  .grid-feature > .card:first-child .card-street { font-size: 22px; }
}
.card-price { font-size: 19px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: none; }
  .card-media img { transition: transform 900ms var(--ease-reveal); }
  .card:hover .card-media img,
  .motion .card.in:hover .card-media img { transform: scale(1.045); }
}

/* Sold track progress */
.track-progress { position: relative; height: 2px; margin-top: var(--s6); background: var(--line); overflow: hidden; }
.track-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 33%; background: var(--text); transition: transform 160ms linear; }

/* Appraisal */
.band h2 { font-size: clamp(44px, 7vw, 104px); line-height: 0.98; }
.band-grid { align-items: end; }

/* Sticky story */
.story-grid { display: grid; gap: var(--s7); }
.story-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-photo); overflow: hidden; background: var(--surface); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 800ms ease, transform 1400ms var(--ease-reveal); }
.story-media img.is-active { opacity: 1; transform: none; }
.story-copy h2 { font-size: clamp(44px, 6vw, 88px); line-height: 0.98; margin-bottom: var(--s7); }
.story-item { padding: var(--s6) 0; border-top: 1px solid var(--line); }
.story-item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin-bottom: var(--s3); }
.story-item p { color: var(--muted); font-size: 18px; max-width: 46ch; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: var(--s9); align-items: start; }
  .story-media { position: sticky; top: calc(var(--header-h) + var(--s6)); height: calc(100vh - var(--header-h) - var(--s8)); aspect-ratio: auto; }
  .story-item { min-height: 48vh; display: flex; flex-direction: column; justify-content: center; }
}

/* Suburbs */
.suburb-media { position: relative; }
.suburb h3 { font-size: clamp(28px, 2.6vw, 36px); }

/* Contact: the number is the headline */
.contact-title { font-family: var(--font-body); font-weight: 500; font-size: clamp(20px, 2vw, 26px); color: var(--muted); letter-spacing: 0; }
.contact-phone { display: inline-block; margin: var(--s3) 0 var(--s8); font-family: var(--font-display); font-size: clamp(56px, 11.5vw, 184px); line-height: 1; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.contact-phone:hover { color: var(--muted); }
.contact .contact-list { margin-top: 0; }

/* Property and listings pages at the same scale */
.prop-title { font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.prop-section h2 { font-size: clamp(32px, 3.4vw, 44px); }
.page-head { padding: var(--s8) 0 var(--s6); }
.page-head h1 { font-size: clamp(52px, 9vw, 136px); line-height: 0.98; letter-spacing: -0.03em; }
.gallery .slide:first-child img { animation: hero-settle 1600ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .gallery .slide:first-child img { animation: none; } }

/* Footer wordmark */
.footer-mark { display: block; margin-top: var(--s8); color: #f2f6f8; }
.footer-mark svg { display: block; width: 100%; height: auto; }

/* ---------- Motion states (only when motion.js turns them on) ---------- */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 900ms var(--ease-reveal) var(--d, 0ms), transform 1200ms var(--ease-reveal) var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion .card[data-reveal] .card-media { clip-path: inset(7% 7% 7% 7% round var(--r-photo)); transition: clip-path 1300ms var(--ease-reveal) var(--d, 0ms); }
.motion .card[data-reveal] .card-media img { transform: scale(1.16); transition: transform 1500ms var(--ease-reveal); }
.motion .card.in .card-media { clip-path: inset(0 round var(--r-photo)); }
.motion .card.in .card-media img { transform: none; }
.motion [data-reveal="image"] { opacity: 1; transform: none; clip-path: inset(8% 8% 8% 8% round var(--r-photo)); transition: clip-path 1300ms var(--ease-reveal); }
.motion [data-reveal="image"].in { clip-path: inset(0 round var(--r-photo)); }
.motion .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.motion .hero h1 .w > span { display: inline-block; transform: translate3d(0, 115%, 0); animation: word-up 1200ms var(--ease-reveal) forwards; animation-delay: calc(var(--i) * 60ms + 200ms); }
@keyframes word-up { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---- Concept notice (Gridloc Studio) ---- */
:root { --banner-h: 44px; }
@media (min-width: 640px) { :root { --banner-h: 32px; } }
html { scroll-padding-top: calc(var(--header-h) + var(--banner-h) + var(--s4)); }
body { padding-top: var(--banner-h); }
.preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 41;
  min-height: var(--banner-h); display: flex; align-items: center; justify-content: center;
  padding: 4px 16px; background: #0b1620; color: #f2f6f8;
  font-size: 12px; font-weight: 500; line-height: 1.35; text-align: center;
}
@media (min-width: 640px) { .preview-banner { font-size: 13px; } }
.site-header, .home .site-header { top: var(--banner-h); }
.drawer { inset: calc(var(--header-h) + var(--banner-h)) 0 0 0; }
@media (min-width: 1024px) { .aside { top: calc(var(--header-h) + var(--banner-h) + var(--s5)); } }
@media (min-width: 960px) { .story-media { top: calc(var(--header-h) + var(--banner-h) + var(--s6)); height: calc(100vh - var(--header-h) - var(--banner-h) - var(--s8)); } }
/* Wordmark (typeset, replaces the traced logo) */
.wordmark { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -0.01em; color: var(--logo-ink); }
@media (min-width: 768px) { .wordmark { font-size: 36px; } }
.footer-mark .wordmark { display: block; font-size: clamp(64px, 17vw, 220px); color: #f2f6f8; line-height: .9; }
.preview-banner a { color: inherit; margin-left: 8px; }