@font-face {
  font-family: "Onest";
  src: url("/fonts/Onest-Variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.home-page {
  --home-graphite: #232622;
  --home-graphite-soft: #30332e;
  --home-cream: #f1ebdd;
  --home-cream-deep: #e4dece;
  --home-sage: #9daa8f;
  --home-sage-deep: #778470;
  --home-line-dark: rgba(241, 235, 221, .22);
  --home-line-light: rgba(35, 38, 34, .22);
  background: var(--home-graphite);
  color: var(--home-cream);
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 400;
}

.home-page .site-canvas {
  width: min(calc(100% - 48px), 1340px);
  margin: 24px auto;
  overflow: hidden;
  border: 1px solid rgba(241, 235, 221, .24);
  border-radius: 0;
  background: var(--home-graphite);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}

.home-page main#content { display: block; }

.home-page .site-header {
  min-height: 66px;
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom-color: var(--home-line-dark);
}

.home-page .wordmark { font-family: "Onest", sans-serif; }
.home-page .site-header nav a { color: rgba(241, 235, 221, .72); }
.home-page .site-header nav a:hover { color: var(--home-cream); }
.home-page a:focus-visible,
.home-page button:focus-visible { outline: 2px solid var(--home-sage); outline-offset: 4px; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 67fr) minmax(230px, 28fr);
  justify-content: space-between;
  gap: clamp(42px, 6vw, 96px);
  min-height: clamp(590px, 68vw, 760px);
  padding: clamp(68px, 9vw, 128px) clamp(24px, 4vw, 58px) clamp(54px, 7vw, 90px);
  background: var(--home-graphite);
}

.home-hero-copy { align-self: center; max-width: 900px; }
.home-eyebrow,
.section-label,
.direction-kicker,
.project-meta {
  margin: 0;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-eyebrow { color: rgba(241, 235, 221, .58); }
.home-hero h1 {
  margin: clamp(28px, 4vw, 54px) 0 32px;
  font-size: clamp(4.3rem, 8.2vw, 7.4rem);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.065em;
}
.home-hero h1 span { display: block; }
.home-hero h1 span + span {
  margin-top: .14em;
  color: var(--home-sage);
  font-size: .72em;
  letter-spacing: -.045em;
}
.home-hero-description {
  max-width: 650px;
  margin: 0;
  color: rgba(241, 235, 221, .73);
  font-size: clamp(.98rem, 1.35vw, 1.15rem);
  line-height: 1.55;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 42px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid transparent;
  font-size: .78rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button-primary { min-width: 190px; border-color: var(--home-cream); }
.button-primary:hover { background: var(--home-cream); color: var(--home-graphite); }
.button-secondary { color: rgba(241, 235, 221, .66); }
.button-secondary:hover { color: var(--home-cream); border-bottom-color: var(--home-line-dark); }

.home-process { align-self: center; border-top: 1px solid var(--home-line-dark); }
.home-process a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid var(--home-line-dark);
  color: rgba(241, 235, 221, .72);
  font-size: .83rem;
  text-decoration: none;
  transition: color .2s ease, padding .2s ease, background-color .2s ease;
}
.home-process a span:last-child { color: var(--home-sage); opacity: 0; transform: translate(-8px, 6px); transition: opacity .2s ease, transform .2s ease; }
.home-process a:hover { padding: 0 12px; background: rgba(241, 235, 221, .035); color: var(--home-cream); }
.home-process a:hover span:last-child { opacity: 1; transform: none; }

.directions {
  display: grid;
  grid-template-columns: minmax(270px, 1.08fr) minmax(300px, 1.45fr);
  color: var(--home-graphite);
  background: var(--home-cream);
  border-top: 1px solid var(--home-line-light);
}
.directions-intro { grid-row: 1 / 3; padding: clamp(44px, 6vw, 82px) clamp(24px, 4vw, 58px); border-right: 1px solid var(--home-line-light); }
.directions-intro .section-label { color: rgba(35, 38, 34, .54); }
.directions h2 {
  max-width: 13ch;
  margin: clamp(84px, 12vw, 160px) 0 0;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.055em;
}
.direction { padding: clamp(30px, 4vw, 50px); }
.direction-primary { min-height: 285px; background: var(--home-sage); }
.direction-kicker { color: rgba(35, 38, 34, .52); }
.direction h3 { margin: 0 0 18px; font-size: clamp(1.9rem, 3vw, 3.4rem); font-weight: 300; letter-spacing: -.045em; line-height: 1; }
.direction-primary h3 { margin-top: 48px; font-size: clamp(3.5rem, 6vw, 6.5rem); }
.direction p:not(.direction-kicker) { max-width: 50ch; margin: 0; color: rgba(35, 38, 34, .72); font-size: .93rem; line-height: 1.55; }
.direction-secondary-group { display: grid; grid-template-columns: 1fr 1fr; }
.direction-secondary-group .direction + .direction { border-left: 1px solid var(--home-line-light); }

.home-projects { padding: clamp(56px, 7vw, 94px) clamp(24px, 4vw, 58px) 44px; color: var(--home-graphite); background: var(--home-cream); border-top: 1px solid var(--home-line-light); }
.projects-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.projects-heading .section-label { color: rgba(35, 38, 34, .5); }
.projects-heading h2 { margin: 10px 0 0; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -.055em; }
.projects-heading > a { padding-bottom: 8px; border-bottom: 1px solid var(--home-line-light); font-size: .78rem; text-decoration: none; }
.project-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.project-track::-webkit-scrollbar { display: none; }
.home-project-card { min-width: 0; border: 1px solid var(--home-line-light); color: var(--home-graphite); scroll-snap-align: start; text-decoration: none; }
a.home-project-card { transition: transform .2s ease, border-color .2s ease; }
a.home-project-card:hover { transform: translateY(-3px); border-color: rgba(35, 38, 34, .5); }
.project-visual { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1.42; overflow: hidden; border-bottom: 1px solid var(--home-line-light); }
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-card-copy { min-height: 190px; padding: 24px; }
.project-card-copy .project-meta { color: rgba(35, 38, 34, .46); }
.project-card-copy h3 { margin: 24px 0 11px; font-size: clamp(1.6rem, 2.5vw, 2.3rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; }
.project-card-copy > p:last-child { margin: 0; color: rgba(35, 38, 34, .66); font-size: .82rem; line-height: 1.5; }
.project-syvstudio .project-visual { background: #0b1220; color: var(--home-cream); }
.project-syvstudio .project-visual::after { content: ""; position: absolute; inset: 0; background: url('/assets/sand-grain-alpha.png') repeat; background-size: 128px; opacity: .06; }
.project-syvstudio .project-visual span { position: relative; z-index: 1; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2.4rem, 4vw, 4.2rem); }
.project-anonymous .project-visual { align-items: flex-start; flex-direction: column; gap: 12px; padding: 28px; background: var(--home-graphite-soft); }
.anonymous-line { width: 72%; height: 11px; background: rgba(241, 235, 221, .7); }
.anonymous-line-short { width: 38%; }
.anonymous-note { position: absolute; right: 24px; bottom: 22px; color: rgba(241, 235, 221, .48); font-size: .59rem; letter-spacing: .16em; text-transform: uppercase; }
.project-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.project-controls button { width: 42px; height: 42px; border: 1px solid var(--home-line-light); background: transparent; color: var(--home-graphite); cursor: pointer; font: inherit; }
.project-controls button:hover:not(:disabled) { background: var(--home-graphite); color: var(--home-cream); }
.project-controls button:disabled { cursor: default; opacity: .28; }
.project-status { min-width: 58px; margin: 0; text-align: center; color: rgba(35, 38, 34, .54); font-size: .68rem; font-variant-numeric: tabular-nums; }

.home-notes { display: grid; grid-template-columns: 70fr 30fr; min-height: 250px; color: var(--home-graphite); background: var(--home-cream-deep); border-top: 1px solid var(--home-line-light); }
.notes-author { display: flex; align-items: flex-end; padding: 28px clamp(24px, 4vw, 58px); color: rgba(35, 38, 34, .14); font-size: clamp(4rem, 10vw, 9rem); font-weight: 300; letter-spacing: -.075em; line-height: .75; overflow: hidden; }
.notes-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px; border-left: 1px solid var(--home-line-light); }
.notes-copy .section-label { color: rgba(35, 38, 34, .48); }
.notes-copy h2 { margin: 22px 0 32px; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 300; line-height: 1.05; letter-spacing: -.04em; }
.notes-copy a { width: fit-content; border-bottom: 1px solid var(--home-line-light); font-size: .78rem; text-decoration: none; }

.home-contact { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: clamp(52px, 8vw, 104px) clamp(24px, 4vw, 58px); border-top: 1px solid var(--home-line-dark); background: var(--home-graphite); }
.home-contact p { margin: 0; font-size: clamp(2.7rem, 6vw, 6.1rem); font-weight: 300; line-height: .94; letter-spacing: -.06em; }
.contact-link { display: flex; justify-content: space-between; gap: 48px; min-width: 190px; padding: 13px 0; border-bottom: 1px solid var(--home-line-dark); color: var(--home-cream); font-size: .84rem; text-decoration: none; }
.contact-link:hover { border-bottom-color: var(--home-sage); }

.home-page footer { background: #1b1d1a; color: var(--home-cream); }
.home-page .footer-mark-signature { text-transform: none; }
.home-page .consent-bar { font-family: "Onest", sans-serif; background: #1b1d1a; color: var(--home-cream); }

@media (max-width: 960px) {
  .home-page .site-canvas { width: calc(100% - 28px); margin: 14px auto; }
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(210px, .42fr); min-height: 620px; gap: 34px; }
  .home-hero h1 { font-size: clamp(4rem, 9vw, 6rem); }
  .directions { grid-template-columns: .9fr 1.3fr; }
  .directions-intro { grid-row: 1 / 2; }
  .directions h2 { margin-top: 74px; }
  .direction-primary { min-height: 310px; }
  .direction-secondary-group { grid-column: 1 / 3; border-top: 1px solid var(--home-line-light); }
  .project-track { grid-auto-columns: calc((100% - 16px) / 2); }
}

@media (max-width: 680px) {
  .home-page .site-canvas { width: 100%; margin: 0; border: 0; }
  .home-page .site-header { align-items: flex-start; min-height: 110px; padding: 22px 20px; }
  .home-page .site-header nav { width: 100%; overflow-x: auto; justify-content: flex-start; gap: 20px; }
  .home-page .site-header nav a { white-space: nowrap; }
  .home-hero { display: block; min-height: 0; padding: 64px 20px 50px; }
  .home-hero h1 { margin-top: 34px; font-size: clamp(3.6rem, 18vw, 5rem); }
  .home-hero-description br { display: none; }
  .home-hero-actions { display: grid; }
  .button { width: 100%; }
  .button-secondary { justify-content: flex-start; padding-left: 0; }
  .home-process { margin-top: 70px; }
  .directions { display: block; }
  .directions-intro { padding: 48px 20px; border-right: 0; border-bottom: 1px solid var(--home-line-light); }
  .directions h2 { margin-top: 56px; font-size: 2.8rem; }
  .direction { padding: 34px 20px; }
  .direction-primary h3 { margin-top: 38px; }
  .direction-secondary-group { display: block; }
  .direction-secondary-group .direction + .direction { border-top: 1px solid var(--home-line-light); border-left: 0; }
  .home-projects { padding: 54px 20px 36px; }
  .projects-heading { align-items: flex-start; }
  .projects-heading > a { margin-top: 8px; white-space: nowrap; }
  .project-track { grid-auto-columns: min(82vw, 330px); }
  .project-card-copy { min-height: 180px; }
  .project-controls { justify-content: space-between; }
  .home-notes { display: block; }
  .notes-author { min-height: 150px; padding: 32px 20px 20px; font-size: 5.6rem; }
  .notes-copy { padding: 38px 20px 48px; border-top: 1px solid var(--home-line-light); border-left: 0; }
  .home-contact { display: block; padding: 64px 20px; }
  .home-contact p { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .contact-link { margin-top: 58px; }
  .home-page footer { padding: 30px 20px; }
}

/* Structural refinement: directions in hero, process sequence and scalable work wall. */
.home-hero {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .68fr);
  column-gap: clamp(48px, 7vw, 112px);
  min-height: clamp(560px, 52vw, 640px);
}

.hero-directions {
  align-self: center;
  padding: clamp(26px, 3.2vw, 42px);
  color: var(--home-graphite);
  background: var(--home-sage);
}

.hero-directions-label {
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .62;
}

.hero-direction-list { border-top: 1px solid rgba(35, 38, 34, .34); }

.hero-direction {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid rgba(35, 38, 34, .28);
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hero-direction-title {
  font-size: clamp(1.5rem, 2.15vw, 2.2rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.045em;
}

.hero-direction-mark {
  align-self: center;
  font-size: 1rem;
  transition: transform .22s ease;
}

.hero-direction-description {
  grid-column: 1 / 3;
  max-width: 36ch;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: .72rem;
  line-height: 1.48;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .24s ease, margin .24s ease, opacity .2s ease, transform .24s ease;
}

.hero-direction:hover .hero-direction-description,
.hero-direction:focus-visible .hero-direction-description,
.hero-direction[aria-expanded="true"] .hero-direction-description {
  max-height: 80px;
  margin-top: 15px;
  opacity: .76;
  transform: none;
}

.hero-direction:hover .hero-direction-mark,
.hero-direction:focus-visible .hero-direction-mark,
.hero-direction[aria-expanded="true"] .hero-direction-mark { transform: rotate(45deg); }
.hero-direction:focus-visible { outline: 2px solid var(--home-graphite); outline-offset: 5px; }

.home-process-sequence {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 2.7fr);
  gap: clamp(28px, 5vw, 86px);
  align-items: center;
  padding: clamp(34px, 4.2vw, 54px) clamp(24px, 4vw, 58px);
  border-top: 1px solid var(--home-line-dark);
  border-bottom: 1px solid var(--home-line-dark);
  background: var(--home-graphite);
}

.process-heading .section-label { color: rgba(241, 235, 221, .46); }
.process-sequence {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-sequence li {
  position: relative;
  min-width: 0;
  padding: 22px 14px 0 0;
  border-top: 1px solid rgba(241, 235, 221, .28);
  color: rgba(241, 235, 221, .76);
  font-size: clamp(.72rem, .9vw, .84rem);
}

.process-sequence li::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--home-sage);
}

.home-projects { padding-top: clamp(38px, 4.5vw, 58px); padding-bottom: clamp(46px, 5vw, 68px); }
.projects-heading-minimal { width: min(100%, 930px); margin-bottom: 20px; }
.project-track {
  grid-template-columns: repeat(3, minmax(190px, 260px));
  gap: clamp(14px, 1.6vw, 22px);
  justify-content: start;
  width: 100%;
}
.home-project-card { width: 100%; box-shadow: 0 14px 34px rgba(7, 9, 7, .12); }
.project-syvstudio { margin-top: 18px; }
.project-anonymous { margin-top: 36px; }
.project-niqual .niqual-mark { top: 21%; left: 18%; width: 48%; }
.project-syvstudio .syvstudio-wordmark { left: 10%; bottom: 28%; font-size: clamp(2.1rem, 3vw, 3rem); }
.project-anonymous .anonymous-grid { width: 34%; margin-left: 26%; }
.project-tag { left: 14px; bottom: 14px; }
.project-anonymous .anonymous-note { top: 16px; right: 16px; font-size: .54rem; }

.home-notes {
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .55fr);
  min-height: 210px;
  color: var(--home-cream);
  background: var(--home-graphite);
  border-top: 1px solid var(--home-line-dark);
}
.notes-author,
.notes-copy {
  min-height: 210px;
  color: var(--home-cream);
  background: var(--home-graphite);
}
.notes-author { padding-top: 32px; padding-bottom: 34px; }
.notes-author-copy { grid-template-columns: minmax(220px, .82fr) minmax(340px, 1.18fr); }
.notes-author .section-label,
.notes-copy .section-label { color: rgba(241, 235, 221, .46); }
.notes-author .notes-author-name { font-size: clamp(3rem, 4.6vw, 4.7rem); }
.notes-author-description { max-width: 58ch; color: rgba(241, 235, 221, .68); font-size: .88rem; line-height: 1.55; }
.notes-copy {
  padding-top: 32px;
  padding-bottom: 34px;
  border-left: 1px solid var(--home-line-dark);
}
.notes-copy h2 { font-size: clamp(2.1rem, 3vw, 3rem); }
.notes-copy a { color: var(--home-cream); }

.home-contact {
  min-height: 164px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: #292c28;
}
.home-contact p { font-size: clamp(2.25rem, 3.45vw, 3.45rem); }
.home-contact p span:last-child { margin-left: clamp(36px, 6vw, 96px); color: var(--home-sage); }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .72fr); column-gap: 34px; }
  .hero-directions { padding: 26px; }
  .hero-direction-title { font-size: 1.55rem; }
  .home-process-sequence { grid-template-columns: 1fr; gap: 24px; }
  .project-track { grid-template-columns: repeat(3, minmax(0, 220px)); }
  .notes-author-copy { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .home-hero { display: block; min-height: 0; }
  .hero-directions { margin-top: 48px; padding: 24px 20px; }
  .hero-directions-label { margin-bottom: 22px; }
  .hero-direction { padding: 17px 0; }
  .hero-direction-title { font-size: 1.7rem; }
  .hero-direction-description { font-size: .7rem; }
  .home-process-sequence { padding: 32px 20px 36px; }
  .process-sequence { grid-template-columns: 1fr; }
  .process-sequence li { min-height: 42px; padding: 13px 0 13px 22px; border-top: 0; border-left: 1px solid rgba(241, 235, 221, .28); }
  .process-sequence li::before { top: 18px; left: -3px; }
  .project-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-syvstudio { margin-top: 12px; }
  .project-anonymous { margin-top: 0; }
  .home-project-card:nth-child(even) { justify-self: stretch; }
  .project-syvstudio .syvstudio-wordmark { font-size: clamp(1.65rem, 8.5vw, 2.3rem); }
  .project-anonymous .anonymous-note { font-size: .46rem; }
  .home-notes { grid-template-columns: minmax(0, 1.55fr) minmax(112px, .72fr); min-height: 240px; }
  .notes-author,
  .notes-copy { min-height: 240px; padding: 26px 20px; }
  .notes-author-copy { display: block; }
  .notes-author .notes-author-name { font-size: 2.25rem; }
  .notes-author-description { margin-top: 18px; font-size: .72rem; line-height: 1.48; }
  .notes-copy { padding-left: 18px; border-left-color: var(--home-line-dark); }
  .notes-copy h2 { font-size: 1.85rem; }
  .home-contact { min-height: 190px; }
  .home-contact p { font-size: clamp(2.15rem, 10vw, 3.05rem); }
  .home-contact p span:last-child { margin-left: 0; }
}

