/* DESIGN_VARIANCE: 8; MOTION_INTENSITY: 5; VISUAL_DENSITY: 4. */
:root {
  color-scheme: light dark;
  --container: 1320px;
  --page: #f2f3f0;
  --surface: #e5e5df;
  --surface-strong: #d4d3cc;
  --ink: #2a211d;
  --muted: #5e5752;
  --line: #b9b6af;
  --cocoa: #33251e;
  --cocoa-soft: #493329;
  --on-cocoa: #f5f1eb;
  --on-cocoa-muted: #d6cbc2;
  --accent: #9d4423;
  --accent-hover: #7f351b;
  --on-accent: #fffaf4;
  --header: rgb(242 243 240 / 0.94);
  --shadow: rgb(53 40 32 / 0.12);
  --space-section: clamp(5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1d1917;
    --surface: #28221f;
    --surface-strong: #352c27;
    --ink: #f1ece5;
    --muted: #c3b9b0;
    --line: #53483f;
    --cocoa: #201a17;
    --cocoa-soft: #382821;
    --on-cocoa: #f5f1eb;
    --on-cocoa-muted: #d6cbc2;
    --accent: #c66e48;
    --accent-hover: #dc815a;
    --on-accent: #211713;
    --header: rgb(29 25 23 / 0.95);
    --shadow: rgb(10 7 6 / 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--page);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 170px;
  height: 60px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.28);
  background: #3a261d;
}

.brand img {
  display: block;
  width: 350px;
  height: 116px;
  max-width: none;
  object-fit: contain;
  transform: translate(-21px, -25px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2vw, 2rem);
  margin-left: auto;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background-color 220ms ease, border-color 220ms ease;
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.86rem;
}

.header-cta {
  flex: 0 0 auto;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  min-height: 84svh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  gap: clamp(3rem, 6vw, 6rem);
  padding-block: clamp(3.25rem, 7vh, 5.25rem);
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.9rem, 6vw, 6.35rem);
  font-weight: 780;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 4.2vw, 4.9rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 35rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.text-link {
  color: var(--ink);
  font-weight: 750;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 2px;
}

.text-link:hover {
  color: var(--accent);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% 0 12% 16%;
  background: var(--cocoa);
}

.hero-media img {
  position: relative;
  width: min(100%, 700px);
  box-shadow: 22px 24px 0 var(--surface-strong);
}

.section {
  padding-block: var(--space-section);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(4rem, 10vw, 9rem);
}

.service-intro {
  position: sticky;
  top: 120px;
}

.service-intro h2 {
  max-width: 9ch;
}

.service-intro p,
.section-heading p,
.contact-primary > p {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-intro img {
  width: 150px;
  margin-top: 2.5rem;
  filter: saturate(0.75) contrast(1.04);
}

.service-groups {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
}

.service-group {
  min-height: 220px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: var(--surface);
}

.service-group-wide {
  min-height: 300px;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.service-group-dark {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--cocoa);
  color: var(--on-cocoa);
}

.service-group p {
  max-width: 36ch;
  margin-bottom: 0;
  color: var(--muted);
}

.service-group-dark p {
  color: var(--on-cocoa-muted);
}

.housewatch-section {
  background: var(--surface-strong);
  color: var(--ink);
}

.housewatch-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  align-items: center;
  gap: clamp(4rem, 12vw, 11rem);
}

.housewatch-copy h2 {
  max-width: 12ch;
}

.housewatch-copy .eyebrow {
  color: var(--ink);
}

.housewatch-copy > p:not(.eyebrow) {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.text-link-light {
  color: var(--ink);
}

.text-link-light:hover {
  color: var(--accent);
}

.housewatch-visual {
  margin: 0;
  justify-self: end;
  padding: 1.15rem;
  background: var(--cocoa-soft);
  box-shadow: -28px 28px 0 var(--accent);
}

.housewatch-visual img {
  width: 150px;
  height: 226px;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2 {
  max-width: 11ch;
}

.process-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: 1.5rem;
}

.process-item {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0 0;
  border-top: 4px solid var(--ink);
}

.process-item-emphasis {
  min-height: 330px;
  padding-inline: clamp(1.5rem, 3vw, 2.8rem);
  background: var(--surface-strong);
  border-top-color: var(--accent);
}

.process-item p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
}

