:root {
  color-scheme: dark;
  --bg: #090908;
  --panel: #151311;
  --panel-soft: #211b16;
  --text: #f6efe4;
  --muted: #c7b9a5;
  --line: rgba(246, 239, 228, 0.14);
  --beige: #e5d0a4;
  --orange: #df722f;
  --orange-strong: #f28b37;
  --green: #576b58;
  --steel: #79919a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body::selection {
  background: var(--orange);
  color: #120d09;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(6, 6, 5, 0.84), rgba(6, 6, 5, 0));
  transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(9, 9, 8, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.contact-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.nav-links {
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.86rem;
  color: var(--muted);
}

.nav-links a,
.header-cta {
  transition: color 180ms ease;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--orange-strong);
}

.header-cta {
  padding: 11px 14px;
  border: 1px solid var(--line);
  color: var(--beige);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 132px clamp(18px, 4vw, 56px) 56px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.story-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(9, 9, 8, 0.9) 0%, rgba(9, 9, 8, 0.54) 44%, rgba(9, 9, 8, 0.22) 100%),
    url("assets/site-images/page-02-image-02.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero::after,
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 76%, rgba(223, 114, 47, 0.28), transparent 30%),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  width: min(900px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--orange-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: Oswald, "Arial Narrow", Impact, sans-serif;
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  max-width: 870px;
  font-size: clamp(4rem, 11vw, 10rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

h3 {
  font-size: 1.45rem;
  line-height: 1.06;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: #f4e6d0;
  font-size: clamp(1.05rem, 1.5vw, 1.34rem);
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--orange);
  color: #130d08;
}

.button.secondary {
  border-color: rgba(229, 208, 164, 0.42);
  color: var(--beige);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 58px;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 36px));
  padding: 18px;
  border-left: 3px solid var(--orange);
  background: rgba(9, 9, 8, 0.62);
  backdrop-filter: blur(12px);
}

.hero-panel span {
  color: var(--beige);
  font-weight: 700;
}

section:not(.hero) {
  padding: clamp(76px, 10vw, 140px) clamp(18px, 4vw, 56px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.about p,
.portfolio .section-heading p,
.story p,
.contact p {
  max-width: 680px;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.service-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(229, 208, 164, 0.06);
  color: var(--beige);
  font-size: 0.88rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.image-grid img {
  width: 100%;
  height: clamp(180px, 24vw, 320px);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.image-grid img:nth-child(2),
.image-grid img:nth-child(3) {
  transform: translateY(32px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 6, 5, 0.88));
  opacity: 0;
  transition: opacity 240ms ease;
}

.gallery-item span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.78) saturate(1.08);
}

.gallery-item:hover::after,
.gallery-item:hover span {
  opacity: 1;
}

.gallery-item:hover span {
  transform: translateY(0);
}

.story {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.story-visual {
  background-image: linear-gradient(90deg, rgba(9, 9, 8, 0.92), rgba(9, 9, 8, 0.54), rgba(9, 9, 8, 0.16)),
    url("assets/site-images/page-07-image-06.jpg");
}

.story-content {
  width: min(760px, 100%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.stats div,
.reason-grid article {
  padding: 24px;
  background: rgba(21, 19, 17, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats strong {
  display: block;
  color: var(--orange-strong);
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portrait-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--panel);
}

.why {
  background: linear-gradient(180deg, var(--bg), #11100e 45%, var(--bg));
}

.why > h2 {
  max-width: 980px;
  margin-bottom: 34px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.reason-grid article {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.reason-grid span {
  color: var(--orange-strong);
  font-weight: 900;
}

.reason-grid h3 {
  margin-top: 22px;
}

.reason-grid p {
  margin: auto 0 0;
  font-size: 0.95rem;
}

.quote {
  background: var(--beige);
  color: #16100b;
}

.quote blockquote {
  max-width: 1100px;
  font-size: clamp(2.7rem, 7vw, 7rem);
}

.quote cite {
  display: block;
  margin-top: 28px;
  color: #5c4630;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
}

.contact-list {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  color: var(--beige);
  font-weight: 700;
}

iframe {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  filter: grayscale(0.6) invert(0.9) contrast(0.9);
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--beige);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(229, 208, 164, 0.22);
  border-radius: 4px;
  background: #0f0d0b;
  color: var(--text);
  padding: 13px 14px;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange-strong);
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--orange-strong);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}

.lightbox {
  width: min(980px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  background: #090908;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--beige);
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.section-observe {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.section-observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-panel {
    position: static;
    margin-top: 40px;
  }

  .split,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 108px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero-media {
    background-position: 58% center;
  }

  .image-grid,
  .portrait-grid,
  .reason-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .image-grid img:nth-child(2),
  .image-grid img:nth-child(3) {
    transform: none;
  }

  .masonry-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .section-observe {
    opacity: 1;
    transform: none;
  }
}
