/* True Level Construction Ltd. */
:root {
  --bg: #0f0d0b;
  --bg-2: #17130f;
  --paper: #f5f0e8;
  --paper-2: #ece5d9;
  --ivory: #f3ede3;
  --ink: #1c1814;
  --ink-soft: #5e554a;
  --muted: #a2988a;
  --gold: #c6a46c;
  --gold-deep: #9b7a45;
  --line-dark: rgba(243, 237, 227, 0.14);
  --line-light: rgba(28, 24, 20, 0.14);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  color-scheme: dark light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); text-wrap: balance; }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px;
  background: var(--gold); color: var(--bg); text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border: 1px solid transparent; border-radius: 0;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 0.7rem; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: var(--ivory); }
.btn--ghost { border-color: rgba(243, 237, 227, 0.4); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.round-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.round-btn:disabled { opacity: 0.3; cursor: default; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block for the fixed mobile menu and trap the menu inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(15, 13, 11, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity .5s var(--ease);
}
.site-header.is-solid { border-bottom-color: var(--line-dark); }
.site-header.is-solid::before { opacity: 1; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.brand__mark { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand__text strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.brand__text small { font-size: 0.6rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--muted); }

.site-nav__menu { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.site-nav__menu a:not(.btn) {
  position: relative; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: rgba(243, 237, 227, 0.82);
  white-space: nowrap; transition: color .3s;
}
.site-nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.site-nav__menu a:not(.btn):hover { color: var(--ivory); }
.site-nav__menu a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle {
    display: grid; gap: 7px; align-content: center; justify-items: end;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle__bar { width: 28px; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease), width .4s var(--ease); }
  .nav-toggle__bar:last-child { width: 18px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { width: 28px; transform: translateY(-4.25px) rotate(-45deg); }

  .site-header .brand { position: relative; z-index: 2; }
  .site-nav__menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: safe center; gap: 22px;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .site-nav__menu.is-open { opacity: 1; visibility: visible; }
  .site-nav__menu a:not(.btn) { font-family: var(--serif); font-size: 2rem; letter-spacing: 0.02em; text-transform: none; }
  .site-nav__cta { margin-top: 12px; }
  body.nav-open { overflow: hidden; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate; background: var(--bg);
}
.hero__mosaic {
  position: absolute; inset: -20% -10%; z-index: -2;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  transform: rotate(-8deg) scale(1.05);
}
.hero-col { overflow: hidden; }
.hero-col__track { display: flex; flex-direction: column; gap: 14px; animation: drift-up 90s linear infinite; }
.hero-col--2 .hero-col__track,
.hero-col--4 .hero-col__track { animation-name: drift-down; animation-duration: 110s; }
.hero-col--3 .hero-col__track { animation-duration: 120s; }
.hero-col img { width: 100%; height: auto; filter: saturate(0.85) contrast(1.05); }
@keyframes drift-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes drift-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }

.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 20% 55%, rgba(15, 13, 11, 0.94) 0%, rgba(15, 13, 11, 0.7) 45%, rgba(15, 13, 11, 0.35) 100%),
    linear-gradient(180deg, rgba(15, 13, 11, 0.7) 0%, rgba(15, 13, 11, 0) 22%, rgba(15, 13, 11, 0) 70%, var(--bg) 100%);
}
.hero__veil::after {
  content: ""; position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px; }
.hero h1 {
  max-width: 13ch; font-size: clamp(3.2rem, 8.4vw, 7.6rem); font-weight: 500; line-height: 0.98;
  animation: rise 1.4s var(--ease) both .1s;
}
.hero h1 em { color: var(--gold); }
.hero .eyebrow { animation: rise 1.2s var(--ease) both; }
.hero__lede {
  max-width: 34rem; margin: 30px 0 40px; color: rgba(243, 237, 227, 0.8); font-size: clamp(1rem, 1.3vw, 1.12rem);
  animation: rise 1.4s var(--ease) both .25s;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1.4s var(--ease) both .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Spirit-level line at the base of the hero */
.hero__level {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 164, 108, 0.6) 15%, rgba(198, 164, 108, 0.6) 85%, transparent);
}
.hero__level span {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 18px; margin: -9px 0 0 -32px;
  border: 1px solid var(--gold); border-radius: 9px; background: rgba(15, 13, 11, 0.6);
}
.hero__level span::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--gold); animation: settle 3.2s var(--ease) both .8s;
}
@keyframes settle { 0% { transform: translateX(-20px); } 55% { transform: translateX(6px); } 100% { transform: translateX(0); } }

