:root {
  --paper: #fbf8f1;
  --paper-rgb: 251, 248, 241;
  --milk: #f2ede4;
  --stone: #d8cfc2;
  --taupe: #b9aa98;
  --brass: #a88453;
  --olive: #68715e;
  --graphite: #181817;
  --graphite-rgb: 24, 24, 23;
  --charcoal: #242321;
  --ink: #211f1c;
  --ink-rgb: 33, 31, 28;
  --on-dark: #fbf8f1;
  --on-dark-contrast: #211f1c;
  --muted: #746d63;
  --line: rgba(33, 31, 28, 0.14);
  --line-light: rgba(251, 248, 241, 0.32);
  --shadow: 0 34px 90px rgba(24, 24, 23, 0.18);
  --soft-shadow: 0 18px 44px rgba(24, 24, 23, 0.1);
  --body-grid: rgba(33, 31, 28, 0.055);
  --body-mid: #eee7dc;
  --body-end: #f8f4ed;
  --header-border: rgba(251, 248, 241, 0.28);
  --header-glass: rgba(24, 24, 23, 0.46);
  --header-scrolled-bg: rgba(251, 248, 241, 0.9);
  --header-scrolled-border: rgba(33, 31, 28, 0.12);
  --header-action-hover: rgba(251, 248, 241, 0.12);
  --header-action-scrolled-hover: rgba(33, 31, 28, 0.06);
  --hero-overlay:
    linear-gradient(90deg, rgba(10, 10, 9, 0.74) 0%, rgba(10, 10, 9, 0.48) 46%, rgba(10, 10, 9, 0.08) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, 0.3) 0%, rgba(10, 10, 9, 0.06) 46%, rgba(10, 10, 9, 0.64) 100%);
  --hero-overlay-mobile:
    linear-gradient(90deg, rgba(10, 10, 9, 0.78) 0%, rgba(10, 10, 9, 0.46) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, 0.3) 0%, rgba(10, 10, 9, 0.7) 100%);
  --hero-text-soft: rgba(251, 248, 241, 0.82);
  --hero-text-muted: rgba(251, 248, 241, 0.72);
  --hero-work-bg: rgba(35, 34, 32, 0.86);
  --hero-work-arrow-bg: #d7c6a4;
  --panel: rgba(251, 248, 241, 0.74);
  --panel-hover: #fffdf8;
  --work-overlay: linear-gradient(180deg, rgba(24, 24, 23, 0) 42%, rgba(24, 24, 23, 0.76) 100%);
  --field-bg: rgba(251, 248, 241, 0.08);
  --field-border: rgba(251, 248, 241, 0.22);
  --send-accent: #d8c69f;
  --error: #d5897d;
  --error-text: #f1ada4;
  --modal-backdrop: rgba(18, 18, 17, 0.68);
  --radius: 8px;
  --container: min(1220px, calc(100% - 48px));
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", Arial, sans-serif;
}

