:root {
  --bg: #0b0b0a;
  --bg-soft: #141412;
  --surface: #1d1d1a;
  --surface-2: #25251f;
  --text: #f6f2e8;
  --text-soft: #bbb4a5;
  --line: rgba(246, 242, 232, 0.13);
  --accent: #c69624;
  --accent-soft: #e3b747;
  --steel: #8c9598;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --container: 1180px;
  --display: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --body: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #0b0b0a 0%, #11110f 46%, #171713 100%);
  background-size: 72px 72px, 72px 72px, auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 8, 0.92);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid rgba(246, 242, 232, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo-wrap {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-wrap {
  width: 52px;
  height: 52px;
}

.site-header .brand-logo,
.site-footer .brand-logo {
  filter: invert(1) brightness(1.2);
}

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-copy span,
.footer-brand span {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-brand {
  justify-content: flex-start;
}

.nav-toggle {
  display: none;
  min-width: 48px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #10100e;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-menu a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-soft);
}

.cta-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.cta-link:hover,
.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #12110e;
  box-shadow: var(--shadow);
}

.button-secondary {
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(227, 183, 71, 0.54);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--accent);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.98) 0%, rgba(7, 7, 6, 0.86) 34%, rgba(7, 7, 6, 0.36) 70%),
    linear-gradient(0deg, rgba(7, 7, 6, 0.74), rgba(7, 7, 6, 0.06)),
    url("assets/carpenter-hero-portrait.png");
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid rgba(227, 183, 71, 0.25);
}

.hero::after,
.availability-band::before,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 14px,
    #11100d 14px 28px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4.4rem;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1,
.section-heading h2,
.page-hero h1,
.availability-band h2 {
  margin: 0.55rem 0 0.9rem;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: 5.2rem;
}

.hero-copy p,
.section-heading p,
.page-hero p,
.card p,
.service-card p,
.process-card p,
.about-highlight p,
.contact-panel p,
.footer-copy,
.stat p,
.small-note,
.form-note {
  color: var(--text-soft);
  line-height: 1.58;
}

.hero-copy > p {
  max-width: 610px;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 800px;
  margin-top: 2.2rem;
}

.stat {
  padding: 0.9rem 1rem;
  background: rgba(8, 8, 7, 0.72);
  border: 1px solid rgba(246, 242, 232, 0.13);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat p {
  margin: 0;
  font-size: 0.94rem;
}

.page-hero {
  position: relative;
  padding: 4rem 0 3.2rem;
  background:
    linear-gradient(90deg, rgba(13, 13, 12, 0.96), rgba(28, 28, 24, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.035) 44px 45px);
  border-bottom: 1px solid rgba(227, 183, 71, 0.22);
}

.page-hero-inner {
  max-width: 850px;
}

.page-hero h1 {
  font-size: 4rem;
}

.section {
  padding: 4.4rem 0;
}

.section.compact {
  padding-top: 3rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  font-size: 3.15rem;
}

.section-heading p {
  margin: 0;
  max-width: 58ch;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.process-card,
.contact-panel,
.about-highlight {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--surface);
  box-shadow: var(--shadow);
}

.service-card::before,
.process-card::before,
.about-highlight::before,
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.service-card-photo {
  overflow: hidden;
}

.service-photo {
  width: calc(100% + 2.5rem);
  max-width: none;
  aspect-ratio: 4 / 3;
  margin: -1.25rem -1.25rem 1rem;
  object-fit: cover;
  border-bottom: 1px solid rgba(227, 183, 71, 0.28);
  filter: saturate(0.92) contrast(1.04);
}

.card h3,
.service-card h3,
.process-card h3,
.contact-panel h3,
.about-highlight h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-tag {
  display: inline-flex;
  padding: 0.34rem 0.55rem;
  border: 1px solid rgba(227, 183, 71, 0.35);
  border-radius: 3px;
  background: rgba(198, 150, 36, 0.12);
  color: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature-panel {
  padding: 0 0 0 1.25rem;
  border-left: 4px solid var(--accent);
}

.feature-list {
  display: grid;
  gap: 0.75rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.feature-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #12110e;
  border-radius: 4px;
  font-family: var(--display);
  font-weight: 900;
}

.feature-item h3 {
  margin: 0 0 0.15rem;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.carpenter-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.25rem;
}

.carpenter-portrait {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  align-self: stretch;
  padding: 2.2rem 1.25rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 26%, rgba(227, 183, 71, 0.16), transparent 46%),
    var(--surface);
  box-shadow: var(--shadow);
}

.carpenter-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  filter: saturate(0.92) contrast(1.04);
}

