/* Axiom Estate Management — one-page site
   Tokens and measurements follow the design handoff (README.md in the handoff bundle).
   No border-radius, no gradients, no shadows except the sticky header on scroll. */

:root {
  --paper: #FFFFFF;
  --stone: #F4F2ED;
  --line: #E2DFD8;
  --input-line: #D9D5CC;
  --ink: #1C1F24;
  --ink-2: #3A3E45;
  --muted: #6B6A66;
  --amber: #C4841A;
  --amber-deep: #8F5E0F;
  --amber-on-dark: #E1A03A;
  --amber-tint: #F5E8D0;
  --dark: #1C1F24;
  --on-dark: #F2EFE8;
  --on-dark-muted: #A6A39C;
  --rule-on-dark: rgba(242, 239, 232, 0.25);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --header-h: clamp(60px, 5vw, 72px);
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 7vw, 104px);
  --head-gap: clamp(32px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--amber-tint); }

a { color: inherit; transition: color .2s ease; }
a:hover { color: var(--amber); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

img, picture { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
input, textarea, button { font: inherit; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2-contact {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.intro {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 36em;
  text-wrap: pretty;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 44em;
}

.section-head-spaced { margin-bottom: var(--head-gap); }

.numeral {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 3.6vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* A word in the commitments strip (e.g. "Transparent") is set a step smaller than the figures
   and bottom-aligned to the same box height, so the labels below stay on one line across columns. */
.numeral-word {
  font-size: clamp(38px, 3.1vw, 48px);
  display: flex;
  align-items: flex-end;
  min-height: calc(clamp(44px, 3.6vw, 56px) * 0.9);
}

/* Placeholders that stay visible until real data arrives */
.ph {
  background: rgba(225, 160, 58, 0.18);
  padding: 0 0.3em;
  color: var(--amber-on-dark);
}
.ph-inline { color: var(--amber-deep); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }

.btn-header { padding: 9px 16px; }
.btn-header-sm { font-size: 13px; padding: 8px 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  transition: box-shadow .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(28, 31, 36, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.logo-sub { display: flex; align-items: center; gap: 12px; }
.logo-rule { display: block; width: 1px; height: 22px; background: var(--amber); }
.logo-lines {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.25;
  color: var(--ink-2);
  letter-spacing: 0;
}

.nav-wide {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 400;
}
.nav-wide a[data-nav] {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}
.nav-wide a[data-nav]:hover { color: var(--ink); }
.nav-wide a[data-nav]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--amber);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-wide a[data-nav].active { color: var(--ink); }
.nav-wide a[data-nav].active::before { opacity: 1; transform: scale(1); }

.nav-compact { display: none; align-items: center; gap: 16px; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu-drawer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.menu-drawer a {
  display: block;
  padding: 16px var(--gutter);
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.menu-drawer a:first-child { border-top: 0; }
.menu-drawer a:hover { color: var(--amber); }
.menu-drawer:not([hidden]) { display: flex; }

@media (max-width: 900px) {
  .logo-sub { display: none; }
  .nav-wide { display: none; }
  .nav-compact { display: flex; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 5.5vw, 80px) 0 0; }

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  flex: 1.15 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
}

.tagline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.tagline-square { display: inline-block; width: 8px; height: 8px; margin-top: 6px; background: var(--amber); flex: none; }

.lede {
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.hero-footnote b { color: var(--ink); font-weight: 500; }

.hero-photo {
  flex: 1 1 360px;
  min-width: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72vw;
  border: 1px solid var(--line);
  background: var(--stone);
  overflow: hidden;
}
.hero-photo picture, .hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo img { object-fit: cover; object-position: center; filter: sepia(.16) saturate(.92) contrast(.98); }

.commitments { margin-top: clamp(48px, 6vw, 88px); }

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 32px clamp(20px, 3vw, 48px);
}

.commitment {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.commitment-label { font-weight: 600; font-size: 15px; line-height: 1.4; text-wrap: balance; }
.commitment-text { font-size: 15px; color: var(--muted); line-height: 1.55; text-wrap: pretty; }

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; scroll-margin-top: 72px; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--dark); color: var(--on-dark); }
main#top { scroll-margin-top: 0; }

/* Approach */

.approach-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 88px);
  align-items: flex-start;
}
.approach-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.roles { flex: 1.4 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }

.role {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
}
.roman {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--amber-deep);
  width: 2.2ch;
}
.role h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.role p { color: var(--muted); font-size: 15px; text-wrap: pretty; }

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 4.5vw, 64px) clamp(32px, 5vw, 80px);
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.service-no {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--amber-deep);
  font-variant-numeric: tabular-nums;
  min-width: 2.3ch;
  padding-top: 4px;
}
.service-body { display: flex; flex-direction: column; gap: 12px; }
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.service p { color: var(--ink-2); font-size: 16px; line-height: 1.55; text-wrap: pretty; max-width: 36em; }
.service-tags {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 2px;
}

/* The service charge year */

.section-dark .eyebrow { color: var(--amber-on-dark); }
.section-dark h2 { color: var(--on-dark); }
.section-dark .intro { color: var(--on-dark-muted); }

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.moment {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-dark);
}
.moment-when {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-on-dark);
}
.moment h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.12;
  color: var(--on-dark);
}
.moment p { color: var(--on-dark-muted); text-wrap: pretty; }
.moment ul {
  padding-left: 1.1em;
  color: var(--on-dark-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14.5px;
}

/* Contacts */

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 96px);
  align-items: flex-start;
}
.contact-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
}
.section-head-contact { gap: 16px; }
.intro-contact { font-size: 17px; line-height: 1.55; max-width: 30em; }