body.theme-gallery {
  --paper: #121511;
  --paper-rgb: 18, 21, 17;
  --milk: #171c17;
  --stone: #263127;
  --taupe: #b8a27d;
  --brass: #d7a64a;
  --olive: #89a36f;
  --graphite: #070908;
  --graphite-rgb: 7, 9, 8;
  --charcoal: #101410;
  --ink: #eee7dc;
  --ink-rgb: 238, 231, 220;
  --on-dark: #f7f1e7;
  --on-dark-contrast: #101410;
  --muted: #b0a698;
  --line: rgba(238, 231, 220, 0.16);
  --line-light: rgba(247, 241, 231, 0.34);
  --shadow: 0 36px 96px rgba(0, 0, 0, 0.46);
  --soft-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  --body-grid: rgba(215, 166, 74, 0.07);
  --body-mid: #0b0f0c;
  --body-end: #1a2019;
  --header-border: rgba(215, 166, 74, 0.34);
  --header-glass: rgba(7, 9, 8, 0.68);
  --header-scrolled-bg: rgba(7, 9, 8, 0.88);
  --header-scrolled-border: rgba(215, 166, 74, 0.38);
  --header-action-hover: rgba(215, 166, 74, 0.12);
  --header-action-scrolled-hover: rgba(215, 166, 74, 0.14);
  --hero-overlay:
    linear-gradient(90deg, rgba(4, 5, 4, 0.86) 0%, rgba(10, 14, 11, 0.58) 48%, rgba(28, 22, 11, 0.16) 100%),
    linear-gradient(180deg, rgba(4, 5, 4, 0.48) 0%, rgba(4, 5, 4, 0.12) 46%, rgba(4, 5, 4, 0.78) 100%);
  --hero-overlay-mobile:
    linear-gradient(90deg, rgba(4, 5, 4, 0.86) 0%, rgba(10, 14, 11, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 5, 4, 0.46) 0%, rgba(4, 5, 4, 0.82) 100%);
  --hero-text-soft: rgba(247, 241, 231, 0.86);
  --hero-text-muted: rgba(215, 166, 74, 0.82);
  --hero-work-bg: rgba(7, 9, 8, 0.92);
  --hero-work-arrow-bg: #d7a64a;
  --panel: rgba(16, 20, 16, 0.88);
  --panel-hover: #20281f;
  --work-overlay: linear-gradient(180deg, rgba(7, 9, 8, 0.02) 34%, rgba(7, 9, 8, 0.86) 100%);
  --field-bg: rgba(247, 241, 231, 0.07);
  --field-border: rgba(215, 166, 74, 0.28);
  --send-accent: #d7a64a;
  --error: #c06f62;
  --error-text: #f0aaa1;
  --modal-backdrop: rgba(0, 0, 0, 0.78);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, var(--body-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--body-mid) 56%, var(--body-end));
  background-size: 76px 76px, auto;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  transition: background-color 320ms ease, color 320ms ease;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: var(--container);
  padding: 12px 14px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  background: var(--header-glass);
  color: var(--on-dark);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: top 240ms ease, background 240ms ease, color 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.scrolled {
  top: 10px;
  border-color: var(--header-scrolled-border);
  background: var(--header-scrolled-bg);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.brand,
.nav,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1;
  opacity: 0.9;
}