.about-section {
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.35fr) 150px;
  align-items: end;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.about-year {
  color: var(--accent);
  font-size: clamp(5rem, 10vw, 10.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.about-copy h2 {
  max-width: 12ch;
}

.about-copy p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-image {
  width: 150px;
  height: 150px;
  filter: saturate(0.75) contrast(1.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  grid-template-areas:
    "primary details"
    "map image";
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-primary {
  grid-area: primary;
}

.contact-primary h2 {
  max-width: 10ch;
}

.contact-primary .button {
  margin-top: 1.25rem;
}

.contact-details {
  grid-area: details;
  display: grid;
  gap: 2rem;
  align-self: stretch;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--surface);
}

.contact-details h3 {
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-details p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-link {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-underline-offset: 0.2em;
}

.map-card {
  grid-area: map;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--cocoa);
  color: var(--on-cocoa);
  text-decoration: none;
  transition: transform 220ms var(--ease), background-color 220ms ease;
}

.map-card:hover {
  background: var(--cocoa-soft);
  transform: translateY(-3px);
}

.map-card:active {
  transform: translateY(1px);
}

.map-card strong,
.map-card span span {
  display: block;
}

.map-card strong {
  font-size: 1.35rem;
}

.map-card span span {
  color: var(--on-cocoa-muted);
}

.map-action {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.contact-image {
  grid-area: image;
  width: 150px;
  height: 150px;
  justify-self: end;
}

.site-footer {
  padding-block: 2.25rem;
  background: var(--cocoa);
  color: var(--on-cocoa);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.5rem 3rem;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
}

.footer-contact a {
  color: var(--on-cocoa);
  font-size: 0.92rem;
  text-underline-offset: 0.22em;
}

.disclaimer {
  grid-column: 1 / -1;
  max-width: 58rem;
  margin: 0;
  color: var(--on-cocoa-muted);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 1rem;
  }

  .desktop-nav a {
    font-size: 0.84rem;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  h1 {
    font-size: clamp(3.6rem, 6.8vw, 5.25rem);
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    margin-left: auto;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-button:active {
    transform: translateY(1px);
  }

  .mobile-nav {
    width: min(calc(100% - 3rem), var(--container));
    margin: 0 auto 1rem;
    padding: 0.75rem 0;
    background: var(--surface);
  }

  .mobile-nav:not([hidden]) {
    display: grid;
  }

  .mobile-nav a {
    padding: 0.75rem 1rem;
    font-weight: 700;
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }

  .container,
  .mobile-nav {
    width: min(calc(100% - 2rem), var(--container));
  }

  .brand {
    width: 150px;
    height: 54px;
  }

  .brand img {
    width: 309px;
    height: 102px;
    transform: translate(-19px, -22px);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .service-layout,
  .housewatch-grid,
  .process-flow,
  .about-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2.5rem;
    padding-block: 3.75rem 4rem;
  }

  .hero-copy,
  .hero-media {
    width: 100%;
  }

  .hero-media {
    justify-content: flex-start;
  }

  .hero-media::before {
    inset: 14% 0 14% 12%;
  }

  .hero-media img {
    width: calc(100% - 1rem);
    box-shadow: 14px 14px 0 var(--surface-strong);
  }

  h1 {
    max-width: 100%;
    margin-bottom: 1.15rem;
    font-size: clamp(2.9rem, 12vw, 3.35rem);
  }

  h2 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
  }

  .hero-lead {
    max-width: 30rem;
    margin-bottom: 1.4rem;
    font-size: 1.02rem;
  }

  .hero-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions .button,
  .contact-primary .button {
    width: 100%;
  }

  .section {
    padding-block: clamp(4.5rem, 18vw, 6.5rem);
  }

  .service-layout,
  .housewatch-grid,
  .about-layout,
  .contact-grid {
    gap: 3rem;
  }

  .service-intro {
    position: static;
  }

  .service-intro h2,
  .section-heading h2,
  .housewatch-copy h2,
  .about-copy h2,
  .contact-primary h2 {
    max-width: 100%;
  }

  .service-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-group,
  .service-group-wide,
  .service-group-dark {
    min-height: auto;
    padding: 1.5rem;
  }

  .housewatch-grid {
    min-height: 0;
  }

  .housewatch-visual {
    justify-self: start;
    margin: 1.5rem 0 1.75rem 1.75rem;
    box-shadow: -24px 24px 0 var(--accent);
  }

  .process-item,
  .process-item-emphasis {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .process-item-emphasis {
    padding-inline: 1.5rem;
  }

  .about-layout {
    align-items: start;
  }

  .about-year {
    font-size: clamp(5.2rem, 27vw, 8rem);
    line-height: 0.8;
  }

  .about-image {
    justify-self: end;
  }

  .contact-grid {
    grid-template-areas:
      "primary"
      "details"
      "map"
      "image";
  }

  .map-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-image {
    justify-self: end;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .disclaimer {
    grid-column: auto;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero-grid {
    padding-block: 2.5rem;
  }

  h1 {
    font-size: clamp(3.65rem, 5.8vw, 5rem);
    margin-bottom: 1rem;
  }

  .hero-lead {
    margin-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
