/* =========================================================
   MH Web Design
   Brand: black #0B0B0C, gold #C9A961, deep gold #9C7A3C, white
   Type: Bodoni Moda (display) + Poppins (text, matches the wordmark)
   ========================================================= */

:root {
  --onyx: #0B0B0C;
  --onyx-raised: #141416;
  --onyx-line: rgba(255, 255, 255, 0.1);
  --gold: #C9A961;
  --gold-light: #E8D29C;
  --gold-deep: #9C7A3C;
  --gold-ink: #7A5C25;       /* deep gold dark enough for small text on white */
  --gold-line: rgba(201, 169, 97, 0.28);
  --white: #FFFFFF;
  --text: #ECE8E1;
  --muted: #A49E94;
  --ink: #0B0B0C;
  --ink-muted: #57534D;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --header-h: 96px;
  --section-y: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--onyx);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h3 { font-size: 1.5rem; }

p { margin: 0; }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--onyx);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons & small parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn:active { transform: scale(0.98); }

.btn--gold { background: var(--gold); color: var(--onyx); }
.btn--gold:hover { background: var(--gold-light); }

.btn--light { background: var(--white); color: var(--onyx); }
.btn--light:hover { background: var(--gold-light); }

.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.02rem; }

.icon-circle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.icon-circle svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-circle--gold { background: var(--gold); color: var(--onyx); }
a.icon-circle--gold:hover { background: var(--gold-light); transform: translateY(-2px); }

.text-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link:hover { color: var(--gold-light); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  transition: background-color 0.3s, height 0.3s var(--ease), box-shadow 0.3s,
    opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
/* Fades away while scrolling down, comes back as soon as you scroll up */
.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.site-header.is-scrolled {
  --header-h: 76px;
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gold-line);
}

