:root {
  --ink: #141915;
  --pine: #2c2622;
  --moss: #766f62;
  --clay: #bd2630;
  --clay-dark: #8e1720;
  --butter: #ded6c8;
  --mist: #f0eee9;
  --paper: #f6f2ed;
  --bone: #fffdf9;
  --white: #ffffff;
  --muted: #756f69;
  --line: rgba(20, 25, 21, 0.12);
  --glass: rgba(255, 253, 249, 0.74);
  --shadow: 0 28px 90px rgba(20, 25, 21, 0.18);
  --radius: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(222, 214, 200, 0.48), transparent 26rem),
    var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -52px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 20px;
  pointer-events: none;
}

.nav {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(28, 22, 20, 0.62);
  color: var(--white);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 55px rgba(20, 25, 21, 0.18);
  pointer-events: auto;
}

.brand {
  min-width: 244px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(189, 38, 48, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.55);
}

.brand-name {
  display: block;
  font-weight: 820;
  line-height: 1.05;
  color: var(--white);
}

.brand-subtitle {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-links .nav-cta {
  background: var(--clay);
  color: var(--white);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--clay);
  color: var(--white);
  text-decoration: none;
  font-weight: 820;
  line-height: 1.1;
  transition: transform 280ms ease, background 280ms ease, color 280ms ease, border-color 280ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.section:not(.dark) .button.secondary,
.page-intro .button.secondary,
.form-panel .button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.light {
  background: var(--bone);
  color: var(--clay-dark);
}

.page-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(20, 18, 16, 0.9), rgba(42, 33, 29, 0.72) 52%, rgba(20, 18, 16, 0.34)),
    url("https://images.pexels.com/photos/29372534/pexels-photo-29372534.jpeg?auto=compress&cs=tinysrgb&w=1920") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  background: linear-gradient(transparent, var(--paper));
}

.image-frame img,
.bento-image img,
.accordion-panel img,
.portrait-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.08) saturate(0.88);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms ease;
}

.image-frame:hover img,
.bento-card:hover img,
.accordion-panel:hover img,
.portrait-stack:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.12) saturate(1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 150px 0 96px;
}

.hero-inner > .kicker,
.hero-inner > .lead,
.hero-inner > .hero-actions {
  max-width: 720px;
}

.kicker {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 253, 249, 0.74);
  font-size: 0.92rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

h1 {
  max-width: min(960px, 96vw);
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  font-weight: 850;
}

h2 {
  font-size: clamp(2.9rem, 6vw, 6.2rem);
  font-weight: 840;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
}

.hero-actions,
.section-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section {
  position: relative;
  padding: clamp(110px, 15vw, 190px) 20px;
}

.section.compact {
  padding-top: clamp(78px, 10vw, 130px);
}

.section.dark {
  background:
    radial-gradient(circle at 14% 18%, rgba(189, 38, 48, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 40%, rgba(222, 214, 200, 0.14), transparent 28rem),
    #171211;
  color: var(--white);
}

.section.white {
  background: var(--bone);
}

.container {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 980px;
  margin-bottom: 52px;
}

.section-head p,
.text-block p,
.bento-card p,
.accordion-copy p,
.page-intro p,
.legal p,
.legal li,
.contact-panel p,
.footer p {
  color: var(--muted);
}

.dark .section-head p,
.dark .text-block p {
  color: rgba(255, 255, 255, 0.68);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.bento-card {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 20px 70px rgba(20, 25, 21, 0.08);
}

.bento-large {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 536px;
  color: var(--white);
  background: #211817;
}

.bento-small {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-card-inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.bento-large .bento-card-inner {
  background: linear-gradient(transparent 15%, rgba(15, 20, 17, 0.78));
}

.bento-large p {
  color: rgba(255, 255, 255, 0.76);
}

.bento-image {
  position: absolute;
  inset: 0;
}

.bento-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.micro-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.micro-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--muted);
  margin-top: 10px;
}

.micro-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--clay);
  transform: translateY(-1px);
}

.pin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.pin-title {
  position: sticky;
  top: 140px;
}

.pin-title h2 {
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  max-width: 620px;
  overflow-wrap: normal;
  hyphens: none;
}

.service-stack {
  display: grid;
  gap: 28px;
}