.nav {
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.86;
  white-space: nowrap;
  transition: opacity 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-action:hover {
  background: var(--header-action-hover);
  opacity: 1;
  transform: translateY(-2px);
}

.site-header.scrolled .header-action:hover {
  background: var(--header-action-scrolled-hover);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: 18ch;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.theme-toggle-home {
  position: fixed;
  top: 31px;
  right: clamp(18px, 2.2vw, 36px);
  z-index: 1100;
  transition: top 240ms ease;
}

body.header-scrolled .theme-toggle-home {
  top: 23px;
}

.theme-toggle-nav {
  display: none;
}

.theme-toggle-copy {
  display: none;
}

.theme-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.switch {
  position: relative;
  z-index: 0;
  display: block;
  width: 66px;
  height: 37px;
  margin: 0;
  border: 1px solid rgba(50, 66, 70, 0.62);
  border-top-color: rgba(238, 247, 249, 0.92);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(169, 185, 189, 0.14) 100%),
    linear-gradient(180deg, #d7e1e3 0%, #c1cdd1 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.84),
    inset 0 -2px 2px rgba(47, 61, 64, 0.42),
    0 0 0 1px rgba(133, 153, 158, 0.38),
    0 2px 2px rgba(255, 255, 255, 0.56),
    0 10px 20px rgba(0, 0, 0, 0.36),
    0 18px 36px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.switch::before {
  position: absolute;
  top: 7px;
  left: 11px;
  z-index: 1;
  width: 44px;
  height: 22px;
  border: 1px solid rgba(34, 43, 45, 0.82);
  border-top-color: rgba(248, 252, 252, 0.78);
  border-radius: 4px;
  background:
    linear-gradient(90deg, #cad4d6 0%, #d5dee0 62%, #fff8ef 76%, #ccd6d8 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.72),
    inset 0 -2px 2px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(80, 94, 98, 0.34),
    3px 4px 4px rgba(0, 0, 0, 0.48),
    8px 11px 16px -9px rgba(0, 0, 0, 0.62);
  content: "";
  pointer-events: none;
  transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.switch::after {
  position: absolute;
  top: 50%;
  right: 5px;
  z-index: 2;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: 1px solid rgba(37, 47, 49, 0.52);
  background: radial-gradient(circle at 35% 28%, #9fb2b5 0%, #60767a 48%, #2d383a 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.52),
    inset 0 -2px 3px rgba(0, 0, 0, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.76),
    0 2px 4px rgba(0, 0, 0, 0.45);
  content: "";
  transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}

.theme-switch-input:focus-visible + .switch {
  outline: 2px solid var(--brass);
  outline-offset: 6px;
}

.theme-switch-input:checked + .switch {
  border-color: rgba(10, 15, 14, 0.86);
  border-top-color: rgba(118, 136, 130, 0.55);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(215, 166, 74, 0.2) 72%),
    linear-gradient(180deg, #3e4b49 0%, #1f2825 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.18),
    inset 0 -2px 2px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(8, 12, 11, 0.72),
    0 1px 1px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(0, 0, 0, 0.34),
    0 12px 24px rgba(0, 0, 0, 0.56),
    0 22px 42px rgba(0, 0, 0, 0.34);
}

.theme-switch-input:checked + .switch::before {
  border-color: rgba(8, 11, 10, 0.92);
  border-top-color: rgba(133, 149, 143, 0.42);
  background:
    linear-gradient(90deg, #101410 0%, #172018 25%, #d7a64a 34%, #6f5c25 39%, #263127 52%, #151d17 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.12),
    inset 0 -2px 2px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(0, 0, 0, 0.44),
    -3px 4px 4px rgba(0, 0, 0, 0.62),
    -8px 12px 17px -9px rgba(0, 0, 0, 0.78);
}

.theme-switch-input:checked + .switch::after {
  border-color: rgba(109, 80, 31, 0.72);
  background: radial-gradient(circle at 35% 28%, #ffe7a7 0%, #d7a64a 48%, #6f4b15 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.62),
    inset 0 -2px 3px rgba(0, 0, 0, 0.56),
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 9px rgba(215, 166, 74, 0.72),
    0 2px 5px rgba(0, 0, 0, 0.58);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: 138px max(24px, calc((100% - 1220px) / 2)) 64px;
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero::after {
  z-index: -1;
  background: var(--hero-overlay);
}

.hero-background,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-background {
  z-index: -2;
  overflow: hidden;
  background: var(--graphite);
}

.hero-bg {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  transition: opacity 1400ms ease, transform 6000ms ease, filter 320ms ease;
}

.hero-bg.active {
  opacity: 1;
  transform: scale(1.055);
}

.hero-bg-living {
  background-image: url("assets/kristina-hero-living.png");
}

.hero-bg-kitchen {
  background-image: url("assets/kristina-hero-kitchen.png");
}

.hero-bg-bedroom {
  background-image: url("assets/kristina-hero-bedroom.png");
}

.hero-content {
  align-self: end;
  width: min(850px, 100%);
  max-width: 850px;
  min-width: 0;
}

@media (min-width: 681px) {
  .hero-content {
    margin-bottom: calc(clamp(48px, 7vh, 86px) + 50px);
  }
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--hero-text-muted);
}

.eyebrow::before,
.section-kicker::before {
  width: 34px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  overflow-wrap: break-word;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: 6.2rem;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 4.8rem;
}

h3 {
  margin-bottom: 12px;
  color: inherit;
  font-size: 1.22rem;
  line-height: 1.25;
}

.hero-content p {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--hero-text-soft);
  font-size: 1.08rem;
}

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

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-actions,
.hero-caption span,
.hero-caption strong {
  opacity: 0;
  animation: heroElementIn 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content .eyebrow {
  animation-delay: 120ms;
}

.hero-content h1 {
  animation-delay: 260ms;
}

.hero-content p {
  animation-delay: 440ms;
}

.hero-actions {
  animation-delay: 620ms;
}

.hero-caption span {
  animation-delay: 780ms;
}

.hero-caption strong {
  animation-delay: 920ms;
}

.site-header {
  animation: heroHeaderIn 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroElementIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroHeaderIn {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-work-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--hero-work-bg);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  color: var(--on-dark);
  cursor: pointer;
  outline: 0;
  position: relative;
  text-decoration: none;
  transition: border-color 350ms ease, box-shadow 350ms ease;
}

.hero-work-text {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.hero-work-arrow {
  position: absolute;
  bottom: 0;
  left: -100%;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--hero-work-arrow-bg);
  transition: left 350ms ease-out;
}

.hero-work-arrow::before,
.hero-work-arrow::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
}

.hero-work-arrow::before {
  transform: translate(-12px, -50%) rotate(45deg);
}

.hero-work-arrow::after {
  transform: translate(0, -50%) rotate(45deg);
}

.hero-work-button:hover,
.hero-work-button:focus-visible {
  border-color: var(--hero-work-arrow-bg);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.hero-work-button:hover .hero-work-arrow,
.hero-work-button:focus-visible .hero-work-arrow {
  left: 0;
}

.hero-work-button:hover .hero-work-text,
.hero-work-button:focus-visible .hero-work-text {
  opacity: 0;
  transform: translateX(120%);
}

.learn-more {
  position: relative;
  display: inline-block;
  width: 13.25rem;
  height: 3rem;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  outline: none;
  padding: 0;
  text-decoration: none;
  vertical-align: middle;
}

.learn-more .circle {
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  margin: 0;
  border-radius: 1.625rem;
  background: var(--on-dark);
  transition: width 450ms cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more .icon {
  position: absolute;
  inset: 0 auto 0 0;
  margin: auto;
  transition: background 450ms cubic-bezier(0.65, 0, 0.076, 1), transform 450ms cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more .icon.arrow {
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: transparent;
}

.learn-more .icon.arrow::before {
  position: absolute;
  top: -0.25rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid var(--on-dark-contrast);
  border-right: 0.125rem solid var(--on-dark-contrast);
  content: "";
  transform: rotate(45deg);
}

.learn-more .button-text {
  position: absolute;
  inset: 0;
  margin-left: 1.85rem;
  padding: 0.85rem 0;
  color: var(--on-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  transition: color 450ms cubic-bezier(0.65, 0, 0.076, 1);
}

.learn-more:hover .circle,
.learn-more:focus-visible .circle {
  width: 100%;
}

.learn-more:hover .icon.arrow,
.learn-more:focus-visible .icon.arrow {
  background: var(--on-dark-contrast);
  transform: translate(1rem, 0);
}

.learn-more:hover .button-text,
.learn-more:focus-visible .button-text {
  color: var(--on-dark-contrast);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line-light);
  color: var(--on-dark);
}

.btn-ghost:hover {
  background: var(--header-action-hover);
}

.btn-dark {
  background: var(--graphite);
  box-shadow: 0 18px 34px rgba(24, 24, 23, 0.2);
  color: var(--on-dark);
}

.hero-caption {
  position: absolute;
  right: max(24px, calc((100% - 1220px) / 2));
  bottom: 56px;
  display: grid;
  gap: 4px;
  text-align: right;
}

.hero-caption span {
  color: var(--hero-text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-caption strong {
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 110px 0;
}

.split-heading,
.works-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 58px;
}

.split-heading > *,
.works-top > *,
.atelier-copy,
.contact-copy {
  min-width: 0;
}

.split-heading p,
.works-top p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.principle {
  min-height: 260px;
  padding: 28px;
  background: var(--panel);
  transition: background 180ms ease, transform 180ms ease;
}

.principle:hover {
  background: var(--panel-hover);
  transform: translateY(-4px);
}

.principle span {
  display: block;
  margin-bottom: 64px;
  color: var(--olive);
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
}

.principle p {
  margin-bottom: 0;
  color: var(--muted);
}

.works {
  width: min(1480px, calc(100% - 48px));
  padding-top: 124px;
}

.works-top {
  width: min(1220px, 100%);
  margin-right: auto;

}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
  background: var(--graphite);
  color: var(--on-dark);
  transform: translateY(-2px);
}

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

.work-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  isolation: isolate;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.work-card.hidden {
  display: none;
}

.work-card.lead {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 874px;
}

.work-card.wide {
  grid-column: span 2;
}

.work-card.tall {
  grid-row: span 2;
  min-height: 874px;
}

.work-card:hover,
.work-card:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.work-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brass) 34%, transparent);
  outline-offset: 3px;
}

.work-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/kristina-interior-contact-sheet.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  transition: transform 520ms ease, filter 320ms ease;
}

body.theme-gallery .hero-bg,
body.theme-gallery .work-photo {
  filter: saturate(0.7) contrast(1.14) brightness(0.72);
}

.work-card:hover .work-photo {
  transform: scale(1.035);
}

.photo-living {
  background-position: 0% 0%;
}

.photo-kitchen {
  background-position: 50% 0%;
}

.photo-bedroom {
  background-position: 100% 0%;
}

.photo-bath {
  background-position: 0% 100%;
}

.photo-dining {
  background-position: 50% 100%;
}

.photo-lounge {
  background-position: 100% 100%;
}

.work-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: var(--work-overlay);
  pointer-events: none;
}

.work-meta {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  color: var(--on-dark);
}

.work-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--hero-text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-meta h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 0.98;
}

.work-card.lead .work-meta h3,
.work-card.tall .work-meta h3 {
  font-size: 3.2rem;
}

.work-meta p {
  margin-bottom: 0;
  color: var(--hero-text-muted);
  font-weight: 700;
}

.atelier {
  padding-bottom: 130px;
}

.atelier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 74px;
  align-items: start;
}

.atelier-copy p {
  max-width: 650px;
  margin-top: 28px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.atelier-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.atelier-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
}

.atelier-list span {
  color: var(--olive);
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
}

.atelier-list strong {
  font-size: 1.02rem;
}

.contact {
  padding: 112px max(24px, calc((100% - 1220px) / 2));
  background: var(--graphite);
  color: var(--on-dark);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 86px;
  align-items: start;
}

.contact .section-kicker {
  color: var(--taupe);
}

.contact-copy h2 + p {
  margin-top: clamp(18px, 2.4vw, 32px);
}

.contact-copy p {
  max-width: 560px;
  color: var(--hero-text-muted);
}

.contact-links {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.contact-links > a {
  font-weight: 800;
  transition: color 180ms ease;
}

.contact-links > a:hover {
  color: var(--brass);
}

.social-links,
.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px 8px 11px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--on-dark) 6%, transparent);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-links .social-link {
  width: 52px;
  justify-content: center;
  padding: 0;
}

.contact-links .social-link > span:not(.social-icon) {
  display: none;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: color-mix(in srgb, var(--brass) 66%, transparent);
  background: color-mix(in srgb, var(--brass) 14%, transparent);
  color: var(--brass);
  transform: translateY(-2px);
}

.social-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 7%, transparent);
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--on-dark);
  outline: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--on-dark) 48%, transparent);
}

