:root {
  --blue: #00387b;
  --blue-deep: #002653;
  --blue-bright: #1768aa;
  --red: #c52b31;
  --ink: #111116;
  --ink-soft: #5f606a;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: #d6d6d2;
  --night: #090914;
  --shell: 1380px;
  --header-h: 94px;
  --pad: clamp(22px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  padding-right: var(--menu-scrollbar-compensation, 0px);
}

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

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  color: var(--blue);
  font-weight: 750;
  transform: translateY(-160%);
}

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

.shell {
  width: min(100%, calc(var(--shell) + (2 * var(--pad))));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(246, 245, 241, 0.96);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(10, 10, 20, 0.06);
}

.menu-open .site-header {
  background: var(--paper);
  backdrop-filter: none;
}

.header-inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

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

.main-nav {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-y: auto;
  padding: calc(var(--header-h) + 34px) max(var(--pad), calc((100vw - 760px) / 2)) 48px;
  background: var(--paper);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  text-transform: uppercase;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

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

.main-nav a,
.main-nav .login-link {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink);
}

.main-nav a > span {
  display: inline;
  align-self: center;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.main-nav a > span::after {
  content: " /";
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav .login-link {
  grid-template-columns: 1fr;
  margin-top: 10px;
  padding-left: 72px;
  color: var(--blue);
}

.menu-toggle {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  padding: 10px 0 10px 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle-icon {
  display: grid;
  width: 29px;
  gap: 5px;
}

.menu-toggle-icon i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-open .menu-toggle-icon i:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle-icon i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-open .menu-toggle-icon i:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.chapter {
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

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

.single-rail {
  grid-template-columns: 1fr;
}

.chapter-slide {
  position: relative;
  display: flex;
  min-height: min(790px, calc(100vh - var(--header-h)));
}

.slide-shell {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(62px, 7vw, 108px) clamp(34px, 6vw, 88px);
}

.chapter-label,
.detail-label {
  margin: 0 0 clamp(26px, 4vw, 48px);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter h1,
.chapter h2 {
  margin: 0;
  font-weight: 630;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.chapter h1 {
  font-size: clamp(50px, 5.4vw, 82px);
}

.chapter h1 span {
  color: var(--blue);
}

.chapter h2 {
  font-size: clamp(42px, 4.6vw, 68px);
}

.chapter-lead,
.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
}

.hero-offer,
.hero-lead,
.chapter-lead,
.service-list p,
.process-list p,
.quality-list p,
.about-copy > p:not(.chapter-label),
.login-copy > p,
.login-help {
  text-align: left;
  text-align-last: auto;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-slide {
  background:
    radial-gradient(circle at 85% 16%, rgba(0, 56, 123, 0.13), transparent 27%),
    linear-gradient(125deg, #f6f5f1 0 58%, #e9eaf4 100%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 34px;
}

.hero-offer {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--blue);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.38;
}

.hero-lead {
  max-width: 690px;
  margin: 12px 0 0;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

.button-primary:hover {
  background: var(--blue-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 750;
}

.trust-list {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.trust-list li {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 1.2fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.trust-list strong {
  font-size: 14px;
}

.trust-list span {
  color: var(--ink-soft);
  font-size: 13px;
}

.anniversary-card {
  display: flex;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--blue);
  color: var(--white);
}

.anniversary-card strong {
  font-size: 76px;
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.75;
}

.anniversary-card span {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  padding-top: 12px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.approach-slide {
  background:
    linear-gradient(rgba(0, 56, 123, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 56, 123, 0.06) 1px, transparent 1px),
    #eef0f6;
  background-size: 56px 56px;
}

.compact-shell {
  align-self: center;
}

.service-list,
.quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.service-list article,
.quality-list article {
  min-height: 150px;
  padding: 22px 22px 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-list article:nth-child(even),
.quality-list article:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.service-list h3,
.service-list p,
.quality-list h3,
.quality-list p {
  margin: 0;
}

.service-list h3,
.quality-list h3 {
  font-size: 19px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.service-list p,
.quality-list p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

.chapter-projects .chapter-rail {
  grid-template-columns: 1.12fr 0.88fr;
}

.projects-intro-slide {
  background: linear-gradient(145deg, #f7f6f2 0 46%, #e9eaf3 100%);
}

.projects-more-slide {
  background: #eceef5;
}

.project-slide-shell h2 {
  max-width: 720px;
}

.project-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid #c8c8d2;
  background:
    linear-gradient(rgba(0, 56, 123, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 56, 123, 0.08) 1px, transparent 1px),
    #e2e3e8;
  background-size: 38px 38px;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  border: 1px solid rgba(0, 56, 123, 0.58);
  content: "";
}

.project-visual::before {
  inset: 12% 12% 22%;
}

.project-visual::after {
  right: 12%;
  bottom: 10%;
  width: 52%;
  height: 18%;
}

.project-visual-large {
  min-height: 315px;
  margin-top: 34px;
}

.project-visual span {
  position: relative;
  z-index: 2;
  padding: 7px 9px;
  background: rgba(246, 245, 241, 0.92);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}

.project-caption h3,
.project-caption p {
  margin: 0;
}

.project-caption h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.project-caption p {
  max-width: 220px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: right;
}

.project-pair {
  display: grid;
  gap: 30px;
}

.project-pair .project-visual {
  min-height: 235px;
}

.chapter-process .chapter-rail {
  grid-template-columns: 1fr 1fr;
}

.process-slide {
  background:
    radial-gradient(circle at 90% 8%, rgba(0, 56, 123, 0.11), transparent 28%),
    #eef0f7;
}

.process-slide .chapter-lead {
  max-width: 660px;
  margin: 28px 0 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  min-height: 120px;
  border-bottom: 1px solid var(--line);
  padding: 18px 18px 20px 0;
}

.process-list li:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.process-list h3,
.process-list p {
  margin: 0;
}

.process-list h3 {
  font-size: 18px;
}

.process-list p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.quality-slide {
  background:
    linear-gradient(rgba(107, 151, 195, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 151, 195, 0.12) 1px, transparent 1px),
    var(--night);
  background-size: 58px 58px;
  color: var(--white);
}

.detail-label-light {
  color: #8eb2d7;
}

.quality-list {
  border-color: #343442;
}

.quality-list article {
  border-color: #343442;
}

.quality-list article:nth-child(even) {
  border-color: #343442;
}

.quality-list p {
  color: #b9b9c8;
}

.fittings-card {
  position: relative;
}

.quality-list .partners-card {
  display: flex;
  flex-direction: column;
}

.partners-card .partner-logos {
  margin-top: auto;
  padding-top: 16px;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(2, 108px);
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.partner-logo {
  position: relative;
  display: block;
  overflow: hidden;
  width: 108px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: #ffffff;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: center;
}

.logo-blum img {
  transform: scale(2.15);
}

.logo-hettich img {
  transform: none;
}

.logo-hafele img {
  transform: scale(2.25);
}

.logo-peka,
.logo-egger {
  background: #ffffff;
}

.logo-peka img {
  transform: scale(1.02);
}

.logo-egger img {
  transform: scale(1.35);
}

.logo-kronospan img {
  transform: scale(1.04);
}

.logo-cleaf img {
  transform: scale(1.7);
}

.logo-swiss-krono img {
  transform: scale(1.45);
}

@media (min-width: 861px) {
  .hero-offer,
  .hero-lead,
  .chapter-lead,
  .about-copy > p:not(.chapter-label) {
    text-align: justify;
    text-align-last: left;
  }

  .main-nav {
    inset: 0 0 0 auto;
    width: 50vw;
    padding: calc(var(--header-h) + 34px) clamp(36px, 5vw, 86px) 48px;
    box-shadow: -26px 0 70px rgba(9, 9, 20, 0.16);
    opacity: 1;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), visibility 300ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateX(0);
  }

  .quality-slide .slide-shell {
    padding-inline: clamp(30px, 4vw, 64px);
  }
}

.about-slide {
  background:
    linear-gradient(90deg, rgba(0, 56, 123, 0.06) 1px, transparent 1px),
    linear-gradient(140deg, #f6f5f1 0 55%, #e5e7f1 100%);
  background-size: 96px 100%, auto;
}

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
}

.about-year {
  align-self: end;
  color: var(--blue);
  font-size: clamp(104px, 15vw, 218px);
  font-weight: 620;
  letter-spacing: -0.09em;
  line-height: 0.72;
  opacity: 0.1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.about-copy {
  max-width: 820px;
}

.about-copy h2 {
  max-width: 810px;
}

.about-copy > p:not(.chapter-label) {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: 17px;
}

.about-copy .about-lead {
  margin: 34px 0 16px;
  color: var(--ink);
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 560;
  line-height: 1.4;
}

.about-copy > p.anniversary-copy {
  color: var(--blue);
}

.chapter-contact .chapter-rail {
  grid-template-columns: 0.88fr 1.12fr;
}

.contact-intro-slide {
  background:
    radial-gradient(circle at 90% 16%, rgba(0, 56, 123, 0.1), transparent 26%),
    var(--white);
}

.contact-shell {
  display: flex;
  flex-direction: column;
}

.contact-shell .chapter-lead {
  max-width: 600px;
  margin: 28px 0 0;
}

.contact-links {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.contact-links a,
.contact-links button {
  display: grid;
  gap: 4px;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  background: transparent;
  text-align: left;
}

.contact-links button {
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
}

.contact-links span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-links strong {
  font-size: 18px;
}

.contact-links em {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
}

.contact-links button:hover strong,
.contact-links a:hover strong {
  color: var(--blue);
}

.contact-next {
  align-self: flex-start;
  margin-top: 28px;
}

.mini-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-footer-link {
  opacity: 0.62;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.privacy-footer-link:hover,
.privacy-footer-link:focus-visible {
  opacity: 1;
  color: var(--blue);
}

.contact-form-slide {
  background:
    linear-gradient(rgba(0, 56, 123, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 56, 123, 0.05) 1px, transparent 1px),
    #eef0f6;
  background-size: 56px 56px;
}

.form-shell h2 {
  max-width: 700px;
}

.contact-form {
  margin-top: 36px;
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #9d9da7;
  border-radius: 0;
  padding: 8px 0 10px;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 450;
  letter-spacing: 0;
  outline: 0;
  text-transform: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 13px;
}

.form-privacy {
  margin: 2px 0 0;
  color: #74757e;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.35;
}

.form-privacy a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.form-privacy a:hover,
.form-privacy a:focus-visible {
  color: var(--blue);
}

.rail-controls {
  display: none;
}

.login-page {
  min-height: 100vh;
  background: var(--night);
}

.login-main {
  display: grid;
  min-height: calc(100vh - var(--header-h));
  align-items: center;
  background:
    linear-gradient(rgba(107, 151, 195, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 151, 195, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 15% 24%, rgba(0, 56, 123, 0.48), transparent 28%),
    var(--night);
  background-size: 70px 70px, 70px 70px, auto, auto;
  color: var(--white);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr);
  align-items: center;
  gap: clamp(60px, 10vw, 150px);
  padding-block: clamp(70px, 9vw, 130px);
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 116px);
  font-weight: 630;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.login-copy > p {
  margin: 28px 0 0;
  color: #c3c3d1;
  font-size: clamp(18px, 1.5vw, 21px);
}

.back-link {
  display: inline-flex;
  gap: 11px;
  margin-top: 42px;
  color: #b7b7ff;
  font-size: 14px;
  font-weight: 700;
}

.login-form {
  padding: clamp(32px, 5vw, 58px);
  background: var(--paper);
  color: var(--ink);
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
  font-size: 20px;
  outline: 0;
}

.login-form input:focus {
  border-color: var(--blue);
}

.login-form .button {
  width: 100%;
  margin-top: 28px;
}

.login-status {
  min-height: 44px;
  margin: 16px 0 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.login-help {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.login-help a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .brand img {
    width: 168px;
  }

  .chapter-rail,
  .chapter-approach .chapter-rail,
  .chapter-projects .chapter-rail,
  .chapter-process .chapter-rail,
  .chapter-contact .chapter-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 94px;
    --pad: 20px;
  }

  html,
  body {
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }

  .site-header,
  .site-header.is-scrolled,
  .menu-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: var(--paper);
    backdrop-filter: none;
  }

  .brand img {
    width: 164px;
  }

  .main-nav {
    padding: 126px var(--pad) 32px;
  }

  .main-nav a,
  .main-nav .login-link {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .main-nav a > span {
    display: inline;
    align-self: center;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .main-nav .login-link {
    grid-template-columns: 1fr;
    margin-top: 10px;
    padding-left: 56px;
    color: var(--blue);
  }

  .chapter-stack {
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }

  .chapter-stack::-webkit-scrollbar {
    display: none;
  }

  .chapter {
    width: 100%;
    height: 100vh;
    height: 100svh;
    padding-top: var(--header-h);
    overflow: hidden;
    scroll-margin-top: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .chapter-rail,
  .single-rail,
  .chapter-approach .chapter-rail,
  .chapter-projects .chapter-rail,
  .chapter-process .chapter-rail,
  .chapter-contact .chapter-rail {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .chapter-rail::-webkit-scrollbar {
    display: none;
  }

  .chapter-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: visible;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .slide-shell {
    max-width: none;
    min-height: 100%;
    padding: 26px 34px 58px;
  }

  .chapter-label,
  .detail-label {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .chapter h1 {
    font-size: clamp(40px, 11.2vw, 54px);
    line-height: 0.98;
  }

  .hero-slide .slide-shell {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 16px 28px 52px;
  }

  .hero-copy {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero-slide .chapter-label {
    margin-bottom: 14px;
  }

  .hero-slide h1 {
    font-size: clamp(34px, 9.4vw, 46px);
  }

  .chapter h2 {
    font-size: clamp(34px, 9vw, 45px);
    line-height: 1;
  }

  .hero-layout {
    display: block;
  }

  .hero-lead,
  .chapter-lead {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-offer {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.32;
  }

  .hero-lead {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.38;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 13px;
  }

  .hero-slide .button {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .hero-slide .text-link {
    font-size: 13px;
  }

  .button {
    min-height: 46px;
    padding: 12px 16px;
  }

  .trust-list {
    margin-top: 14px;
  }

  .trust-list li {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 12px;
    padding: 6px 0;
  }

  .trust-list strong,
  .trust-list span {
    font-size: 11px;
    line-height: 1.25;
  }

  .anniversary-card {
    display: none;
  }

  .compact-shell {
    align-self: auto;
  }

  .service-list,
  .quality-list {
    margin-top: 22px;
  }

  .service-list article,
  .quality-list article {
    min-height: 0;
    padding: 13px 13px 14px 0;
  }

  .service-list article:nth-child(even),
  .quality-list article:nth-child(even) {
    padding-left: 13px;
  }

  .service-list h3,
  .quality-list h3 {
    font-size: 17px;
  }

  .service-list p,
  .quality-list p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .project-slide-shell h2 {
    font-size: clamp(32px, 8.3vw, 42px);
  }

  .project-visual-large {
    min-height: 0;
    height: min(31vh, 265px);
    margin-top: 22px;
  }

  .project-caption {
    display: grid;
    gap: 4px;
    padding-top: 11px;
  }

  .project-caption h3 {
    font-size: 17px;
  }

  .project-caption p {
    max-width: none;
    font-size: 13px;
    text-align: left;
  }

  .project-pair {
    gap: 18px;
  }

  .project-pair .project-visual {
    min-height: 0;
    height: min(22vh, 170px);
  }

  .process-slide .chapter-lead {
    margin-top: 18px;
  }

  .process-list {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .process-list li,
  .process-list li:nth-child(even) {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 14px;
    min-height: 0;
    border-left: 0;
    padding: 10px 0;
  }

  .process-list h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .process-list p {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .quality-slide h2 {
    font-size: clamp(32px, 8.3vw, 42px);
  }

  .quality-list {
    border-color: #343442;
  }

  .partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 10px;
  }

  .partners-card .partner-logos {
    margin-top: auto;
    padding-top: 10px;
  }

  .partner-logo {
    width: 100%;
    height: 30px;
  }

  .about-layout {
    position: relative;
    display: block;
  }

  .about-year {
    position: absolute;
    right: -20px;
    bottom: 22px;
    opacity: 0.08;
    font-size: 150px;
    writing-mode: initial;
    transform: none;
  }

  .about-copy {
    position: relative;
    z-index: 1;
  }

  .about-copy > p:not(.chapter-label) {
    font-size: 16px;
    line-height: 1.48;
  }

  .about-copy .about-lead {
    margin: 24px 0 14px;
    font-size: 19px;
  }

  .contact-shell .chapter-lead {
    margin-top: 20px;
  }

  .contact-links {
    margin-top: 22px;
  }

  .contact-links a {
    padding: 10px 0;
  }

  .contact-next {
    margin-top: 20px;
  }

  .mini-footer {
    padding-top: 13px;
    font-size: 11px;
  }

  .form-shell h2 {
    font-size: clamp(31px, 8vw, 39px);
  }

  .contact-form {
    margin-top: 20px;
  }

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

  .contact-form label {
    margin-bottom: 11px;
    font-size: 11px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 5px 0 7px;
    font-size: 15px;
  }

  .contact-form textarea {
    max-height: 62px;
  }

  .form-status {
    min-height: 14px;
    margin-top: 6px;
  }

  .rail-controls {
    position: absolute;
    inset: var(--header-h) 0 0;
    z-index: 5;
    display: block;
    pointer-events: none;
  }

  .rail-arrow {
    position: absolute;
    top: auto;
    bottom: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(0, 56, 123, 0.2);
    background: rgba(255, 255, 255, 0.94);
    color: var(--blue);
    font-size: 22px;
    box-shadow: 0 10px 28px rgba(10, 10, 22, 0.14);
    cursor: pointer;
    pointer-events: auto;
    transform: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .rail-prev {
    left: 18px;
  }

  .rail-next {
    right: 18px;
  }

  .rail-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .login-page {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .login-page .site-header {
    position: fixed;
  }

  .login-main {
    min-height: 100svh;
    padding-top: var(--header-h);
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 44px;
  }

  .login-copy h1 {
    font-size: clamp(58px, 17vw, 82px);
  }

  .login-copy > p {
    margin-top: 18px;
    font-size: 17px;
  }

  .back-link {
    margin-top: 28px;
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  .slide-shell {
    padding-top: 18px;
    padding-bottom: 64px;
  }

  .chapter-label,
  .detail-label {
    margin-bottom: 14px;
  }

  .chapter h1 {
    font-size: clamp(37px, 10vw, 47px);
  }

  .chapter h2 {
    font-size: clamp(30px, 8vw, 39px);
  }

  .hero-lead,
  .chapter-lead,
  .about-copy > p:not(.chapter-label) {
    font-size: 14px;
  }

  .hero-actions,
  .trust-list,
  .service-list,
  .quality-list,
  .process-list,
  .contact-links,
  .contact-form {
    margin-top: 14px;
  }

  .hero-slide .slide-shell {
    padding-top: 10px;
  }

  .hero-slide h1 {
    font-size: clamp(31px, 8.8vw, 41px);
  }

  .hero-offer,
  .hero-lead {
    font-size: 12px;
  }

  .trust-list strong,
  .trust-list span {
    font-size: 10px;
  }

  .service-list article,
  .quality-list article {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .service-list h3,
  .quality-list h3 {
    font-size: 15px;
  }

  .service-list p,
  .quality-list p,
  .process-list p {
    font-size: 12px;
  }

  .project-visual-large {
    height: 27vh;
    margin-top: 14px;
  }

  .project-pair .project-visual {
    height: 19vh;
  }

  .contact-form label {
    margin-bottom: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .chapter-stack,
  .chapter-rail {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Portfolio photographs */
.protected-image {
  position: relative;
  overflow: hidden;
  background: #dfe1e6;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.protected-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.protected-image::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: auto;
  height: auto;
  border: 0;
  content: "";
}

.project-visual.protected-image::before {
  content: none;
}

.approach-visual {
  height: clamp(118px, 16vh, 155px);
  margin-top: 26px;
  border-left: 5px solid var(--blue);
}

.approach-visual img {
  object-position: center 58%;
}

.approach-slide .service-list {
  margin-top: 26px;
}

.chapter-projects .chapter-rail {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.chapter-projects .chapter-rail::-webkit-scrollbar {
  display: none;
}

.chapter-projects .chapter-slide {
  flex: 0 0 50%;
  width: 50%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project-visual {
  border: 0;
  background: #dfe1e6;
}

.project-visual img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-visual:hover img {
  transform: scale(1.018);
}

.project-visual-large img {
  object-position: center 52%;
}

.project-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.project-pair .project-visual {
  height: clamp(350px, 48vh, 455px);
  min-height: 0;
}

.project-pair .project-caption {
  display: grid;
  gap: 4px;
}

.project-pair .project-caption p {
  max-width: none;
  text-align: left;
}

.projects-tone-warm {
  background: #f3efe8;
}

.projects-tone-cool {
  background: #e7ebef;
}

.projects-tone-light {
  background: #f7f7f5;
}

.projects-tone-dark {
  background: #0c1119;
  color: var(--white);
}

.projects-tone-dark .project-caption p {
  color: #bfc8d2;
}

.chapter-projects .rail-controls {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: block;
  pointer-events: none;
}

.rail-arrow {
  position: absolute;
  bottom: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(0, 56, 123, 0.2);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  font-size: 22px;
  box-shadow: 0 10px 28px rgba(10, 10, 22, 0.14);
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.rail-prev {
  left: 18px;
}

.rail-next {
  right: 18px;
}

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

.rail-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.process-visual {
  height: clamp(105px, 14vh, 140px);
  margin-top: 24px;
  border-left: 5px solid var(--blue);
}

.process-visual img {
  object-position: center 47%;
}

.process-slide .process-list {
  margin-top: 24px;
}

.about-layout {
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 105px);
}

.about-media {
  height: clamp(420px, 62vh, 590px);
  box-shadow: 22px 22px 0 rgba(0, 56, 123, 0.09);
}

.about-media img {
  object-position: center 58%;
}

.about-media .about-year {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  color: var(--white);
  font-size: clamp(64px, 7.5vw, 112px);
  line-height: 0.8;
  opacity: 0.82;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.42);
  writing-mode: initial;
  transform: none;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .chapter-projects .chapter-slide {
    flex-basis: 100%;
    width: 100%;
  }

  .project-pair .project-visual {
    height: min(50vh, 460px);
  }
}

@media (max-width: 860px) {
  .chapter-projects .chapter-slide {
    flex-basis: 100%;
    width: 100%;
  }

  .chapter-projects .rail-controls {
    inset: var(--header-h) 0 0;
  }

  .approach-visual {
    height: min(13vh, 104px);
    margin-top: 16px;
  }

  .approach-slide .service-list {
    margin-top: 16px;
  }

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

  .project-pair .project-visual {
    height: min(46vh, 365px);
  }

  .project-pair .project-caption {
    gap: 3px;
    padding-top: 9px;
  }

  .project-pair .project-caption h3 {
    font-size: 15px;
    line-height: 1.15;
  }

  .project-pair .project-caption p {
    font-size: 12px;
    line-height: 1.3;
  }

  .process-visual {
    height: min(12vh, 92px);
    margin-top: 15px;
  }

  .process-slide .process-list {
    margin-top: 14px;
  }

  .about-media {
    height: min(21vh, 168px);
    margin-bottom: 24px;
    box-shadow: 12px 12px 0 rgba(0, 56, 123, 0.08);
  }

  .about-media .about-year {
    right: 10px;
    bottom: 8px;
    font-size: 58px;
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  .approach-visual {
    height: 72px;
    margin-top: 10px;
  }

  .approach-slide .service-list {
    margin-top: 10px;
  }

  .process-visual {
    height: 62px;
    margin-top: 10px;
  }

  .about-media {
    height: 104px;
    margin-bottom: 14px;
  }
}

/* Layered photography and full-screen viewing */
.protected-image::after {
  pointer-events: none;
}

.hero-slide,
.approach-slide,
.projects-intro-slide,
.process-slide,
.quality-slide,
.contact-form-slide {
  isolation: isolate;
}

.hero-background,
.approach-background,
.project-intro-background,
.process-background,
.quality-background,
.form-plan-background {
  position: absolute;
  z-index: 0;
  border: 0;
  pointer-events: none;
}

.hero-background {
  inset: -7% -5%;
}

.hero-background img {
  object-position: center 52%;
  filter: saturate(0.76) contrast(0.96) brightness(0.88);
  transform: translate3d(0, var(--hero-background-shift, 0px), 0) scale(1.08);
  will-change: transform;
}

.hero-slide {
  background: #e8e7e2;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(246, 245, 241, 0.97) 0%, rgba(246, 245, 241, 0.87) 58%, rgba(246, 245, 241, 0.46) 100%),
    linear-gradient(0deg, rgba(246, 245, 241, 0.52), transparent 38%);
  content: "";
  pointer-events: none;
}

.hero-layout,
.approach-slide .compact-shell,
.projects-intro-slide .project-slide-shell,
.process-slide .compact-shell,
.form-shell {
  position: relative;
  z-index: 2;
}

.hero-copy {
  transform: translate3d(0, var(--hero-copy-shift, 0px), 0);
  will-change: transform;
}

.approach-slide {
  background: #eef0f6;
  overflow: hidden;
}

.approach-background {
  inset: -4% 0 10%;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 92%);
}

.approach-background img {
  object-position: center 43%;
  filter: saturate(0.72) contrast(0.98) brightness(0.78);
}

.approach-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(238, 240, 246, 0.88) 0%, rgba(238, 240, 246, 0.48) 68%, rgba(238, 240, 246, 0.2) 100%),
    linear-gradient(to bottom, rgba(238, 240, 246, 0.08) 28%, #eef0f6 84%);
  content: "";
  pointer-events: none;
}

.approach-slide .service-list {
  margin-top: clamp(76px, 10vh, 112px);
  background: rgba(238, 240, 246, 0.8);
  backdrop-filter: blur(2px);
}

.photo-open-control {
  position: absolute;
  top: clamp(56px, 7vw, 98px);
  right: clamp(28px, 5vw, 72px);
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 56, 123, 0.28);
  border-radius: 50%;
  background: rgba(246, 245, 241, 0.86);
  color: var(--blue);
  font-size: 19px;
  line-height: 1;
  cursor: zoom-in;
  backdrop-filter: blur(10px);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.photo-open-control:hover {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.06);
}

.projects-intro-slide {
  background: var(--paper);
  color: var(--white);
}

.project-intro-background {
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 61%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 61%, transparent 98%);
}

.project-intro-background img {
  object-position: center 53%;
  filter: saturate(0.84) contrast(1.03) brightness(0.86);
}

.projects-intro-slide::before,
.projects-intro-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.projects-intro-slide::before {
  background: linear-gradient(115deg, rgba(2, 12, 25, 0.73), rgba(2, 12, 25, 0.18) 72%);
}

.projects-intro-slide::after {
  background: linear-gradient(to bottom, transparent 43%, rgba(246, 245, 241, 0.18) 66%, var(--paper) 98%);
}

.projects-intro-slide .chapter-label {
  color: #bdd7f1;
}

.projects-intro-slide h2 {
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.34);
}

.projects-intro-slide .photo-open-control {
  top: auto;
  bottom: clamp(82px, 11vh, 120px);
}

.photo-open-control-light {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(8, 18, 31, 0.42);
  color: var(--white);
}

.projects-more-slide .project-slide-shell {
  align-self: center;
}

.project-pair {
  position: relative;
  display: block;
  height: clamp(470px, 61vh, 590px);
  margin-top: 12px;
}

.project-pair article {
  position: absolute;
  width: 68%;
  height: 79%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-pair article:first-child {
  top: 0;
  left: 0;
  z-index: 1;
}

.project-pair article:last-child {
  right: 0;
  bottom: 0;
  z-index: 2;
}

.project-pair article:hover,
.project-pair article:focus-within {
  z-index: 4;
  transform: translateY(-5px);
}

.project-pair .project-visual {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  background: #dfe1e6;
  box-shadow: 0 22px 50px rgba(16, 20, 31, 0.2);
  cursor: zoom-in;
  text-align: left;
}

.project-pair .project-visual::before {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
  z-index: 5;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: rgba(7, 14, 23, 0.4);
  color: var(--white);
  content: "↗";
  font-size: 16px;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.project-pair .project-visual img {
  object-position: center center;
}

.project-pair article:first-child .project-visual img {
  object-position: center 50%;
}

.project-pair article:last-child .project-visual img {
  object-position: center 48%;
}

.projects-tone-dark .project-visual {
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48);
}

.process-slide {
  background: #eef0f7;
}

.process-background {
  inset: 0 0 18%;
  opacity: 0.8;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 94%);
}

.process-background img {
  object-position: center 48%;
  filter: saturate(0.68) contrast(0.98) brightness(0.8);
}

.process-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(238, 240, 247, 0.9) 0%, rgba(238, 240, 247, 0.5) 72%, rgba(238, 240, 247, 0.22) 100%),
    linear-gradient(to bottom, transparent 30%, #eef0f7 80%);
  content: "";
  pointer-events: none;
}

.process-slide .process-list {
  margin-top: 38px;
  background: rgba(238, 240, 247, 0.72);
}

.about-layout {
  grid-template-columns: 0.62fr 1fr;
  gap: clamp(54px, 8vw, 120px);
}

.contact-form-slide {
  position: relative;
}

.form-plan-background {
  inset: 0;
  opacity: 0.22;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 92%);
}

.form-plan-background img {
  width: 100%;
  height: 82%;
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
  filter: grayscale(1) brightness(0.76) contrast(0.9);
  mix-blend-mode: multiply;
}

.quality-background {
  inset: 0 0 8%;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}

.quality-background img {
  object-position: center 28%;
  filter: saturate(0.72) contrast(1.08) brightness(0.74);
}

.quality-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 9, 20, 0.7), rgba(9, 9, 20, 0.14) 78%),
    linear-gradient(to bottom, rgba(9, 9, 20, 0.05) 18%, rgba(9, 9, 20, 0.24) 72%, var(--night) 100%);
  content: "";
  pointer-events: none;
}

.quality-slide .compact-shell {
  position: relative;
  z-index: 2;
}

.quality-slide h2 {
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.42);
}

.quality-slide .quality-list {
  background: transparent;
  backdrop-filter: none;
}

.quality-slide .quality-list article {
  background: transparent;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.contact-form-slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(238, 240, 246, 0.12), rgba(238, 240, 246, 0.56) 50%, #eef0f6 88%);
  content: "";
  pointer-events: none;
}

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(3, 8, 15, 0.96);
  color: var(--white);
}

.image-lightbox::backdrop {
  background: rgba(3, 8, 15, 0.88);
  backdrop-filter: blur(10px);
}

.image-lightbox[open] {
  display: block;
}

.lightbox-frame {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: clamp(22px, 5vw, 72px);
  background: transparent;
  overflow: hidden;
  transform-origin: center;
  will-change: transform, opacity;
}

.lightbox-frame::after {
  content: none;
}

.lightbox-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.44);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: var(--white);
  color: var(--ink);
}

.lightbox-open .chapter-stack {
  overflow: hidden;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .project-pair {
    height: min(61vh, 590px);
  }
}

@media (min-width: 861px) {
  .chapter-approach .chapter-rail,
  .chapter-process .chapter-rail,
  .chapter-contact .chapter-rail {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .chapter-approach .chapter-rail::-webkit-scrollbar,
  .chapter-process .chapter-rail::-webkit-scrollbar,
  .chapter-contact .chapter-rail::-webkit-scrollbar {
    display: none;
  }

  .chapter-approach .chapter-slide,
  .chapter-process .chapter-slide,
  .chapter-contact .chapter-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .chapter-approach .rail-controls,
  .chapter-process .rail-controls,
  .chapter-contact .rail-controls {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: block;
    pointer-events: none;
  }
}

@media (max-width: 860px) {
  .hero-slide::after {
    background:
      linear-gradient(90deg, rgba(246, 245, 241, 0.96) 0%, rgba(246, 245, 241, 0.79) 76%, rgba(246, 245, 241, 0.53) 100%),
      linear-gradient(0deg, rgba(246, 245, 241, 0.56), transparent 45%);
  }

  .hero-background {
    inset: -5%;
  }

  .approach-background {
    inset: -2% 0 9%;
  }

  .process-background {
    inset: 0 0 20%;
  }

  .approach-slide::after,
  .process-slide::after {
    background:
      linear-gradient(90deg, rgba(238, 240, 246, 0.93), rgba(238, 240, 246, 0.54)),
      linear-gradient(to bottom, transparent 25%, #eef0f6 70%);
  }

  .approach-slide .service-list {
    margin-top: clamp(52px, 8vh, 76px);
    background: rgba(238, 240, 246, 0.78);
  }

  .process-slide .process-list {
    margin-top: 22px;
    background: rgba(238, 240, 246, 0.78);
  }

  .photo-open-control {
    top: 18px;
    right: 28px;
    width: 38px;
    height: 38px;
  }

  .projects-intro-slide .photo-open-control {
    top: auto;
    right: auto;
    bottom: 16px;
    left: 28px;
  }

  .projects-more-slide .project-slide-shell {
    height: 100%;
  }

  .project-pair {
    height: calc(100% - 44px);
    min-height: 0;
    margin-top: 0;
  }

  .project-pair article {
    width: 72%;
    height: 76%;
  }

  .project-pair .project-visual {
    height: 100%;
  }

  .project-pair .project-visual::before {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .about-layout {
    display: block;
  }

  .form-plan-background {
    opacity: 0.18;
  }

  .form-plan-background img {
    height: 68%;
  }

  .quality-background {
    inset: 0 0 10%;
  }

  .quality-background img {
    object-position: 42% 24%;
  }

  .chapter-contact .contact-intro-slide .mini-footer {
    padding-right: 74px;
  }

  .lightbox-frame {
    padding: 14px;
  }

  .lightbox-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 860px) and (max-height: 720px) {
  .approach-slide .service-list {
    margin-top: 34px;
  }

  .process-slide .process-list {
    margin-top: 14px;
  }

  .project-pair {
    height: calc(100% - 36px);
  }

  .project-pair article {
    width: 69%;
    height: 75%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background img,
  .hero-copy {
    transform: none !important;
  }
}

/* Intro and on-entry typography */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  overflow: hidden;
  place-items: center;
  background: #000;
  pointer-events: auto;
}

.site-intro[hidden] {
  display: none !important;
}

html.intro-enabled:not(.intro-complete):not(.intro-fallback) .site-intro {
  display: grid;
}

.intro-lockup {
  position: relative;
  width: min(360px, 62vw);
  opacity: 0;
  will-change: opacity;
}

html.intro-from-qr .intro-lockup {
  opacity: 1;
  view-transition-name: tinez-intro-lockup;
}

.intro-event-logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.intro-wordmark {
  filter: brightness(0) invert(1);
  transform-box: fill-box;
  transform-origin: center center;
  will-change: filter, transform;
}

.intro-descriptor {
  fill: #fff;
  will-change: opacity;
}

@view-transition { navigation: auto; }

::view-transition-group(tinez-intro-lockup) {
  animation-duration: .28s;
  animation-timing-function: cubic-bezier(.72, 0, .22, 1);
}

.site-header .brand {
  transition: opacity 180ms ease;
}

html.intro-enabled:not(.intro-complete):not(.intro-fallback) .site-header .brand {
  opacity: 0;
}

html.intro-enabled.intro-running.intro-arriving:not(.intro-complete):not(.intro-fallback) .site-header .brand {
  opacity: 1;
}

html.intro-running,
html.intro-running body {
  overflow: hidden;
}

html.intro-running .chapter-stack {
  pointer-events: none;
}

.motion-heading {
  min-height: var(--motion-heading-height, auto);
}

.motion-heading.is-typing::after {
  display: inline-block;
  width: 0.045em;
  height: 0.78em;
  margin-left: 0.08em;
  background: currentColor;
  content: "";
  animation: type-caret 650ms steps(1, end) infinite;
  vertical-align: -0.02em;
}

html.copy-motion-ready .motion-secondary {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}

html.copy-motion-ready .copy-motion-slide.is-copy-visible .motion-secondary {
  opacity: var(--motion-visible-opacity, 1) !important;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.about-year.motion-secondary {
  --motion-visible-opacity: 0.1;
}

@keyframes type-caret {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .intro-lockup {
    width: min(290px, 68vw);
  }

  .about-year.motion-secondary {
    --motion-visible-opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.copy-motion-ready .motion-secondary {
    opacity: var(--motion-visible-opacity, 1) !important;
    pointer-events: auto;
    visibility: visible;
    transition: none !important;
  }

  .motion-heading.is-typing::after {
    display: none;
  }
}