/* About */
.about { background: var(--paper); color: var(--ink); padding: clamp(90px, 12vw, 170px) 0; }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: end; }
.about__copy { color: var(--ink-soft); font-size: 1.05rem; }
.about__copy p:last-child { margin-bottom: 0; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line-light);
}
.pillars li { padding: 36px clamp(16px, 3vw, 44px) 0 0; }
.pillars li + li { padding-left: clamp(16px, 3vw, 44px); border-left: 1px solid var(--line-light); }
.pillar__n { display: block; margin-bottom: 18px; font-family: var(--serif); font-size: 1rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.pillars h3 { margin-bottom: 12px; font-size: 1.9rem; }
.pillars p { color: var(--ink-soft); margin: 0; }

/* Work index */
.work-index { padding: clamp(90px, 11vw, 150px) 0; background: var(--bg); }
.work-index__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.index-card {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; text-decoration: none;
  background: var(--bg-2);
}
.index-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62) saturate(0.85); transform: scale(1.02);
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
}
.index-card::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(243, 237, 227, 0.2);
  transition: border-color .6s var(--ease), inset .6s var(--ease); pointer-events: none;
}
.index-card:hover img, .index-card:focus-visible img { transform: scale(1.08); filter: brightness(0.75) saturate(1); }
.index-card:hover::after, .index-card:focus-visible::after { border-color: var(--gold); inset: 20px; }
.index-card__n { position: absolute; top: 30px; left: 32px; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.index-card__text { position: absolute; left: 32px; right: 32px; bottom: 30px; display: flex; flex-direction: column; gap: 10px; }
.index-card__label { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.index-card__count { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243, 237, 227, 0.65); }

/* Service sections */
.service { padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 8vw, 110px); }
.service--light { background: var(--paper); color: var(--ink); }
.service--dark { background: var(--bg); color: var(--ivory); }
.service--dark .eyebrow { color: var(--gold); }
.service__head {
  display: grid; grid-template-columns: auto 1.1fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: start;
  margin-bottom: clamp(44px, 5vw, 70px);
}
.service__index {
  font-family: var(--serif); font-size: clamp(4rem, 8vw, 7.5rem); line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
}
.service--dark .service__index { -webkit-text-stroke-color: var(--gold); }
.service__body { padding-top: 34px; }
.service--light .service__body p { color: var(--ink-soft); }
.service--dark .service__body p { color: rgba(243, 237, 227, 0.74); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li {
  padding: 6px 14px; border: 1px solid var(--line-light); border-radius: 99px;
  font-size: 0.72rem; letter-spacing: 0.06em;
}
.service--dark .tags li { border-color: var(--line-dark); color: rgba(243, 237, 227, 0.82); }

/* Carousel */
.carousel { --slide-h: clamp(300px, 62vh, 600px); }
.carousel__track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.slide { flex: none; scroll-snap-align: start; }
.slide figure { position: relative; margin: 0; overflow: hidden; background: rgba(127, 110, 90, 0.15); }
.slide__open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slide img {
  height: var(--slide-h); width: auto; max-width: min(86vw, 1000px); object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px;
  background: linear-gradient(transparent, rgba(10, 8, 6, 0.82));
  color: var(--ivory); font-size: 0.82rem; line-height: 1.45;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.slide figure:hover img { transform: scale(1.035); }
.slide figure:hover figcaption,
.slide__open:focus-visible + figcaption { opacity: 1; transform: none; }
@media (hover: none) { .slide figcaption { opacity: 1; transform: none; } }

.carousel__ui { display: flex; align-items: center; gap: 28px; margin-top: 30px; }
.carousel__progress { position: relative; flex: 1; height: 1px; background: var(--line-light); overflow: hidden; }
.service--dark .carousel__progress { background: var(--line-dark); }
.carousel__progress span {
  position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gold);
  transform-origin: left; transform: scaleX(0.05); transition: transform .4s var(--ease);
}
.carousel__count { margin: 0; font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.08em; white-space: nowrap; }
.carousel__count [data-current] { color: var(--gold-deep); }
.service--dark .carousel__count [data-current] { color: var(--gold); }
.carousel__btns { display: flex; gap: 10px; }

/* Contact */
.contact {
  position: relative; padding: clamp(100px, 12vw, 170px) 0; background: var(--bg-2); overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 20%, rgba(198, 164, 108, 0.14), transparent 70%);
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.contact h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.contact__lede { max-width: 30rem; margin-top: 28px; color: rgba(243, 237, 227, 0.74); }
.contact-card { padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line-dark); background: rgba(15, 13, 11, 0.55); }
.contact-card__label { margin-bottom: 8px; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.contact-card__name { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1.1; }
.contact-card__company { color: var(--muted); }
.contact-card__list { margin: 28px 0 34px; border-top: 1px solid var(--line-dark); }
.contact-card__list li {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-card__k { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-card__list a { font-size: 1.08rem; text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.contact-card__list a:hover { color: var(--gold); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card__actions .btn { flex: 1 1 200px; }

/* Footer */
.site-footer { padding: 60px 0 44px; background: var(--bg); border-top: 1px solid var(--line-dark); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 28px 48px; align-items: center; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; }
.site-footer__nav a { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.site-footer__nav a:hover { color: var(--gold); }
.site-footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: var(--muted); }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { color: var(--gold); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 8, 6, 0.96); color: var(--ivory);
}
.lightbox[open] { display: grid; place-items: center; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: rgba(10, 8, 6, 0.9); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 70px 90px 60px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { max-width: 60ch; text-align: center; font-size: 0.9rem; color: rgba(243, 237, 227, 0.75); }
.lightbox .round-btn { position: absolute; color: var(--ivory); background: rgba(15, 13, 11, 0.5); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -26px; }
.lightbox__count { position: absolute; top: 30px; left: 28px; margin: 0; font-family: var(--serif); letter-spacing: 0.1em; color: var(--gold); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .service__head { grid-template-columns: auto 1fr; }
  .service__body { grid-column: 1 / -1; padding-top: 0; }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid, .about__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --header-h: 66px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__text strong { font-size: 1.25rem; }
  .hero__mosaic { grid-template-columns: repeat(3, 1fr); inset: -20% -30%; }
  .hero-col--4, .hero-col--5 { display: none; }
  .hero__content { padding-bottom: 110px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .index-grid { grid-template-columns: 1fr; }
  .index-card { aspect-ratio: 16 / 10; }
  .service__head { grid-template-columns: 1fr; gap: 10px; }
  .service__index { font-size: 3.6rem; }
  .carousel { --slide-h: clamp(280px, 58vh, 480px); }
  .carousel__track { gap: 10px; }
  .carousel__btns { display: none; }
  .lightbox__figure { padding: 70px 12px 80px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; margin: 0; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: flex-start; }
}

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