/* Final sections redesign: one editorial ending. */
.hero-directions {
  border-radius: 18px;
  background: var(--home-cream-deep);
}
.hero-direction-title { font-weight: 400; line-height: 1.08; }
.hero-direction-list { border-top-color: rgba(35, 38, 34, .3); }
.hero-direction { border-bottom-color: rgba(35, 38, 34, .22); }

.home-process-sequence { background: #292c28; }

.project-syvstudio .syvstudio-wordmark {
  left: 8%;
  right: 8%;
  width: auto;
  max-width: 84%;
  font-size: clamp(1.9rem, 2.55vw, 2.5rem);
  white-space: nowrap;
}

.home-ending {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(320px, 1fr);
  color: var(--home-cream);
  background: var(--home-graphite);
  border-top: 1px solid var(--home-line-dark);
}

.ending-author,
.ending-notes {
  min-height: 330px;
  padding: clamp(34px, 4vw, 56px) clamp(24px, 4vw, 58px);
}

.ending-author {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(300px, 1.1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(36px, 6vw, 96px);
}

.ending-author .section-label,
.ending-notes .section-label { color: rgba(241, 235, 221, .46); }

.ending-author h2 {
  grid-column: 1;
  align-self: end;
  margin: 38px 0 0;
  font-size: clamp(3.2rem, 5.4vw, 5.5rem);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.06em;
}

.ending-author-description {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  max-width: 52ch;
  margin: 38px 0 0;
  color: rgba(241, 235, 221, .72);
  font-size: .9rem;
  line-height: 1.58;
}

.ending-contact-link {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  display: flex;
  justify-content: space-between;
  width: min(100%, 230px);
  margin-top: 36px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(241, 235, 221, .4);
  color: var(--home-cream);
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .2s ease, padding .2s ease;
}
.ending-contact-link:hover,
.ending-contact-link:focus-visible { padding-right: 7px; border-bottom-color: var(--home-sage); }
.ending-contact-link:focus-visible { outline: 2px solid var(--home-sage); outline-offset: 5px; }

.ending-notes {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--home-line-dark);
}
.ending-notes-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 38px 0 26px;
}
.ending-notes-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 3.7vw, 3.8rem);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.055em;
}
.ending-notes-heading > a {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(241, 235, 221, .28);
  color: rgba(241, 235, 221, .68);
  font-size: .68rem;
  text-decoration: none;
}
.ending-note-list { margin-top: auto; border-top: 1px solid var(--home-line-dark); }
.ending-note-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-line-dark);
  color: rgba(241, 235, 221, .78);
  font-size: .76rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s ease, padding .2s ease;
}
.ending-note-list a:hover,
.ending-note-list a:focus-visible { padding-left: 7px; color: var(--home-cream); }
.ending-note-list a:focus-visible { outline: 2px solid var(--home-sage); outline-offset: 3px; }

@media (max-width: 960px) {
  .home-ending { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .78fr); }
  .ending-author { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; }
  .ending-author h2 { grid-column: 1; grid-row: 2; }
  .ending-author-description { grid-column: 1; grid-row: 3; }
  .ending-contact-link { grid-column: 1; grid-row: 4; }
}

@media (max-width: 680px) {
  .hero-directions { border-radius: 18px; }
  .project-syvstudio .syvstudio-wordmark { left: 7%; right: 7%; max-width: 86%; font-size: clamp(1.4rem, 7.4vw, 2rem); }
  .home-ending { display: block; }
  .ending-author,
  .ending-notes { min-height: 0; padding: 32px 20px 36px; }
  .ending-author { display: block; }
  .ending-author h2 { margin-top: 34px; font-size: clamp(3rem, 14vw, 4rem); }
  .ending-author-description { max-width: 48ch; margin-top: 24px; font-size: .82rem; }
  .ending-contact-link { width: 100%; margin-top: 34px; }
  .ending-notes { border-top: 1px solid var(--home-line-dark); border-left: 0; }
  .ending-notes-heading { margin-top: 30px; }
  .ending-notes-heading h2 { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-direction-description,
  .hero-direction-mark { transition: none; }
}

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

/* Visual fidelity pass: approved graphite-dominant full-page composition. */
.home-hero {
  min-height: 640px;
  padding-top: 82px;
  padding-bottom: 72px;
}

.home-hero h1 {
  max-width: 8.7ch;
  font-size: clamp(4.4rem, 7.4vw, 6.8rem);
}

.home-process a { min-height: 56px; }

.directions {
  grid-template-columns: 1.35fr 1.1fr .9fr 1.05fr;
  min-height: 250px;
  background: var(--home-cream);
}

.directions-intro,
.direction,
.direction-primary,
.direction-secondary-group .direction {
  min-height: 250px;
  padding: 34px clamp(22px, 3vw, 40px);
  border: 0;
  border-right: 1px solid var(--home-line-light);
  background: transparent;
}

.directions-intro {
  grid-row: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.directions h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.25rem, 3.6vw, 3.65rem);
}

