/* 1. Header Desktop & Mobile */
@media (min-width: 901px) {
  .nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav {
    position: static !important;
    transform: none !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  .main-nav ul {
    gap: 2rem;
  }
  .main-nav a:hover,
  .main-nav a.active {
    --underline-width: 100%;
  }
  .main-nav a::after {
    width: var(--underline-width, 0);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #111;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.4s ease;
    padding: 2rem 0;
  }
  .site-header.nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #e6e6e6;
  }
  .nav-toggle span { transition: transform .3s ease, opacity .3s ease; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* 3. Brand & Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  letter-spacing: .28em;
  color: inherit;
}
.logo-slot {
  display: inline-flex;
  width: auto;
  height: auto;
  background: none;
  margin: 0;
}
.logo-slot img {
  height: 36px;
  width: auto;
  display: block;
}

/* 4. Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 2000;
  background: #fff;
  padding: 8px 12px;
}

/* 5. Hero */
.hero {
  color: #fff;
}
.hero-content {
  text-align: left;
  max-width: 1200px;
  width: 100%;
  padding: 0 64px;
}
.hero-sub {
  font-family: var(--font-heading);
  font-size: .8rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  opacity: .85;
}
.hero-motto {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  max-width: 34ch;
}
.hero-services {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.hero-services li {
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,.4);
}
.hero-services li:first-child {
  border-left: none;
  padding-left: 0;
}
.hero-meta {
  margin-bottom: 2rem;
  opacity: .7;
}
.hero-title, .hero-sub, .hero-motto, .hero-services, .hero-meta, .hero-content .btn {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-content {
  opacity: 1 !important;
  transform: none !important;
}
.hero-frame {
  inset: 32px;
  border: 1px solid rgba(255,255,255,.55);
  animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both;
}
@media (max-width: 600px) {
  .hero-content { padding: 0 28px; }
  .hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .hero-frame { inset: 14px; }
  .hero-services li {
    display: block;
    border: none;
    padding: 2px 0;
  }
}

/* 6. Body Copy */
p + p { margin-top: 1.1em; }
.section-title {
  margin-bottom: 48px;
  max-width: 18ch;
}
p:not(.split p) {
  max-width: 68ch;
}
.lead {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* 7. Dark Sections */
.section--dark {
  color: #fff;
}
.section--dark p {
  color: rgba(255,255,255,.78);
}
.section--dark .section-head {
  border-bottom-color: rgba(255,255,255,.25);
}
.section--dark .section-label::before {
  background: #fff;
}
.section--dark .stat-label {
  color: rgba(255,255,255,.6);
}

/* 8. Labels & Index */
.section-label { margin: 0; }
.section-index {
  font-family: var(--font-heading);
  color: #6b6b6b;
}

/* 9. Split Layout */
.split {
  align-items: center;
}
.split > * { min-width: 0; }
@media (min-width: 901px) {
  .split--reverse {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .photo { order: 2; }
}
@media (max-width: 900px) {
  .split { gap: 40px; }
  .split .photo { order: 2; }
}

/* 10. Photos */
.photo img {
  display: block;
  aspect-ratio: 4/3;
  height: auto;
}
.photo--tri {
  max-width: 520px;
  margin-inline: auto;
}
.photo--tri img { aspect-ratio: 1/1; }
.photo--diag img { aspect-ratio: 4/3; }
.photo--tri::after, .photo--diag::after { display: none; }
.photo + .photo { margin-top: 24px; }
.photo-caption {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-top: 12px;
}
#project .photo img { aspect-ratio: 16/10; }
@media (min-width: 901px) {
  #about .photo--outline {
    width: 70%;
    margin-left: auto;
    margin-top: -60px;
    position: relative;
    z-index: 1;
  }
}

/* 11. Parallax */
[data-parallax] {
  will-change: transform;
  transition: none;
}

/* 12. List Grid */
.list-grid li {
  font-size: .95rem;
  padding: 24px 28px;
  position: relative;
  padding-left: 56px;
}
.list-grid li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute;
  left: 24px;
  top: 24px;
  font-family: var(--font-heading);
  font-size: .7rem;
  color: #6b6b6b;
}
.list-grid {
  counter-reset: item;
  margin: 40px 0 24px;
}
.list-grid li:hover {
  background: #f0f0ee;
}
.list-grid li:hover::before {
  color: #111;
}
.list-grid { background: #111; }
@media (min-width: 901px) {
  .list-grid li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* 13. Quality Grid */
.quality-grid .q-item {
  padding: 32px;
}
.quality-grid .q-item h3 {
  font-size: 1rem;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.quality-grid .q-item p {
  font-size: .92rem;
  color: #444;
}
.quality-grid .q-item:hover {
  background: #fff;
  transform: none;
  box-shadow: inset 0 -2px 0 #111;
}
.quality-grid { margin: 40px 0; }

/* 14. Budgeting Process */
.framed .process {
  flex-direction: column;
  gap: 0;
}
.framed .process-step {
  flex: none;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.framed .process-step:last-child { border-bottom: none; }
.framed .process-step span {
  font-size: 1.25rem;
  margin: 0;
  color: #6b6b6b;
}

/* 15. Construction Process */
#construction .process {
  gap: 0;
  border: 1px solid #111;
}
#construction .process-step {
  flex: 1 1 200px;
  border: 0;
  border-right: 1px solid #111;
  padding: 32px;
  transition: background .4s;
}
#construction .process-step:last-child { border-right: none; }
#construction .process-step:hover {
  background: #111;
  color: #fff;
}
#construction .process-step span { font-size: 1.5rem; }
@media (max-width: 600px) {
  #construction .process-step {
    flex-basis: 100%;
    border-right: none;
    border-bottom: 1px solid #111;
  }
}

/* 16. Stats */
@media (min-width: 901px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  border-top: 1px solid currentColor;
  padding-top: 20px;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  white-space: nowrap;
}
.stat-label {
  display: block;
  margin-top: 10px;
}
#project .stats {
  grid-template-columns: 1fr 1fr;
}
#project .stats .stat:last-child {
  grid-column: span 2;
}

