:root {
  --ink-900: #231f20;
  --ink-700: #4a4445;
  --ink-600: #5e5853;
  --stone-50: #fbfaf8;
  --stone-100: #f4f1ec;
  --stone-200: #e7e2db;
  --stone-300: #d4cdc4;
  --red-300: #f0a5a9;
  --red-600: #c1272d;
  --red-700: #9f1f25;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --radius: 4px;
  --shadow-header: 0 8px 24px rgba(35, 31, 32, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink-900);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

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

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-600);
}

.eyebrow--light {
  color: var(--red-300);
}

.section {
  padding-block: var(--space-12);
}

.section-title {
  margin-bottom: var(--space-3);
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: var(--stone-50);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 124px;
  transition: min-height 0.3s var(--ease);
}

.is-scrolled .header-inner {
  min-height: 88px;
}

.brand {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.brand svg {
  height: 100px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.is-scrolled .brand svg {
  height: 68px;
}

.site-nav ul {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: var(--space-1) 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-900);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 200px 0 var(--space-12);
  overflow: hidden;
  color: #fff;
  background: var(--ink-900);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 20, 21, 0.92) 0%, rgba(23, 20, 21, 0.72) 55%, rgba(23, 20, 21, 0.4) 100%);
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero h1 {
  margin-bottom: var(--space-3);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.hero-lead {
  max-width: 56ch;
  margin-bottom: var(--space-3);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #f1eeea;
}

.hero-tagline {
  margin-bottom: var(--space-6);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--red-300);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-content > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-content > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero-content > :nth-child(3) {
  animation-delay: 0.24s;
}

.hero-content > :nth-child(4) {
  animation-delay: 0.36s;
}

.hero-content > :nth-child(5) {
  animation-delay: 0.48s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-4);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--red-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-700);
}

.btn-ghost {
  border-color: #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink-900);
}

/* About */

.about {
  background: var(--stone-100);
}

.about-grid {
  display: grid;
  gap: var(--space-4);
}

.about-text p + p {
  margin-top: var(--space-3);
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--ink-700);
}

.company-cards {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.company-card {
  padding: var(--space-4);
  background: #fff;
  border-top: 4px solid var(--red-600);
}

.company-year {
  margin-bottom: var(--space-2);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.company-card h3 {
  margin-bottom: var(--space-1);
  font-size: 1.5rem;
}

.company-card p:last-child {
  color: var(--ink-700);
}

/* Services */

.service {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-4);
}

.service + .service {
  margin-top: var(--space-6);
}

.service-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.service:hover .service-media img {
  transform: scale(1.03);
}

.service-number {
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red-600);
}

.service-body h3 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.service-body p:last-child {
  max-width: 42ch;
  font-size: 1.0625rem;
  color: var(--ink-700);
}

/* Story */

.story {
  background: #fff;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--stone-300);
}

.timeline-item {
  position: relative;
  padding: 0 0 var(--space-6) var(--space-6);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 3px solid var(--red-600);
  border-radius: 50%;
  background: #fff;
}

.timeline-year {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
}

.timeline-item h3 {
  margin-bottom: var(--space-1);
  font-size: 1.375rem;
}

.timeline-item p {
  color: var(--ink-700);
}

/* Works */

.works-hint {
  margin-bottom: var(--space-4);
  color: var(--ink-600);
}

.gallery {
  display: grid;
  gap: var(--space-2);
}

.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--stone-200);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-2);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(23, 20, 21, 0.82));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: none;
}

.gallery-item--placeholder {
  cursor: default;
}

.gallery-item--placeholder:hover img {
  transform: none;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-600);
  background: repeating-linear-gradient(45deg, var(--stone-100), var(--stone-100) 12px, var(--stone-200) 12px, var(--stone-200) 24px);
  border: 2px dashed var(--stone-300);
}

.lightbox {
  width: min(1100px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox[open] {
  animation: fade-in 0.3s var(--ease);
}

.lightbox::backdrop {
  background: rgba(23, 20, 21, 0.9);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--stone-200);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* Contact */

.contact {
  background: var(--ink-900);
  color: #fff;
}

.contact .section-title {
  color: #fff;
}

.contact-grid {
  display: grid;
  gap: var(--space-6);
}

.contact-lead {
  margin-top: var(--space-2);
  max-width: 44ch;
  font-size: 1.125rem;
  color: #e9e4df;
}

.contact-row {
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list dt {
  margin-bottom: var(--space-1);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-300);
}

.contact-list dd {
  margin: 0;
  font-size: 1.25rem;
}

.contact-list dd a {
  color: #fff;
  text-decoration-color: var(--red-300);
  text-underline-offset: 4px;
}

.contact-list dd a:hover {
  color: var(--red-300);
}

.contact-list .pending {
  font-style: italic;
  color: #d9d3cd;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}

.social-link:hover {
  border-color: var(--red-300);
  color: var(--red-300);
  background: rgba(255, 255, 255, 0.06);
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.contact :focus-visible {
  outline-color: var(--red-300);
}

.contact-form {
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.form-row {
  display: grid;
  gap: var(--space-3);
}

.form-field {
  display: grid;
  gap: var(--space-1);
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-300);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-2);
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  transition: border-color 0.25s, background-color 0.25s;
}

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

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b8b0aa;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red-300);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(240, 165, 169, 0.3);
}

.form-footer {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.form-consent input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--red-300);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.9375rem;
  color: #f1eeea;
  cursor: pointer;
}

.form-footer .btn:disabled {
  background: #6b5f61;
  transform: none;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.9375rem;
  color: #d9d3cd;
}

/* Footer */

.site-footer {
  padding-block: var(--space-6);
  background: var(--stone-200);
  color: var(--ink-700);
}

.footer-inner {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.footer-inner .brand svg {
  height: 72px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer-nav a {
  color: var(--ink-900);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--red-600);
  text-decoration: underline;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--ink-900);
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}

.footer-social:hover {
  color: var(--red-600);
  background: var(--stone-300);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-copy {
  font-size: 0.875rem;
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

/* Breakpoints */

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-1) var(--space-3) var(--space-4);
    background: var(--stone-50);
    border-top: 1px solid var(--stone-200);
    box-shadow: var(--shadow-header);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: var(--space-2) 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--stone-200);
  }

  .site-nav a::after {
    bottom: -1px;
  }

  .brand svg {
    height: 76px;
  }

  .is-scrolled .brand svg {
    height: 56px;
  }

  .header-inner {
    min-height: 100px;
  }

  .is-scrolled .header-inner {
    min-height: 80px;
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--space-12);
  }

  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-12);
    align-items: start;
  }

  .company-cards {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .service {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-12);
    padding-block: var(--space-6);
  }

  .service--reverse .service-media {
    order: 2;
  }

  .service-media img {
    aspect-ratio: 4 / 5;
  }

  .timeline-item {
    padding-left: var(--space-8);
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-item::before {
    top: 14px;
    left: 2px;
  }

  .timeline-year {
    font-size: 2rem;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
  }

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

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
