/* ==========================================================================
   ModLux Properties
   Design tokens
   ========================================================================== */

:root {
  /* Warm neutral palette */
  --ink:        #1B1917;
  --ink-80:     #3A352F;
  --ink-60:     #5D564D;
  --ink-40:     #8A8378;
  --line:       #DFD8CC;
  --line-soft:  #EDE7DD;
  --bone:       #FAF8F4;
  --sand:       #F1EBE1;
  --white:      #FFFFFF;
  --brass:      #96784E;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h: 78px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --measure: 41rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.25em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.25em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--ink); color: var(--bone); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.wrap--wide { max-width: 92rem; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--bone); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.02;
}

.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
}

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-80);
}

.prose { max-width: var(--measure); color: var(--ink-80); }
.prose strong { font-weight: 500; color: var(--ink); }

.center { text-align: center; margin-inline: auto; }

/* ==========================================================================
   Buttons + links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 2.4em;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

.btn:hover { background: var(--ink); color: var(--bone); }

.btn--solid { background: var(--ink); color: var(--bone); }
.btn--solid:hover { background: var(--brass); border-color: var(--brass); color: var(--white); }

.btn--light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--block { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-more::after {
  content: "";
  width: 1.5em; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.link-more:hover { border-bottom-color: var(--ink); }
.link-more:hover::after { width: 2.25em; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bone);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.site-header.is-solid::before { opacity: 1; }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }

/* Transparent-over-hero variant. Suspended while the mobile menu is open,
   since the menu paints a light panel behind the header. */
body.has-hero:not(.nav-open) .site-header:not(.is-solid) { color: #fff; }
body.has-hero:not(.nav-open) .site-header:not(.is-solid) .wordmark__sub { color: rgba(255, 255, 255, 0.72); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  max-width: 92rem;
}

.wordmark {
  display: block;
  text-decoration: none;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.wordmark__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.wordmark__sub {
  display: block;
  margin-top: 0.35em;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-40);
  transition: color 0.4s var(--ease);
}

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }

.nav a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  position: relative;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--bone);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    text-transform: none;
    padding-block: 0.45em;
    opacity: 1;
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--brass); }

  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  body.nav-open .site-header { color: var(--ink); }
  body.nav-open .site-header .wordmark__sub { color: var(--ink-40); }
  body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}

.hero--short { min-height: min(78svh, 760px); }

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Shade only where type actually sits — the lower-left corner and a thin
     band under the header — instead of dimming the whole frame. The right
     and centre of the photograph stay essentially untouched. */
  background:
    linear-gradient(to top,
      rgba(15, 13, 11, 0.34) 0%,
      rgba(15, 13, 11, 0.14) 30%,
      rgba(15, 13, 11, 0) 58%),
    linear-gradient(to right,
      rgba(15, 13, 11, 0.20) 0%,
      rgba(15, 13, 11, 0.06) 38%,
      rgba(15, 13, 11, 0) 62%),
    linear-gradient(to bottom,
      rgba(15, 13, 11, 0.30) 0%,
      rgba(15, 13, 11, 0) 20%);
}

/* Carrying part of the contrast on the type itself means the scrim can stay
   light, so the photograph reads at closer to its real brightness. */
.hero__title,
.hero__sub,
.hero .eyebrow,
.hero__scroll {
  text-shadow: 0 1px 20px rgba(15, 13, 11, 0.55), 0 1px 3px rgba(15, 13, 11, 0.35);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 92rem;
  padding-block: clamp(3.5rem, 8vh, 6rem);
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.72); }

.hero__title {
  font-size: clamp(2.6rem, 6.6vw, 5.25rem);
  line-height: 1.0;
  max-width: 17ch;
  color: #fff;
}

.hero__sub {
  margin-top: 1.75rem;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3.5rem, 8vh, 6rem);
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0));
}
@media (max-width: 860px) { .hero__scroll { display: none; } }

/* Page header (no photo) */
.page-head {
  padding-top: calc(var(--header-h) + clamp(4rem, 12vh, 8rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--sand);
}

/* ==========================================================================
   Intro / statement
   ========================================================================== */

.statement { max-width: 52rem; }
.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.38;
  color: var(--ink);
}

/* ==========================================================================
   Property cards (home grid)
   ========================================================================== */

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.property-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.property-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.property-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.property-card:hover .property-card__media img { transform: scale(1.045); }

.property-card__body { padding-top: 1.75rem; }

.property-card__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.85rem;
}

.property-card__name {
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  margin-bottom: 0.6rem;
}

.property-card__teaser {
  color: var(--ink-60);
  margin-bottom: 1.6rem;
  max-width: 38ch;
}

/* ==========================================================================
   Split (image + text)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.split--reverse > .split__media { order: 2; }

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 4; }

.split__body { max-width: 34rem; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > .split__media { order: 0; }
}

/* ==========================================================================
   Stat bar
   ========================================================================== */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  flex: 1 1 8rem;
  padding: 1.6rem 1.25rem;
  text-align: center;
  border-left: 1px solid var(--line);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.stats li:first-child { border-left: 0; }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.tabs button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0 0 1.25rem;
  margin-bottom: -1px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  text-align: left;
}
.tabs button:hover { color: var(--ink-80); }
.tabs button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* Side-by-side tabs don't fit at phone widths, and wrapping breaks the
   shared underline — stack them into rows with a left-edge marker instead. */
