﻿
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic-variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.72);
  --line: rgba(255, 255, 255, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #11110f;
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #11110f;
  font-family: var(--sans);
}

a {
  color: inherit;
}

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #11110f;
}

.brand {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(680px, calc(100% - 48px));
  padding-top: clamp(28px, 6vh, 66px);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.profile__intro,
.profile__link,
.profile__number {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.5vw, 5.7rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 0.95;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.28);
}

.profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100svh;
}

.profile {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}

.profile:first-child {
  border-right: 1px solid var(--line);
}

.profile__image {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.72) contrast(1.03);
  transform: scale(1.01);
  transition: filter 700ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile--warm .profile__image {
  object-position: center 22%;
}

.profile__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 8, 0.6) 0%, rgba(10, 10, 8, 0.08) 38%, rgba(10, 10, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(81, 64, 45, 0.2), transparent 70%);
  transition: background-color 500ms ease;
}

.profile--cool .profile__shade {
  background:
    linear-gradient(180deg, rgba(7, 10, 13, 0.6) 0%, rgba(7, 10, 13, 0.08) 38%, rgba(7, 10, 13, 0.88) 100%),
    linear-gradient(270deg, rgba(34, 56, 69, 0.2), transparent 70%);
}

.profile__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  width: 100%;
  padding: 38px clamp(28px, 5vw, 76px) 68px;
}

.profile__number {
  position: absolute;
  right: clamp(28px, 5vw, 76px);
  top: 45px;
  color: rgba(255, 255, 255, 0.48);
}

.profile__intro {
  margin-bottom: 8px;
  color: var(--muted);
}

.profile__name {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
}

.profile__role {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  font-style: italic;
}

.profile__description {
  max-width: 510px;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.6;
}

.profile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(230px, 100%);
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  transition: width 350ms ease;
}

.profile__link span {
  font-size: 1rem;
}

.profile:hover .profile__image,
.profile:focus-visible .profile__image {
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.045);
}

.profile:hover .profile__link,
.profile:focus-visible .profile__link {
  width: min(275px, 100%);
}

.profile:focus-visible {
  outline: none;
}

.legal {
  position: absolute;
  z-index: 12;
  right: 22px;
  bottom: 17px;
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal a {
  text-decoration: none;
}

.legal a:hover,
.legal a:focus-visible {
  color: white;
}

.section-rail {
  display: none;
}

@media (max-width: 760px) {
  .landing {
    overflow: visible;
  }

  .brand {
    position: relative;
    left: auto;
    width: 100%;
    padding: 34px 24px 30px;
    background: #11110f;
    transform: none;
  }

  .brand h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }

  .profiles {
    grid-template-columns: 1fr;
  }

  .profile,
  .profiles {
    min-height: auto;
  }

  .profile {
    height: min(84svh, 720px);
    min-height: 590px;
  }

  .profile:first-child {
    border-right: 0;
    border-bottom: 0;
  }

  .profile::before {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: clamp(76px, 16vw, 104px);
    content: "";
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(17, 17, 15, 0) 0%,
      rgba(17, 17, 15, 0.62) 64%,
      #11110f 100%
    );
  }

  .profile:first-child::after {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: clamp(82px, 18vw, 108px);
    content: "";
    pointer-events: none;
    background: linear-gradient(
      180deg,
      #11110f 0%,
      rgba(17, 17, 15, 0.88) 24%,
      rgba(17, 17, 15, 0.4) 64%,
      rgba(17, 17, 15, 0) 100%
    );
  }

  .profile .profile__image,
  .profile:hover .profile__image,
  .profile:focus-visible .profile__image {
    transform: scale(1.01);
    transition: filter 80ms linear;
  }

  .profile--warm .profile__image {
    object-position: center 22%;
    filter: saturate(var(--jan-saturation, 1)) contrast(1.03);
  }

  .profile--cool .profile__image {
    object-position: center 28%;
    filter: saturate(var(--julian-saturation, 0.35)) contrast(1.03);
  }

  .profile__shade,
  .profile--cool .profile__shade {
    background:
      linear-gradient(180deg, rgba(8, 8, 7, 0.28) 0%, rgba(8, 8, 7, 0.04) 38%, rgba(8, 8, 7, 0.88) 100%);
  }

  .profile__content {
    z-index: 2;
    padding: 32px 48px 48px 24px;
  }

  .profile__number {
    right: 10px;
    top: 38px;
  }

  .profile__name {
    font-size: clamp(4rem, 20vw, 6.3rem);
  }

  .profile__role {
    max-width: 92%;
  }

  .profile__description {
    max-width: 100%;
  }

  .profile__number {
    display: none;
  }

  .section-rail {
    --rail-progress: 0;
    position: fixed;
    z-index: 40;
    top: 50%;
    right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 118px;
    padding: 6px 0;
    transform: translateY(-50%);
  }

  .section-rail::before {
    position: absolute;
    z-index: -1;
    top: 22.5px;
    right: 6px;
    bottom: 22.5px;
    width: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.34);
  }

  .section-rail a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 34px;
    text-decoration: none;
  }

  .section-rail__dot {
    position: relative;
    right: 2px;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: rgba(17, 17, 15, 0.78);
  }

  .section-rail__thumb {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: white;
    transform: translateY(calc(var(--rail-progress) * 72px));
    transition: transform 80ms linear;
  }

  .section-rail__label {
    position: absolute;
    right: 22px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(17, 17, 15, 0.76);
    backdrop-filter: blur(14px);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.68;
    text-transform: uppercase;
    transform: translateX(0);
    transition: opacity 260ms ease, transform 260ms ease;
  }

  .section-rail a[aria-current="location"] .section-rail__label {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.38);
  }

  .legal {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    padding: 22px 18px;
    background: #11110f;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

@media (orientation: landscape) and (max-height: 600px) and (min-width: 761px) {
  html {
    scroll-padding-top: 0;
  }

  .landing {
    overflow: visible;
  }

  .brand {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 12px 24px 10px;
    background: #11110f;
    transform: none;
  }

  .brand h1 {
    font-size: clamp(2rem, 8vw, 3.6rem);
  }

  .profiles {
    min-height: calc(100svh - 74px);
    height: calc(100svh - 74px);
  }

  .profile {
    min-height: calc(100svh - 74px);
  }

  .profile__content {
    padding: 20px 28px 26px;
  }

  .profile__number {
    top: 22px;
    right: 28px;
  }

  .profile__intro,
  .profile__link,
  .profile__number {
    font-size: 0.58rem;
  }

  .profile__name {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
  }

  .profile__role {
    margin-top: 8px;
    font-size: 0.9rem;
  }

  .profile__description {
    max-width: 100%;
    font-size: 0.7rem;
    line-height: 1.38;
  }

  .profile__link {
    width: min(190px, 100%);
    margin-top: 12px;
    padding: 8px 0;
  }

  .section-rail {
    display: none;
  }

  .legal {
    position: static;
    padding: 14px 18px;
    font-size: 0.55rem;
  }
}

.document-body {
  min-height: 100vh;
  background: #f3f0e9;
  color: #1b1b18;
}

.legal-document {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(38px, 8vw, 88px) 0;
}

.legal-document h1 {
  margin: 38px 0 32px;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.legal-document h2,
.legal-document h3,
.legal-document h4 {
  margin: 2.2em 0 0.7em;
  font-family: var(--serif);
  line-height: 1.15;
}

.legal-document h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.legal-document h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.legal-document__content {
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-document__content p,
.legal-document__content li {
  max-width: 74ch;
}

.legal-document__content a,
.back-link {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.back-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
