:root {
  --red: #a82838;
  --red-dark: #7f1f2d;
  --accent: #a82838;
  --ink: #242627;
  --graphite: #686058;
  --mist: #e6e8e4;
  --paper: #eff1ee;
  --text: #242627;
  --text-muted: rgba(36, 38, 39, 0.72);
  --text-soft: rgba(36, 38, 39, 0.68);
  --header-bg: rgba(230, 232, 228, 0.9);
  --card-bg: #f4f5f2;
  --showcase-bg: #eceeea;
  --footer-bg: #e2e4df;
  --band-bg: #242627;
  --band-text: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.72);
  --hero-shade-a: rgba(230, 232, 228, 0.92);
  --hero-shade-b: rgba(230, 232, 228, 0.72);
  --hero-shade-c: rgba(230, 232, 228, 0.1);
  --hero-shade-d: rgba(230, 232, 228, 0.58);
  --hero-shade-e: rgba(230, 232, 228, 0.08);
  --hero-shade-f: rgba(36, 38, 39, 0.56);
  --line: rgba(36, 38, 39, 0.14);
  --shadow: 0 24px 80px rgba(36, 38, 39, 0.18);
  --display: "Petita", "Segoe UI", system-ui, sans-serif;
  --mono: "Petita", "Segoe UI", system-ui, sans-serif;
}

html[data-theme="dark"] {
  --accent: #ff8d98;
  --mist: #202323;
  --paper: #17191a;
  --text: #eef0eb;
  --text-muted: rgba(238, 240, 235, 0.78);
  --text-soft: rgba(238, 240, 235, 0.72);
  --header-bg: rgba(23, 25, 26, 0.9);
  --card-bg: #202323;
  --showcase-bg: #1d2020;
  --footer-bg: #202323;
  --band-bg: #101213;
  --band-text: #f4f5f2;
  --band-muted: rgba(244, 245, 242, 0.74);
  --hero-shade-a: rgba(23, 25, 26, 0.9);
  --hero-shade-b: rgba(23, 25, 26, 0.72);
  --hero-shade-c: rgba(23, 25, 26, 0.16);
  --hero-shade-d: rgba(23, 25, 26, 0.74);
  --hero-shade-e: rgba(23, 25, 26, 0.18);
  --hero-shade-f: rgba(0, 0, 0, 0.7);
  --line: rgba(238, 240, 235, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

@font-face {
  font-family: "Petita";
  font-style: normal;
  font-weight: 300;
  src: url("assets/fonts/PetitaLight.ttf") format("truetype");
}

@font-face {
  font-family: "Petita";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/PetitaMedium.ttf") format("truetype");
}

@font-face {
  font-family: "Petita";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/PetitaBold.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--display);
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease;
}

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

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

.site-header {
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 4vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand img {
  height: 44px;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.8vw, 38px);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.language-switch {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  margin-left: 22px;
}

.language-switch button {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 44px;
  min-width: 44px;
}

.language-switch button + button {
  border-left: 1px solid var(--line);
}

.language-switch button.is-active {
  background: var(--text);
  color: var(--paper);
}

.site-nav a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  position: relative;
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  font-family: var(--mono);
  grid-template-columns: 1fr 1fr;
  margin-left: 22px;
  min-height: 44px;
  padding: 0;
  text-transform: uppercase;
}

.theme-toggle span {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 46px;
  padding: 0;
}

.theme-toggle svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.theme-toggle span:last-child svg {
  fill: currentColor;
  stroke: none;
}

.theme-toggle span:first-child {
  background: var(--text);
  color: var(--paper);
}

.theme-toggle.is-dark span:first-child {
  background: transparent;
  color: var(--text);
}

.theme-toggle.is-dark span:last-child {
  background: var(--text);
  color: var(--paper);
}

.site-nav a::after {
  background: var(--accent);
  bottom: -9px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

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

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  padding: 0;
  width: 44px;
}

.nav-toggle span {
  background: var(--text);
  display: block;
  height: 2px;
  margin: 8px;
}

.hero {
  isolation: isolate;
  min-height: 86svh;
  overflow: hidden;
  padding: 98px clamp(20px, 6vw, 92px) 44px;
  position: relative;
}

.hero::before {
  background: var(--accent);
  content: "";
  height: clamp(110px, 13vw, 170px);
  left: clamp(20px, 6vw, 92px);
  opacity: 0.92;
  position: absolute;
  top: clamp(116px, 15vw, 180px);
  width: clamp(12px, 1.2vw, 22px);
  z-index: -1;
}

.hero::after {
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  content: "";
  height: clamp(170px, 21vw, 310px);
  left: clamp(48px, 9vw, 150px);
  position: absolute;
  top: clamp(122px, 16vw, 190px);
  width: min(78vw, 1140px);
  z-index: -1;
}

.hero-image,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
  z-index: -3;
}

.hero-shade {
  background:
    linear-gradient(90deg, var(--hero-shade-a) 0%, var(--hero-shade-b) 43%, var(--hero-shade-c) 78%),
    linear-gradient(180deg, var(--hero-shade-d) 0%, var(--hero-shade-e) 44%, var(--hero-shade-f) 100%);
  z-index: -2;
}