.field input {
  min-height: 54px;
  padding: 0 15px;
}

.field textarea {
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--brass) 68%, transparent);
  background: color-mix(in srgb, var(--on-dark) 12%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 12%, transparent);
}

.field input.invalid,
.field textarea.invalid {
  border-color: var(--error);
}

.field-error {
  min-height: 18px;
  color: var(--error-text);
  font-size: 0.78rem;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--send-accent);
  font-weight: 800;
}

.send-request-button {
  position: relative;
  display: inline-flex;
  width: min(250px, 100%);
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--send-accent);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
  transition: color 300ms ease, box-shadow 300ms ease;
}

.send-request-label {
  position: relative;
  z-index: 1;
}

.send-request-button::before,
.send-request-button::after,
.send-corner {
  position: absolute;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  content: "";
  pointer-events: none;
  transition: width 900ms ease, height 900ms ease, border-color 300ms ease;
}

.send-request-button::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--send-accent);
  border-left: 2px solid var(--send-accent);
}

.send-request-button::after {
  top: 0;
  right: 0;
  border-top: 2px solid var(--send-accent);
  border-right: 2px solid var(--send-accent);
}

.send-corner-left {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid var(--send-accent);
  border-left: 2px solid var(--send-accent);
}

.send-corner-right {
  bottom: 0;
  right: 0;
  border-right: 2px solid var(--send-accent);
  border-bottom: 2px solid var(--send-accent);
}