/* 17. Timeline */
.timeline ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  counter-reset: step;
  position: relative;
  margin-top: 56px;
  border-top: 1px solid #111;
}
.timeline ol li {
  padding-top: 28px;
  position: relative;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding-right: 12px;
}
.timeline ol li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: #111;
}
.timeline ol li::after {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--font-heading);
  font-size: .7rem;
  color: #6b6b6b;
  position: absolute;
  top: -32px;
  left: 0;
}
.timeline::before { display: none; }
@media (max-width: 900px) {
  .timeline ol {
    display: grid;
    grid-template-columns: 1fr;
    border-top: none;
    border-left: 1px solid #111;
    padding-left: 28px;
  }
  .timeline ol li {
    padding-top: 0;
    padding-bottom: 24px;
  }
  .timeline ol li::before {
    left: -33px;
    top: 4px;
  }
  .timeline ol li::after { display: none; }
}

/* 18. Confidentiality */
#confidentiality .framed {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px;
  text-align: left;
}
#confidentiality .section-title {
  margin-inline: auto;
  text-align: center;
  max-width: 22ch;
}

/* 19. Quote */
.quote {
  padding: 64px 0 0;
}
.quote blockquote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.3;
  padding: 48px 0;
  border-color: rgba(255,255,255,.35);
}
.quote cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: .7rem;
  letter-spacing: .35em;
  opacity: .7;
}

/* 20. Contact */
.contact-section { margin-top: 72px; }
.contact-list dl {
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  border-top: 1px solid rgba(255,255,255,.25);
  margin: 24px 0 40px;
}
.contact-list dl dt {
  padding-top: 24px;
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  letter-spacing: .3em;
}
.contact-list dl dd {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 8px 0 0;
}
.contact-list dl dd a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.contact-list dl dd a:hover { border-color: #fff; }
@media (max-width: 900px) {
  .contact-list dl {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
}
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 21. Buttons */
.btn {
  z-index: 0;
  isolation: isolate;
}
.btn--light {
  color: #fff;
}

/* 22. Footer */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-wrap {
  gap: 24px;
  flex-wrap: wrap;
}
.footer-wrap p {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
.footer-note {
  font-size: .7rem;
  letter-spacing: .08em;
}
.footer-wrap a {
  color: #fff;
  text-decoration: none;
  font-size: .7rem;
  letter-spacing: .3em;
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.footer-wrap .brand {
  opacity: 1;
  color: #fff;
  font-size: .8rem;
}

/* 23. Focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* 24. Overflow */
html, body { overflow-x: clip; }
img { max-width: 100%; }

/* 25. Transitions */
.section + .section { border-top: 1px solid #e6e6e6; }
.section--dark + .section, .section--alt + .section { border-top: none; }
.reveal {
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i,0) * 90ms);
}

/* Review polish (small manual fixes) */
.brand, .section-index { white-space: nowrap; }
.section-title { max-width: 22ch; }
.site-header { padding: 1.1rem 0; }
.site-header.scrolled { padding: .75rem 0; }
.footer-wrap a[href="#top"] { text-transform: uppercase; }
@media (max-width: 900px) {
  .nav-wrap { padding: 0 24px; }
  .hero { height: auto; min-height: 100svh; padding: 96px 0 120px; }
}
@media (max-width: 600px) {
  .brand { font-size: .8rem; letter-spacing: .22em; }
  .section-head { gap: 16px; }
  .section-label { letter-spacing: .25em; }
}

/* v2: logo, project image slots, contact anchor */
.brand-logo { display: block; height: 34px; width: auto; }
.site-header.scrolled .brand-logo { height: 30px; }
.footer-logo { display: block; height: 30px; width: auto; }
.hero-title--logo { margin-bottom: 2rem; line-height: 0; }
.hero-title--logo img { display: block; width: clamp(220px, 34vw, 440px); height: auto; }
.contact-logo { display: block; width: clamp(200px, 26vw, 300px); height: auto; margin: 0 0 48px; }
#contact-details { scroll-margin-top: 96px; padding-top: 8px; }
.project-gallery { display: grid; gap: 24px; }
.project-gallery .photo + .photo { margin-top: 0; }
.project-gallery .photo:not(.photo--outline) { width: 62%; margin-left: auto; }
.project-strip { margin-top: 72px; }
.project-strip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid #111; }
.project-strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project-strip .photo img { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .project-gallery .photo:not(.photo--outline) { width: 100%; }
}
@media (max-width: 600px) {
  .brand-logo { height: 28px; }
  .project-strip__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-title--logo img { width: min(78vw, 320px); }
}
.project-strip__grid .photo { margin: 0 !important; transform: none; }
