/* Ty Demirezen — Eastern Suburbs
   Campaign-sheet modern: one family (Archivo, width axis worked hard),
   cool white ground, ink, one committed ultramarine. Sharp corners, tight grid. */

:root {
  color-scheme: light;
  --ground: oklch(0.985 0.002 250);
  --surface: #ffffff;
  --ink: oklch(0.21 0.02 262);
  --ink-soft: oklch(0.45 0.02 262);
  --blue: oklch(0.47 0.19 264);
  --blue-deep: oklch(0.4 0.17 264);
  --blue-tint: oklch(0.95 0.025 264);
  --line: oklch(0.9 0.008 260);
  --line-ink: oklch(0.32 0.03 264);
  --radius: 2px;
  --font: "Archivo", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 420;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  font-size: 16.5px;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 26px; }

h1, h2, h3 {
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.1rem; font-stretch: 112%; }

.standfirst { color: var(--ink-soft); max-width: 58ch; margin-bottom: 2.4em; font-size: 1.04rem; }
.muted { color: var(--ink-soft); }
.section { padding: 92px 0; }
.section-tint { background: var(--blue-tint); }
.section-ink { background: var(--ink); color: var(--ground); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.section-ink a:focus-visible { outline-color: var(--ground); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--ground) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.wordmark {
  font-stretch: 122%; font-weight: 850;
  font-size: 1.16rem; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  margin-right: auto; white-space: nowrap;
}
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.93rem; font-weight: 500;
}
.site-nav a:hover { color: var(--blue-deep); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px;
  border-radius: var(--radius); text-decoration: none;
  font-weight: 640; font-size: 0.95rem; font-stretch: 106%;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-deep); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.header-cta { padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: 56px; align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.hero-id { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1.3em; }
.hero-sub { margin-top: 1.2em; font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 2.2em; flex-wrap: wrap; }

.hero-portrait { display: flex; justify-content: flex-end; }
.portrait-panel {
  position: relative;
  background: var(--blue);
  padding: 22px 22px 0 0;
  max-width: 400px;
}
.portrait-panel img {
  display: block; width: 100%;
  transform: translate(-22px, 22px);
}
.portrait-panel::after {
  content: ""; position: absolute; inset: 0;
  outline: 1.5px solid var(--ink);
  outline-offset: -1.5px;
  pointer-events: none;
}

/* Fact line */
.factline { background: var(--blue); color: #fff; }
.factline-inner {
  display: flex; flex-wrap: wrap; gap: 8px 0;
  padding-top: 15px; padding-bottom: 15px;
}
.factline span {
  font-size: 0.92rem; font-weight: 600; font-stretch: 108%;
  white-space: nowrap;
}
.factline span + span::before {
  content: "/"; margin: 0 18px;
  font-weight: 400; opacity: 0.55;
}

/* Method steps — a real sequence; the numbers carry order */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; counter-reset: step;
  border: 1.5px solid var(--ink);
  background: var(--surface);
}
.steps li {
  counter-increment: step;
  padding: 26px 24px 30px;
  border-left: 1.5px solid var(--ink);
  display: flex; flex-direction: column; gap: 10px;
}
.steps li:first-child { border-left: 0; }
.steps li::before {
  content: counter(step);
  font-stretch: 122%; font-weight: 850; font-size: 2.1rem;
  line-height: 1; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.steps p { font-size: 0.94rem; color: var(--ink-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.about-text p { max-width: 62ch; text-wrap: pretty; }
.about-text p + p { margin-top: 1em; }
.about-facts {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  padding: 26px 28px;
}
.about-facts h3 { margin-bottom: 14px; }
.about-facts ul { list-style: none; }
.about-facts li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.about-facts li:first-child { border-top: 0; }

/* Listing cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); overflow: hidden;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: border-color 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-img { aspect-ratio: 4 / 2.8; width: 100%; object-fit: cover; display: block; background: var(--blue-tint); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-price { font-weight: 640; font-size: 0.92rem; color: var(--blue-deep); font-stretch: 106%; }
.card-address { font-stretch: 112%; font-weight: 700; font-size: 1.12rem; line-height: 1.22; }
.card-suburb { color: var(--ink-soft); font-size: 0.9rem; }
.card-features { display: flex; gap: 14px; justify-content: space-between; color: var(--ink-soft); font-size: 0.88rem; margin-top: auto; padding-top: 10px; }
.card-note { font-weight: 600; color: var(--ink); }
.listings-note { margin-top: 2em; font-size: 0.92rem; }
.section-ink .listings-note { color: oklch(0.75 0.01 260); }

/* Results table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-ink); }
.results-table { width: 100%; border-collapse: collapse; background: transparent; min-width: 640px; }
.results-table th {
  text-align: left; font-size: 0.8rem; font-weight: 650; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 14px 18px; border-bottom: 1.5px solid var(--line-ink);
  color: oklch(0.78 0.02 264);
}
.results-table td {
  padding: 13px 18px; border-bottom: 1px solid var(--line-ink);
  font-size: 0.96rem; font-variant-numeric: tabular-nums;
  color: var(--ground); /* explicit: host resets can sever inheritance on table cells */
}
.results-table tr:last-child td { border-bottom: 0; }
.results-table td:first-child { font-weight: 600; }
.results-table a { color: inherit; text-decoration: none; }
.results-table tbody tr { transition: background 0.15s ease; }
.results-table tbody tr:hover { background: oklch(0.27 0.03 264); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px;
}
.quote blockquote { font-size: 1.06rem; line-height: 1.55; text-wrap: pretty; }
.quote cite { display: block; margin-top: 1.2em; font-style: normal; font-weight: 640; font-size: 0.9rem; color: var(--blue-deep); font-stretch: 108%; }
.quote:first-child { grid-column: 1 / -1; border: 1.5px solid var(--ink); }
.quote:first-child blockquote { font-size: 1.3rem; font-stretch: 106%; font-weight: 500; max-width: 58ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.contact-grid > div:first-child p { max-width: 44ch; color: var(--ink-soft); }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-line {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.contact-line span {
  font-size: 0.74rem; font-weight: 650; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px;
}
a.contact-line:hover { border-color: var(--blue); }
.socials { display: flex; gap: 18px; margin-top: 4px; }
.socials a { color: var(--blue-deep); font-weight: 640; font-size: 0.92rem; text-decoration: none; padding: 6px 0; }
.socials a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.87rem; color: var(--ink-soft); }
.site-footer a { color: inherit; }

/* Reveal — JS applies .pre below the fold only, motion permitting */
.pre { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 940px) {
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 56px; }
  .hero-portrait { justify-content: flex-start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .wordmark { font-size: 0.98rem; }
  .header-cta { padding: 8px 12px; font-size: 0.82rem; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; }
  .steps li + li { border-top: 1.5px solid var(--ink); }
  .factline span + span::before { margin: 0 12px; }
}