.send-request-button:hover,
.send-request-button:focus-visible {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  color: var(--on-dark);
}

.send-request-button:hover::before,
.send-request-button:hover::after,
.send-request-button:hover .send-corner,
.send-request-button:focus-visible::before,
.send-request-button:focus-visible::after,
.send-request-button:focus-visible .send-corner {
  width: 50%;
  height: 50%;
}

.footer-band {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, var(--container)) minmax(0, 1fr);
  align-items: center;
  position: relative;
}

.footer {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 22px;
  width: min(100%, var(--container));
  margin: 0;
  padding: 34px 0 44px;
  color: var(--muted);
}

.footer .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.footer p {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
  text-align: center;
}

.developer-credit {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  margin-left: 24px;
  max-width: min(230px, calc(100vw - 48px));
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-decoration: none;
  transition: color 220ms ease;
  white-space: nowrap;
}

.developer-credit span {
  border-bottom: 1px solid color-mix(in srgb, currentColor 34%, transparent);
  transition: border-color 220ms ease;
}

.developer-credit:hover,
.developer-credit:focus-visible {
  color: var(--brass);
}

.developer-credit:hover span,
.developer-credit:focus-visible span {
  border-color: currentColor;
}

.footer-links {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  flex-wrap: nowrap;
  gap: 8px;
}

