/* =========================================================
   Марина — дизайн интерьера и визуализация
   Static stylesheet. No framework, no runtime dependencies.
   ========================================================= */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/inter-tight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --paper: #f4f0e8;
  --paper-deep: #ebe4d7;
  --ink: #1c1a16;
  --ink-soft: #686155;
  --line: rgba(28, 26, 22, 0.16);
  --line-strong: rgba(28, 26, 22, 0.34);
  --olive: #56604a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 3.2vw, 46px);
  --max: 1600px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

section[id],
div[id] {
  scroll-margin-top: 92px;
}

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

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

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--olive);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn .btn__arrow {
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

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

.btn--dark:hover,
.btn--dark:focus-visible {
  background: transparent;
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line-strong);
}

.btn--small {
  min-height: 42px;
  padding-inline: 20px;
  font-size: 11px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.035em;
  transition: border-color 0.3s var(--ease);
}

.link-arrow span:last-child {
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  border-color: var(--ink);
}

.link-arrow:hover span:last-child {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  padding-block: clamp(18px, 2.4vw, 28px);
  transition: padding 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header.is-scrolled {
  position: fixed;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header--solid {
  position: relative;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.brand__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.36em;
  line-height: 1;
  white-space: nowrap;
}

.brand__tag {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 36px);
}

.nav a {
  position: relative;
  padding-block: 4px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  padding: 20px var(--pad) 28px;
  overflow-y: auto;
  background: var(--paper);
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease), visibility 0.6s;
}

