/* ============================================================
   Component styles
   ============================================================ */

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.971 0.010 86 / 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 23px; font-weight: 500;
  flex-shrink: 0;
}
.brand-img { height: 44px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0; background: var(--walnut); transition: width .28s cubic-bezier(.2,.7,.3,1); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-family: var(--mono); font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.nav-phone:hover { color: var(--walnut); }
.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.mobile-menu { display: none; }

@media (max-width: 940px) {
  .nav-links, .nav-right .btn, .nav-phone { display: none; }
  .burger { display: flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 78px 0 auto 0; z-index: 99;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .4s cubic-bezier(.2,.7,.3,1);
    padding: 16px var(--pad) 30px;
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { display: block; padding: 15px 0; font-size: 19px; font-family: var(--serif); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { width: 100%; justify-content: center; margin-top: 20px; }
}

/* ---------------- HERO ---------------- */
.hero { padding-top: 150px; padding-bottom: clamp(64px, 7vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin-top: 28px; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-figure { position: relative; margin-top: 12px; }
.hero-img { aspect-ratio: 4 / 5; height: auto; border-radius: var(--r-md); }
.hero-badge {
  position: absolute; left: -28px; bottom: 38px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 16px;
}
.hero-badge .num { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--walnut); }
.hero-badge .lbl { font-size: 13px; color: var(--ink-soft); line-height: 1.3; max-width: 14ch; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 40px); margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.stat .n { font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); font-weight: 300; line-height: 1; }
.stat .n span { font-size: 0.55em; color: var(--walnut); }
.stat .l { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; font-family: var(--mono); letter-spacing: 0.04em; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { order: -1; margin-top: 0; }
  .hero-img { aspect-ratio: 16/11; }
  .hero-badge { left: auto; right: 18px; }
}

/* ---------------- generic section head ---------------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head .h2 { max-width: 18ch; }
.sec-head p { max-width: 42ch; }

/* ---------------- SERVICES ---------------- */
.services { background: var(--paper-2); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc-card .ph { aspect-ratio: 3/2; border: none; border-bottom: 1px solid var(--line); }
.svc-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-num { font-family: var(--mono); font-size: 12px; color: var(--walnut); letter-spacing: 0.1em; }
.svc-card h3 { margin: 14px 0 12px; }
.svc-card p { font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.svc-list { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.svc-list li { list-style: none; font-size: 14px; color: var(--ink-soft); display: flex; gap: 11px; align-items: baseline; }
.svc-list li::before { content: ""; width: 6px; height: 6px; background: var(--forest); border-radius: 1px; flex-shrink: 0; transform: translateY(-1px); }

@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------------- MATERIALS ---------------- */
.mat-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.mat-tabs { display: flex; flex-direction: column; gap: 2px; }
.mat-tab {
  text-align: left; padding: 22px 22px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid transparent; transition: background .25s, border-color .25s;
  position: relative;
}
.mat-tab:hover { background: var(--paper-2); }
.mat-tab.active { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow-sm); }
.mat-tab .swatch { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--line-strong); }
.mat-tab .mt-name { font-family: var(--serif); font-size: 21px; flex: 1; }
.mat-tab .mt-idx { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.mat-tab.active .mt-idx { color: var(--walnut); }
.mat-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.mat-panel .ph { aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--line); }
.mat-panel-body { padding: 30px 32px 34px; }
.mat-panel-body h3 { margin-bottom: 12px; }
.mat-meta { display: flex; gap: 28px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mat-meta div .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.mat-meta div .v { font-size: 15px; margin-top: 4px; color: var(--ink); }

@media (max-width: 820px) { .mat-grid { grid-template-columns: 1fr; } }

/* ---------------- GALLERY ---------------- */
.gallery { background: var(--ink); color: var(--paper); }
.gallery .eyebrow { color: oklch(0.78 0.05 60); }
.gallery .eyebrow::before, .gallery .eyebrow.center::after { background: oklch(0.78 0.05 60); }
.gallery h2, .gallery .h2 { color: var(--paper); }
.gallery .sec-head p { color: oklch(0.82 0.012 84); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 100px; color: oklch(0.82 0.012 84);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18); transition: all .25s;
}
.filter:hover { box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.4); color: var(--paper); }
.filter.active { background: var(--paper); color: var(--ink); box-shadow: none; }
.grid-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 232px; grid-auto-flow: dense; gap: 18px; }
.gitem { position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; grid-column: span 4; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.gitem.wide { grid-column: span 8; }
.gitem.tall { grid-row: span 2; }
.gitem .ph { width: 100%; height: 100%; border: none; border-radius: 0; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.has-img::after { display: none; }
.gitem .ph.has-img img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.gitem:hover .ph.has-img img { transform: scale(1.045); }
.gitem-meta {
  position: absolute; inset: auto 0 0 0; padding: 22px;
  background: linear-gradient(to top, oklch(0.18 0.02 60 / 0.82), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.gitem:hover { transform: translateY(-4px); }
.gitem:hover .gitem-meta { opacity: 1; transform: none; }
.gitem-meta .t { font-family: var(--serif); font-size: 21px; color: var(--white); }
.gitem-meta .s { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.85 0.04 60); margin-top: 5px; }
.gitem-tag { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; background: oklch(0.18 0.02 60 / 0.6); backdrop-filter: blur(6px); color: var(--paper); border-radius: 3px; }

@media (max-width: 760px) {
  .grid-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gitem, .gitem.wide { grid-column: span 2; }
  .gitem.tall { grid-row: span 2; }
}

/* ---------------- PROCESS ---------------- */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.proc-step { padding: 34px 30px 34px 0; border-top: 2px solid var(--ink); position: relative; }
.proc-step .pn { font-family: var(--mono); font-size: 13px; color: var(--walnut); letter-spacing: 0.1em; }
.proc-step h3 { font-size: 24px; margin: 18px 0 12px; }
.proc-step p { font-size: 15px; color: var(--ink-soft); }
.proc-step .dot { position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
@media (max-width: 880px) { .proc-grid { grid-template-columns: 1fr 1fr; } .proc-step { padding-right: 20px; } }
@media (max-width: 520px) { .proc-grid { grid-template-columns: 1fr; } }

/* ---------------- ABOUT ---------------- */
.about { background: var(--forest-deep); color: var(--paper); overflow: hidden; }
.about .eyebrow { color: oklch(0.84 0.06 140); }
.about .eyebrow::before { background: oklch(0.84 0.06 140); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 80px); align-items: center; }
.about h2, .about .h2 { color: var(--paper); }
.about p { color: oklch(0.88 0.02 130); font-size: 17px; line-height: 1.7; }
.about p + p { margin-top: 20px; }
.about-sig { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--white); margin-top: 30px; }
.about-sig small { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: oklch(0.84 0.06 140); margin-top: 8px; }
.about-figure { position: relative; }
.about-figure .ph { aspect-ratio: 4/5; border-radius: var(--r-md); }
.about-figure .ph.dark { border-color: oklch(1 0 0 / 0.14); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------- TESTIMONIALS ---------------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.test-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px 30px; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: var(--walnut); margin-bottom: 20px; }
.test-card blockquote { font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--ink); flex: 1; }
.test-who { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.test-av { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--walnut); flex-shrink: 0; }
.test-who .n { font-weight: 600; font-size: 15px; display: block; }
.test-who .l { font-size: 13px; color: var(--ink-faint); font-family: var(--mono); display: block; margin-top: 2px; }
@media (max-width: 880px) { .test-grid { grid-template-columns: 1fr; } }

/* ---------------- QUOTE FORM ---------------- */
.quote { background: var(--paper-2); }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 5vw, 76px); }
.quote-aside h2 { margin: 22px 0 22px; }
.quote-aside .qrow { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.quote-aside .qrow:last-child { border-bottom: 1px solid var(--line); }
.qrow .qi { width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--walnut); }
.qrow .qk { font-weight: 600; font-size: 15px; display: block; }
.qrow .qv { font-size: 14px; color: var(--ink-soft); display: block; margin-top: 2px; }
.qrow a.qv:hover { color: var(--walnut); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-steps { display: flex; gap: 8px; margin-bottom: 30px; }
.fstep { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-3); overflow: hidden; }
.fstep i { display: block; height: 100%; width: 0; background: var(--forest); transition: width .5s cubic-bezier(.2,.7,.3,1); }
.fstep.done i, .fstep.active i { width: 100%; }
.fstep.active i { width: 50%; }
.form-steplabel { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.form-card h3 { margin-bottom: 26px; font-size: 27px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.field label .opt { font-weight: 400; color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px oklch(0.47 0.062 152 / 0.14); }
.field textarea { resize: vertical; min-height: 110px; }
.field.err input, .field.err textarea, .field.err select { border-color: oklch(0.55 0.13 28); box-shadow: 0 0 0 3px oklch(0.55 0.13 28 / 0.12); }
.field .msg { font-size: 12.5px; color: oklch(0.50 0.14 28); margin-top: 7px; font-family: var(--mono); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 11px 16px; border-radius: 100px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-strong); transition: all .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.sel { background: var(--ink); color: var(--paper); box-shadow: none; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 14px; }
.form-back { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }
.form-back:hover { color: var(--ink); }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--forest); color: var(--white); display: grid; place-items: center; margin: 0 auto 24px; }
.form-success h3 { margin-bottom: 14px; }
.form-success p { color: var(--ink-soft); max-width: 42ch; margin: 0 auto; }

@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--ink); color: oklch(0.82 0.012 84); padding-block: 70px 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid oklch(1 0 0 / 0.1); }
.footer .brand-name { color: var(--paper); }
.footer .brand-sub { color: oklch(0.7 0.02 84); }
.footer .brand-mark { background: var(--paper); color: var(--ink); }
.footer .brand-img { filter: brightness(0) invert(1); }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.72 0.04 60); margin-bottom: 18px; font-weight: 400; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: oklch(0.82 0.012 84); margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.footer-blurb { font-size: 14.5px; color: oklch(0.78 0.012 84); max-width: 34ch; margin-top: 18px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; gap: 18px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; font-family: var(--mono); color: oklch(0.66 0.02 84); letter-spacing: 0.03em; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