.direction {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.direction-primary { justify-content: space-between; }
.direction-primary h3,
.direction h3 {
  margin: auto 0 16px;
  font-size: clamp(1.75rem, 2.7vw, 2.9rem);
}

.direction-primary h3 { font-size: clamp(2.65rem, 4.2vw, 4.25rem); }
.direction p:not(.direction-kicker) { font-size: .82rem; line-height: 1.5; }
.direction-secondary-group { display: contents; }

.home-projects {
  padding-top: 62px;
  padding-bottom: 40px;
  color: var(--home-cream);
  background: var(--home-graphite);
  border-top-color: var(--home-line-dark);
}

.projects-heading { margin-bottom: 30px; }
.projects-heading .section-label { color: rgba(241, 235, 221, .48); }
.projects-heading h2 { font-size: clamp(2.8rem, 4.4vw, 4.3rem); }
.projects-heading > a { border-bottom-color: var(--home-line-dark); color: rgba(241, 235, 221, .76); }

.home-project-card {
  border: 0;
  border-right: 1px solid var(--home-line-dark);
  color: var(--home-cream);
  background: transparent;
}

.home-project-card:first-child { border-left: 1px solid var(--home-line-dark); }
a.home-project-card:hover { transform: none; border-color: rgba(241, 235, 221, .48); }
.project-visual { aspect-ratio: 1.5; border-color: var(--home-line-dark); }
.project-card-copy { min-height: 164px; padding: 22px 24px 25px; }
.project-card-copy .project-meta { color: rgba(241, 235, 221, .43); }
.project-card-copy h3 { margin: 20px 0 10px; font-size: clamp(1.55rem, 2.2vw, 2.05rem); }
.project-card-copy > p:last-child { color: rgba(241, 235, 221, .64); }
.project-niqual .project-visual { background: #d8d0c0; }
.project-syvstudio .project-visual { background: #0b1220; }
.project-anonymous .project-visual { background: #30332e; }
.anonymous-line { background: rgba(241, 235, 221, .68); }
.project-controls button { border-color: var(--home-line-dark); color: var(--home-cream); }
.project-controls button:hover:not(:disabled) { background: var(--home-cream); color: var(--home-graphite); }
.project-status { color: rgba(241, 235, 221, .5); }

.home-notes {
  grid-template-columns: 70fr 30fr;
  min-height: 168px;
  color: var(--home-graphite);
  background: var(--home-cream);
}

.notes-author,
.notes-copy {
  min-height: 168px;
  padding: 30px clamp(24px, 4vw, 58px);
}

.notes-author {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--home-graphite);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.3;
  overflow: visible;
}

.notes-author p { margin: 0; }
.notes-author > p:last-child {
  align-self: flex-end;
  font-size: clamp(1.9rem, 3.3vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -.045em;
}

.notes-author .section-label,
.notes-copy .section-label { color: rgba(35, 38, 34, .48); }
.notes-copy { justify-content: space-between; padding-left: 30px; }
.notes-copy h2 { margin: auto 0 10px; font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.notes-copy a { font-size: .72rem; }

.home-contact {
  min-height: 270px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-contact p { font-size: clamp(2.8rem, 5.1vw, 5rem); }
.home-page footer { min-height: 112px; padding-top: 16px; padding-bottom: 14px; }
.home-page .legal-rail { margin-top: 2px; padding-top: 10px; }

@media (max-width: 960px) {
  .home-hero { min-height: 590px; }
  .directions { grid-template-columns: 1.2fr 1fr; }
  .directions-intro,
  .direction,
  .direction-primary,
  .direction-secondary-group .direction { min-height: 220px; }
  .direction-secondary-group { display: contents; }
  .direction-secondary-group .direction { border-top: 1px solid var(--home-line-light); }
  .home-notes { min-height: 150px; }
}

@media (max-width: 680px) {
  .home-hero { padding-top: 52px; padding-bottom: 38px; }
  .home-hero h1 { max-width: 7.2ch; font-size: clamp(3.45rem, 16.5vw, 4.6rem); }
  .home-process { margin-top: 50px; }
  .home-process a { min-height: 51px; }
  .directions { display: grid; grid-template-columns: 1fr 1fr; }
  .directions-intro,
  .direction,
  .direction-primary,
  .direction-secondary-group .direction { min-height: 188px; padding: 24px 18px; }
  .directions-intro { grid-column: 1 / 3; }
  .directions h2 { font-size: 2.45rem; }
  .direction-primary { grid-column: 1 / 3; min-height: 194px; border-top: 1px solid var(--home-line-light); }
  .direction-primary h3 { font-size: 3rem; }
  .direction-secondary-group { display: contents; }
  .direction-secondary-group .direction { border-top: 1px solid var(--home-line-light); }
  .direction-secondary-group .direction:last-child { border-right: 0; }
  .home-projects { padding-top: 44px; }
  .project-track { grid-auto-columns: min(83vw, 330px); }
  .project-card-copy { min-height: 156px; }
  .home-notes { display: grid; grid-template-columns: 1.35fr 1fr; }
  .notes-author,
  .notes-copy { min-height: 148px; padding: 22px 18px; }
  .notes-author { display: flex; }
  .notes-author > p:last-child { font-size: 1.9rem; }
  .notes-copy { border-top: 0; border-left: 1px solid var(--home-line-light); }
  .notes-copy .section-label { font-size: .52rem; }
  .notes-copy h2 { font-size: 1.55rem; }
  .home-contact { min-height: 250px; padding-top: 48px; padding-bottom: 42px; }
  .home-contact p { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .contact-link { margin-top: 42px; }
  .home-page footer { min-height: 0; }
}

/* Project carousel: self-contained product identities. */
.home-project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(241, 235, 221, .2);
  border-radius: 18px;
  background: var(--home-graphite-soft);
  box-shadow: 0 12px 28px rgba(8, 10, 8, .08);
}

.home-project-card:first-child { border-left: 1px solid var(--home-line-dark); }
.home-project-card + .home-project-card { border-left: 1px solid rgba(241, 235, 221, .2); }
.home-project-card .project-visual {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
}

.project-niqual .project-visual { background: #e2ddcf; }
.project-niqual .niqual-mark {
  width: 46%;
  height: auto;
  object-fit: contain;
}

.project-syvstudio .syvstudio-wordmark {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 4.3vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--home-cream);
}

.project-syvstudio .project-visual .project-tag {
  position: absolute;
  font-family: "Onest", system-ui, sans-serif;
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
}

.project-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 6px 8px 5px;
  border: 1px solid rgba(241, 235, 221, .36);
  color: rgba(241, 235, 221, .82);
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.project-niqual .project-tag {
  border-color: rgba(33, 33, 32, .26);
  color: rgba(33, 33, 32, .68);
}

.project-anonymous .project-visual {
  align-items: center;
  justify-content: center;
  padding: 12%;
  background: #30332e;
}

.anonymous-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 44%;
  aspect-ratio: 1;
  gap: 8px;
  transform: rotate(45deg);
}

.anonymous-grid span { border: 1px solid rgba(241, 235, 221, .28); }
.anonymous-grid span:first-child,
.anonymous-grid span:last-child { background: rgba(241, 235, 221, .08); }
.project-anonymous .anonymous-note { top: 22px; right: 22px; bottom: auto; }

a.home-project-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

a.home-project-card:hover,
a.home-project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(241, 235, 221, .48);
  box-shadow: 0 18px 36px rgba(8, 10, 8, .22);
}

a.home-project-card:focus-visible {
  outline: 2px solid var(--home-sage);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .home-project-card .project-visual { aspect-ratio: 1 / 1; }
  .project-tag { padding: 5px 6px 4px; font-size: .5rem; }
  .project-niqual .niqual-mark { width: 43%; }
}

@media (prefers-reduced-motion: reduce) {
  a.home-project-card:hover,
  a.home-project-card:focus-visible { transform: none; }
}

/* Nikkalma 2.0 targeted composition refinement. */
.home-page { padding: 0; }
.home-page .site-canvas {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-hero {
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, .72fr);
  gap: clamp(48px, 7vw, 112px);
  min-height: clamp(590px, 62vw, 720px);
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(58px, 7vw, 84px);
}

.home-hero-copy { max-width: none; }
.home-hero h1 {
  max-width: none;
  font-size: clamp(4.35rem, 7vw, 7rem);
  line-height: .9;
}
.home-hero h1 span { white-space: nowrap; }

.home-process {
  align-self: center;
  transform: translateY(38px);
  border-top: 0;
}
.home-process-label {
  margin: 0 0 12px;
  color: rgba(241, 235, 221, .38);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-process ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--home-line-dark); }
.home-process li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-left: 0;
  border-bottom: 1px solid var(--home-line-dark);
  color: rgba(241, 235, 221, .68);
  font-size: .78rem;
  transition: color 220ms ease, padding-left 220ms ease;
}
.home-process li::after {
  content: "";
  position: absolute;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--home-sage);
  opacity: .34;
  transition: opacity 220ms ease, transform 220ms ease;
}
.home-process li:hover { padding-left: 8px; color: var(--home-cream); }
.home-process li:hover::after { opacity: .9; transform: scale(1.35); }

.directions {
  color: var(--home-cream);
  background: var(--home-graphite);
  border-top-color: var(--home-line-dark);
}
.directions-intro,
.direction,
.direction-primary,
.direction-secondary-group .direction {
  border-color: var(--home-line-dark);
  background: transparent;
}
.directions-intro .section-label,
.direction-kicker { color: rgba(241, 235, 221, .46); }
.direction p:not(.direction-kicker) { color: rgba(241, 235, 221, .66); }
.direction-primary h3 { color: var(--home-sage); }

.project-track {
  grid-auto-columns: calc((100% - 48px) / 4);
  min-width: 100%;
}
.home-project-card .project-visual { aspect-ratio: 1 / 1; }
.project-niqual .niqual-mark { width: 48%; }
.project-controls { margin-top: 14px; }

.home-notes {
  grid-template-columns: minmax(0, 1.85fr) minmax(250px, .72fr);
  min-height: 184px;
}
.notes-author,
.notes-copy { min-height: 184px; padding-top: 26px; padding-bottom: 26px; }
.notes-author { align-items: stretch; gap: clamp(28px, 5vw, 80px); }
.notes-author-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  width: min(100%, 820px);
  margin-left: auto;
}
.notes-author .notes-author-name {
  align-self: flex-end;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 300;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.notes-author-description {
  max-width: 42ch;
  margin: 0 0 3px;
  color: rgba(35, 38, 34, .66);
  font-size: .8rem;
  line-height: 1.55;
}

.home-contact {
  min-height: 210px;
  padding-top: 38px;
  padding-bottom: 38px;
}
.home-contact p { font-size: clamp(2.55rem, 4.4vw, 4.35rem); }
.contact-link { min-width: 170px; }

.home-page footer {
  min-height: 96px;
  padding: 12px clamp(24px, 4vw, 58px) 10px;
  border-top: 1px solid rgba(241, 235, 221, .1);
}
.home-page .footer-mark-logo { width: 28px; height: 28px; object-fit: contain; }
.home-page .footer-mark-signature { margin-top: 2px; }
.home-page .legal-rail { margin-top: 0; padding-top: 8px; }

@media (max-width: 960px) {
  .home-page .site-canvas { width: 100%; margin: 0; }
  .home-hero { grid-template-columns: minmax(0, 1.55fr) minmax(220px, .62fr); gap: 42px; }
  .home-hero h1 { font-size: clamp(3.8rem, 7.6vw, 5.1rem); }
  .home-process { transform: translateY(30px); }
  .project-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .notes-author-copy { display: block; }
  .notes-author-description { margin-top: 18px; }
}

@media (max-width: 680px) {
  .home-hero h1 { max-width: 7.2ch; font-size: clamp(3.45rem, 16.5vw, 4.6rem); }
  .home-hero h1 span { white-space: normal; }
  .home-process { transform: none; }
  .directions { color: var(--home-cream); background: var(--home-graphite); }
  .directions-intro,
  .direction-primary,
  .direction-secondary-group .direction { border-color: var(--home-line-dark); }
  .project-track { grid-auto-columns: min(76vw, 290px); }
  .home-notes { display: grid; grid-template-columns: 1.4fr 1fr; }
  .notes-author,
  .notes-copy { min-height: 176px; padding: 20px 18px; }
  .notes-author { display: flex; flex-direction: column; gap: 14px; }
  .notes-author-copy { display: block; margin-top: auto; }
  .notes-author .notes-author-name { font-size: 1.75rem; white-space: normal; }
  .notes-author-description { margin-top: 12px; font-size: .68rem; line-height: 1.45; }
  .home-contact { min-height: 205px; padding-top: 36px; padding-bottom: 32px; }
  .home-contact p { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .contact-link { margin-top: 34px; }
  .home-page footer { padding: 26px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-process li,
  .home-process li::after { transition: none; }
}

/* Targeted balance corrections. */
.home-hero {
  align-items: start;
  min-height: clamp(560px, 57vw, 670px);
  padding-top: clamp(54px, 6vw, 82px);
}
.home-hero-copy { align-self: start; padding-top: clamp(18px, 2.4vw, 34px); }
.home-hero h1 { margin-top: clamp(24px, 3.2vw, 42px); }
.home-process {
  align-self: start;
  width: 100%;
  margin-top: clamp(112px, 12vw, 154px);
  transform: none;
}
.home-process-label { margin-bottom: 10px; }
.home-process li { min-height: 49px; }

.directions { grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); }
.directions-intro,
.direction,
.direction-primary,
.direction-secondary-group .direction {
  min-height: 220px;
  padding: 30px clamp(22px, 2.8vw, 38px);
}
.directions-intro { grid-row: auto; }
.directions h2 { margin: 0; font-size: clamp(2.15rem, 3.2vw, 3.25rem); }
.direction,
.direction-primary { justify-content: flex-end; }
.direction h3,
.direction-primary h3 {
  margin: auto 0 14px;
  color: var(--home-cream);
  font-size: clamp(1.75rem, 2.6vw, 2.8rem);
}
.direction-secondary-group { display: contents; }
.direction-secondary-group .direction { border-top: 0; }

.home-projects { padding-top: 42px; padding-bottom: 38px; }
.projects-heading-minimal {
  min-height: 20px;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.project-track {
  grid-auto-flow: initial;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
  overflow: visible;
  scroll-snap-type: none;
}
.project-carousel-static .project-controls { display: none; }
.home-project-card .project-visual { aspect-ratio: 1 / 1; }

.home-notes { grid-template-columns: minmax(0, 2.15fr) minmax(250px, .72fr); }
.notes-author {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 26px;
}
.notes-author-copy {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.2fr);
  align-items: end;
  gap: clamp(36px, 6vw, 92px);
  width: 100%;
  margin: 0;
}
.notes-author .notes-author-name {
  font-size: clamp(2.35rem, 3.5vw, 3.6rem);
  line-height: .95;
}
.notes-author-description { max-width: 48ch; margin: 0; font-size: .82rem; }
.notes-copy { padding-left: clamp(24px, 3vw, 42px); }
.notes-copy h2 { margin-bottom: 14px; }

.home-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, .23fr);
  align-items: center;
  min-height: 174px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.home-contact p { font-size: clamp(2.35rem, 3.8vw, 3.75rem); line-height: .96; }
.contact-link { align-self: center; margin: 0; }

.home-page footer { min-height: 92px; }
.home-page .footer-mark { justify-self: end; }

@media (max-width: 960px) {
  .home-hero { min-height: 560px; padding-top: 50px; }
  .home-hero-copy { padding-top: 10px; }
  .home-process { margin-top: 104px; }
  .directions { grid-template-columns: 1fr 1fr; }
  .directions-intro,
  .direction,
  .direction-primary,
  .direction-secondary-group .direction { min-height: 190px; }
  .directions-intro { grid-column: 1 / 3; }
  .direction-secondary-group { display: contents; }
  .direction,
  .direction-secondary-group .direction { border-top: 1px solid var(--home-line-dark); }
  .project-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .notes-author-copy { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  .home-hero { padding-top: 38px; }
  .home-hero-copy { padding-top: 0; }
  .home-process { margin-top: 54px; }
  .directions { grid-template-columns: 1fr 1fr; }
  .directions-intro { grid-column: 1 / 3; min-height: 172px; }
  .direction,
  .direction-primary,
  .direction-secondary-group .direction { min-height: 168px; }
  .direction h3,
  .direction-primary h3 { font-size: 2rem; }
  .home-projects { padding-top: 30px; }
  .projects-heading-minimal { margin-bottom: 14px; }
  .project-track { display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; }
  .home-project-card { width: min(100%, 330px); }
  .home-project-card:nth-child(even) { justify-self: end; }
  .home-notes { display: grid; grid-template-columns: 1.38fr 1fr; }
  .notes-author,
  .notes-copy { min-height: 190px; }
  .notes-author { display: grid; gap: 14px; }
  .notes-author-copy { display: block; }
  .notes-author .notes-author-name { font-size: 2rem; }
  .notes-author-description { margin-top: 14px; font-size: .68rem; }
  .home-contact {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 190px;
    padding-top: 34px;
    padding-bottom: 28px;
  }
  .home-contact p { font-size: clamp(2.25rem, 10.5vw, 3.3rem); }
  .contact-link { width: 100%; margin-top: 26px; }
}

/* Art direction: rhythm, asymmetry and section transitions. */
.home-hero {
  grid-template-columns: minmax(0, 1.78fr) minmax(270px, .72fr);
  column-gap: clamp(64px, 8vw, 132px);
  min-height: clamp(550px, 55vw, 650px);
}
.home-hero-copy { padding-top: clamp(8px, 1.4vw, 20px); }
.home-eyebrow { display: flex; align-items: center; gap: 14px; }
.home-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--home-sage); opacity: .72; }
.home-hero h1 { margin-bottom: 28px; }
.home-hero-description { max-width: 58ch; font-size: clamp(.92rem, 1.15vw, 1.06rem); }
.home-hero-actions { margin-top: 34px; }

.home-process { margin-top: clamp(100px, 10vw, 132px); }
.home-process-label { padding-left: 18px; }
.home-process ul { border-top-color: rgba(241, 235, 221, .28); }
.home-process li {
  min-height: 47px;
  padding-left: 18px;
  border-bottom-color: rgba(241, 235, 221, .14);
  font-size: .74rem;
  letter-spacing: .015em;
}
.home-process li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--home-sage);
  opacity: .62;
}
.home-process li:nth-child(2) { margin-left: 7px; }
.home-process li:nth-child(3) { margin-left: 14px; }
.home-process li:nth-child(4) { margin-left: 21px; }
.home-process li:nth-child(5) { margin-left: 28px; }
.home-process li:hover { padding-left: 24px; }

.directions {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(22px, 3vw, 48px);
  padding: clamp(36px, 4.5vw, 60px) clamp(24px, 4vw, 58px) clamp(42px, 5vw, 66px);
  border-top: 1px solid var(--home-line-dark);
}
.directions-intro,
.direction,
.direction-primary,
.direction-secondary-group .direction {
  min-height: 0;
  padding: 0;
  border: 0;
}
.directions-intro {
  grid-column: 1 / 7;
  display: grid;
  grid-template-columns: minmax(100px, .48fr) minmax(260px, 1.2fr);
  align-items: start;
  gap: 24px;
  margin-bottom: clamp(42px, 5vw, 66px);
}
.directions h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: .98;
}
.directions > .direction { grid-column: 1 / 5; }
.direction-secondary-group { display: contents; }
.direction-secondary-group .direction:first-child { grid-column: 5 / 9; }
.direction-secondary-group .direction:last-child { grid-column: 9 / 13; }
.direction,
.direction-primary,
.direction-secondary-group .direction {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  min-height: 156px;
  padding-top: 22px;
  border-top: 1px solid rgba(241, 235, 221, .22);
}
.direction h3,
.direction-primary h3 {
  margin: 0 0 34px;
  font-size: clamp(1.7rem, 2.35vw, 2.45rem);
  line-height: 1;
}
.direction p:not(.direction-kicker) { max-width: 38ch; align-self: end; font-size: .76rem; }
.direction::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--home-sage);
  opacity: .62;
}