.mobile-menu.is-open {
  visibility: visible;
  transform: none;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.mobile-menu__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-block: 22px;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mobile-menu__nav a span {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: clamp(620px, 88svh, 940px);
  overflow: hidden;
  background: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 54%;
  filter: saturate(1.04) contrast(1.04);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(244, 240, 232, 0.96) 0%,
      rgba(244, 240, 232, 0.9) 22%,
      rgba(244, 240, 232, 0.68) 42%,
      rgba(244, 240, 232, 0.26) 62%,
      rgba(244, 240, 232, 0) 82%
    ),
    linear-gradient(
      180deg,
      rgba(244, 240, 232, 0.62) 0%,
      rgba(244, 240, 232, 0.08) 24%,
      rgba(26, 23, 18, 0.06) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
  padding-top: clamp(132px, 15vh, 190px);
  padding-bottom: clamp(28px, 4.5vh, 52px);
}

.hero__title {
  max-width: 1100px;
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero__title-sans,
.hero__title-serif {
  display: block;
}

.hero__title-sans {
  font-size: clamp(46px, 8.3vw, 142px);
}

.hero__title-serif {
  margin-top: 0.03em;
  font-family: var(--serif);
  font-size: clamp(43px, 7.7vw, 132px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: auto;
  padding-top: clamp(48px, 8vh, 100px);
}

.hero__sub {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  max-width: 280px;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
}

.hero__sub::before {
  content: "";
  flex: 0 0 auto;
  width: 1px;
  height: 42px;
  margin-top: 4px;
  background: var(--ink);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.hero__scroll:hover {
  color: var(--ink);
}

.hero__scroll svg {
  width: 14px;
  height: 14px;
}

/* ---------- Sections ---------- */

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

.section--flush-bottom {
  padding-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 2.4vw, 32px);
  margin-bottom: clamp(26px, 3.6vw, 48px);
}

.section-head__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  min-width: 0;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1;
}

.section-head__line {
  flex: 1;
  height: 1px;
  min-width: 30px;
  margin-top: 0.72em;
  background: var(--line);
}

.section-head__count {
  flex: 0 0 auto;
  padding-bottom: 0.3em;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.section-lead {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.65;
}

.portfolio-lead {
  max-width: 640px;
  margin: calc(-1 * clamp(2px, 1vw, 12px)) 0 clamp(22px, 3vw, 34px);
}

/* ---------- Work cards ---------- */

.work {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.work__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.work:hover .work__media img {
  transform: scale(1.035);
}

.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0.07);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.work:hover .work__media::after {
  opacity: 1;
}

.work__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 13px;
}

.work__meta-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.work__title {
  margin: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work__cat {
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.work__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.work__arrow {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.work:hover .work__arrow {
  transform: translateX(4px);
}

/* ---------- Portfolio ---------- */

.portfolio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.portfolio-count {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 46px) clamp(16px, 2vw, 28px);
}

.portfolio-grid .work__media {
  aspect-ratio: 4 / 3;
}

.portfolio-grid .work[hidden] {
  display: none;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 100px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
}

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

.about__body {
  max-width: 600px;
}

.about__title {
  margin: 22px 0 24px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.about__title em {
  font-style: italic;
}

.about p {
  max-width: 50ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: clamp(13.5px, 1.2vw, 16px);
  line-height: 1.7;
}

.about p:last-of-type {
  margin-bottom: 0;
}

.about__signature {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  line-height: 1;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

/* ---------- Approach ---------- */

.approach {
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
}

.approach__intro .section-title {
  max-width: 430px;
  margin-top: 20px;
}

.approach__intro .section-lead {
  margin-top: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}

.step {
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.step__title {
  margin: 28px 0 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.step__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.pullquote {
  max-width: 1000px;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 48px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.pullquote span {
  display: block;
  margin-top: 18px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- CTA ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  background: var(--paper-deep);
}

.cta__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3vw, 36px);
  padding: clamp(40px, 6vw, 84px) var(--pad);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

.cta__title {
  max-width: 700px;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.cta__title em {
  font-family: var(--serif);
  font-size: 0.99em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

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

/* ---------- Contacts ---------- */

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

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}

.contact__title {
  max-width: 720px;
  margin: 22px 0 26px;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.contact__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.contact__lead {
  max-width: 460px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(13.5px, 1.2vw, 15px);
  line-height: 1.65;
}

.contact__socials {
  margin-top: 32px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.social-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.contact__panel {
  padding-top: 8px;
}

.contact__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact__email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact__email {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(23px, 2.8vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  transition: color 0.25s var(--ease);
}

.contact__email:hover {
  color: var(--olive);
}

.copy-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.copy-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.contact__rows {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
}

.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.contact__row-label {
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__row-value {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  text-align: right;
}

.contact__row-value span:last-child {
  font-size: 14px;
  transition: transform 0.3s var(--ease);
}

.contact__row:hover .contact__row-value span:last-child {
  transform: translate(2px, -2px);
}

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

.contact__note {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 30px 24px;
  border-top: 1px solid var(--line);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 26px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 32px);
}

.footer__nav a {
  font-size: 12px;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.footer__nav a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer__bottom a:hover {
  color: var(--ink);
}

/* ---------- Project page ---------- */

.project-head {
  padding-top: clamp(34px, 5vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(28px, 4vw, 46px);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

.project-title {
  max-width: 1200px;
  margin: 0;
  font-size: clamp(46px, 8vw, 126px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.project-subtitle {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 38px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: clamp(26px, 4vw, 44px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.project-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.project-cover {
  margin-top: clamp(34px, 5vw, 60px);
}

.project-cover__media {
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 16 / 9;
}

.project-cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(34px, 6vw, 100px);
  padding-block: clamp(44px, 7vw, 88px);
}

.project-intro__text {
  max-width: 680px;
}

.project-intro__text .eyebrow {
  margin-bottom: 20px;
}

.project-intro__text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.25vw, 16.5px);
  line-height: 1.72;
}

.project-intro__text p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-self: start;
  border-top: 1px solid var(--ink);
}

.fact__label {
  grid-column: 1;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.fact__value {
  grid-column: 2;
  margin: 0;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 52px) clamp(16px, 2.4vw, 34px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.gallery__item {
  margin: 0;
}

.gallery__button {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.gallery__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery__button:hover img {
  transform: scale(1.03);
}

.gallery__caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 11px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.gallery__caption::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.gallery__caption span {
  margin-left: auto;
}

.next-project {
  display: block;
  padding-block: clamp(34px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.next-project__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.next-project__label {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-project__title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.next-project__arrow {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 300;
  transition: transform 0.35s var(--ease);
}

.next-project:hover .next-project__arrow {
  transform: translateX(6px);
}

.next-project__media {
  flex: 0 0 auto;
  width: clamp(120px, 18vw, 260px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.next-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.next-project:hover .next-project__media img {
  transform: scale(1.04);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
  background: rgba(18, 17, 14, 0.96);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  display: flex;
  max-width: min(1400px, 92vw);
  max-height: 86vh;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox__caption {
  color: rgba(244, 240, 232, 0.66);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 240, 232, 0.3);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lightbox__close:hover {
  background: var(--paper);
  color: var(--ink);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 240, 232, 0.3);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.lightbox__nav:hover {
  background: var(--paper);
  color: var(--ink);
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

.lightbox__count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  color: rgba(244, 240, 232, 0.55);
  font-size: 10px;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 250;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

/* ---------- 404 ---------- */

.error-page {
  display: flex;
  min-height: 70svh;
  align-items: center;
  padding-block: clamp(70px, 12vw, 140px);
}

.error-page__code {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(110px, 22vw, 280px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.error-page__text {
  max-width: 440px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .brand__tag {
    display: none;
  }

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

  .about {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .steps {
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .nav,
  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .approach__intro .section-title {
    max-width: 620px;
  }

  .approach__intro .section-lead {
    max-width: 620px;
    margin-top: 20px;
  }

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

  .cta__body {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .cta__media {
    min-height: 320px;
  }

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

  .contact__panel {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__media {
    aspect-ratio: 4 / 3;
    max-height: 520px;
  }

  .about__body {
    max-width: 640px;
  }

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

  .facts {
    width: 100%;
    max-width: 560px;
  }

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

  .lightbox {
    padding: 64px 16px 84px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox__nav--prev {
    left: calc(50% - 56px);
  }

  .lightbox__nav--next {
    right: calc(50% - 56px);
  }

  .lightbox__count {
    bottom: 26px;
  }
}

@media (max-width: 740px) {
  .hero {
    min-height: max(600px, 92svh);
  }

  .hero__media img {
    object-position: 63% center;
  }

  .hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgba(244, 240, 232, 0.98) 0%,
        rgba(244, 240, 232, 0.93) 38%,
        rgba(244, 240, 232, 0.56) 62%,
        rgba(244, 240, 232, 0.14) 82%,
        rgba(244, 240, 232, 0) 100%
      ),
      linear-gradient(
        90deg,
        rgba(244, 240, 232, 0.55) 0%,
        rgba(244, 240, 232, 0) 85%
      );
  }

  .hero__inner {
    padding-top: 112px;
    padding-bottom: 26px;
  }

  .hero__title-sans {
    font-size: clamp(43px, 12.4vw, 76px);
  }

  .hero__title-serif {
    font-size: clamp(37px, 10.6vw, 66px);
  }

  .hero__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-top: 46px;
  }

  .hero__sub {
    max-width: 240px;
    font-size: 12.5px;
  }

  .hero__scroll {
    display: none;
  }

  .section-head {
    align-items: flex-end;
  }

  .section-head__line {
    display: none;
  }

  .section-head__main {
    flex: 1;
  }

  .section-head__count {
    padding-bottom: 0.35em;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    padding-block: 20px 22px;
    border-top: 1px solid var(--line);
  }

  .step:first-child {
    border-top-color: var(--ink);
  }

  .step__title {
    margin-top: 18px;
  }

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

  .footer__bottom {
    justify-content: flex-start;
  }

  .next-project__media {
    width: 96px;
  }

  .next-project__inner {
    gap: 16px;
  }

  .project-meta {
    gap: 10px 18px;
  }
}

@media (max-width: 480px) {
  .brand__name {
    letter-spacing: 0.28em;
    font-size: 14px;
  }

  .hero__title-sans {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero__title-serif {
    font-size: clamp(34px, 10.2vw, 48px);
  }

  .section-title {
    font-size: 30px;
  }

  .cta__body {
    padding-block: 44px;
  }

  .cta__media {
    min-height: 250px;
  }

  .about__media {
    max-height: 380px;
  }

  .about__title {
    font-size: 34px;
  }

  .contact__title {
    font-size: 40px;
  }

  .contact__email {
    font-size: 22px;
  }

  .project-title {
    font-size: clamp(40px, 12vw, 58px);
  }

  .fact {
    grid-template-columns: 90px 1fr;
  }

  .next-project__title {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