.hero-content {
  max-width: 920px;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero-logo {
  filter: drop-shadow(18px 18px 0 rgba(168, 40, 56, 0.14)) drop-shadow(0 26px 60px rgba(36, 38, 39, 0.18));
  margin: 12px 0 30px;
  max-width: min(82vw, 980px);
  mix-blend-mode: normal;
  padding: clamp(10px, 1.2vw, 16px) 0;
  width: min(82vw, 980px);
}

.hero-statement {
  color: var(--text);
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 18px;
  max-width: 840px;
}

.hero-copy {
  color: var(--text-muted);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.5;
  max-width: 780px;
}

.hero-actions,
.contact-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  align-items: center;
  border: 1px solid var(--text);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.button.ghost {
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  color: var(--text);
}

html[data-theme="dark"] .button.ghost {
  background: rgba(244, 245, 242, 0.06);
  border-color: rgba(244, 245, 242, 0.74);
  color: #f4f5f2;
}

.hero-panel {
  backdrop-filter: blur(18px);
  background: rgba(36, 38, 39, 0.74);
  bottom: 44px;
  color: white;
  display: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  gap: 1px;
  max-width: 520px;
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  text-transform: uppercase;
  width: min(42vw, 520px);
}

.hero-panel span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 15px 18px;
}

.section-band,
.services,
.process,
.contact {
  padding: clamp(76px, 11vw, 150px) clamp(20px, 6vw, 92px);
}

.intro {
  align-items: start;
  background: var(--band-bg);
  color: var(--band-text);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
}

.intro .section-label,
.contact .eyebrow {
  color: var(--band-text);
}

.intro h2,
.section-heading h2,
.showcase h2,
.contact h2 {
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  letter-spacing: 0;
  line-height: 1;
}

.intro-copy {
  max-width: 980px;
}

.intro p,
.showcase p,
.service-card p,
.process p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.intro p {
  color: var(--band-muted);
  max-width: 760px;
}

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

.section-heading h2 {
  margin-bottom: 0;
  max-width: 780px;
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  min-height: 310px;
  padding: clamp(24px, 3vw, 38px);
  position: relative;
}

.service-card::before {
  background: var(--accent);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-code {
  color: var(--accent);
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  margin-bottom: 70px;
}

.service-card h3,
.process h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.showcase {
  align-items: center;
  background: var(--showcase-bg);
  display: grid;
  gap: clamp(36px, 6vw, 90px);
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  padding: clamp(28px, 5vw, 70px);
}

.showcase-media {
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
}

.showcase-media img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}

.showcase-copy {
  max-width: 620px;
}

.check-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.check-list li {
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.94rem;
  padding: 16px 0;
}

.process {
  background: var(--paper);
}

.section-heading.compact {
  align-items: start;
  display: block;
}

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

.process-grid article {
  border-left: 1px solid var(--line);
  padding: 0 20px 0 24px;
}

.process-grid span {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-bottom: 46px;
}

.contact {
  align-items: center;
  background: var(--band-bg);
  color: var(--band-text);
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.contact h2 {
  margin-bottom: 0;
  max-width: 850px;
}

.contact-link {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--band-muted);
  display: inline-flex;
  font-family: var(--mono);
  min-height: 44px;
}

.site-footer {
  align-items: end;
  background: var(--footer-bg);
  border-top: 1px solid rgba(36, 38, 39, 0.12);
  color: var(--text-muted);
  display: flex;
  font-family: var(--mono);
  font-size: 0.9rem;
  gap: 28px;
  justify-content: space-between;
  padding: 34px clamp(20px, 6vw, 92px);
}

.footer-brand {
  display: block;
  max-width: min(46vw, 360px);
}

.footer-brand img {
  filter: none;
  height: auto;
  width: 100%;
}

.footer-copy {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-copy .language-switch {
  margin-left: 0;
  margin-top: 4px;
}

.footer-copy span:first-child,
.footer-copy a {
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
}

.footer-copy a {
  align-items: center;
  border-bottom: 1px solid rgba(36, 38, 39, 0.28);
  display: inline-flex;
  min-height: 44px;
  width: auto;
}

:focus-visible {
  outline: 3px solid rgba(168, 40, 56, 0.42);
  outline-offset: 4px;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
    margin-left: 12px;
    order: 3;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 16px 20px 22px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 76px;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .theme-toggle {
    margin-left: auto;
    margin-right: 12px;
    order: 2;
  }

  .language-switch {
    margin-left: auto;
    margin-right: 0;
    order: 2;
  }

  .site-nav a {
    border-top: 1px solid var(--line);
    padding: 18px 0;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 72px;
  }

  .intro,
  .showcase {
    grid-template-columns: 1fr;
  }

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

  .contact {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 68px;
  }

  .brand img {
    height: 34px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: auto;
    padding: 92px 20px 56px;
  }

  .hero::before {
    height: 96px;
    left: 20px;
    top: 112px;
    width: 9px;
  }

  .hero::after {
    height: 176px;
    left: 34px;
    top: 118px;
    width: calc(100vw - 54px);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, var(--hero-shade-a) 0%, var(--hero-shade-b) 50%, var(--hero-shade-f) 100%),
      linear-gradient(90deg, var(--hero-shade-a), var(--hero-shade-c));
  }

  .hero-logo {
    margin: 14px 0 26px;
    max-width: 100%;
    padding: 9px;
    width: 100%;
  }

  .hero-statement {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    display: none;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    display: block;
  }

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

  .service-card {
    min-height: 250px;
  }

  .service-code {
    margin-bottom: 42px;
  }

  .showcase {
    padding: 20px;
  }

  .showcase-media,
  .showcase-media img {
    min-height: 340px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-brand {
    max-width: 260px;
  }

  .footer-copy {
    align-items: start;
    text-align: left;
  }
}