.home-projects {
  position: relative;
  padding: clamp(46px, 5.5vw, 72px) clamp(24px, 4vw, 58px) clamp(58px, 7vw, 92px);
  border-top-color: rgba(241, 235, 221, .12);
}
.projects-heading-minimal { margin-bottom: 26px; }
.project-track { grid-template-columns: 1.06fr .97fr .97fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.home-project-card { box-shadow: 0 18px 44px rgba(7, 9, 7, .12); }
.project-syvstudio { margin-top: 24px; }
.project-anonymous { margin-top: 48px; }
.project-niqual .niqual-mark {
  position: absolute;
  top: 18%;
  left: 16%;
  width: 54%;
}
.project-syvstudio .syvstudio-wordmark {
  position: absolute;
  left: 11%;
  bottom: 26%;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
}
.project-anonymous .anonymous-grid { width: 39%; margin-left: 21%; }
.project-tag { left: 18px; bottom: 18px; }
.project-anonymous .anonymous-note { top: 20px; right: 20px; }

.home-notes {
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, .58fr);
  min-height: 196px;
  background: var(--home-cream);
}
.notes-author {
  min-height: 196px;
  padding: 26px clamp(24px, 4vw, 58px) 30px;
  background: var(--home-cream-deep);
}
.notes-author-copy { grid-template-columns: minmax(230px, .9fr) minmax(320px, 1.1fr); }
.notes-author .notes-author-name { font-size: clamp(2.7rem, 4vw, 4.1rem); }
.notes-author-description { padding-bottom: 4px; color: rgba(35, 38, 34, .7); font-size: .8rem; }
.notes-copy {
  min-height: 196px;
  padding: 26px clamp(24px, 3vw, 42px) 30px;
  background: var(--home-cream);
}
.notes-copy h2 { font-size: clamp(2rem, 2.8vw, 2.7rem); }

.home-contact {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .25fr);
  min-height: 184px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #292c28;
}
.home-contact p { display: flex; flex-direction: column; font-size: clamp(2.45rem, 3.85vw, 3.8rem); }
.home-contact p span:last-child { color: var(--home-sage); margin-left: clamp(42px, 7vw, 112px); }
.contact-link {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(241, 235, 221, .46);
}
.contact-link:hover { border-color: var(--home-cream); background: rgba(241, 235, 221, .04); }

.home-page footer {
  grid-template-columns: 1.05fr .9fr auto;
  min-height: 94px;
  padding-top: 15px;
  border-top-color: rgba(241, 235, 221, .14);
}
.home-page .footer-title { font-size: .92rem; font-weight: 400; }
.home-page .footer-links { justify-content: center; }
.home-page .footer-mark-signature { letter-spacing: .08em; }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1.5fr) minmax(220px, .6fr); column-gap: 42px; }
  .home-process { margin-top: 92px; }
  .directions-intro { grid-column: 1 / 9; }
  .direction p:not(.direction-kicker) { font-size: .72rem; }
  .project-track { gap: 14px; }
  .project-syvstudio { margin-top: 14px; }
  .project-anonymous { margin-top: 28px; }
  .notes-author-copy { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .home-eyebrow::before { width: 20px; }
  .home-process li:nth-child(n) { margin-left: 0; }
  .directions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    padding: 34px 20px 42px;
  }
  .directions-intro {
    grid-column: 1 / 3;
    display: block;
    min-height: 0;
    margin-bottom: 34px;
  }
  .directions h2 { margin-top: 44px; font-size: 2.35rem; }
  .directions > .direction,
  .direction-secondary-group .direction:first-child,
  .direction-secondary-group .direction:last-child { grid-column: auto; }
  .directions > .direction { grid-column: 1 / 3; }
  .direction,
  .direction-primary,
  .direction-secondary-group .direction { min-height: 142px; padding: 18px 0 24px; border-top-color: rgba(241, 235, 221, .2); }
  .direction h3,
  .direction-primary h3 { margin-bottom: 24px; font-size: 1.85rem; }
  .direction p:not(.direction-kicker) { font-size: .69rem; }
  .project-track { grid-template-columns: 1fr; }
  .project-syvstudio,
  .project-anonymous { margin-top: 0; }
  .home-project-card:nth-child(even) { justify-self: end; }
  .project-niqual .niqual-mark { width: 52%; }
  .project-syvstudio .syvstudio-wordmark { font-size: 3rem; }
  .home-notes { grid-template-columns: 1.4fr 1fr; min-height: 202px; }
  .notes-author,
  .notes-copy { min-height: 202px; }
  .notes-author-copy { display: block; }
  .notes-author .notes-author-name { font-size: 2.05rem; }
  .home-contact { grid-template-columns: 1fr; min-height: 204px; }
  .home-contact p { font-size: clamp(2.2rem, 10vw, 3.15rem); }
  .home-contact p span:last-child { margin-left: 0; }
  .contact-link { margin-top: 30px; }
  .home-page footer { grid-template-columns: 1fr; }
}

/* Final v13 cascade — keep structural refinement above legacy overrides. */
.home-hero { grid-template-columns: minmax(0, 1.6fr) minmax(320px, .68fr); column-gap: clamp(48px, 7vw, 112px); }
.home-projects { padding-top: clamp(38px, 4.5vw, 58px); padding-bottom: clamp(46px, 5vw, 68px); }
.projects-heading-minimal { width: min(100%, 930px); margin-bottom: 20px; }
.project-track {
  grid-template-columns: repeat(3, minmax(190px, 260px));
  gap: clamp(14px, 1.6vw, 22px);
  justify-content: start;
}
.project-syvstudio { margin-top: 18px; }
.project-anonymous { margin-top: 36px; }
.project-niqual .niqual-mark { top: 21%; left: 18%; width: 48%; }
.project-syvstudio .syvstudio-wordmark { left: 10%; bottom: 28%; font-size: clamp(2.1rem, 3vw, 3rem); }
.project-anonymous .anonymous-grid { width: 34%; margin-left: 26%; }

.home-notes {
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .55fr);
  min-height: 210px;
  color: var(--home-cream);
  background: var(--home-graphite);
  border-top: 1px solid var(--home-line-dark);
}
.notes-author,
.notes-copy { min-height: 210px; color: var(--home-cream); background: var(--home-graphite); }
.notes-author { padding-top: 32px; padding-bottom: 34px; }
.notes-author-copy { grid-template-columns: minmax(220px, .82fr) minmax(340px, 1.18fr); }
.notes-author .section-label,
.notes-copy .section-label { color: rgba(241, 235, 221, .46); }
.notes-author .notes-author-name { font-size: clamp(3rem, 4.6vw, 4.7rem); }
.notes-author-description { max-width: 58ch; color: rgba(241, 235, 221, .68); font-size: .88rem; line-height: 1.55; }
.notes-copy { padding-top: 32px; padding-bottom: 34px; border-left: 1px solid var(--home-line-dark); }
.notes-copy h2 { font-size: clamp(2.1rem, 3vw, 3rem); }
.notes-copy a { color: var(--home-cream); }

.home-contact { min-height: 164px; padding-top: 30px; padding-bottom: 30px; }
.home-contact p { font-size: clamp(2.25rem, 3.45vw, 3.45rem); }
.home-contact p span:last-child { margin-left: clamp(36px, 6vw, 96px); }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .72fr); column-gap: 34px; }
  .project-track { grid-template-columns: repeat(3, minmax(0, 220px)); }
  .notes-author-copy { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 680px) {
  .home-hero { display: block; min-height: 0; }
  .project-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-syvstudio { margin-top: 12px; }
  .project-anonymous { margin-top: 0; }
  .home-project-card:nth-child(even) { justify-self: stretch; }
  .project-syvstudio .syvstudio-wordmark { font-size: clamp(1.65rem, 8.5vw, 2.3rem); }
  .home-notes { grid-template-columns: minmax(0, 1.45fr) minmax(124px, .72fr); min-height: 240px; }
  .notes-author,
  .notes-copy { min-height: 240px; padding: 26px 20px; }
  .notes-author-copy { display: block; }
  .notes-author .notes-author-name { font-size: 2.25rem; }
  .notes-author-description { margin-top: 18px; font-size: .72rem; line-height: 1.48; }
  .notes-copy { padding-right: 12px; padding-left: 14px; }
  .notes-copy h2 { font-size: 1.55rem; }
  .home-contact { min-height: 190px; }
  .home-contact p { font-size: clamp(2.15rem, 10vw, 3.05rem); }
  .home-contact p span:last-child { margin-left: 0; }
}

/* v14 final asset correction. */
.project-syvstudio .syvstudio-wordmark {
  left: 8%;
  right: 8%;
  width: auto;
  max-width: 84%;
  font-size: clamp(1.9rem, 2.55vw, 2.5rem);
  white-space: nowrap;
}
@media (max-width: 680px) {
  .project-syvstudio .syvstudio-wordmark {
    left: 7%;
    right: 7%;
    max-width: 86%;
    font-size: clamp(1.4rem, 7.4vw, 2rem);
  }
}

/* Approved cinematic restoration: Process and editorial ending. */
.preview-cinematic-page .hero-process-scene .home-process-sequence::before { content: none; }
.preview-cinematic-page .hero-process-scene .home-process-sequence {
  border-radius: 0;
  background: rgba(19, 25, 31, .5);
}
.preview-cinematic-page .process-sequence li::after {
  background: rgba(157, 170, 143, .09);
}
.preview-cinematic-page .process-sequence li.is-active::after { opacity: 1; }

.projects-preview-cinematic.lower-preview-cosmic-black .home-ending {
  overflow: hidden;
  isolation: isolate;
}
.projects-preview-cinematic.lower-preview-cosmic-black .home-ending::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -84%;
  right: -10%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(193, 205, 215, .12);
  border-radius: 50%;
  background: transparent;
  opacity: .62;
  pointer-events: none;
}
.projects-preview-cinematic.lower-preview-cosmic-black .home-ending::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -62%;
  right: -7%;
  width: 53%;
  height: 172%;
  opacity: .42;
  pointer-events: none;
  background:
    linear-gradient(133deg, transparent 0 48.6%, rgba(193, 205, 215, .18) 48.8% 49%, transparent 49.2%),
    linear-gradient(47deg, transparent 0 61%, rgba(145, 158, 171, .045) 61.2% 78%, transparent 78.2%);
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-author,
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes {
  position: relative;
  z-index: 1;
  border-radius: 0;
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes {
  border-left-color: rgba(218, 224, 230, .14);
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes::before { content: none; }

/* Keep the newer contact reveal behaviour inside the restored composition. */
.ui-preview-final-corrections .ending-contact-row {
  position: relative;
  display: flex;
  align-items: center;
  align-self: flex-start;
  width: 100%;
  margin-top: clamp(28px, 3vw, 40px);
}
.ui-preview-final-corrections .ending-contact-link { display: flex; }
.ui-preview-final-corrections .contact-reveal-line { display: block; }
.ui-preview-final-corrections .contact-reveal-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.ui-preview-final-corrections .contact-reveal-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -2px);
}

@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .ui-preview-final-corrections .ending-contact-row.is-enhanced .contact-reveal li {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .ui-preview-final-corrections .ending-contact-row.is-enhanced.is-open .contact-reveal li,
  .ui-preview-final-corrections .ending-contact-row.is-enhanced:focus-within .contact-reveal li {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (min-width: 961px) {
  .ui-preview-final-corrections .ending-contact-row .contact-reveal {
    position: absolute;
    right: 0;
    bottom: 6px;
    flex-direction: column;
    gap: 12px;
  }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal-link {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal-link svg { width: 36px; height: 36px; }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal-label {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 3px);
  }
}

@media (max-width: 680px) {
  .projects-preview-cinematic.lower-preview-cosmic-black .home-ending::before,
  .projects-preview-cinematic.lower-preview-cosmic-black .home-ending::after { content: none; }
  .projects-preview-cinematic.lower-preview-cosmic-black .ending-notes { border-left: 0; }
  .ui-preview-final-corrections .ending-contact-row { display: flex; width: 100%; }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal {
    position: static;
    flex-direction: row;
    margin: 14px 0 0 -9px;
  }
  .ui-preview-final-corrections .ending-contact-row.is-enhanced .contact-reveal li {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* v16 directions reveal from the sage line. */
.hero-directions-region {
  position: relative;
  align-self: center;
  min-width: 0;
  min-height: 364px;
}

.hero-directions-trigger {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  left: clamp(-92px, -6vw, -54px);
  height: 44px;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .18s ease;
}
.hero-directions-trigger::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--home-sage);
  opacity: .78;
  transition: height .2s ease, opacity .2s ease;
}
.hero-directions-trigger::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-sage);
}
.hero-directions-trigger:hover::before,
.hero-directions-trigger:focus-visible::before { height: 2px; opacity: 1; }
.hero-directions-trigger:focus-visible { outline: 1px solid rgba(163, 174, 145, .72); outline-offset: 7px; }

.hero-directions {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(49.85% 0 49.85% 0 round 18px);
  transform-origin: left center;
  transition: clip-path .5s cubic-bezier(.22, .7, .24, 1), opacity .24s ease;
}
.hero-directions::before { content: none; }
.hero-directions-label,
.hero-direction {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .26s ease, transform .34s ease;
}
.hero-directions-region.is-open .hero-directions {
  opacity: 1;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 18px);
}
.hero-directions-region.is-open .hero-directions-trigger { opacity: 0; }
.hero-directions-region.is-open .hero-directions-trigger:focus-visible { opacity: 0; }
.hero-directions-region.is-open:focus-within .hero-directions {
  box-shadow: 0 0 0 1px rgba(163, 174, 145, .72), 0 18px 48px rgba(7, 9, 7, .08);
}
.hero-directions-region.is-open .hero-directions-label,
.hero-directions-region.is-open .hero-direction { opacity: 1; transform: none; }
.hero-directions-region.is-open .hero-directions-label { transition-delay: .13s; }
.hero-directions-region.is-open .hero-direction:nth-child(1) { transition-delay: .18s; }
.hero-directions-region.is-open .hero-direction:nth-child(2) { transition-delay: .23s; }
.hero-directions-region.is-open .hero-direction:nth-child(3) { transition-delay: .28s; }

@media (max-width: 960px) and (hover: hover) and (pointer: fine) {
  .hero-directions-region { min-height: 350px; }
  .hero-directions-trigger { left: -34px; }
}