.site-header__logo img { width: auto; height: 48px; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-pill ul {
  display: flex;
  gap: 6px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav-pill ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-pill ul a:hover { color: var(--gold); background: rgba(201, 169, 97, 0.08); }
.nav-pill .icon-circle { width: 44px; height: 44px; }

.site-header__end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.menu-toggle__dots {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  gap: 4px;
}
.menu-toggle__dots { transition: opacity 0.2s, transform 0.3s var(--ease); }
.menu-toggle__dots i {
  width: 6px; height: 6px;
  background: var(--onyx);
  border-radius: 50%;
}
/* Open state: the dots give way to a close mark */
.menu-toggle { position: relative; }
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 2px;
  background: var(--onyx);
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scaleX(0.4);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.menu-toggle::after { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0.4); }
.menu-toggle[aria-expanded="true"] .menu-toggle__dots { opacity: 0; transform: rotate(45deg) scale(0.6); }
.menu-toggle[aria-expanded="true"]::before { opacity: 1; transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: var(--onyx);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a {
  padding: 6px 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu__contact {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--gold-line);
  color: var(--gold);
}
.mobile-menu__contact a { text-decoration: none; }

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(24px, 5vh, 64px)) var(--gutter) clamp(28px, 4vh, 48px);
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 66% 40%, rgba(201, 169, 97, 0.16), transparent 70%),
    radial-gradient(90% 70% at 50% 0%, #1A1712 0%, var(--onyx) 65%);
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

/* A dark desk surface the frame's corner dips into, like the board in the reference.
   Tied to the stage so the corner always lands in it. */
.hero__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 112%;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(45% 50% at 52% 0%, rgba(201, 169, 97, 0.13), transparent 70%),
    linear-gradient(180deg, #16130E 0%, var(--onyx) 55%);
  border-top: 1px solid rgba(201, 169, 97, 0.18);
}

.hero__art { width: 100%; height: auto; overflow: visible; }

.art-frame .frame-line {
  fill: none;
  stroke: url(#g-frame);
  stroke-width: 7;
}

.art-kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 104px;
  fill: var(--gold);
  fill-opacity: 0.45;
}
.art-kicker--lit { fill: var(--gold-light); fill-opacity: 0.95; }

.art-design {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 404px;
  fill: var(--white);
}
.art-design--gold { fill: url(#g-type); }

.badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: rgba(20, 20, 22, 0.55);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.badge svg {
  box-sizing: content-box;
  width: 16px; height: 16px;
  padding: 6px;
  fill: none; stroke: var(--onyx); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  background: var(--gold);
  border-radius: 50%;
}
.badge--a { left: 27%; top: 101%; }
.badge--b { right: 2%; top: 104%; }

.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  width: 100%;
  max-width: 1560px;
  margin: auto auto 0;
  padding-top: clamp(64px, 9vh, 96px);
}

.hero__intro { display: grid; gap: 28px; max-width: 28rem; }
.hero__lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
}

.hero__contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__contact span { margin-right: 6px; color: var(--muted); font-size: 0.95rem; }

.hero__aside {
  display: grid;
  justify-items: end;
  gap: 28px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}
.team-chip:hover span:last-child { color: var(--gold); }
.team-chip__faces { display: flex; }
.team-chip__faces img {
  width: 56px; height: 56px;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid var(--onyx);
  border-radius: 50%;
  outline: 1px solid var(--gold);
}
.team-chip__faces img + img { margin-left: -14px; }

/* One orchestrated load: the word settles, the frame draws itself, then the window opens */
@media (prefers-reduced-motion: no-preference) {
  .art-word { animation: rise 0.9s var(--ease) both; }
  .art-frame .frame-line {
    stroke-dasharray: 1;
    animation: draw 1.4s 0.35s cubic-bezier(0.65, 0, 0.35, 1) both;
  }
  .art-window { animation: fade 0.9s 1.3s ease-out both; }
  .badge,
  .hero__row { animation: fade 0.8s 1.6s ease-out both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.section { padding: var(--section-y) 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head p { color: var(--muted); }

/* ---------- Work ---------- */

.work .container { max-width: calc(1120px + var(--gutter) * 2); }

.showcase__picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.chip {
  min-height: 44px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--text);
  font: 500 0.95rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-light); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--onyx); }

.compare {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--onyx-line);
  border-radius: 14px;
  background: #1A1A1D;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.compare__stage { position: relative; touch-action: pan-y; }
.compare__img { width: 100%; height: auto; }
.compare__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__tag {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.compare__tag--before { left: 16px; background: var(--white); color: var(--onyx); }
.compare__tag--after { right: 16px; background: var(--gold); color: var(--onyx); }

.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--gold);
  pointer-events: none;
}
/* The handle is the MH double frame */
.compare__handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  background: var(--onyx);
  border: 1.5px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.compare__handle span::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--gold);
}
.compare__handle svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--gold); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(.compare__range:focus-visible) .compare__handle span {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.browser__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--onyx-line);
}
.browser__bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 8vw, 104px);
}

