/* Myers Property Group — site styles
   Palette: ink #0E0F12 · charcoal #1A1B1F · paper #F4F2ED · stone #8B877E · brass #B99C6B
   Type: Cormorant Garamond (display) · Jost (body / UI)
*/

:root {
  --ink: #0e0f12;
  --charcoal: #1a1b1f;
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --stone: #8b877e;
  --stone-2: #c9c5bb;
  --brass: #b99c6b;
  --brass-2: #d6bf90;
  --text: #17181b;
  --text-on-dark: #f4f2ed;
  --muted-on-dark: rgba(244, 242, 237, 0.62);
  --rule-on-dark: rgba(244, 242, 237, 0.14);
  --rule: rgba(23, 24, 27, 0.14);

  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: var(--ink); }

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

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
p  { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; }
.measure { max-width: 62ch; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--charcoal { background: var(--charcoal); color: var(--text-on-dark); }
.section--dark .eyebrow, .section--charcoal .eyebrow { color: var(--brass-2); }
.section--dark .muted, .section--charcoal .muted { color: var(--muted-on-dark); }
.muted { color: var(--stone); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.section--dark .rule, .section--charcoal .rule { background: var(--rule-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(6px); }
.btn--light { color: var(--text-on-dark); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--paper); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-2); border-color: var(--brass-2); }

/* ---------- Header ---------- */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: 26px;
  color: var(--text-on-dark);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; gap: clamp(22px, 3vw, 44px); align-items: center; }
.nav a {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-block: 6px;
  position: relative;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-on-dark);
  color: inherit;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 1px; background: currentColor; position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 15;
  }
  .nav a { font-size: 1rem; }
  .nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav-open .nav-toggle { position: relative; z-index: 16; }
  .nav-open .brand { position: relative; z-index: 16; }
}

/* ---------- Intro (home only) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.intro img {
  width: min(70vw, 720px);
  opacity: 0;
  transform: scale(1.06);
  animation: introLogo 2.6s var(--ease) forwards;
}
.intro::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12vh;
  width: 1px;
  height: 0;
  background: var(--brass);
  animation: introLine 1.4s var(--ease) 1.2s forwards;
}
.intro.is-leaving { animation: introOut 1.1s var(--ease) forwards; }
.intro.is-leaving img { animation: introLogoOut 1s var(--ease) forwards; }

@keyframes introLogo {
  0%   { opacity: 0; transform: scale(1.06); filter: blur(6px); }
  35%  { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes introLogoOut {
  to { opacity: 0; transform: scale(0.94); filter: blur(4px); }
}
@keyframes introLine { to { height: 72px; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--text-on-dark);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: 55% 45%;
  transform: scale(1.08);
  animation: heroSettle 6s var(--ease) forwards;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,15,18,0.55) 0%, rgba(14,15,18,0.15) 35%, rgba(14,15,18,0.78) 100%),
    linear-gradient(90deg, rgba(14,15,18,0.45) 0%, rgba(14,15,18,0) 60%);
}
@keyframes heroSettle { to { transform: scale(1); } }

.hero .wrap {
  padding-block: clamp(120px, 14vw, 160px) clamp(56px, 8vw, 96px);
  display: grid;
  gap: 34px;
}
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-on-dark);
}
.hero__foot p { max-width: 46ch; color: var(--muted-on-dark); }

.reveal { opacity: 0; transform: translateY(18px); animation: rise 1.2s var(--ease) forwards; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Page banner (about / contact) ---------- */
.banner {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(150px, 18vw, 220px) clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  right: -10vw;
  top: -10vw;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  border: 1px solid var(--rule-on-dark);
  pointer-events: none;
}
.banner .wrap { display: grid; gap: 26px; }
.banner h1 { max-width: 16ch; }

/* ---------- Grids ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > * { min-width: 0; }
.split .sticky { position: sticky; top: 40px; }

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.section--dark .cols, .section--charcoal .cols { border-color: var(--rule-on-dark); }
.col {
  padding: 40px clamp(20px, 2.6vw, 40px) 44px 0;
  border-right: 1px solid var(--rule);
  display: grid;
  gap: 18px;
  align-content: start;
}
.section--dark .col, .section--charcoal .col { border-color: var(--rule-on-dark); }
.col:last-child { border-right: 0; }
.col + .col { padding-left: clamp(20px, 2.6vw, 40px); }
.col h3 { margin-top: 6px; }
.col .index {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--brass);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--paper);
}
.stat span { display: block; margin-top: 10px; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-on-dark); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .cols { grid-template-columns: 1fr; }
  .col { border-right: 0; border-bottom: 1px solid var(--rule); padding-inline: 0 !important; }
  .section--dark .col, .section--charcoal .col { border-color: var(--rule-on-dark); }
  .col:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Statement ---------- */