.person {
  display: flex;
  flex-wrap: wrap;
  gap: 24px clamp(20px, 2.4vw, 32px);
  align-items: flex-start;
}
.person-photo {
  position: relative;
  width: clamp(120px, 12vw, 168px);
  aspect-ratio: 1;
  background: var(--line);
  flex: none;
  overflow: hidden;
}
.person-photo picture, .person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.person-photo img { object-fit: cover; }

.person-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 220px; }
.person-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.person-role { font-size: 13px; font-weight: 500; color: var(--muted); }
.person-text p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.person-email-ph { text-decoration: none; }
.person-email {
  margin-top: 10px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--amber);
}

/* Enquiry form */

.enquiry {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 2.8vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.enquiry-fields { display: flex; flex-direction: column; gap: 18px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  padding: 14px 16px;
  border: 1px solid var(--input-line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.invalid input { border-color: var(--amber-deep); }
.field-error { display: none; font-size: 13px; color: var(--amber-deep); }
.field.invalid .field-error { display: block; }

.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.enquiry-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 4px;
}
.btn-submit { font-size: 15px; padding: 14px 24px; }
.btn-submit[disabled] { opacity: .6; cursor: default; }
.enquiry-note { font-size: 13.5px; color: var(--muted); }
.enquiry-fail { font-size: 14px; color: var(--ink-2); }
.enquiry-fail a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }
.enquiry-sent { font-size: 17px; color: var(--ink); }
.enquiry.done .enquiry-fields { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(48px, 5vw, 72px) 0 40px;
}
.footer-inner { display: flex; flex-direction: column; gap: clamp(40px, 4vw, 56px); }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 48px;
  align-items: flex-start;
}

.logo-dark { color: var(--on-dark); gap: 14px; }
.logo-dark .logo-word { font-size: clamp(28px, 2.6vw, 36px); }
.logo-dark .logo-sub { display: flex; gap: 14px; }
.logo-dark .logo-rule { height: 28px; background: var(--amber-on-dark); }
.logo-dark .logo-lines { font-size: 12px; color: var(--on-dark-muted); }

.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col a { text-decoration: none; color: var(--on-dark); }
.footer-col a:hover { color: var(--amber-on-dark); }
.footer-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.footer-muted { color: var(--on-dark-muted); }

.footer-bottom {
  border-top: 1px solid rgba(242, 239, 232, 0.2);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  align-items: flex-start;
  color: var(--on-dark-muted);
  font-size: 13px;
  line-height: 1.55;
}
.legal { max-width: 70ch; }
.back-top { text-decoration: none; color: var(--on-dark); }
.back-top:hover { color: var(--amber-on-dark); }

/* ---------- Motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, a, .menu-toggle span, .nav-wide a[data-nav]::before { transition: none; }
}