.footer-links .social-link {
  min-height: 42px;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  font-size: 0.76rem;
  letter-spacing: 0.055em;
}

.footer-links .social-icon {
  width: 28px;
  height: 28px;
}

.footer-links .social-icon svg {
  width: 17px;
  height: 17px;
}

@media (min-width: 1081px) and (hover: hover) and (pointer: fine) {
  .footer-links {
    transform: translateX(350px);
  }
}

@media (min-width: 1081px) and (max-width: 1280px) and (hover: none),
  (min-width: 1081px) and (max-width: 1280px) and (pointer: coarse) {
  :root {
    --container: min(1080px, calc(100% - 44px));
    --tablet-header-width: min(1000px, calc(100% - 180px));
  }

  .site-header {
    width: var(--tablet-header-width);
    gap: 18px;
    padding: 10px 14px;
  }

  .theme-toggle-home {
    display: flex;
    top: 30px;
    right: max(18px, calc((100vw - var(--tablet-header-width)) / 2 - 82px));
  }

  body.header-scrolled .theme-toggle-home {
    top: 22px;
  }

  .nav {
    gap: 24px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 124px max(28px, calc((100% - 1080px) / 2)) 58px;
  }

  .hero-content {
    max-width: 760px;
    margin-bottom: 52px;
  }

  h1 {
    max-width: 660px;
    font-size: 4.7rem;
  }

  h2 {
    font-size: 3.72rem;
  }

  .section {
    padding: 92px 0;
  }

  .split-heading,
  .works-top {
    gap: 46px;
    margin-bottom: 46px;
  }

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

  .principle {
    min-height: 220px;
  }

  .principle span {
    margin-bottom: 40px;
  }

  .works {
    width: var(--container);
    padding-top: 104px;
  }

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

  .work-card {
    min-height: 390px;
  }

  .work-card.lead,
  .work-card.tall {
    min-height: 640px;
  }

  .atelier-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 52px;
  }

  .contact {
    padding: 86px max(28px, calc((100% - 1080px) / 2));
  }

  .contact-inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 54px;
  }

  .contact-copy p {
    max-width: 460px;
  }

  .contact-form {
    gap: 14px;
  }

  .field input {
    min-height: 52px;
  }

  .field textarea {
    min-height: 138px;
  }

  .footer-band {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer {
    grid-column: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: var(--container);
    padding: 34px 0 18px;
  }

  .footer .brand {
    order: 1;
  }

  .footer p {
    order: 2;
    margin-top: 10px;
  }

  .footer-links {
    order: 3;
    justify-content: center;
    margin-top: 8px;
    transform: none;
  }

  .developer-credit {
    grid-column: auto;
    align-self: center;
    justify-self: auto;
    width: var(--container);
    margin: 0 auto 34px;
    text-align: center;
  }
}