.statement {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.25;
  max-width: 28ch;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--brass); }

/* ---------- Image band ---------- */
.band {
  height: clamp(280px, 48vw, 560px);
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  background-position: 50% 30%;
  background-attachment: scroll;
  filter: saturate(0.85);
}

/* ---------- CTA ---------- */
.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 { max-width: 18ch; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 10px; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 0;
  transition: border-color 0.3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b877e' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; padding-right: 28px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: var(--stone-2); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form__foot small { color: var(--stone); font-size: 0.85rem; max-width: 40ch; }
.hp { position: absolute; left: -9999px; }

.contact-details { display: grid; gap: 34px; }
.contact-details dt { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.contact-details dd { margin: 0; font-size: 1.15rem; }
.contact-details a { border-bottom: 1px solid var(--rule); transition: border-color 0.3s; }
.contact-details a:hover { border-color: var(--brass); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--muted-on-dark);
  padding-block: 56px 40px;
  font-size: 0.82rem;
}
.footer .wrap { display: grid; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__top .brand img { height: 52px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.7rem; opacity: 0.8; }
.footer__links a:hover { opacity: 1; color: var(--brass-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule-on-dark); }

/* ---------- Scroll reveal ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
.no-js .fade-up { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .hero__bg { animation: none; transform: none; }
  .reveal, .fade-up { animation: none; opacity: 1; transform: none; transition: none; }
  .btn svg, .nav a::after { transition: none; }
}

/* ---------- Imagery ---------- */
.figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  max-width: 100%;
}
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.03); }
.figure--tall { aspect-ratio: 4 / 5; }
.section--dark .figure, .section--charcoal .figure { background: var(--charcoal); }

.split--media { align-items: center; }
.split--media .figure { width: 100%; }
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--reverse .figure { order: 2; }
@media (max-width: 900px) {
  .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .figure { order: 0; }
  .split--media .figure--tall { aspect-ratio: 4 / 3; }
}

.cols--media .col { padding-top: 0; }
.cols--media { border-top: 0; }
.cols--media .figure { aspect-ratio: auto; height: clamp(300px, 34vw, 520px); margin-bottom: 10px; }
@media (max-width: 900px) {
  .cols--media .col { padding-top: 32px; }
  .cols--media .figure { height: auto; aspect-ratio: 16 / 10; }
}

.band--materials { background-image: url("../assets/materials.jpg"); background-position: 50% 55%; filter: none; }
.band--trades { background-image: url("../assets/trades.jpg"); background-position: 50% 45%; filter: none; }
.band--kitchen { background-image: url("../assets/kitchen.jpg"); background-position: 50% 55%; filter: none; }

.banner--image { isolation: isolate; }
.banner__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}
.banner--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14,15,18,0.92) 0%, rgba(14,15,18,0.55) 60%, rgba(14,15,18,0.35) 100%);
}
.banner--image::after { display: none; }

/* ---------- Definition list ---------- */
.list { margin: 0; display: grid; }
.list > div { padding-block: 26px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 16px 32px; }
.list > div:last-child { border-bottom: 1px solid var(--rule); }
.list dt { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; }
.list dd { margin: 0; color: var(--stone); }
@media (max-width: 600px) { .list > div { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Checkboxes ---------- */
.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks legend { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--stone); padding: 0; margin-bottom: 14px; }
.checks__row { display: flex; flex-wrap: wrap; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 18px; border: 1px solid var(--rule); transition: border-color 0.3s, background 0.3s; }
.check input { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border: 1px solid var(--stone); margin: 0; display: grid; place-items: center; }
.check input::after { content: ""; width: 8px; height: 8px; background: var(--brass); transform: scale(0); transition: transform 0.2s var(--ease); }
.check input:checked::after { transform: scale(1); }
.check:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.check span { font-size: 0.95rem; }

/* ---------- CTA on paper ---------- */
.cta:not(.section--charcoal):not(.section--dark) { border-top: 1px solid var(--rule); }

/* checkbox overrides (beat .field input / .field label) */
.field.checks .check { font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--text); }
.field.checks .check input { width: 14px; height: 14px; padding: 0; border: 1px solid var(--stone); border-radius: 0; flex: 0 0 14px; }
.field.checks .check input:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