@media (max-width: 600px) {
  .tabs {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .tabs button {
    width: 100%;
    padding: 1.15rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--line-soft);
    transition: color 0.3s var(--ease), padding-left 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
  }
  .tabs button:last-child { border-bottom: 0; }
  .tabs button[aria-selected="true"] {
    border-bottom-color: var(--line-soft);
    box-shadow: inset 2px 0 0 var(--ink);
    padding-left: 0.9rem;
  }
}

.tab-panel[hidden] { display: none; }

/* Without JavaScript both panels stay on the page, stacked and anchor-linkable.
   With it, collapse the secondary one immediately — site.js then takes over and
   removes the attribute, leaving [hidden] in charge. */
.js [data-tab-secondary] { display: none; }

.tab-panel {
  animation: fade-in 0.5s var(--ease) both;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Feature lists
   ========================================================================== */

.tick-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--ink-80);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 0.75rem;
  height: 1px;
  background: var(--brass);
}

.detail-list {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.detail-list dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.5rem;
}
.detail-list dd { margin: 0; color: var(--ink-80); }

.note {
  border-left: 1px solid var(--brass);
  padding: 0.25rem 0 0.25rem 1.5rem;
  color: var(--ink-60);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.gallery__item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--sand);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); opacity: 0.9; }

/* Everything past the preview set stays in the DOM for the lightbox and for
   search engines, but is not painted until "View all photos" is used. */
.gallery__item.is-extra { display: none; }

.gallery-actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}

/* A plain row of supporting photos, normalised to one aspect ratio so the
   row reads as a set regardless of each source image's proportions. */
.img-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.img-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 12, 11, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100svh - 11rem);
  object-fit: contain;
  width: auto;
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-align: center;
  max-width: 60ch;
}

.lightbox__btn {
  position: absolute;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 1rem;
  line-height: 0;
  transition: color 0.25s var(--ease);
}
.lightbox__btn:hover { color: #fff; }
.lightbox__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.lightbox__close { top: clamp(0.5rem, 2vw, 1.5rem); right: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox__prev { left: clamp(0.25rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(0.25rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
}

/* ==========================================================================
   Marquee band (full-bleed image strip)
   ========================================================================== */

.band {
  position: relative;
  min-height: min(60svh, 620px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(15, 13, 11, 0.5);
}
.band__inner { position: relative; z-index: 1; }
.band .eyebrow { color: rgba(255,255,255,0.68); }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
}
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-details a:hover { border-bottom-color: var(--ink); }
.contact-details .big {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.3;
}

.form { display: grid; gap: 1.5rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.5rem; }

.field label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.field .req { color: var(--brass); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0;
  width: 100%;
  transition: border-color 0.3s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A8378' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 10px 6px;
  padding-right: 1.5rem;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-40); opacity: 0.65; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.form__note { font-size: 0.8125rem; color: var(--ink-40); margin: 0; }

.form__status {
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 1.1rem 1.35rem;
  border-left: 2px solid var(--brass);
  background: var(--sand);
  margin: 0;
}
.form__status[hidden] { display: none; }
.form__status.is-error { border-left-color: #A33A2A; }

.form.is-sending { opacity: 0.55; pointer-events: none; }

.form-success {
  border-left: 2px solid var(--brass);
  padding: 1.75rem 2rem;
  background: var(--sand);
}
.form-success h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }

/* Section on dark background */
.section--ink .field label { color: rgba(250, 248, 244, 0.55); }
.section--ink .field input,
.section--ink .field select,
.section--ink .field textarea {
  color: var(--bone);
  border-bottom-color: rgba(250, 248, 244, 0.22);
}
.section--ink .field input:focus,
.section--ink .field select:focus,
.section--ink .field textarea:focus { border-bottom-color: var(--bone); }
.section--ink .btn { border-color: var(--bone); color: var(--bone); }
.section--ink .btn:hover { background: var(--bone); color: var(--ink); }
.section--ink .form__note { color: rgba(250, 248, 244, 0.45); }
.section--ink .form__status { background: rgba(250, 248, 244, 0.07); color: var(--bone); }
.section--ink .contact-details a { border-bottom-color: rgba(250, 248, 244, 0.3); }
.section--ink .eyebrow { color: rgba(250, 248, 244, 0.5); }
.section--ink .prose { color: rgba(250, 248, 244, 0.78); }
.section--ink .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23FAF8F4' stroke-width='1'/%3E%3C/svg%3E");
}
.section--ink .field select option { color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.7);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  font-size: 0.9375rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--bone); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3.5rem;
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

.site-footer .wordmark__name { color: var(--bone); font-size: 1.25rem; }
.site-footer .wordmark__sub { color: rgba(250, 248, 244, 0.45); }

.footer-blurb { margin-top: 1.5rem; max-width: 32ch; line-height: 1.7; }

.footer-col h3 {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45);
  margin-bottom: 1.35rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 244, 0.14);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 244, 0.45);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