@media (hover: none), (pointer: coarse), (max-width: 680px) {
  .hero-directions-region { min-height: 0; }
  .hero-directions-trigger { display: none; }
  .hero-directions {
    position: relative;
    inset: auto;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    clip-path: none;
  }
  .hero-directions-label,
  .hero-direction { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .hero-directions-region { margin-top: 48px; }
  .hero-directions-region::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 20px;
    width: 1px;
    height: 30px;
    background: var(--home-sage);
    opacity: .54;
  }
  .hero-directions { margin-top: 0; }
  .hero-directions::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-directions,
  .hero-directions-label,
  .hero-direction,
  .hero-directions-trigger,
  .hero-directions-trigger::before { transition: none; }
}

/* v15 hero integration. */
.home-hero {
  grid-template-columns: minmax(0, 1.52fr) minmax(360px, .82fr);
  column-gap: clamp(54px, 6vw, 92px);
}

.hero-directions {
  position: relative;
  width: 100%;
  padding: clamp(30px, 3vw, 44px) clamp(30px, 3.2vw, 46px);
  border: 1px solid rgba(241, 235, 221, .18);
  border-radius: 18px;
  background: rgba(241, 235, 221, .76);
  box-shadow: 0 18px 48px rgba(7, 9, 7, .08);
}

.hero-directions::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(54px, 6vw, 92px);
  height: 1px;
  background: var(--home-sage);
  opacity: .54;
}

.hero-directions-label {
  margin-bottom: clamp(30px, 3vw, 42px);
  color: rgba(35, 38, 34, .56);
  letter-spacing: .18em;
}

.hero-direction-list { border-top-color: rgba(35, 38, 34, .24); }
.hero-direction { padding: 19px 0 18px; border-bottom-color: rgba(35, 38, 34, .19); }
.hero-direction-title {
  font-size: clamp(1.7rem, 2.3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.048em;
}
.hero-direction-mark {
  width: 22px;
  height: 1px;
  overflow: hidden;
  color: transparent;
  background: rgba(35, 38, 34, .5);
  transform: none;
}
.hero-direction:hover .hero-direction-mark,
.hero-direction:focus-visible .hero-direction-mark,
.hero-direction[aria-expanded="true"] .hero-direction-mark {
  background: var(--home-sage);
  transform: scaleX(1.35);
  transform-origin: right center;
}
.hero-direction-description { max-width: 40ch; color: var(--home-graphite); font-size: .76rem; line-height: 1.52; }

@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .78fr); column-gap: 34px; }
  .hero-directions { padding: 28px 30px; }
  .hero-directions::before { width: 34px; }
  .hero-direction-title { font-size: 1.75rem; }
}

@media (max-width: 680px) {
  .home-hero { display: block; }
  .hero-directions {
    width: auto;
    margin-top: 48px;
    padding: 26px 20px 24px;
    background: rgba(241, 235, 221, .78);
  }
  .hero-directions::before {
    top: -30px;
    right: auto;
    left: 20px;
    width: 1px;
    height: 30px;
  }
  .hero-direction { padding: 18px 0; }
  .hero-direction-title { font-size: 1.82rem; }
  .hero-direction-description { font-size: .72rem; }
}

/* v16 final cascade. */
@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .hero-directions {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    clip-path: inset(49.85% 0 49.85% 0 round 18px);
  }
  .hero-directions::before { content: none; }
  .hero-directions-region.is-open .hero-directions {
    opacity: 1;
    pointer-events: auto;
    clip-path: inset(0 0 0 0 round 18px);
  }
}

@media (hover: none), (pointer: coarse), (max-width: 680px) {
  .hero-directions {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    clip-path: none;
  }
  .hero-directions::before { content: none; }
}

/* v17 directions surface opacity. */
.hero-directions {
  color: var(--home-cream);
  background-color: rgba(241, 235, 221, .3);
  border-color: rgba(241, 235, 221, .2);
}
.hero-directions-label { color: rgba(241, 235, 221, .62); }
.hero-direction-list { border-top-color: rgba(241, 235, 221, .3); }
.hero-direction { color: var(--home-cream); border-bottom-color: rgba(241, 235, 221, .23); }
.hero-direction-description { color: rgba(241, 235, 221, .82); }
.hero-direction-mark { background: rgba(241, 235, 221, .58); }
.hero-direction:hover .hero-direction-mark,
.hero-direction:focus-visible .hero-direction-mark,
.hero-direction[aria-expanded="true"] .hero-direction-mark { background: var(--home-sage); }

/* v18 independent direction rows. */
@keyframes hero-line-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-directions-trigger { top: 22%; }
.hero-directions-trigger::before {
  transform-origin: left center;
  animation: hero-line-grow .82s cubic-bezier(.22, .7, .24, 1) both;
}
.hero-directions-trigger::after { right: auto; left: 0; }
.hero-directions-trigger:focus-visible { outline: 0; }
.hero-directions-trigger:focus-visible::after { box-shadow: 0 0 0 4px rgba(163, 174, 145, .2); }
.hero-directions-region.is-open .hero-directions-trigger,
.hero-directions-region.is-open .hero-directions-trigger:focus-visible { opacity: 1; }

.hero-directions {
  top: 30%;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--home-cream);
  background: transparent;
  box-shadow: none;
  clip-path: none;
  transition: opacity .24s ease;
}
.hero-directions-label { display: none; }
.hero-direction-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 0;
}
.hero-direction {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(241, 235, 221, .16);
  border-radius: 10px;
  color: var(--home-cream);
  background-color: #292c28;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .26s ease, transform .32s ease, background-color .22s ease, border-color .22s ease;
}
.hero-direction:hover,
.hero-direction:focus-visible,
.hero-direction[aria-expanded="true"] {
  border-color: rgba(163, 174, 145, .48);
  background-color: rgba(163, 174, 145, .3);
}
.hero-direction:focus-visible { outline: 2px solid var(--home-sage); outline-offset: 3px; }
.hero-direction-title { font-size: clamp(1.45rem, 1.8vw, 1.85rem); font-weight: 300; }
.hero-direction-mark {
  width: auto;
  height: auto;
  overflow: visible;
  color: var(--home-sage);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  transform: none;
}
.hero-direction:hover .hero-direction-mark,
.hero-direction:focus-visible .hero-direction-mark,
.hero-direction[aria-expanded="true"] .hero-direction-mark { color: var(--home-cream); background: transparent; transform: none; }
.hero-direction-description {
  color: rgba(241, 235, 221, .76);
  font-size: .72rem;
  line-height: 1.48;
}
.hero-direction:hover:not([aria-expanded="true"]) .hero-direction-description,
.hero-direction:focus-visible:not([aria-expanded="true"]) .hero-direction-description {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-4px);
}
.hero-direction[aria-expanded="true"] .hero-direction-description {
  max-height: 90px;
  margin-top: 13px;
  opacity: 1;
  transform: none;
}
.hero-directions-region.is-open .hero-direction:nth-child(1) { transition-delay: .04s; }
.hero-directions-region.is-open .hero-direction:nth-child(2) { transition-delay: .14s; }
.hero-directions-region.is-open .hero-direction:nth-child(3) { transition-delay: .24s; }

@media (hover: none), (pointer: coarse), (max-width: 680px) {
  .hero-directions-region { padding-top: 20px; }
  .hero-directions {
    top: auto;
    width: auto;
    padding: 0;
    background: transparent;
  }
  .hero-direction-list { gap: 8px; }
  .hero-direction { padding: 14px 16px; opacity: 1; transform: none; }
  .hero-direction-title { font-size: 1.55rem; }
}

@media (max-width: 680px) {
  .hero-directions-region::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--home-sage);
    opacity: .68;
  }
  .hero-directions-region::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--home-sage);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-directions-trigger::before { animation: none; }
  .hero-direction { transition: none; }
}

/* v19: interactive process timeline */
.home-hero .button-primary { border-radius: 8px; }

.process-sequence {
  position: relative;
  --process-progress: 0;
}

.process-sequence::before,
.process-sequence::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2px;
  left: 10%;
  height: 1px;
}

.process-sequence::before {
  width: 80%;
  background: rgba(163, 174, 145, .3);
}

.process-sequence::after {
  width: calc(80% * var(--process-progress));
  background: var(--home-sage);
  transition: width .4s ease-out;
}

.process-sequence li {
  z-index: 1;
  padding: 22px 8px 0;
  border-top: 0;
  color: rgba(241, 235, 221, .58);
  text-align: center;
}

.process-sequence li::before {
  z-index: 2;
  top: 2px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  background: #7d8774;
  box-shadow: 0 0 0 0 rgba(163, 174, 145, 0);
  transition: transform .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out;
}

.process-sequence button {
  appearance: none;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.25;
  cursor: pointer;
  transition: color .2s ease-out, transform .2s ease-out;
}

.process-sequence li.is-active::before {
  transform: translate(-50%, -50%) scale(1.45);
  background: var(--home-sage);
  box-shadow: 0 0 0 7px rgba(163, 174, 145, .3);
}

.process-sequence li.is-active button {
  color: var(--home-cream);
  font-weight: 500;
  transform: translateY(-1px);
}

.process-sequence button:focus-visible {
  outline: 1px solid var(--home-sage);
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .process-sequence::before,
  .process-sequence::after {
    top: 18px;
    left: 3px;
    width: 1px;
  }

  .process-sequence::before {
    height: calc(100% - 36px);
  }

  .process-sequence::after {
    height: calc((100% - 36px) * var(--process-progress));
    transition: height .4s ease-out;
  }

  .process-sequence li {
    min-height: 42px;
    padding: 9px 0 9px 24px;
    border: 0;
    text-align: left;
  }

  .process-sequence li::before {
    top: 50%;
    left: 3px;
  }

  .process-sequence button {
    display: block;
    width: 100%;
    padding: 4px 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-sequence::after,
  .process-sequence li::before,
  .process-sequence button {
    transition: none;
  }
}

/* v20: connected sage-line motion system */
@keyframes hero-vertical-line-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .hero-directions-region { padding-left: clamp(24px, 2.3vw, 34px); }

  .hero-directions-trigger {
    top: 8%;
    right: auto;
    bottom: 8%;
    left: 0;
    width: 24px;
    height: auto;
    transform: none;
  }

  .hero-directions-trigger::before {
    top: 0;
    right: auto;
    bottom: 0;
    left: 2px;
    width: 1px;
    height: auto;
    background: rgba(163, 174, 145, .62);
    transform: scaleY(0);
    transform-origin: top center;
    animation: hero-vertical-line-grow .82s cubic-bezier(.22, .7, .24, 1) both;
  }

  .hero-directions-trigger::after {
    top: -2px;
    right: auto;
    left: 0;
    width: 5px;
    height: 5px;
  }

  .hero-directions-trigger:hover::before,
  .hero-directions-trigger:focus-visible::before { width: 1px; height: auto; opacity: 1; }

  .home-page .hero-directions-trigger:focus-visible { outline: 0; }

  .hero-directions {
    top: 12%;
    right: 0;
    left: clamp(24px, 2.3vw, 34px);
    width: auto;
  }

  .hero-direction { transform: translateX(-10px); }
  .hero-directions-region.is-open .hero-direction { transform: none; }
  .hero-directions-region.is-open .hero-direction:nth-child(1) { transition-delay: .05s; }
  .hero-directions-region.is-open .hero-direction:nth-child(2) { transition-delay: .15s; }
  .hero-directions-region.is-open .hero-direction:nth-child(3) { transition-delay: .25s; }
}

.process-sequence::before {
  background: rgba(163, 174, 145, .62);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .82s cubic-bezier(.22, .7, .24, 1);
}

.home-process-sequence.is-line-visible .process-sequence::before { transform: scaleX(1); }

@media (max-width: 680px), (hover: none), (pointer: coarse) {
  .hero-directions-region {
    padding-top: 16px;
    padding-left: 22px;
  }

  .hero-directions-region::before {
    top: 0;
    bottom: 0;
    left: 2px;
    width: 1px;
    height: auto;
    background: rgba(163, 174, 145, .62);
  }

  .hero-directions-region::after {
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
  }

  .hero-directions { margin: 0; }
  .hero-direction { transform: none; }
}

@media (max-width: 680px) {
  .process-sequence::before {
    transform: scaleY(0);
    transform-origin: top center;
  }

  .home-process-sequence.is-line-visible .process-sequence::before { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-directions-trigger::before { animation: none; transform: none; }
  .hero-direction,
  .process-sequence::before { transition: none; }
}

/* v21: tighter desktop handoff from hero to process */
@media (min-width: 961px) {
  .home-hero {
    min-height: calc(clamp(550px, 55vw, 650px) - 70px);
    padding-bottom: clamp(28px, 3vw, 42px);
  }
}

/* v22: header nav + process card (reference 2026-10-11) */
.home-page .site-header nav a {
  margin: -8px -14px;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color .2s ease;
}

.home-page .site-header nav a:hover,
.home-page .site-header nav a:focus,
.home-page .site-header nav a:focus-visible,
.home-page .site-header nav a:active {
  text-decoration: none;
}

.home-page .site-header nav a:hover,
.home-page .site-header nav a:focus-visible,
.home-page .site-header nav a:active {
  background-color: rgba(157, 170, 143, .2);
}

@media (max-width: 680px) {
  /* Keep the hover pill inside the scrollable nav without shifting links. */
  .home-page .site-header nav {
    width: calc(100% + 28px);
    margin: -8px -14px;
    padding: 8px 14px;
  }
}

/* Process: full-width band stays, the timeline sits on an inset rounded card.
   Card is a pseudo-element, so section size and content positions don't change. */
.home-process-sequence {
  --process-card-inset: clamp(10px, 1.1vw, 16px);
  position: relative;
  isolation: isolate;
  background: var(--home-graphite);
}

.home-process-sequence::before {
  content: "";
  position: absolute;
  inset: var(--process-card-inset);
  z-index: -1;
  border: 1px solid rgba(241, 235, 221, .12);
  border-radius: 12px;
  background-color: #292c28;
  pointer-events: none;
  transition: background-color .3s ease, border-color .3s ease;
}

@media (hover: hover) {
  .home-process-sequence:hover::before {
    border-color: rgba(163, 174, 145, .26);
    background-color: #31352f; /* #292c28 + 7% sage */
  }
}

.home-process-sequence:has(:focus-visible)::before {
  border-color: rgba(163, 174, 145, .26);
  background-color: #31352f;
}

@media (max-width: 680px) {
  .home-process-sequence { --process-card-inset: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .site-header nav a,
  .home-process-sequence::before { transition: none; }
}

/* v23: projects gallery refinement */

/* "Все проекты" moved below the tiles, bottom-right of the section. */
.home-projects .projects-heading-minimal {
  min-height: 0;
  margin-bottom: 0;
}

.projects-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(22px, 2.6vw, 34px);
}

.projects-footer a {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--home-line-dark);
  color: rgba(241, 235, 221, .76);
  font-size: .78rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}