/* Each card shows the old and new site split on the same tilt as the hero frame */
.project__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  background: var(--onyx-raised);
  border: 1px solid var(--onyx-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.3s var(--ease);
}
.project__preview img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.project__before { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); }
.project__cut {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.project__cut line { stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.project__preview::before,
.project__preview::after {
  position: absolute;
  bottom: 10px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  font: 500 0.75rem/1.4 var(--sans);
  color: var(--onyx);
}
.project__preview::before { content: "Before"; left: 10px; background: var(--white); }
.project__preview::after { content: "After"; right: 10px; background: var(--gold); }
.project__preview:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.project.is-active .project__preview { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.project h3 { margin-top: 20px; font-size: 1.4rem; line-height: 1.2; }
.project__meta { margin-top: 6px; color: var(--gold); font-size: 0.92rem; }
.project p:not(.project__meta) { margin-top: 8px; color: var(--muted); }

/* ---------- About ---------- */

.about { background: linear-gradient(180deg, var(--onyx) 0%, #121110 100%); }

.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}
.about__copy { display: grid; gap: 24px; max-width: 32rem; }
.about__copy p:not(.lede) { color: var(--muted); }
.about__copy .text-link { justify-self: start; margin-top: 8px; }

.about__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.person { margin: 0; }
.person--offset { margin-top: clamp(48px, 8vw, 112px); }

/* Double gold frame, borrowed from the logo */
.framed {
  position: relative;
  padding: 10px;
  border: 1px solid var(--gold);
}
.framed::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.framed img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1) contrast(1.05);
}

.person figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 16px;
}
.person strong,
.person__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.person figcaption > span { color: var(--gold); font-size: 0.9rem; }

/* A name that opens a bio, marked with the same framed plus as the FAQ */
.person__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.person__name:hover { color: var(--gold-light); }
.person__toggle {
  position: relative;
  flex: none;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
}
.person__toggle::before,
.person__toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.person__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.person__name[aria-expanded="true"] .person__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

/* The bio slides open below both portraits, with a notch pointing up at its owner */
.person-bio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.person-bio.is-open { grid-template-rows: 1fr; }
.person-bio__clip { min-height: 0; overflow: hidden; }
.person-bio__panel {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--onyx-raised);
  border: 1px solid var(--gold-line);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.person-bio.is-open .person-bio__panel { opacity: 1; transform: none; }
.person-bio__panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(75% + 8px);
  width: 12px; height: 12px;
  background: var(--onyx-raised);
  border-top: 1px solid var(--gold-line);
  border-left: 1px solid var(--gold-line);
  transform: rotate(45deg);
}
.person-bio--left .person-bio__panel::before { left: calc(25% - 16px); }

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.faq__intro { display: grid; gap: 20px; }
.faq__intro p { max-width: 24rem; color: var(--muted); }
.faq__intro a { color: var(--gold); }

.faq__list { border-top: 1px solid var(--gold-line); }
.faq__list details { border-bottom: 1px solid var(--gold-line); }
.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--gold-light); }
.faq__list details p { max-width: 38rem; padding: 0 56px 28px 0; color: var(--muted); }

/* Plus/minus inside a small double frame */
.faq__icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(50% 60% at 15% 30%, rgba(201, 169, 97, 0.1), transparent 70%),
    var(--onyx);
  border-top: 1px solid var(--gold-line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.contact__copy { display: grid; gap: 24px; }
.contact__copy .lede { max-width: 30rem; color: var(--muted); }

.contact__direct {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  text-decoration: none;
  white-space: nowrap;
}
.contact__direct a:hover { color: var(--gold); }

.contact-form {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--onyx-raised);
  border: 1px solid var(--gold);
}
.contact-form::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold-line);
  pointer-events: none;
}
.contact-form > * { position: relative; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--onyx);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  font: 400 1rem/1.5 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: #75706A; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #E07A6B; }