.service-card {
  min-height: 440px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.image-frame {
  overflow: hidden;
  min-height: 320px;
}

.service-copy {
  align-self: end;
  padding: 34px;
}

.service-copy p,
.service-copy li {
  color: rgba(255, 255, 255, 0.68);
}

.service-copy ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.accordion {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: stretch;
}

.accordion-panels {
  min-height: 560px;
  display: flex;
  gap: 10px;
}

.accordion-panel {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d9d7cd;
  transition: flex 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-panel:hover {
  flex: 2.3;
}

.accordion-panel span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-weight: 830;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.accordion-copy {
  align-self: end;
}

.carousel-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  box-shadow: var(--shadow);
}

.portrait-stack {
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}

.quote-text {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 830;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.quote-author {
  margin-top: 24px;
  color: var(--muted);
  font-weight: 720;
}

.page-hero {
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: 150px 20px 88px;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 20%, rgba(222, 214, 200, 0.24), transparent 24rem),
    linear-gradient(120deg, rgba(20, 18, 16, 0.92), rgba(44, 38, 34, 0.68)),
    var(--page-hero-image, url("https://images.pexels.com/photos/29372534/pexels-photo-29372534.jpeg?auto=compress&cs=tinysrgb&w=1920")) center / cover;
}

.services-hero {
  --page-hero-image: url("https://images.pexels.com/photos/12085752/pexels-photo-12085752.jpeg?auto=compress&cs=tinysrgb&w=1920");
}

.about-hero {
  --page-hero-image: url("https://images.pexels.com/photos/29372534/pexels-photo-29372534.jpeg?auto=compress&cs=tinysrgb&w=1920");
}

.contact-hero {
  --page-hero-image: url("https://images.pexels.com/photos/29372745/pexels-photo-29372745.jpeg?auto=compress&cs=tinysrgb&w=1920");
}

.page-intro {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.page-intro h1 {
  max-width: 1040px;
}

.page-intro p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.18rem;
}

.service-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  padding: 54px 0;
  border-top: 1px solid var(--line);
}

.service-row-visual {
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.service-row-visual img,
.team-card img,
.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-row:first-child {
  border-top: 0;
}

.service-number {
  display: block;
  margin-bottom: 16px;
  color: var(--clay);
  font-size: 0.88rem;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(38px, 7vw, 88px);
  align-items: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
}

.team-card {
  padding: 0;
  overflow: hidden;
}

.team-card img {
  height: 240px;
}

.team-card .card-body {
  padding: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
  align-items: start;
}

.contact-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  padding: 34px;
  box-shadow: 0 20px 70px rgba(20, 25, 21, 0.08);
}

.contact-visual {
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 24px 0 10px;
  background: var(--mist);
}

.contact-line {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.contact-line a,
.contact-line strong {
  font-size: 1.08rem;
  font-weight: 830;
  text-decoration: none;
}

form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(189, 38, 48, 0.18);
  border-color: var(--clay);
}

.legal {
  max-width: 900px;
}

.legal h2 {
  margin-top: 44px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-band {
  padding: clamp(90px, 14vw, 170px) 20px;
  background:
    radial-gradient(circle at 78% 20%, rgba(189, 38, 48, 0.26), transparent 28rem),
    #171211;
  color: var(--white);
}

.cta-panel {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: end;
}

.cta-panel h2 {
  max-width: 900px;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.68);
}

.footer {
  padding: 58px 20px 28px;
  background: #120f0e;
  color: var(--white);
}

.footer-grid {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 30px;
}

.footer h3 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.68);
}

.footer a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
}

.footer-bottom {
  width: min(var(--max), calc(100vw - 40px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    padding: 0 12px;
  }

  .nav {
    width: calc(100vw - 24px);
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .bento-grid,
  .pin-layout,
  .accordion,
  .carousel-card,
  .service-row,
  .split,
  .cards,
  .contact-grid,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-large {
    min-height: 520px;
  }

  .pin-title {
    position: static;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .accordion-panels {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .hero-inner {
    padding-top: 160px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .hero-actions .button,
  .section-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .accordion-panels {
    flex-direction: column;
  }

  .accordion-panel {
    min-height: 180px;
  }

  .accordion-panel:hover {
    flex: 1.4;
  }
}
