:root {
  --bg: #f4f2ef;
  --surface: #ffffff;
  --ink: #191b1f;
  --muted: #5f6267;
  --line: #dedbd6;
  --accent: #c91522;
  --accent-dark: #8e1019;
  --warm: #b90e16;
  --panel: #2a2d33;
  --soft: #f8f7f5;
  --shadow: 0 22px 48px rgba(25, 27, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(42, 45, 51, 0.06) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgba(42, 45, 51, 0.05) 1px, transparent 1px) 0 0 / 54px 54px,
    var(--bg);
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(201, 21, 34, 0.56);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.18s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  color: var(--ink);
  background: rgba(248, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(25, 27, 31, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  isolation: isolate;
}

.brand::before {
  content: "";
  position: absolute;
  inset: -10px -16px -10px -12px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at 38% 58%, rgba(255, 255, 255, 0.72), transparent 66%);
  filter: blur(10px);
  opacity: 0.75;
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(190px, 16vw, 250px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65))
    drop-shadow(0 5px 10px rgba(25, 27, 31, 0.2));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: #5f6267;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-color: var(--accent);
}

.site-menu {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(25, 27, 31, 0.08);
  cursor: pointer;
  list-style: none;
}

.nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-toggle::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 3px;
  background: #191b1f;
  border-radius: 999px;
  box-shadow:
    0 -8px 0 #191b1f,
    0 8px 0 #191b1f;
  transform: translate(-50%, -50%);
}

.nav-toggle span {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(400px, 52vh, 560px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 4.4vw, 56px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 24, 0.9), rgba(16, 20, 24, 0.42));
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding-bottom: 0;
  color: #fff;
}

.hero-content::before {
  content: "";
  display: block;
  width: 118px;
  height: 8px;
  margin-bottom: 18px;
  background: var(--accent);
}

.eyebrow,
.status {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e7bf91;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Impact, "Arial Black", "Avenir Next", sans-serif;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.1rem, 6.4vw, 6rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: #fff;
  border-color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 64px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.two-column p:last-child,
.content-page p,
.page-intro p {
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 0;
  background: var(--panel);
}

.feature-grid article {
  min-height: 150px;
  padding: clamp(24px, 3vw, 30px);
  background: var(--surface);
  border-top: 6px solid var(--accent);
  border-right: 1px solid var(--line);
}

.feature-grid p,
.gallery-heading p,
.wide-project p,
.contact-details p {
  color: var(--muted);
}

.preview-section,
.gallery-stack,
.project-list {
  padding-top: 20px;
}

.preview-section {
  padding-bottom: clamp(28px, 3vw, 42px);
}

.two-column {
  padding-top: clamp(34px, 4vw, 54px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.project-preview-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--accent) transparent;
}

.project-preview-grid::after {
  content: "";
  flex: 0 0 1px;
}

.project-card {
  flex: 0 0 min(420px, 82vw);
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: clamp(230px, 20vw, 292px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card div {
  padding: 18px;
}

.project-card p {
  margin-bottom: 6px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.page-intro {
  padding: clamp(34px, 4.5vw, 58px) clamp(20px, 5vw, 64px) clamp(26px, 3vw, 40px);
  color: #fff;
  background: var(--panel);
  border-bottom: 6px solid var(--accent);
}

.page-intro h1 {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 5vw, 4.45rem);
}

.page-intro p {
  color: rgba(255, 255, 255, 0.84);
}

.project-list {
  display: grid;
  gap: 22px;
}

.wide-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(18px, 2.5vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wide-project img {
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 0;
}

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

.project-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.gallery-stack {
  display: grid;
  gap: 42px;
}

.gallery-block {
  display: grid;
  gap: 22px;
}

.gallery-heading {
  max-width: 760px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
}

.gallery-grid img {
  height: 310px;
  object-fit: cover;
  border-radius: 0;
}

.gallery-grid img:first-child {
  height: 100%;
}

.content-page {
  display: grid;
  grid-template-columns: minmax(280px, 760px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.contact-form,
.contact-details {
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form .form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(201, 21, 34, 0.24);
  border-color: var(--accent);
}

.contact-details a {
  color: var(--accent);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    color: var(--muted);
    background: rgba(248, 247, 245, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(25, 27, 31, 0.1);
  }

  .site-menu[open] .site-nav {
    display: flex;
  }

  .site-menu .site-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 520px;
    align-items: start;
  }

  .two-column,
  .feature-grid,
  .wide-project,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .project-preview-grid::after {
    display: none;
  }

  .project-card {
    flex-basis: auto;
    scroll-snap-align: unset;
  }

  .project-card img {
    height: clamp(210px, 58vw, 280px);
  }

  .wide-project img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 360px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand-logo {
    width: 168px;
    max-height: 62px;
  }

  .hero {
    min-height: 500px;
    padding: 22px 20px;
  }

  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .feature-grid {
    padding-top: 0;
  }

  .feature-grid article {
    min-height: 0;
    padding: 24px 20px;
  }

  .preview-section,
  .gallery-stack,
  .project-list {
    padding-top: 18px;
  }

  .preview-section {
    padding-bottom: 28px;
  }

  .two-column {
    padding-top: 30px;
  }

  .page-intro {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .project-list {
    gap: 18px;
  }

  .wide-project {
    gap: 0;
    padding: 0;
  }

  .wide-project > div {
    padding: 22px 20px 24px;
    background: var(--surface);
  }

  .wide-project img {
    aspect-ratio: 16 / 11;
    max-height: 300px;
  }

  h1 {
    font-size: 3rem;
  }

  .page-intro h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

}