@media (min-width: 681px) and (max-width: 1080px) and (orientation: portrait) and (hover: none),
  (min-width: 681px) and (max-width: 1080px) and (orientation: portrait) and (pointer: coarse) {
  .hero-content {
    align-self: start;
    margin-bottom: 0;
    margin-top: clamp(120px, 14vh, 170px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(14px);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  width: min(1060px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
  transform: translateY(14px) scale(0.99);
  transition: transform 180ms ease;
}

.modal.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--on-dark);
  color: var(--on-dark-contrast);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.modal-visual {
  position: relative;
  min-height: 560px;
}

.modal-visual.work-photo {
  position: relative;
  inset: auto;
}

.modal-copy {
  display: grid;
  align-content: end;
  padding: 46px;
  color: var(--ink);
}

.modal-copy span {
  margin-bottom: 12px;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-copy h2 {
  margin-bottom: 14px;
  font-size: 4.1rem;
}

.modal-copy strong {
  display: block;
  margin-bottom: 20px;
  color: var(--brass);
}

.modal-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 680ms ease, transform 680ms ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible,
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .hero .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  :root {
    --container: min(900px, calc(100% - 32px));
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    justify-items: center;
    min-height: 76px;
    padding: 10px 10px 12px;
    border: 1px solid var(--header-border);
    border-radius: var(--radius);
    background: var(--graphite);
    box-shadow: var(--shadow);
    color: var(--on-dark);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, background 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
  }

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

  .site-header.scrolled .nav.open {
    border-color: var(--header-scrolled-border);
    background: var(--header-scrolled-bg);
    color: var(--ink);
    box-shadow: var(--soft-shadow);
  }

  .nav-link {
    justify-self: center;
    min-width: 116px;
    padding: 13px 14px;
    border-radius: var(--radius);
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: color-mix(in srgb, var(--on-dark) 10%, transparent);
  }

  .site-header.scrolled .nav.open .nav-link:hover,
  .site-header.scrolled .nav.open .nav-link.active {
    background: color-mix(in srgb, currentColor 9%, transparent);
  }

  .theme-toggle-home {
    display: none;
  }

  .theme-toggle-nav {
    display: flex;
    position: static;
    align-items: center;
    justify-content: space-between;
    justify-self: stretch;
    gap: 16px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 8px 0 0;
    padding: 14px 8px 0;
    border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent);
  }

  .site-header.scrolled .nav.open .theme-toggle-nav {
    border-top-color: color-mix(in srgb, currentColor 14%, transparent);
  }

  .theme-toggle-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
  }

  .theme-toggle-copy span {
    color: var(--on-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .site-header.scrolled .nav.open .theme-toggle-copy span {
    color: currentColor;
  }

  .theme-toggle-copy small {
    color: var(--hero-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .site-header.scrolled .nav.open .theme-toggle-copy small {
    color: var(--muted);
  }

  .header-action {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
  }

  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 3.8rem;
  }

  .split-heading,
  .works-top,
  .atelier-layout,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

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

  .work-card.lead,
  .work-card.tall {
    grid-row: auto;
    min-height: 520px;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .modal-panel {
    grid-template-columns: 1fr;
  }

  .modal-visual {
    min-height: 420px;
  }

  .footer {
    display: flex;
    align-items: center;
    flex-direction: column;
  }
}

@media (min-width: 681px) and (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: normal;
    gap: 18px;
  }

  .nav {
    position: static;
    display: flex;
    grid-template-columns: none;
    justify-content: center;
    gap: clamp(15px, 2.4vw, 24px);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: currentColor;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav.open {
    transform: none;
  }

  .nav-link {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    text-align: left;
  }

  .nav-link::after {
    display: block;
  }

  .nav-link:hover,
  .nav-link.active {
    background: transparent;
  }

  .theme-toggle-nav {
    display: none;
    justify-self: auto;
    width: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .theme-toggle-home {
    display: flex;
    top: 98px;
    right: max(24px, calc((100vw - var(--container)) / 2 + 20px));
  }

  body.header-scrolled .theme-toggle-home {
    top: 90px;
  }

  .theme-toggle-copy {
    display: none;
  }

  .header-action {
    display: inline-flex;
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.76rem;
  }

  .menu-toggle {
    display: none;
  }

  .footer-band {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer {
    grid-column: auto;
  }

  .developer-credit {
    align-self: center;
    width: var(--container);
    margin: -22px auto 44px;
    text-align: center;
  }
}

@media (min-width: 1081px) and (max-width: 1280px) and (max-height: 920px) and (hover: hover) and (pointer: fine) {
  .theme-toggle-home {
    top: 98px;
    right: max(24px, calc((100vw - var(--container)) / 2 + 20px));
  }

  body.header-scrolled .theme-toggle-home {
    top: 90px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(560px, calc(100% - 24px));
  }

  html {
    scroll-padding-top: 86px;
  }

  .site-header {
    top: 10px;
    padding: 10px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 112px 18px 44px;
  }

  .hero-content,
  .hero-actions {
    width: min(100%, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }

  .hero::after {
    background: var(--hero-overlay-mobile);
  }

  h1 {
    max-width: 20ch;
    overflow-wrap: normal;
    font-size: 2.58rem;
  }

  h2 {
    font-size: 2.28rem;
  }

  .hero-content p {
    max-width: 30ch;
    font-size: 1rem;
  }

  .split-heading h2,
  .works-top h2 {
    max-width: 20ch;
    overflow-wrap: normal;
  }

  .split-heading p,
  .works-top p,
  .atelier-copy p,
  .contact-copy p {
    max-width: 32ch;
  }

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

  .contact-links .social-links {
    flex-direction: row;
    align-items: center;
  }

  .contact-links .social-link {
    flex: 0 0 52px;
  }

  .btn {
    width: 100%;
  }

  .send-request-button {
    width: 100%;
  }

  .footer .brand {
    order: 1;
  }

  .footer-links {
    order: 2;
  }

  .footer p {
    order: 3;
    margin-top: 20px;
  }

  .developer-credit {
    order: 4;
  }

  .hero-work-button,
  .learn-more {
    width: calc(100vw - 64px);
    max-width: 60%;
  }

  .hero-caption {
    position: static;
    align-self: end;
    margin-top: 38px;
    text-align: right;
  }

  .section {
    padding: 76px 0;
  }

  .works {
    width: min(560px, calc(100% - 24px));
    padding-top: 86px;
  }

  .principles-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    min-height: 200px;
  }

  .principle span {
    margin-bottom: 38px;
  }

  .work-card,
  .work-card.lead,
  .work-card.wide,
  .work-card.tall {
    grid-column: auto;
    min-height: 390px;
  }

  .work-meta {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .work-meta h3,
  .work-card.lead .work-meta h3,
  .work-card.tall .work-meta h3 {
    font-size: 2.1rem;
  }

  .contact {
    padding: 78px 18px;
  }

  .modal {
    padding: 12px;
  }

  .modal-visual {
    min-height: 310px;
  }

  .modal-copy {
    padding: 26px;
  }

  .modal-copy h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 680px) and (hover: none) and (pointer: coarse) {
  .footer-band {
    display: flex;
    flex-direction: column;
  }

  .developer-credit {
    align-self: center;
    width: var(--container);
    margin: -22px auto 34px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .filter-button {
    flex: 1 1 calc(50% - 8px);
  }

  h1 {
    font-size: 2.42rem;
  }
}