.contact-form .btn { justify-self: start; }
.contact-form__status { min-height: 1.5em; font-size: 0.95rem; color: var(--gold-light); }
.contact-form__status.is-error { color: #F0A093; }

/* ---------- Cursor light ----------
   On mouse and trackpad devices main.js adds .has-light to <html> and treats the cursor as a lamp:
   a faint gold glow, the room darkening away from it, surfaces catching a sheen and a rim light on
   the side facing it, and shadows falling away from it. Positions arrive as custom properties:
   --lx/--ly (light position inside the element), --li (how strongly it is lit, 0 to 1) and
   --sx/--sy/--sb/--sa (shadow offset, blur and strength). */

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: 70;
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, rgba(201, 169, 97, 0.06) 32%, rgba(201, 169, 97, 0) 68%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

/* The room falls into shade the farther you get from the light */
.cursor-shade {
  position: fixed;
  inset: 0;
  z-index: 69;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 120px, rgba(0, 0, 0, 0.24) 475px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cursor-glow.is-on,
.cursor-shade.is-on { opacity: 1; }

/* Raised surfaces cast a shadow away from the light */
.has-light .lit {
  --cast: var(--sx, 0px) var(--sy, 18px) var(--sb, 40px) rgba(0, 0, 0, var(--sa, 0.45));
  box-shadow: var(--cast);
}
.has-light .lit--flat { box-shadow: none; }
.has-light .project.is-active .project__preview { box-shadow: var(--cast), 0 0 0 1px var(--gold); }

/* Sheen across the surface, strongest where the light is closest */
.lit > .light-sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(190px circle at var(--lx, 50%) var(--ly, -60%), rgba(255, 234, 186, calc(0.16 * var(--li, 0))), rgba(255, 234, 186, 0) 65%);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* Rim light: the edge facing the light catches it */
.lit > .light-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--lx, 50%) var(--ly, -60%), rgba(255, 230, 175, calc(0.95 * var(--li, 0))), rgba(255, 230, 175, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Headings shade from bright to dim with distance from the light */
.has-light .lit-text {
  background: radial-gradient(280px circle at var(--lx, 30%) var(--ly, -60%), #FFFFFF 0%, #EEE8DD 40%, #A7A196 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero: the word and the frame are lit from the cursor (gradients follow it in main.js) */
.has-light .art-design { fill: url(#g-lit-white); }
.has-light .art-design--gold,
.has-light .art-kicker { fill: url(#g-lit-gold); }
.has-light .art-frame .frame-line { stroke: url(#g-lit-frame); }

@media (hover: none), (pointer: coarse) {
  .cursor-glow,
  .cursor-shade { display: none; }
}

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

.site-footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--gold-line);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px 64px;
}
.site-footer__logo { width: 150px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__contact { display: grid; gap: 4px; text-align: right; color: var(--gold); }
.site-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--onyx-line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav-pill ul a { padding: 8px 10px; }
}

@media (max-width: 960px) {
  :root { --header-h: 80px; }

  .site-header { grid-template-columns: 1fr auto; }
  .site-header__logo img { height: 40px; }
  .nav-pill,
  .site-header__cta { display: none; }
  .menu-toggle { display: grid; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 56px); }
  .hero__row { flex-direction: column; align-items: stretch; padding-top: 112px; }
  .hero__intro { max-width: 34rem; }
  .hero__aside { justify-items: start; }

  .section-head,
  .about__grid,
  .faq__grid,
  .contact__grid { grid-template-columns: 1fr; }


  .projects { grid-template-columns: 1fr; max-width: 560px; }

  .site-footer__grid { grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer__contact { text-align: left; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__stage { margin: 0 calc(var(--gutter) * -0.5); width: auto; }
  .badge { padding: 6px 14px 6px 6px; font-size: 0.82rem; }
  .badge svg { width: 13px; height: 13px; padding: 5px; }
  .badge--a { left: 3%; top: 122%; }
  .badge--b { right: 3%; top: 150%; }
  .hero__row { padding-top: 120px; gap: 36px; }
  .contact__direct a { gap: 12px; font-size: clamp(0.95rem, 4.6vw, 1.15rem); }
  .hero__aside { gap: 24px; }
  .hero__aside .btn { width: 100%; }

  /* One swipeable row instead of three stacked buttons */
  .showcase__picker {
    flex-wrap: nowrap;
    margin: 0 calc(var(--gutter) * -1) 16px;
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .showcase__picker::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 40px; padding: 0 14px; font-size: 0.85rem; }
  .compare__tag { top: 10px; padding: 4px 10px; font-size: 0.75rem; }
  .compare__tag--before { left: 10px; }
  .compare__tag--after { right: 10px; }
  .compare__handle span { width: 40px; height: 40px; }

  .about__people { gap: 16px; }
  .person strong,
  .person__name { font-size: 1.3rem; }
  .person__name { gap: 8px; }
  .person__toggle { width: 20px; height: 20px; }
  .person figcaption { gap: 0; }

  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }

  .site-footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }
}