.projects-footer a:hover,
.projects-footer a:focus-visible {
  color: var(--home-cream);
  border-bottom-color: rgba(241, 235, 221, .48);
}

/* SyvStudio wordmark: size from the tile, not the viewport, so it never clips.
   Beats the legacy `.project-syvstudio .project-visual span` rule (higher specificity). */
.project-syvstudio .project-visual {
  container-type: inline-size;
}

.project-syvstudio .project-visual .syvstudio-wordmark {
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  text-align: center;
  font-size: clamp(1.4rem, 2.3vw, 2.4rem); /* fallback without container queries */
  font-size: 19cqi;
  white-space: nowrap;
}

/* Scroll reveal. Classes are added by JS only, so tiles stay visible without JS. */
.home-projects.is-reveal-pending .home-project-card {
  opacity: 0;
  transform: translateY(20px);
}

.home-projects.is-reveal-pending.is-revealing a.home-project-card {
  opacity: 1;
  transform: none;
  transition: opacity 1100ms ease-out, transform 1100ms ease-out;
  transition-delay: calc(var(--reveal-index, 0) * 280ms);
}

.home-projects .home-project-card:nth-child(2) { --reveal-index: 1; }
.home-projects .home-project-card:nth-child(3) { --reveal-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .home-projects.is-reveal-pending .home-project-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .projects-footer a { transition: none; }
}

/* v24: author area — compact editorial stack, 65 / 35 split with notes */
.home-ending {
  grid-template-columns: minmax(0, 65fr) minmax(300px, 35fr);
}

.ending-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  background-color: rgba(157, 170, 143, .03);
}

/* Legacy grid rules set align-self: end; in a flex column that means "right". */
.home-ending .ending-author > * { align-self: flex-start; }

.ending-author h2 {
  margin: clamp(22px, 2.4vw, 32px) 0 0;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.ending-author-description {
  max-width: 44ch;
  margin: clamp(16px, 1.6vw, 22px) 0 0;
  color: rgba(241, 235, 221, .72);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.6;
}

.ending-contact-link {
  margin-top: auto;
}

.ending-author-description + .ending-contact-link {
  margin-top: clamp(28px, 3vw, 40px);
}

@media (max-width: 960px) {
  .home-ending { grid-template-columns: minmax(0, 65fr) minmax(260px, 35fr); }
}

@media (max-width: 680px) {
  .home-ending { display: block; }
  .ending-author { display: block; }
  .ending-author h2 {
    margin-top: 22px;
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    white-space: normal;
  }
  .ending-author-description { margin-top: 16px; font-size: .86rem; }
  .ending-author-description + .ending-contact-link { margin-top: 28px; }
}

/* v25: author contact reveal next to "Написать" */
.ending-contact-row {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  /* The whole row is the hover area; size it to all of its content. */
  width: max-content;
  max-width: 100%;
}

.ending-author-description + .ending-contact-row {
  margin-top: clamp(28px, 3vw, 40px);
}

.ending-contact-row .ending-contact-link {
  flex: none;
  /* Same visual width as before (min(100%, 230px)), but definite, so the
     row's intrinsic width includes it and the icons stay inside the hover area. */
  width: 230px;
  margin: 0;
}

.contact-reveal-line {
  flex: none;
  width: 1px;
  height: 28px;
  background: rgba(163, 174, 145, .6);
  transform-origin: center;
}

.contact-reveal {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-reveal-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(241, 235, 221, .78);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.contact-reveal-link:hover,
.contact-reveal-link:focus-visible {
  background-color: rgba(157, 170, 143, .2);
  color: var(--home-cream);
}

.contact-reveal-link:focus-visible {
  outline: 2px solid var(--home-sage);
  outline-offset: 2px;
}

.contact-reveal-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  color: rgba(241, 235, 221, .72);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px);
  transition: opacity .2s ease, transform .2s ease;
}

.contact-reveal-link:hover .contact-reveal-label,
.contact-reveal-link:focus-visible .contact-reveal-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Hidden-until-hover only for mouse/trackpad desktops with JS.
   Touch, mobile and no-JS keep the links visible. */
@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .ending-contact-row.is-enhanced .contact-reveal-line {
    opacity: 0;
    transform: scaleY(0);
    transition: opacity .25s ease, transform .25s ease;
  }

  .ending-contact-row.is-enhanced .contact-reveal li {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }

  .ending-contact-row.is-enhanced.is-open .contact-reveal-line,
  .ending-contact-row.is-enhanced:focus-within .contact-reveal-line {
    opacity: 1;
    transform: scaleY(1);
  }

  .ending-contact-row.is-enhanced.is-open .contact-reveal li,
  .ending-contact-row.is-enhanced:focus-within .contact-reveal li {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity .3s ease-out var(--reveal-delay, 0ms),
      transform .3s ease-out var(--reveal-delay, 0ms),
      visibility 0s;
  }

  .contact-reveal li:nth-child(1) { --reveal-delay: 80ms; }
  .contact-reveal li:nth-child(2) { --reveal-delay: 180ms; }
  .contact-reveal li:nth-child(3) { --reveal-delay: 280ms; }
}

/* Touch: a tap leaves :hover stuck, so the floating label shows only for keyboard focus.
   The accessible name stays in the DOM either way. */
@media (hover: none) {
  .contact-reveal-link:hover:not(:focus-visible) .contact-reveal-label { opacity: 0; }
}

