:root {
  color-scheme: dark;
  --black: #000;
  --white: #f5f4f0;
  --muted: #a6a5a1;
  --line: #44443f;
  --serif: "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--white); background: var(--black); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }
::selection { color: var(--black); background: var(--white); }

.skip-link { position: absolute; z-index: 10; top: -80px; left: 20px; padding: 12px 16px; color: var(--black); background: var(--white); }
.skip-link:focus { top: 16px; }
.logo-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-header, .site-footer { width: min(100% - 96px, 1440px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { min-height: 88px; }
.header-brand { font-size: 11px; font-weight: 600; letter-spacing: .25em; white-space: nowrap; }
.site-header nav a { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.site-header nav a:hover, .site-footer a:hover, .front-link:hover { color: #bdbcb6; }

.home-page main { flex: 1; }
.front { position: relative; min-height: calc(100svh - 88px); display: grid; place-items: center; padding: 55px 24px 95px; }
.front-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.front-logo { width: clamp(190px, 23vw, 310px); height: auto; filter: url(#clean-logo-alpha); }
.front h1 { margin: 33px 0 0; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .2em; line-height: 1.8; }
.front-link { margin-top: 61px; padding-bottom: 10px; border-bottom: 1px solid #777671; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: color .2s ease; }
.scroll-link { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 10px 18px; color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; }
.scroll-link:hover { color: var(--white); }

.story { width: min(100% - 96px, 1440px); margin-inline: auto; padding: clamp(110px, 12vw, 180px) 0 clamp(150px, 17vw, 240px); }
.story-opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(70px, 12vw, 200px); }
.story-intro { max-width: 440px; margin-left: clamp(0px, 6vw, 100px); }
.story-intro h2 { margin: 0; font-family: var(--serif); font-size: clamp(50px, 6vw, 82px); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
.story-intro p { max-width: 360px; margin: 36px 0 0; color: var(--muted); font-size: 13px; font-weight: 300; line-height: 1.85; }
.story-image { margin: 0; }
.story-image img { width: 100%; height: auto; }
.reveal-ready .story-image { opacity: 0; transform: scale(.975); clip-path: inset(3% 0); transition: opacity 1.15s cubic-bezier(.19, 1, .22, 1), transform 1.15s cubic-bezier(.19, 1, .22, 1), clip-path 1.15s cubic-bezier(.19, 1, .22, 1); }
.reveal-ready .story-image.is-visible { opacity: 1; transform: scale(1); clip-path: inset(0); }
.story-image-primary { width: min(100%, 460px); justify-self: end; }
.story-gallery { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 390px); align-items: start; justify-content: space-between; gap: clamp(90px, 10vw, 160px) 80px; margin-top: clamp(130px, 15vw, 220px); }
.story-gallery .story-image:nth-child(even) { margin-top: clamp(90px, 12vw, 170px); }

.site-footer { min-height: 70px; border-top: 1px solid #252521; color: #888783; font-size: 10px; letter-spacing: .1em; }
.site-footer a { transition: color .2s ease; }

.appointment-main { flex: 1; width: min(100% - 48px, 660px); margin-inline: auto; padding: clamp(80px, 10vw, 145px) 0 120px; }
.appointment-inner h1 { margin: 0; font-family: var(--serif); font-size: clamp(62px, 8vw, 96px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.appointment-intro { margin: 24px 0 0; color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.5; }
.appointment-form { margin-top: 74px; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { margin-bottom: 35px; }
.field label { display: block; margin-bottom: 8px; color: #d6d5d0; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.field label span { color: #a4a39f; }
.field input, .field textarea { width: 100%; display: block; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--white); background: transparent; font-size: 16px; line-height: 1.5; transition: border-color .2s ease; }
.field input { height: 44px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--white); }
.field input:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; }
.submit-button { min-width: 222px; min-height: 54px; margin-top: 3px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--white); color: var(--black); background: var(--white); font-size: 10px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.submit-button:hover { color: var(--white); background: transparent; }
.form-note { max-width: 400px; margin: 22px 0 0; color: #92918d; font-size: 12px; line-height: 1.65; }
.form-status { min-height: 1.5em; margin: 12px 0 0; color: #c6c5bf; font-size: 12px; line-height: 1.5; }

@media (max-width: 600px) {
  .site-header, .site-footer { width: calc(100% - 40px); }
  .site-header { min-height: 72px; }
  .header-brand { font-size: 10px; }
  .site-header nav a { font-size: 9px; }
  .front { min-height: calc(100svh - 72px); padding-block: 50px 95px; }
  .front-logo { width: min(58vw, 230px); }
  .front h1 { font-size: 9px; }
  .front-link { margin-top: 47px; }
  .story { width: calc(100% - 40px); padding: 90px 0 135px; }
  .story-opening { display: block; }
  .story-intro { max-width: 330px; margin: 0 0 85px; }
  .story-intro h2 { font-size: clamp(48px, 13vw, 70px); }
  .story-intro p { margin-top: 25px; }
  .story-image-primary { width: min(80%, 400px); margin-left: auto; }
  .story-gallery { display: flex; flex-direction: column; gap: 110px; margin-top: 120px; }
  .story-gallery .story-image:nth-child(odd) { width: min(83%, 430px); }
  .story-gallery .story-image:nth-child(even) { width: min(78%, 400px); margin: 0 0 0 auto; }
  .site-footer { min-height: 67px; font-size: 9px; }
  .appointment-main { width: calc(100% - 40px); padding-top: 88px; padding-bottom: 90px; }
  .appointment-inner h1 { font-size: clamp(54px, 13vw, 77px); }
  .appointment-form { margin-top: 58px; }
}
@media (max-width: 430px) {
  .name-fields { grid-template-columns: 1fr; gap: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding-block: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal-ready .story-image { opacity: 1; transform: none; clip-path: none; }
}

.diamond-passage {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.diamond-photo {
  position: absolute;
  inset: 0;
  background: url("assets/images/projects/details.jpg") 69% 40% / cover;
  transform-origin: 69% 40%;
}
.diamond-glint {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  transform-origin: left center;
  background: #faf7ee;
  box-shadow: 0 0 8px #f0e3ce;
}

.guide-link { display: inline-block; margin-top: 24px; padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--white); font-size: 13px; }
.project-guide { width: min(100% - 48px, 660px); margin: 0 auto; padding: clamp(64px, 9vw, 130px) 0 110px; }
.project-guide h1, .project-guide h2 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
.project-guide h1 { font-size: clamp(48px, 7vw, 84px); letter-spacing: -.035em; margin: 0; }
.project-guide h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.project-guide p { max-width: 56ch; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.project-guide section + section { margin-top: 48px; }

.gallery-pagination { display: flex; justify-content: center; margin-top: clamp(36px, 6vw, 80px); }
.gallery-pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; font: 16px var(--serif); color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.gallery-pagination a:hover { color: var(--white); }
.project-guide header + section { margin-top: clamp(48px, 7vw, 80px); }
.project-questions h2 { margin-bottom: 24px; }
.project-questions details { border-top: 1px solid var(--line); }
.project-questions summary { padding: 19px 0; cursor: pointer; font-size: 15px; line-height: 1.5; }
.project-questions details p { margin: 0 0 22px; }