.portrait-caption {
  padding: 0;
}

.portrait-caption strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portrait-caption span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.availability-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.1rem;
  overflow: hidden;
  border: 1px solid rgba(227, 183, 71, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(198, 150, 36, 0.18), rgba(255, 255, 255, 0.02)),
    #11110f;
}

.availability-band h2 {
  font-size: 2.55rem;
}

.availability-band .small-note {
  max-width: 66ch;
  margin: 0;
}

.gallery-carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
  touch-action: pan-y;
  cursor: grab;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-slide {
  margin: 0;
  flex: 0 0 70%;
  max-width: 780px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.38;
  transform: scale(0.92);
  transition: opacity 460ms ease, transform 460ms ease;
  cursor: pointer;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.carousel-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 7, 6, 0.62);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 200ms ease, color 200ms ease, opacity 200ms ease;
}

.carousel-arrow:hover {
  background: var(--accent);
  color: #161412;
}

.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.carousel-prev {
  left: 0.6rem;
}

.carousel-next {
  right: 0.6rem;
}

@media (max-width: 640px) {
  .carousel-slide {
    flex-basis: 82%;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background: rgba(5, 5, 4, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  margin: 0;
  max-width: min(1100px, 92vw);
}

.lightbox-content img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 1px solid rgba(227, 183, 71, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-content figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 242, 232, 0.2);
  border-radius: 4px;
  background: rgba(8, 8, 7, 0.8);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.contact-list,
.service-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.contact-list li,
.service-list li {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(246, 242, 232, 0.09);
  border-left: 4px solid rgba(227, 183, 71, 0.7);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.86rem 0.95rem;
  border: 1px solid rgba(246, 242, 232, 0.16);
  border-radius: 4px;
  background: rgba(7, 7, 6, 0.76);
  color: var(--text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note,
.small-note {
  font-size: 0.92rem;
}

/* Honeypot: kept in the DOM for bots, removed from view and the tab order. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note.is-error {
  color: #e7b347;
}

.form-note a {
  color: #e7b347;
}

.contact-form button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.site-footer {
  padding: 2rem 0 2.6rem;
  background: #080807;
  border-top: 1px solid rgba(227, 183, 71, 0.24);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.footer-links,
.footer-services {
  display: grid;
  gap: 0.62rem;
}

.footer-title {
  margin: 0 0 0.55rem;
  color: var(--accent-soft);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-copy {
  max-width: 34ch;
  margin-top: 0.8rem;
}

.footer-contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.footer-contact a {
  color: var(--accent-soft);
  font-weight: 700;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .carpenter-layout,
  .contact-layout,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .field-row,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .carpenter-portrait {
    width: min(100%, 360px);
    margin: 0 auto;
    align-self: center;
  }

  .hero {
    min-height: calc(86svh - 76px);
    background-position: center;
  }

  .hero-copy h1 {
    font-size: 3.55rem;
  }

  .page-hero h1,
  .section-heading h2 {
    font-size: 2.45rem;
  }

  .availability-band h2 {
    font-size: 2.15rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 9, 8, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu.open {
    display: flex;
  }

  .cta-link.desktop-only {
    display: none;
  }

  .availability-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 1.4rem), var(--container));
  }

  .hero-inner {
    padding: 4.4rem 0 3.8rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .page-hero {
    padding: 3rem 0 2.6rem;
  }

  .availability-band,
  .contact-panel,
  .card,
  .service-card,
  .process-card,
  .about-highlight {
    padding: 1rem;
  }

  .brand-copy span {
    display: none;
  }

  .brand-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .service-photo {
    width: calc(100% + 2rem);
    margin: -1rem -1rem 1rem;
  }
}