@media (max-width: 680px) {
  .contact-reveal-label { left: 0; transform: translateY(-2px); }
  .contact-reveal-link:hover .contact-reveal-label,
  .contact-reveal-link:focus-visible .contact-reveal-label { transform: none; }
  .ending-contact-row { flex-wrap: wrap; gap: 0; width: 100%; }
  .ending-contact-row .ending-contact-link { width: 100%; }
  .contact-reveal-line { display: none; }
  .contact-reveal { margin: 14px 0 0 -9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ending-contact-row .contact-reveal-line,
  .ending-contact-row .contact-reveal li,
  .contact-reveal-link,
  .contact-reveal-label { transition: none !important; }
}

/* v26: contact icons as a vertical column in the empty right part of the author area (desktop). */
@media (min-width: 961px) {
  .ending-contact-row {
    position: relative;
    width: 100%;
  }

  .ending-contact-row .contact-reveal {
    position: absolute;
    right: 0;
    bottom: 6px;
    flex-direction: column;
    gap: 8px;
  }

  /* Invisible hover bridge from the top-right of "Написать" up to the icon column.
     Active only while open, so the pointer can travel diagonally without closing it. */
  .ending-contact-row::before {
    content: "";
    position: absolute;
    top: -84px;
    right: 0;
    bottom: 0;
    left: 230px;
    clip-path: polygon(0 84px, calc(100% - 128px) 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
  }

  .ending-contact-row.is-open::before { pointer-events: auto; }

  .ending-contact-row .contact-reveal-line {
    position: absolute;
    right: 128px;
    bottom: 6px;
    height: 124px; /* 3 × 36px icons + 2 × 8px gaps */
    transform-origin: bottom center;
  }

  /* Labels sit between the line and the icons. */
  .ending-contact-row .contact-reveal-label {
    top: 50%;
    right: calc(100% + 12px);
    left: auto;
    transform: translate(4px, -50%);
  }

  .ending-contact-row .contact-reveal-link:hover .contact-reveal-label,
  .ending-contact-row .contact-reveal-link:focus-visible .contact-reveal-label {
    transform: translate(0, -50%);
  }
}

/* v27: desktop contact icons at 2× size (tile 72px, glyph 36px). */
@media (min-width: 961px) {
  .ending-contact-row .contact-reveal { gap: 12px; }

  .ending-contact-row .contact-reveal-link {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .ending-contact-row .contact-reveal-link svg {
    width: 36px;
    height: 36px;
    transition: transform .2s ease;
  }

  .ending-contact-row .contact-reveal-line {
    right: 92px;
    height: 240px; /* 3 × 72px tiles + 2 × 12px gaps */
  }

  /* Label moves inside the tile, under the glyph, so the taller column never reaches the text. */
  .ending-contact-row .contact-reveal-label {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 50%;
    font-size: .54rem;
    transform: translate(-50%, 3px);
  }

  .ending-contact-row .contact-reveal-link:hover .contact-reveal-label,
  .ending-contact-row .contact-reveal-link:focus-visible .contact-reveal-label {
    transform: translate(-50%, 0);
  }

  .ending-contact-row .contact-reveal-link:hover svg,
  .ending-contact-row .contact-reveal-link:focus-visible svg {
    transform: translateY(-7px);
  }

  /* The link must stay above the bridge so it remains clickable. */
  .ending-contact-row .ending-contact-link { position: relative; z-index: 1; }

  /* Taller column → steeper path: start the bridge at the link's left edge. */
  .ending-contact-row::before {
    top: -200px;
    left: 0;
    clip-path: polygon(0 200px, calc(100% - 92px) 0, 100% 0, 100% 100%, 0 100%);
  }
}

@media (min-width: 961px) and (hover: none) {
  .ending-contact-row .contact-reveal-link:hover:not(:focus-visible) svg { transform: none; }
}

@media (min-width: 961px) and (prefers-reduced-motion: reduce) {
  .ending-contact-row .contact-reveal-link svg { transition: none; }
}

/* v28: author + notes in one shared rounded container (drawn like the Process card). */
.home-ending {
  --ending-card-x: clamp(10px, 1.1vw, 16px);
  --ending-card-y: clamp(10px, 1.1vw, 16px);
  position: relative;
  isolation: isolate;
  background: var(--home-graphite);
}

.home-ending::before {
  content: "";
  position: absolute;
  inset: var(--ending-card-y) var(--ending-card-x);
  z-index: -1;
  border: 1px solid rgba(241, 235, 221, .12);
  border-radius: 16px;
  background: #292c28;
  pointer-events: none;
}

.ending-author { background-color: transparent; }

/* Divider: keep the 1px column border for layout, draw the visible line inside the card only. */
.ending-notes {
  position: relative;
  border-left-color: transparent;
}

.ending-notes::before {
  content: "";
  position: absolute;
  top: var(--ending-card-y);
  bottom: var(--ending-card-y);
  left: -1px;
  width: 1px;
  background: var(--home-line-dark);
  pointer-events: none;
}

@media (max-width: 680px) {
  .home-ending { --ending-card-x: 8px; --ending-card-y: 10px; }
  .ending-notes { border-top-color: transparent; }
  .ending-notes::before {
    top: -1px;
    bottom: auto;
    left: var(--ending-card-x);
    right: var(--ending-card-x);
    width: auto;
    height: 1px;
  }
}

/* Footer (home): two compact rows, no duplicate contact links. */
.home-page footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  padding: 14px clamp(24px, 4vw, 58px) 10px;
}

.home-page .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 10px;
  border-top: 1px solid rgba(246, 244, 239, .16);
}

.home-page .footer-bottom .legal-rail {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.home-page .footer-bottom .footer-mark {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.home-page .footer-bottom .footer-mark-signature { margin: 0; }

@media (max-width: 680px) {
  .home-page footer { padding: 22px 20px 16px; }
  .home-page .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* v29: footer is a single compact row (message block removed). */
.home-page footer {
  gap: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.home-page .footer-bottom {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 680px) {
  .home-page footer { padding: 18px 20px; }
}

/* v30: process timeline — stage descriptions + active stage surface.
   Descriptions are always in the layout (only visually hidden), so the
   container height never changes between default, hover and focus. */
.process-sequence li { isolation: isolate; }

.process-desc {
  max-width: 24ch;
  margin: 8px auto 0;
  color: rgba(241, 235, 221, .7);
  font-size: clamp(.66rem, .78vw, .74rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease-out, transform .25s ease-out;
}

.process-sequence li.is-active .process-desc {
  opacity: 1;
  transform: none;
}

/* Subtle sage surface behind the active stage (below the line, never over the node). */
.process-sequence li::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12px;
  right: 4px;
  bottom: -12px;
  left: 4px;
  border-radius: 10px;
  background: rgba(157, 170, 143, .16);
  opacity: 0;
  transition: opacity .25s ease-out;
  pointer-events: none;
}

.process-sequence li.is-active::after { opacity: 1; }

/* Room for the active surface under the last row of text. */
.process-sequence { padding-bottom: 12px; }

@media (max-width: 680px) {
  .process-sequence li {
    min-height: 0;
    padding: 6px 0 10px 24px;
  }

  .process-sequence button {
    min-height: 44px;
    padding: 10px 0;
  }

  .process-desc {
    max-width: none;
    min-height: 2.9em; /* two lines reserved */
    margin: 0;
    font-size: .8rem;
    text-align: left;
    /* Mobile: the space is reserved anyway, so show every description muted
       (no empty gaps, nothing hidden from touch users); a tap brings one to full. */
    opacity: .8;
    transform: none;
  }

  /* Node and line aligned with the label row. */
  .process-sequence li::before { top: 28px; }

  .process-sequence::before,
  .process-sequence::after { top: 28px; }

  /* Line length = list height − bottom padding 12 − last li (6 + 44 + 2.32rem + 10). */
  .process-sequence::before { height: calc(100% - 72px - 2.32rem); }
  .process-sequence::after { height: calc((100% - 72px - 2.32rem) * var(--process-progress)); }

  .process-sequence li::after {
    top: 4px;
    right: -8px;
    bottom: 4px;
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-desc,
  .process-sequence li::after { transition: none; }
  .process-desc { transform: none; }
}

/* v31: hero copy wrap + directions discoverability hint (desktop pointer only). */
.home-hero-description,
.hero-direction-description { text-wrap: pretty; } /* avoids one-word last lines with the longer copy */

.hero-directions-hint { display: none; }

@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .hero-directions-hint {
    position: absolute;
    top: -7px;
    left: calc(100% + 8px);
    display: block;
    color: rgba(163, 174, 145, .9);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity .2s ease, color .2s ease;
  }

  .hero-directions-trigger:hover .hero-directions-hint,
  .hero-directions-trigger:focus-visible .hero-directions-hint { color: var(--home-cream); }

  /* Panel open: the hint steps aside so it never sits on top of the first row. */
  .hero-directions-region.is-open .hero-directions-hint { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-directions-hint { transition: none; }
}

/* ==========================================================================
   v32: typography & readability override (audit 2026-10-12, P0 + P1)
   One block on purpose: sizes and text alpha only, no layout or palette changes.
   Contrast targets measured on the real backgrounds (graphite, card #292c28,
   process hover card, sage active surfaces, footer). Goal ≥ 5:1 where practical.
   ========================================================================== */

/* --- P0 · contrast fixes (WCAG AA failures) --- */
.home-page .process-heading .section-label,
.home-page .ending-author .section-label,
.home-page .ending-notes .section-label { color: rgba(241, 235, 221, .64); }   /* was .46 → 3.71:1 */

.home-page .project-anonymous .anonymous-note { color: rgba(241, 235, 221, .66); } /* was .48 → 3.77:1 */
.home-page .footer-mark-signature { color: rgba(246, 244, 239, .6); }            /* was .40 → 3.56:1 */

/* --- P0 · margins for small text that sat at ~4.5–5:1 --- */
.home-page .legal-rail-copy { color: rgba(246, 244, 239, .58); }                 /* was .50 */
.home-page .project-niqual .project-tag { color: rgba(33, 33, 32, .74); }        /* was .68 on light card */
.home-page .hero-direction-description { color: rgba(241, 235, 221, .84); }      /* was .76 on sage row */
.home-page .process-sequence li { color: rgba(241, 235, 221, .66); }             /* inactive stage titles, was .58 */
.home-page .process-desc { color: rgba(241, 235, 221, .78); }                    /* was .70 */

/* --- P0 · font consistency: trigger label rendered in the button's system font (Arial) --- */
.home-page .hero-directions-hint { font-family: "Onest", system-ui, sans-serif; }

/* --- P1 · reading sizes --- */
.home-page .home-hero-description { font-size: 18px; }
.home-page .hero-direction-description { font-size: 15px; }
.home-page .process-sequence button { font-size: 15px; }
.home-page .process-desc { font-size: 14px; }
.home-page .ending-author-description { font-size: 16.5px; }
.home-page .ending-note-list a { font-size: 15px; }

/* No one-word last lines with the larger sizes.
   Narrow columns (process stages, notes) need balance; pretty is enough elsewhere. */
.home-page .ending-author-description { text-wrap: pretty; }
.home-page .process-desc,
.home-page .ending-note-list a span:first-child { text-wrap: balance; }

/* Desktop/tablet timeline: let the description use its own stage padding (8px each side),
   and widen the active sage surface by the same amount so text keeps air inside it.
   Only one stage is active at a time, so nothing visible overlaps. */
@media (min-width: 681px) {
  .home-page .process-desc { margin-right: -8px; margin-left: -8px; max-width: none; }
  .home-page .process-sequence li::after { right: -4px; left: -4px; }
}

@media (max-width: 680px) {
  .home-page .home-hero-description { font-size: 16px; }
  .home-page .ending-author-description { font-size: 16px; }
  .home-page .process-desc { font-size: 14px; }

  /* Mobile timeline line must still end on the last node:
     list padding 12 + last li (6 + 44 + description 2.9em × 14px + 10) − node offset already in top. */
  .home-page .process-sequence::before { height: calc(100% - 72px - 2.9 * 14px); }
  .home-page .process-sequence::after { height: calc((100% - 72px - 2.9 * 14px) * var(--process-progress)); }
}

/* ==========================================================================
   v33: typography P2 + tablet layout (2026-10-12)
   Secondary sizes, Process shared description row on tablets, notes header on tablets.
   Weights and palette unchanged; only sizes and two tablet layouts.
   ========================================================================== */

/* --- Secondary typography --- */
.home-page .home-eyebrow,
.home-page .section-label { font-size: 12px; }                                   /* was 10.6 */

.home-page .home-project-card .project-tag { font-size: 11px; }                    /* was 8–8.6 */
.home-page .project-anonymous .anonymous-note { font-size: 11px; }                 /* was 7.4–8.6 */

.home-page .ending-contact-row .contact-reveal-label { font-size: 11px; letter-spacing: .06em; } /* was 8.6–9.3; tighter tracking keeps TELEGRAM inside the 72px tile */

.home-page .ending-notes-heading > a { font-size: 13px; }                          /* was 10.9 */

.home-page .legal-rail-copy,
.home-page .legal-rail-link,
.home-page .footer-mark-signature { font-size: 12px; }                             /* was 8.6–9.9 */

.home-page .hero-directions-hint { font-size: 12px; }                              /* was 9.9 */

.home-page .site-header nav a { font-size: 14px; }                                 /* was 12.5 */

.home-page .home-hero-actions .button { font-size: 14px; }                         /* was 12.5 */

/* --- Process: shared description row on tablets (681–1199px) ---
   Five-stage timeline stays horizontal. Each description is lifted out of its narrow
   column into one full-width row under the timeline (absolute, so switching stages never
   changes height). Columns have no gap and equal width, so stage N offsets by −(N−1)×100%. */
@media (min-width: 681px) and (max-width: 1199px) {
  .home-page .process-sequence { padding-bottom: calc(24px + 14px * 1.45 + 8px); } /* reserved: gap + one 14px line + air */

  .home-page .process-desc {
    position: absolute;
    top: calc(100% + 24px);
    left: 0;
    width: 500%;
    max-width: none;
    margin: 0;
    text-align: center;
    pointer-events: none; /* hidden rows must not steal hover from the stage above them */
  }

  .home-page .process-sequence li:nth-child(2) .process-desc { left: -100%; }
  .home-page .process-sequence li:nth-child(3) .process-desc { left: -200%; }
  .home-page .process-sequence li:nth-child(4) .process-desc { left: -300%; }
  .home-page .process-sequence li:nth-child(5) .process-desc { left: -400%; }

  /* Active sage surface hugs the stage title now that the text lives below. */
  .home-page .process-sequence li::after { bottom: -8px; }

}

/* Notes column header: heading and "Все материалы" stack instead of squeezing.
   Needed on tablets, on the narrow 1200–1399 desktop column, and on phones ≤400px. */
@media (min-width: 681px) and (max-width: 1399px), (max-width: 400px) {
  .home-page .ending-notes-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Phones: keep the larger card labels on one line and off the card edge. */
@media (max-width: 680px) {
  .home-page .project-anonymous .anonymous-note {
    top: 12px;
    right: 12px;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .home-page .home-project-card .project-tag { letter-spacing: .08em; }
}

/* Narrow tablets: 14px CTAs need 16px more than the hero column has at ~768px.
   The secondary CTA is a borderless text link, so trimming its invisible side padding
   keeps both CTAs on one row without shrinking the type. */
@media (min-width: 681px) and (max-width: 899px) {
  .home-page .home-hero-actions .button-secondary { padding-right: 6px; padding-left: 6px; }
}

/* Narrow phones: 14px navigation needs a slightly tighter gap to fit 4 items. */
@media (max-width: 400px) {
  .home-page .site-header nav { gap: 14px; }
}

/* v34: skip link contrast (2026-10-13). The shared .skip-link uses var(--paper) as background and
   inherited the homepage cream text (1.08:1). Off-screen until focused, so nothing changes at rest. */
.home-page .skip-link {
  background: var(--home-cream);
  color: var(--home-graphite);
}

/* Isolated cinematic/cosmic preview ported from the working Nikkalma branch. */
.hero-process-scene,
.projects-ending-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.preview-cinematic-page .hero-process-scene { background: #141414; }
.preview-cinematic-page .hero-process-scene::before,
.preview-cinematic-page .hero-process-scene::after,
.projects-preview-cinematic .projects-ending-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.preview-cinematic-page .hero-process-scene::before {
  z-index: -2;
  background: url('/assets/images/nikkalma-hero-stone-v1.webp') center right / cover no-repeat;
}
.preview-cinematic-page .hero-process-scene::after {
  z-index: -1;
  background:
    linear-gradient(90deg, #141414 0%, rgba(20, 20, 20, .93) 27%, rgba(20, 20, 20, .22) 56%, rgba(20, 20, 20, .08) 100%),
    linear-gradient(180deg, rgba(20, 20, 20, .02) 0 72%, rgba(20, 20, 20, .08) 100%);
}
.preview-cinematic-page .hero-process-scene .home-hero { background: transparent; }
.preview-cinematic-page .hero-process-scene .home-process-sequence {
  background: rgba(19, 25, 31, .5);
  border-top-color: rgba(218, 224, 230, .2);
  border-bottom-color: rgba(218, 224, 230, .12);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.projects-preview-cinematic .home-projects {
  --preview-card: 260px;
  --preview-gap: clamp(64px, 6vw, 96px);
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-bottom: 64px;
  background: rgba(14, 16, 16, .84);
}
.projects-preview-cinematic .projects-ending-scene {
  background: linear-gradient(180deg, #0e1010 0%, #0b0d0d 56%, #0e0f0f 100%);
}
.projects-preview-cinematic .projects-ending-scene::before {
  z-index: 0;
  height: 520px;
  bottom: auto;
  opacity: .84;
  transform: scaleY(-1);
  transform-origin: center;
  background:
    radial-gradient(ellipse 30% 13% at 84% 72%, rgba(211, 220, 227, .15), rgba(186, 198, 208, .055) 42%, transparent 74%),
    linear-gradient(90deg, #0e1010 0%, rgba(14, 16, 16, .97) 18%, rgba(14, 16, 16, .72) 38%, rgba(14, 16, 16, .2) 70%, rgba(14, 16, 16, .06) 100%),
    linear-gradient(180deg, rgba(14, 16, 16, .72), rgba(14, 16, 16, .04) 28%, rgba(14, 16, 16, .12) 68%, #0e0f0f 100%),
    url('/assets/images/nikkalma-projects-cinematic-v1.webp') center right / cover no-repeat;
}
.projects-preview-cinematic .project-carousel { position: relative; z-index: 2; }
.projects-preview-cinematic .project-track {
  grid-template-columns: repeat(3, var(--preview-card));
  gap: var(--preview-gap);
  justify-content: start;
  align-items: start;
}
.projects-preview-cinematic .project-syvstudio { margin-top: 0; }
.projects-preview-cinematic .project-anonymous { margin-top: 22px; }
.projects-preview-cinematic.ui-preview-final-corrections .project-anonymous { margin-top: 0; }
.projects-preview-cinematic .projects-footer { display: none; }
.project-unpublished { cursor: default; }

.projects-preview-cinematic.lower-preview-cosmic-black .home-projects {
  background: linear-gradient(180deg, rgba(14, 16, 16, .84), rgba(11, 13, 13, .78) 72%, rgba(14, 15, 15, .86));
}
.projects-preview-cinematic.lower-preview-cosmic-black .home-ending {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0e0f0f, #0b0d0d 58%, #0e1010);
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-author,
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes { background: rgba(11, 13, 13, .22); }
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes { background: rgba(11, 13, 13, .34); }

.ui-preview-final-corrections .hero-direction { background-color: rgb(24, 30, 36); }
.ui-preview-final-corrections .hero-direction:hover,
.ui-preview-final-corrections .hero-direction:focus-visible,
.ui-preview-final-corrections .hero-direction[aria-expanded="true"] { background-color: rgba(37, 44, 51, .63); }

@media (max-width: 960px) {
  .preview-cinematic-page .hero-process-scene::before { background-position: 58% center; }
  .projects-preview-cinematic .home-projects {
    --preview-card: min(27vw, 210px);
    --preview-gap: clamp(18px, 3.5vw, 34px);
  }
}

@media (max-width: 680px) {
  .preview-cinematic-page .hero-process-scene::before { background-position: 64% 24%; background-size: auto 72%; background-repeat: no-repeat; }
  .preview-cinematic-page .hero-process-scene::after {
    background:
      linear-gradient(180deg, #141414, rgba(20, 20, 20, .78) 42%, rgba(20, 20, 20, .2) 72%, rgba(20, 20, 20, .5)),
      linear-gradient(90deg, rgba(20, 20, 20, .88), rgba(20, 20, 20, .08));
  }
  .projects-preview-cinematic .home-projects { padding-bottom: 48px; }
  .projects-preview-cinematic .project-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .projects-preview-cinematic .project-anonymous { margin-top: 0; }
  .projects-preview-cinematic .projects-ending-scene::before {
    height: 560px;
    opacity: .5;
    background:
      linear-gradient(180deg, #0e1010, rgba(14, 16, 16, .92) 30%, rgba(14, 16, 16, .28) 66%, #0e0f0f),
      linear-gradient(90deg, rgba(14, 16, 16, .76), rgba(14, 16, 16, .1)),
      url('/assets/images/nikkalma-projects-cinematic-v1.webp') 64% bottom / auto 74% no-repeat;
  }
}

/* Final cascade: restore the approved cinematic surfaces after merged v29 rules. */
.preview-cinematic-page .hero-process-scene .home-process-sequence::before { content: none; }
.preview-cinematic-page .hero-process-scene .home-process-sequence {
  border-radius: 0;
  background: rgba(19, 25, 31, .5);
}
.preview-cinematic-page .process-sequence li::after { background: rgba(157, 170, 143, .09); }

.projects-preview-cinematic.lower-preview-cosmic-black .home-ending {
  overflow: hidden;
  isolation: isolate;
}
.projects-preview-cinematic.lower-preview-cosmic-black .home-ending::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -84%;
  right: -10%;
  bottom: auto;
  left: auto;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(193, 205, 215, .12);
  border-radius: 50%;
  background: transparent;
  opacity: .62;
  pointer-events: none;
}
.projects-preview-cinematic.lower-preview-cosmic-black .home-ending::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -62%;
  right: -7%;
  width: 53%;
  height: 172%;
  opacity: .42;
  pointer-events: none;
  background:
    linear-gradient(133deg, transparent 0 48.6%, rgba(193, 205, 215, .18) 48.8% 49%, transparent 49.2%),
    linear-gradient(47deg, transparent 0 61%, rgba(145, 158, 171, .045) 61.2% 78%, transparent 78.2%);
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-author,
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes {
  position: relative;
  z-index: 1;
  border-radius: 0;
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes {
  border-left-color: rgba(218, 224, 230, .14);
}
.projects-preview-cinematic.lower-preview-cosmic-black .ending-notes::before { content: none; }

.ui-preview-final-corrections .ending-contact-row {
  position: relative;
  display: flex;
  align-items: center;
  align-self: flex-start;
  width: 100%;
  margin-top: clamp(28px, 3vw, 40px);
}
.ui-preview-final-corrections .ending-contact-link { display: flex; }
.ui-preview-final-corrections .contact-reveal-line { display: block; }
.ui-preview-final-corrections .contact-reveal-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}
.ui-preview-final-corrections .contact-reveal-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -2px);
}

@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .ui-preview-final-corrections .ending-contact-row.is-enhanced .contact-reveal li {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .ui-preview-final-corrections .ending-contact-row.is-enhanced.is-open .contact-reveal li,
  .ui-preview-final-corrections .ending-contact-row.is-enhanced:focus-within .contact-reveal li {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (min-width: 961px) {
  .ui-preview-final-corrections .ending-contact-row .contact-reveal {
    position: absolute;
    right: 0;
    bottom: 6px;
    flex-direction: column;
    gap: 12px;
  }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal-link {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal-link svg { width: 36px; height: 36px; }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal-label {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%, 3px);
  }
}

@media (max-width: 680px) {
  .projects-preview-cinematic.lower-preview-cosmic-black .home-ending::before,
  .projects-preview-cinematic.lower-preview-cosmic-black .home-ending::after { content: none; }
  .projects-preview-cinematic.lower-preview-cosmic-black .ending-notes { border-left: 0; }
  .ui-preview-final-corrections .ending-contact-row .contact-reveal {
    position: static;
    flex-direction: row;
    margin: 14px 0 0 -9px;
  }
  .ui-preview-final-corrections .ending-contact-row.is-enhanced .contact-reveal li {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* ── Cinematic colour harmonisation (2026-10-16) ──
   Applies only to the cinematic homepage (any preview flag set by content.js).
   Leftover sage, green-graphite and blue-gray become neutral black, graphite
   and silver. Project cards, cinematic images and their image overlays, and the
   warm off-white typography are deliberately left as they are. */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) {
  --cine-black: #0e0f0f;
  --cine-footer: #0b0c0c;
  --cine-graphite: #161718;
  --cine-graphite-active: rgba(52, 55, 58, .62);
  --cine-silver: #b9c0c7;
  --cine-silver-dim: #7c8288;
  --cine-silver-line: rgba(198, 205, 212, .55);
  --cine-line: rgba(218, 224, 230, .14);
  --cine-line-strong: rgba(218, 224, 230, .22);
  --cine-fill: rgba(218, 224, 230, .1);
  --home-sage: var(--cine-silver);          /* every var(--home-sage) accent, focus ring and node */
  --home-sage-deep: var(--cine-silver-dim);
  background: var(--cine-black);
}

body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .site-canvas { background: var(--cine-black); }

/* Navigation */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .site-header { border-bottom-color: var(--cine-line-strong); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .site-header nav a:hover,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .site-header nav a:focus-visible,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .site-header nav a:active { background-color: var(--cine-fill); }

/* Hero: directions accordion */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-trigger::before { background: var(--cine-silver-line); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-trigger:focus-visible { outline-color: rgba(198, 205, 212, .72); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-trigger:focus-visible::after { box-shadow: 0 0 0 4px rgba(198, 205, 212, .2); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-hint { color: rgba(198, 205, 212, .9); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-region.is-open:focus-within .hero-directions {
  box-shadow: 0 0 0 1px rgba(198, 205, 212, .72), 0 18px 48px rgba(7, 9, 7, .08);
}
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-direction {
  border-color: var(--cine-line);
  background-color: var(--cine-graphite);
}
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-direction:hover,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-direction:focus-visible,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-direction[aria-expanded="true"] {
  border-color: rgba(218, 224, 230, .36);
  background-color: var(--cine-graphite-active);
}

/* Process timeline */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-process-scene .home-process-sequence { background: rgba(14, 15, 16, .5); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .process-sequence::before { background: var(--cine-silver-line); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .process-sequence li::before { background: var(--cine-silver-dim); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .process-sequence li.is-active::before {
  background: var(--cine-silver);
  box-shadow: 0 0 0 7px rgba(198, 205, 212, .22);
}
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .process-sequence li::after { background: rgba(218, 224, 230, .07); }

/* Projects section rule (cards themselves untouched) */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-projects { border-top-color: rgba(218, 224, 230, .12); }

/* Author + "За кадром" */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-ending { border-top-color: var(--cine-line-strong); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-contact-link { border-bottom-color: rgba(218, 224, 230, .4); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .contact-reveal-line { background: rgba(198, 205, 212, .5); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .contact-reveal-link:hover,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .contact-reveal-link:focus-visible { background-color: var(--cine-fill); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-notes-heading a { border-bottom-color: rgba(218, 224, 230, .28); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-note-list { border-top-color: var(--cine-line-strong); }
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-note-list a { border-bottom-color: var(--cine-line-strong); }

/* Footer: same structure and divider, cosmic-black surface */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) footer {
  border-top-color: var(--cine-line);
  background: var(--cine-footer);
}

@media (max-width: 680px), (hover: none), (pointer: coarse) {
  body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-region::before {
    background: var(--cine-silver-line);
  }
}


/* "За кадром" no longer has its eyebrow label (16px tall, no bottom margin):
   keep the heading level with "Это Ника." where the columns sit side by side. */
@media (min-width: 681px) {
  .home-page .ending-notes-heading { margin-top: calc(38px + 1rem); }
}

/* ── Rounded section containers in the cinematic palette (2026-10-16) ──
   Same construction as the approved graphite version: the card is a pseudo-
   element, so section size, columns and text positions do not move. */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) {
  --cine-card: rgba(25, 27, 29, .62);       /* #191b1d, semi-transparent */
  --cine-card-hover: rgba(29, 31, 34, .72);
  --cine-card-border: rgba(210, 214, 218, .1);
  --cine-card-border-active: rgba(210, 214, 218, .18);
  --cine-card-divider: rgba(210, 214, 218, .08);
  --cine-card-radius: 16px;
}

/* Process: inset card on the existing band (geometry from .home-process-sequence::before). */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-process-sequence::before {
  content: "";
  border-color: var(--cine-card-border);
  border-radius: var(--cine-card-radius);
  background-color: var(--cine-card);
}

@media (hover: hover) {
  body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-process-sequence:hover::before {
    border-color: var(--cine-card-border-active);
    background-color: var(--cine-card-hover);
  }
}

body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-process-sequence:has(:focus-visible)::before {
  border-color: var(--cine-card-border-active);
  background-color: var(--cine-card-hover);
}

/* Author + "За кадром": one shared card. The section's own ::before/::after carry
   the cosmic geometry, so each column draws its half of the card instead. */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-ending {
  --ending-card-x: clamp(10px, 1.1vw, 16px);
  --ending-card-y: clamp(10px, 1.1vw, 16px);
}

body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) :is(.ending-author, .ending-notes) {
  background: transparent;
}

body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-author::before,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-notes::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: auto;                              /* the old divider rules set 1px sizes */
  height: auto;
  border: 1px solid var(--cine-card-border);
  background: var(--cine-card);
  pointer-events: none;
}

/* Desktop / tablet: left and right halves. */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-author::before {
  inset: var(--ending-card-y) 0 var(--ending-card-y) var(--ending-card-x);
  border-right: 0;
  border-radius: var(--cine-card-radius) 0 0 var(--cine-card-radius);
}

body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-notes {
  border-left-color: transparent;           /* keeps the 1px column for layout */
}

body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-notes::before {
  inset: var(--ending-card-y) var(--ending-card-x) var(--ending-card-y) -1px;
  border-left-color: var(--cine-card-divider);
  border-radius: 0 var(--cine-card-radius) var(--cine-card-radius) 0;
}

/* Keep the cosmic geometry visible over the card (it is pointer-events: none). */
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-ending::before,
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-ending::after {
  z-index: 2;
}

/* Mobile: stacked, top and bottom halves. */
@media (max-width: 680px) {
  body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .home-ending {
    --ending-card-x: 8px;
    --ending-card-y: 10px;
  }

  body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-author::before {
    inset: var(--ending-card-y) var(--ending-card-x) 0;
    border-right: 1px solid var(--cine-card-border);
    border-bottom: 0;
    border-radius: var(--cine-card-radius) var(--cine-card-radius) 0 0;
  }

  body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-notes {
    border-top-color: transparent;
  }

  body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .ending-notes::before {
    inset: -1px var(--ending-card-x) var(--ending-card-y);
    border-top-color: var(--cine-card-divider);
    border-left-color: var(--cine-card-border);
    border-radius: 0 0 var(--cine-card-radius) var(--cine-card-radius);
  }
}

/* ── Preview: borderless logo gallery (?projects-layout=logo-gallery) ──
   Brand identity belongs to the project, atmospheric light to Nikkalma.
   Restyles the existing cards (same links, labels and accessible names):
   no surfaces, borders or square proportions; each mark sits on its own
   soft silver glow drawn by the card's ::before. Card variant untouched. */
.projects-layout-logo-gallery .home-projects {
  --gallery-mark: clamp(64px, 6.4vw, 92px);       /* optical height of the marks */
  --gallery-glow: rgba(214, 218, 222, .13);
  --gallery-glow-hover: rgba(214, 218, 222, .2);
  --gallery-label: rgba(241, 235, 221, .66);
  --glow-size: 2.9;
  padding-bottom: clamp(40px, 4.4vw, 56px);
}

.projects-layout-logo-gallery .project-track {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 48px);
  align-items: start;                             /* marks share one line even if a label wraps */
  justify-content: stretch;
  width: min(100%, 1040px);
  overflow: visible;
}

.projects-layout-logo-gallery .home-project-card,
.projects-layout-logo-gallery a.home-project-card:hover,
.projects-layout-logo-gallery a.home-project-card:focus-visible {
  margin-top: 0;
  overflow: visible;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.projects-layout-logo-gallery .home-project-card {
  position: relative;
  isolation: isolate;
  color: inherit;
}

/* Silver light: separate layer behind the mark, never part of the asset. */
.projects-layout-logo-gallery .home-project-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--gallery-mark) * (.5 - var(--glow-size) / 2));   /* centred on the mark */
  left: 50%;
  width: calc(var(--gallery-mark) * var(--glow-size));
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--gallery-glow), rgba(214, 218, 222, .045) 52%, transparent 100%);
  pointer-events: none;
  transition: background .22s ease;
}

.projects-layout-logo-gallery a.home-project-card:hover::before,
.projects-layout-logo-gallery a.home-project-card:focus-visible::before {
  background: radial-gradient(closest-side, var(--gallery-glow-hover), rgba(214, 218, 222, .07) 52%, transparent 100%);
}

.projects-layout-logo-gallery a.home-project-card:focus-visible {
  outline: 2px solid var(--home-sage);
  outline-offset: 6px;
}

.projects-layout-logo-gallery .home-project-card .project-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  container-type: normal;
}

.projects-layout-logo-gallery .project-visual::before,
.projects-layout-logo-gallery .project-visual::after,
.projects-layout-logo-gallery .anonymous-note { display: none; }

/* Marks: original assets / typography, sized by optical weight. */
.projects-layout-logo-gallery .project-niqual .niqual-mark {
  position: static;
  width: auto;
  height: var(--gallery-mark);
  margin: 0;
}

.projects-layout-logo-gallery .project-syvstudio .project-visual .syvstudio-wordmark {
  position: static;
  display: flex;
  align-items: center;
  height: var(--gallery-mark);
  max-width: 100%;
  font-size: calc(var(--gallery-mark) * .5);
  line-height: 1;
  white-space: nowrap;
}

.projects-layout-logo-gallery .project-anonymous .anonymous-grid {
  width: calc(var(--gallery-mark) * .68);
  margin: calc(var(--gallery-mark) * .16) 0;      /* rotated box: keep the same optical height */
  gap: calc(var(--gallery-mark) * .07);
}

.projects-layout-logo-gallery .anonymous-grid span {
  border-color: rgba(218, 224, 230, .5);
}

.projects-layout-logo-gallery .anonymous-grid span:first-child,
.projects-layout-logo-gallery .anonymous-grid span:last-child {
  background: rgba(218, 224, 230, .06);
}

/* Labels: small, borderless, under the mark. */
.projects-layout-logo-gallery .home-project-card .project-tag {
  position: static;
  padding: 0;
  border: 0;
  color: var(--gallery-label);
  font-size: 11px;
  letter-spacing: .14em;
  text-align: center;
}

/* Niqual's original mark is near-black (#212120): a tighter, brighter core of
   the same silver light lets it read as a silhouette without recolouring it. */
.projects-layout-logo-gallery .project-niqual {
  --glow-size: 2.1;
  --gallery-glow: rgba(214, 218, 222, .46);
  --gallery-glow-hover: rgba(214, 218, 222, .56);
}

.projects-layout-logo-gallery .project-niqual::before {
  background: radial-gradient(closest-side, var(--gallery-glow), rgba(214, 218, 222, .16) 46%, transparent 100%);
}

.projects-layout-logo-gallery .project-niqual:hover::before,
.projects-layout-logo-gallery .project-niqual:focus-visible::before {
  background: radial-gradient(closest-side, var(--gallery-glow-hover), rgba(214, 218, 222, .2) 46%, transparent 100%);
}

.projects-layout-logo-gallery .project-unpublished { cursor: default; }

@media (max-width: 680px) {
  .projects-layout-logo-gallery .home-projects {
    --gallery-mark: clamp(48px, 15vw, 60px);
    padding-bottom: 40px;
  }

  .projects-layout-logo-gallery .project-track { gap: 8px; }
  .projects-layout-logo-gallery .home-project-card .project-visual { gap: 14px; }

  .projects-layout-logo-gallery .home-project-card .project-tag {
    font-size: 10px;
    letter-spacing: .1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-layout-logo-gallery .home-project-card::before { transition: none; }
}

/* ==========================================================================
   Release fixes 2026-10-16
   ========================================================================== */

/* Mobile header: wrap instead of a horizontal scroller. When the four links fit
   (phones) nothing changes; when the usable width is smaller (e.g. a desktop
   browser at 360px with a 15px scrollbar) «Контакты» moves to a second line
   instead of being cut off — the same behaviour as the other 2.0 pages. */
@media (max-width: 680px) {
  .home-page .site-header nav {
    flex-wrap: wrap;
    row-gap: 0;
    overflow-x: visible;
  }
}
/* 360px phones: the four links were 2px wider than the row (the old scroller hid
   it); 12px gaps keep them on one line. 375px and wider are unchanged. */
@media (max-width: 374px) {
  .home-page .site-header nav { column-gap: 12px; }
}

/* «Что я создаю»: visible neutral-silver keyboard focus. The outline was removed
   and only a 20%-opacity ring remained. Outline on the label plus an opaque
   silver ring on the dot; no layout shift. */
.home-page .hero-directions-trigger:focus-visible .hero-directions-hint {
  outline: 2px solid #b9c0c7;
  outline-offset: 5px;
  border-radius: 3px;
  color: var(--home-cream);
}
body.home-page:is(.preview-cinematic-page, .projects-preview-cinematic, .lower-preview-cosmic-black, .ui-preview-final-corrections) .hero-directions-trigger:focus-visible::after,
.home-page .hero-directions-trigger:focus-visible::after {
  box-shadow: 0 0 0 3px rgba(185, 192, 199, .9);
}
