:root {
  --ink: #131613;
  --ink-soft: #303730;
  --paper: #f7f5ef;
  --paper-deep: #ece9df;
  --sage: #c7ddc6;
  --sage-mid: #9fbe9f;
  --sage-deep: #789778;
  --gold: #e4b84f;
  --white: #fff;
  --line: rgba(19, 22, 19, 0.18);
  --shadow: 0 18px 50px rgba(21, 35, 23, 0.12);
  --radius-sm: 0.8rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shell: min(1280px, calc(100% - 3rem));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

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

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 1rem;
  color: #526552;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-light { color: #d6e6d5; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(3rem, 5.8vw, 5.7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h3 { line-height: 1.2; }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 22, 19, 0.18); }
.button-small { min-height: 2.65rem; padding: 0.7rem 1rem; font-size: 0.88rem; }
.button-dark { border-color: var(--ink); }
.button-light { border-color: var(--white); background: var(--white); color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
  text-decoration-color: var(--sage-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -2px); }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(19, 22, 19, 0.94);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.nav { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: 0.9rem; color: inherit; text-decoration: none; }
.brand-name { font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.brand-name strong { font-weight: 850; }

.brand-logo-placeholder {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px dashed rgba(255,255,255,0.58);
  border-radius: 0.42rem;
  background: rgba(255,255,255,0.04);
  color: #e3e7e1;
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 2.75rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-panel { display: flex; align-items: center; gap: 2rem; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-instagram {
  display: none;
}

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; color: #e7e9e5; font-size: 0.92rem; font-weight: 650; text-decoration: none; }
.nav-links a::after { position: absolute; right: 0; bottom: -0.45rem; left: 0; height: 2px; background: var(--sage); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 3rem; height: 3rem; padding: 0.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }

/* Hero */
.hero { background: var(--sage); }
.hero-layout {
  display: grid;
  min-height: calc(100vh - 4.75rem);
  grid-template-columns: minmax(430px, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 5.5rem);
  padding-block: clamp(4rem, 8vw, 7.5rem);
}

.hero-copy { grid-column: 2; grid-row: 1; }
.hero-copy h1 { max-width: 13ch; margin-bottom: 1.8rem; }
.hero-copy h1 em { color: #405d42; font-weight: 400; }
.hero-lede {
  max-width: 38rem;
  margin-bottom: 2.2rem;
  color: #354536;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  font-weight: 520;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button-instagram {
  border-color: rgba(19, 22, 19, 0.38);
  background: rgba(255,255,255,0.38);
  color: var(--ink);
}

.button-instagram:hover {
  background: var(--white);
}

.social-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-estimate-link {
  margin-left: 0.15rem;
}

.identity-card {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  overflow: hidden;
  min-height: 31rem;
  grid-template-rows: auto 1fr auto auto;
  gap: 1.15rem;
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  border: 1px solid rgba(19,22,19,0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: none;
}

.identity-card::before {
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  width: 15rem;
  height: 15rem;
  border: 1.1rem solid var(--sage);
  content: "";
  opacity: 0.58;
  transform: rotate(23deg);
}

.identity-note {
  position: relative;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.identity-main {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(10rem, 0.65fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.identity-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #495349;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 750;
  line-height: 1.6;
}

.identity-main li::before {
  margin-right: 0.55rem;
  color: var(--sage-deep);
  content: "•";
}

.logo-placeholder {
  position: relative;
  display: grid;
  width: min(100%, 20rem);
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
  align-content: center;
  justify-self: center;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 2px dashed rgba(19,22,19,0.28);
  border-radius: 1.35rem;
  background: #f6f5ef;
  color: #4f584f;
  text-align: center;
}

.logo-placeholder span {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  letter-spacing: 0.03em;
}

.logo-placeholder small {
  color: #747c74;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-logo {
  position: relative;
  display: block;
  width: min(100%, 20rem);
  aspect-ratio: 1 / 1;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
}

.identity-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(19,22,19,0.12);
  color: #4e5b4f;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.identity-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #626a62;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-tiles { display: flex; gap: 0.25rem; }
.mini-tiles i { width: 0.85rem; height: 0.85rem; border: 1px solid var(--ink); }
.mini-tiles i:nth-child(2) { background: var(--sage); }
.mini-tiles i:nth-child(3) { background: var(--ink); }

/* Featured work */
.work-section { padding-block: clamp(5rem, 9vw, 8.5rem); background: var(--sage-mid); }
.section-heading { margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }

.carousel-shell { position: relative; }
.project-strip { display: grid; grid-auto-columns: minmax(280px, calc((100% - 2rem) / 3)); grid-auto-flow: column; gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; padding: 0.2rem 0.1rem 1rem; scroll-behavior: smooth; scroll-padding-inline: 0.1rem; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; }
.project-strip::-webkit-scrollbar { display: none; }
.work-image { position: relative; overflow: hidden; aspect-ratio: 5 / 4; min-height: 0; padding: 0; border: 0; border-radius: var(--radius); background: var(--ink-soft); cursor: zoom-in; scroll-snap-align: start; }
.work-image-wide { grid-column: span 1; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.work-image::after { position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(10,12,10,0.78)); content: ""; }
.work-image span { position: absolute; right: 1.25rem; bottom: 1.1rem; left: 1.25rem; z-index: 1; color: var(--white); font-family: var(--serif); font-size: 1.3rem; text-align: left; }
.work-image:hover img { transform: scale(1.035); }

.carousel-arrow { position: absolute; top: 50%; z-index: 4; display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); box-shadow: 0 9px 25px rgba(19,22,19,0.18); cursor: pointer; transform: translateY(-50%); transition: transform 180ms ease, opacity 180ms ease; }
.carousel-arrow:hover { transform: translateY(-50%) scale(1.06); }
.carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.carousel-prev { left: -1.5rem; }
.carousel-next { right: -1.5rem; }

.carousel-hint { display: none; }
.work-links { display: flex; align-items: flex-start; flex-direction: column; gap: 0.9rem; margin-top: 1.6rem; }
.work-links p { max-width: 34rem; margin: 0; color: #243425; font-size: 1.05rem; font-weight: 650; }
.work-links > div { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip-link { display: inline-flex; min-height: 2.8rem; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border: 1px solid rgba(19,22,19,0.24); border-radius: 999px; background: rgba(255,255,255,0.26); font-size: 0.9rem; font-weight: 750; text-decoration: none; transition: background 180ms ease; }
.chip-link:hover { background: rgba(255,255,255,0.66); }
.work-links .chip-link {
  border-color: rgba(19,22,19,0.30);
  background: rgba(255,255,255,0.44);
}

.work-links .chip-link:hover {
  background: rgba(255,255,255,0.72);
}

.work-links .chip-link-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.work-links .chip-link-primary:hover {
  background: #282d28;
}

/* Preserved triangle transitions */
.section-transition { position: relative; z-index: 3; height: 0; }
.section-transition::after { position: absolute; top: -1px; left: 50%; width: clamp(5.5rem, 10vw, 9rem); height: clamp(3.25rem, 6vw, 5rem); clip-path: polygon(0 0, 100% 0, 50% 100%); content: ""; transform: translateX(-50%); }
.hero-transition::after { background: var(--sage); }
.work-transition::after { background: var(--sage-mid); }
.about-transition::after { background: #88a889; }

/* About and services */
.about-section { padding: clamp(7rem, 12vw, 11rem) 0 clamp(5rem, 9vw, 8rem); background: #88a889; color: #102012; }
.about-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(3rem, 8vw, 8rem); }
.about-copy h2 { max-width: 8ch; margin-bottom: 2rem; }
.about-copy .eyebrow-light { color: #273d29; }
.about-copy > p:last-child { max-width: 42rem; color: #213423; font-size: 1.12rem; font-weight: 540; }

.craft-card {
  align-self: start;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 1.3rem;
  padding: 2rem;
  border: 1px solid rgba(19,22,19,0.18);
  border-radius: var(--radius);
  background: rgba(247,245,239,0.44);
  box-shadow: 0 18px 45px rgba(43,67,44,0.12);
}
.craft-number { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 1px solid #506b52; border-radius: 50%; color: #203622; font-size: 0.72rem; font-weight: 800; }
.craft-card h3 { margin: 0 0 0.45rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.craft-card p { margin: 0; color: #2a3d2c; font-weight: 520; }

.services-section {
  padding: clamp(5rem, 9vw, 8.5rem) 0 clamp(3rem, 4.5vw, 4rem);
  background: var(--sage-deep);
  color: var(--white);
}
.rule-heading { display: flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem; }
.rule-heading h2 { max-width: 16ch; margin: 0; font-size: clamp(2rem, 4vw, 4rem); }
.rule-heading > span { height: 1px; flex: 1; background: rgba(255,255,255,0.62); }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service-card { overflow: hidden; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 18px 35px rgba(36,56,36,0.15); }
.service-card button { display: block; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #d9ddd6; cursor: zoom-in; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.service-card button:hover img { transform: scale(1.035); }
.service-card > div { display: grid; min-height: 8.2rem; grid-template-columns: auto 1fr; column-gap: 0.8rem; padding: 1.15rem; }
.service-card span { grid-row: 1 / span 2; color: #6f786f; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.08em; }
.service-card h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.service-card p { grid-column: 2; margin: 0; color: #5c655c; font-size: 0.93rem; line-height: 1.5; }
.rule-heading-end { margin: 2.5rem 0 0; }
.rule-heading-end p { margin: 0; font-family: var(--serif); font-size: 2.4rem; font-style: italic; }

/* Contact */
.contact-notch { position: relative; z-index: 2; height: 0; }
.contact-notch::after {
  position: absolute;
  top: -2px;
  left: 50%;
  width: clamp(5rem, 10vw, 9rem);
  height: clamp(3rem, 6vw, 5rem);
  background: var(--sage-deep);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  transform: translateX(-50%);
}
.contact-section { padding: clamp(7rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem); background: #667f67; color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(3rem, 8vw, 7rem); }
.contact-copy h2 { max-width: 8ch; margin-bottom: 1.6rem; }
.contact-copy > p:not(.eyebrow) { max-width: 34rem; color: #e4ebe3; }
.instagram-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; max-width: 27rem; margin-top: 2.2rem; padding: 1rem; border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius); text-decoration: none; transition: background 180ms ease; }
.instagram-link:hover { background: rgba(255,255,255,0.08); }
.instagram-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 0.85rem; background: var(--paper); color: var(--ink); font-size: 1.6rem; }
.instagram-link small { display: block; color: #dbe6da; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.contact-form { padding: clamp(1.4rem, 3vw, 2.3rem); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: 0 24px 55px rgba(30,48,31,0.23); }
.contact-form label, .contact-form legend { font-size: 0.86rem; font-weight: 800; }
.contact-form label > span { color: #6b736a; font-size: 0.76rem; font-weight: 600; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; margin-top: 0.45rem; padding: 0.85rem 0.9rem; border: 1px solid #c7cbc3; border-radius: 0.7rem; background: var(--white); color: var(--ink); }
.contact-form input:not([type="checkbox"]):focus, .contact-form textarea:focus { border-color: #526e53; outline: 3px solid rgba(120,151,120,0.2); }
.contact-form textarea { min-height: 9rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form > label, .contact-form fieldset { display: block; margin: 0 0 1.15rem; }
.contact-form fieldset { padding: 0; border: 0; }
.contact-form legend { margin-bottom: 0.65rem; }
.service-options { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.service-options label { position: relative; cursor: pointer; }
.service-options input { position: absolute; opacity: 0; pointer-events: none; }
.service-options span { display: block; min-height: 2.55rem; padding: 0.62rem 0.9rem; border: 1px solid #c5cac1; border-radius: 999px; background: var(--white); color: #3e463e; font-size: 0.84rem; }
.service-options input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.service-options input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.form-footer { display: flex; align-items: center; gap: 1rem; }
.form-status { margin: 0; color: #6e3e34; font-size: 0.82rem; font-weight: 700; }

/* Footer */
.site-footer { padding: 4rem 0 1.8rem; background: #0e100e; color: var(--white); }
.footer-main { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: start; gap: 3rem; }
.brand-footer .brand-logo-placeholder {
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.03);
}
.footer-main > p { max-width: 28rem; margin: 0; color: #aeb5ac; }
.footer-main nav { display: grid; justify-content: end; gap: 0.4rem; }
.footer-main nav a { color: #d7dbd5; text-decoration: none; }
.footer-main nav a:hover { color: var(--sage); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.12); color: #8f978d; font-size: 0.75rem; }

/* Lightbox */
.lightbox { overflow: visible; width: min(1100px, calc(100% - 2rem)); max-width: none; height: min(84vh, 820px); padding: 0; border: 0; background: transparent; color: var(--white); }
.lightbox::backdrop { background: rgba(7,9,7,0.91); backdrop-filter: blur(7px); }
.lightbox figure { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; margin: 0; }
.lightbox-image-wrap { position: relative; display: flex; max-width: 100%; max-height: calc(100% - 3rem); align-items: center; justify-content: center; }
.lightbox figure img { max-width: 100%; max-height: 100%; border-radius: 0.65rem; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.42); }
.lightbox-watermark { position: absolute; right: 0.75rem; bottom: 0.7rem; padding: 0.35rem 0.55rem; border-radius: 999px; background: rgba(10,12,10,0.46); color: rgba(255,255,255,0.88); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1; text-transform: lowercase; backdrop-filter: blur(5px); pointer-events: none; }
.lightbox figcaption { margin-top: 0.8rem; color: #e9ebe7; font-size: 0.9rem; }
.lightbox-close, .lightbox-nav { position: fixed; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; background: rgba(15,17,15,0.72); color: var(--white); cursor: pointer; }
.lightbox-close { top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); width: 3rem; height: 3rem; padding: 0; font-size: 0; }
.lightbox-close::before, .lightbox-close::after { position: absolute; top: 50%; left: 50%; width: 1.25rem; height: 2px; border-radius: 2px; background: currentColor; content: ""; transform-origin: center; }
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-nav { top: 50%; width: 3.2rem; height: 3.2rem; transform: translateY(-50%); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Projects page */
.projects-page { background: var(--paper); }
.projects-hero {
  padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.projects-hero h1 { margin-bottom: 1.5rem; }
.projects-hero > p:last-child { max-width: 45rem; margin: 0; color: #596159; font-size: 1.1rem; }
.projects-hero code { padding: 0.12rem 0.35rem; border-radius: 0.35rem; background: var(--paper-deep); font-size: 0.9em; }

.project-list { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(5rem, 10vw, 9rem); }
.project-entry { display: grid; grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr); grid-template-rows: auto auto; column-gap: clamp(2rem, 6vw, 6rem); row-gap: 1.1rem; padding: clamp(1rem, 2.2vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.52); box-shadow: 0 14px 38px rgba(33,49,34,0.07); }

.project-cover { position: relative; grid-column: 1; grid-row: 1; overflow: hidden; width: 100%; aspect-ratio: 5 / 4; padding: 0; border: 0; border-radius: var(--radius); background: #dce2da; box-shadow: var(--shadow); cursor: pointer; text-align: left; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.project-cover:hover img { transform: scale(1.025); }
.project-cover-label { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0.85rem; border-radius: 999px; background: rgba(19,22,19,0.88); color: var(--white); font-size: 0.78rem; font-weight: 750; backdrop-filter: blur(8px); }
.project-cover-label::after { content: "+"; font-size: 1.05rem; }
.project-cover[aria-expanded="true"] .project-cover-label::after { content: "−"; }
.project-media-mark { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; padding: 0.36rem 0.55rem; border: 1px solid rgba(255,255,255,0.20); border-radius: 999px; background: rgba(15,17,15,0.48); color: rgba(255,255,255,0.90); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; line-height: 1; text-transform: lowercase; backdrop-filter: blur(5px); pointer-events: none; }

.project-details { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.project-meta { margin-bottom: 1rem; color: #647064; font-size: 0.74rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.project-details h2 { margin-bottom: 1.25rem; font-size: clamp(2.1rem, 4.4vw, 4rem); }
.project-details > p { max-width: 36rem; color: #525b52; }
.project-note { display: flex; gap: 0.6rem; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: #737a72 !important; font-size: 0.84rem; }
.project-note::before { content: "Note"; color: var(--ink); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }

.project-gallery {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  overflow: clip;
  max-height: 0;
  visibility: hidden;
  opacity: 0;
  transition: max-height 420ms ease, opacity 260ms ease, visibility 0s linear 420ms;
}

.project-gallery.is-open {
  max-height: 180rem;
  visibility: visible;
  opacity: 1;
  transition: max-height 420ms ease, opacity 260ms ease, visibility 0s;
}

.project-gallery button {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  background: #dde2da;
  cursor: zoom-in;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.project-gallery button:hover img { transform: scale(1.04); }

.projects-cta { padding: 4.5rem 0; background: var(--sage-deep); color: var(--white); }
.projects-cta .shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.projects-cta h2 { max-width: 12ch; margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); }

.reveal { animation: settle-in 700ms both; }
.identity-card.reveal { animation-delay: 100ms; }
@keyframes settle-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }


/* Final content refinements */
.identity-card {
  grid-template-rows: 1fr auto auto auto;
}

.identity-service-area {
  position: relative;
  margin: 0;
  padding-top: 0.25rem;
  color: #4e5b4f;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-style: italic;
  text-align: center;
}

.heading-inline-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(19, 22, 19, 0.55);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
  transition: text-decoration-color 180ms ease;
}

.heading-inline-link:hover {
  text-decoration-color: currentColor;
}

.work-note {
  max-width: 46rem !important;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,255,255,0.28);
}

.work-note strong {
  font-weight: 800;
}

.craft-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  padding: 1rem;
}

.craft-photo {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: calc(var(--radius) - 0.3rem);
  background: rgba(247,245,239,0.35);
}

.craft-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-point {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  padding: 0.2rem 0.35rem;
}

.craft-point + .craft-point {
  padding-top: 1rem;
  border-top: 1px solid rgba(19,22,19,0.14);
}

.craft-point h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.craft-point p {
  margin: 0;
  color: #2a3d2c;
  font-weight: 520;
}

@media (max-width: 540px) {
  .identity-service-area {
    padding-top: 0;
    font-size: 1rem;
  }

  .work-note {
    padding: 0.85rem 0.95rem;
    font-size: 0.98rem !important;
  }

  .craft-card {
    padding: 0.8rem;
  }

  .craft-photo {
    aspect-ratio: 4 / 3;
  }

  .craft-point {
    gap: 0.8rem;
    padding-inline: 0.15rem;
  }
}

@media (min-width: 1350px) {
  .hero-layout {
    width: min(1540px, calc(100% - 4rem));
    grid-template-columns: minmax(610px, 1fr) minmax(0, 0.95fr);
    gap: clamp(4rem, 5vw, 6rem);
  }

  .identity-card {
    width: min(100%, 680px);
    aspect-ratio: 1 / 1;
    min-height: 0;
    justify-self: start;
  }
}

@media (min-width: 1200px) {
  .nav.shell {
    width: calc(100% - 3rem);
    max-width: none;
  }

  .work-section > .shell,
  .services-section > .shell {
    width: min(1600px, calc(100% - 4rem));
  }

  .work-image {
    aspect-ratio: 1 / 1;
  }

  .service-card button {
    aspect-ratio: 1 / 1;
  }

  .service-card > div {
    min-height: 7.25rem;
  }
}

@media (max-width: 980px) {
  .hero-layout { min-height: auto; grid-template-columns: 1fr; }
  .identity-card { grid-column: 1; grid-row: 1; width: min(100%, 46rem); min-height: 26rem; justify-self: start; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .project-strip { grid-auto-columns: minmax(270px, 46%); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-copy h2, .contact-copy h2 { max-width: 12ch; }
  .craft-card { max-width: 42rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  :root { --shell: min(1180px, calc(100% - 1.5rem)); }
  html { scroll-padding-top: 5rem; }
  .nav { min-height: 4.25rem; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-panel { position: absolute; top: 100%; right: 0; left: 0; display: flex; visibility: hidden; width: 100%; height: calc(100dvh - 4.25rem); flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem; overflow-y: auto; padding: 2rem max(1.25rem, calc((100vw - var(--shell)) / 2)) max(1.5rem, env(safe-area-inset-bottom)); background: #131613; color: #fff; opacity: 0; transform: translateX(1.5rem); transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
  .nav-panel.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: flex; min-height: 3.5rem; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
  .nav-links a::after { display: none; }
  .nav-panel .button {
    width: 100%;
    min-height: 3.2rem;
    border-color: var(--sage);
    background: var(--sage);
    color: var(--ink);
  }

  .nav-actions {
    display: grid;
    width: 100%;
    gap: 0.7rem;
  }

  .nav-instagram {
    display: flex;
    gap: 0.6rem;
    border-color: rgba(255,255,255,0.34) !important;
    background: transparent !important;
    color: var(--white) !important;
  }

  .nav-instagram:hover {
    border-color: var(--sage) !important;
    background: rgba(255,255,255,0.08) !important;
  }

  .nav-instagram .social-icon {
    width: 1.15rem;
    height: 1.15rem;
  }
  .hero-layout { gap: 2.5rem; padding-block: 2.25rem 4.5rem; }
  .hero-copy h1 { font-size: clamp(2.75rem, 11.5vw, 4.4rem); line-height: 1.04; }
  .identity-card {
    min-height: 27rem;
    padding: 1.4rem;
    border-radius: 1.35rem;
    transform: none;
  }
  .identity-main {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1rem;
  }
  .identity-main ul { font-size: 1rem; }
  .logo-placeholder { min-height: 14rem; padding: 1rem; }
  .identity-meta { font-size: 0.7rem; }
  .identity-footer { font-size: 0.76rem; }
  .split-heading { align-items: start; flex-direction: column; gap: 0.8rem; }
  .carousel-hint { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.75rem; padding: 0.45rem 0.7rem; border-radius: 999px; background: rgba(255,255,255,0.42); color: #263627; font-size: 0.82rem; font-weight: 750; }
  .project-strip { grid-auto-columns: 86%; gap: 0.75rem; }
  .work-image { aspect-ratio: 4 / 3; }
  .carousel-arrow { top: calc(50% + 1.25rem); width: 3rem; height: 3rem; transform: translateY(-50%); }
  .carousel-arrow:hover { transform: translateY(-50%); }
  .carousel-prev { left: 0.55rem; }
  .carousel-next { right: 0.55rem; left: auto; }
  .work-links { margin-top: 1rem; }
  .rule-heading { align-items: flex-start; }
  .rule-heading h2 { max-width: 13ch; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .project-entry { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 0.8rem; }
  .project-cover { grid-column: 1; grid-row: 1; }
  .project-gallery {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .project-details { grid-column: 1; grid-row: 3; padding: 0.75rem 0.45rem 0.55rem; }
  .projects-cta .shell { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  h2 { font-size: clamp(2.3rem, 12vw, 3.5rem); }
  .hero-actions {
    align-items: stretch;
  }

  .hero-action-row {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
  }

  .hero-action-row .button {
    width: 100%;
    min-width: 0;
    padding-inline: 0.8rem;
    font-size: 0.82rem;
  }

  .hero-estimate-link {
    align-self: flex-start;
    margin-left: 0.1rem;
  }
  .identity-card { min-height: 0; }
  .identity-card::before { width: 10rem; height: 10rem; }
  .identity-main { grid-template-columns: 1fr; gap: 1.25rem; }
  .logo-placeholder { min-height: 10rem; }
  .identity-main ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    font-size: 0.95rem;
  }
  .identity-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 1fr 1fr; }
  .service-card button { height: 100%; aspect-ratio: 1; }
  .service-card > div { min-height: 10rem; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.15rem; border-radius: 1.25rem; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .project-cover { aspect-ratio: 4 / 3; }
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > p { grid-column: auto; grid-row: auto; }
  .footer-main nav { justify-content: start; }
  .footer-bottom { flex-direction: column; }
  .lightbox-nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox-prev { left: calc(50% - 3.7rem); }
  .lightbox-next { right: calc(50% - 3.7rem); }
  .lightbox-image-wrap { max-height: calc(100% - 6rem); }
  .lightbox figure img { max-height: 100%; }
  .lightbox-watermark { right: 0.55rem; bottom: 0.5rem; font-size: 0.62rem; }
  .project-media-mark { top: 0.55rem; left: 0.55rem; font-size: 0.61rem; }
  .rule-heading-end { align-items: center; }
}

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

/* =========================================================
   Interaction / horizontal overflow cleanup
   ========================================================= */

/*
 * Prevent the overall document from drifting horizontally.
 * Individual horizontal carousels can still scroll normally.
 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

/* Use clip where supported so hidden horizontal overflow
   cannot become a scrollable page area. */
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}


/*
 * Keep keyboard accessibility, but don't use the bright
 * gold focus ring around project/gallery imagery.
 */
.project-cover:focus-visible,
.project-gallery button:focus-visible,
.work-image:focus-visible,
.service-card button:focus-visible {
  outline: 2px solid rgba(19, 22, 19, 0.48);
  outline-offset: 3px;
}


/*
 * Lightbox controls sit on a dark backdrop, so use a subtle
 * white focus indicator instead of yellow.
 */
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}


/*
 * Previously the closed mobile menu was shifted to the right,
 * which could contribute to horizontal page overflow.
 *
 * Animate it vertically instead.
 */
@media (max-width: 760px) {
  .nav-panel {
    transform: translateY(-0.4rem);
  }

  .nav-panel.is-open {
    transform: none;
  }
}

/* =========================================================
   Interaction / mobile / lightbox refinement
   ========================================================= */


/* ---------------------------------------------------------
   Page-wide horizontal containment
   --------------------------------------------------------- */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}


/* ---------------------------------------------------------
   Full page lock

   JS preserves the user's exact vertical position with
   body.style.top while either the menu or lightbox is open.
   --------------------------------------------------------- */

body.page-locked {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}


/* ---------------------------------------------------------
   Focus treatment

   Keep visible keyboard focus for accessibility, but replace
   the bright yellow/gold border with quieter indicators.
   --------------------------------------------------------- */

:focus-visible {
  outline: 2px solid rgba(19, 22, 19, 0.56);
  outline-offset: 3px;
}


/* Controls on dark backgrounds need a light indicator. */

.site-header :focus-visible,
.site-footer :focus-visible,
.services-section :focus-visible,
.contact-section :focus-visible,
.projects-cta :focus-visible,
.lightbox :focus-visible {
  outline-color: rgba(255, 255, 255, 0.82);
}


/*
 * The horizontal carousel itself has tabindex="0".
 * Give it a subtle inset focus treatment rather than
 * an outline around the whole section.
 */

.project-strip:focus-visible {
  outline: none;
  border-radius: var(--radius);
  box-shadow: none;
}


/* Image buttons stay subtle when keyboard focused. */

.project-cover:focus-visible,
.project-gallery button:focus-visible,
.work-image:focus-visible,
.service-card button:focus-visible {
  outline: 2px solid rgba(19, 22, 19, 0.42);
  outline-offset: 2px;
}


/* Lightbox controls */

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.76);
  outline-offset: 2px;
}


/* Contact option focus — no yellow ring. */

.service-options input:focus-visible + span {
  outline: 2px solid rgba(19, 22, 19, 0.44);
  outline-offset: 2px;
}


/* ---------------------------------------------------------
   Lightbox interaction
   --------------------------------------------------------- */

.lightbox {
  overscroll-behavior: contain;

  /*
   * Let the browser keep pinch zoom / vertical intent,
   * while horizontal movement can be treated as image swipe.
   */
  touch-action: pan-y pinch-zoom;
}


/*
 * Avoid native browser image dragging / selection while
 * swiping through photos.
 */

.lightbox img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}


/*
 * The background should never receive input while the
 * lightbox is open.
 */

body.lightbox-open main,
body.lightbox-open .site-footer,
body.lightbox-open .site-header {
  pointer-events: none;
}


/*
 * The dialog itself stays interactive.
 */

body.lightbox-open .lightbox {
  pointer-events: auto;
}


/* ---------------------------------------------------------
   Mobile navigation
   --------------------------------------------------------- */

@media (max-width: 760px) {

  /*
   * Keep the header itself attached to the viewport.
   */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }


  /*
   * When the menu is open, pin the header itself.
   * The body underneath is already locked by JS.
   */

  body.menu-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
  }


  /*
   * Make the menu a viewport layer instead of something
   * positioned relative to the normal document.
   */

  .nav-panel {
    position: fixed;

    top: 4.25rem;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: auto;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    transform: translateY(-0.35rem);
  }


  .nav-panel.is-open {
    transform: none;
  }


  /*
   * Nothing underneath the menu should react to taps,
   * drags or accidental gestures.
   */

  body.menu-open main,
  body.menu-open .site-footer {
    pointer-events: none;
  }


  /*
   * The menu itself remains interactive.
   */

  body.menu-open .site-header,
  body.menu-open .nav-panel {
    pointer-events: auto;
  }
}


/* ---------------------------------------------------------
   Smaller lightbox refinements
   --------------------------------------------------------- */

@media (max-width: 540px) {

  .lightbox {
    width: calc(100% - 1rem);
    height: calc(100dvh - 1rem);
  }

  .lightbox figure {
    padding:
      max(0.5rem, env(safe-area-inset-top))
      0.25rem
      max(4.75rem, env(safe-area-inset-bottom));
  }

  .lightbox-image-wrap {
    max-height: calc(100dvh - 8rem);
  }

  .lightbox figure > img {
    max-height: calc(100dvh - 8rem);
  }

  .lightbox-nav {
    bottom: max(
      1rem,
      env(safe-area-inset-bottom)
    );
  }
}