:root {
  --color-ink: #24211f;
  --color-muted: #6d6760;
  --color-soft: #f5f0e9;
  --color-paper: #fbfaf7;
  --color-line: #d8cec3;
  --color-blue: #b8d4e7;
  --color-accent: #2f7187;
  --color-accent-dark: #235769;
  --color-warm-dark: #201a18;
  --color-brown: #756158;
  --shadow-soft: 0 24px 60px rgba(30, 26, 24, 0.14);
  --header-height: 72px;
  color-scheme: light;
  scroll-behavior: smooth;
}

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

html {
  min-width: 320px;
  background: var(--color-paper);
}

body {
  margin: 0;
  font-family:
    Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-paper);
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid rgba(47, 113, 135, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--color-paper);
  background: var(--color-accent-dark);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 42px;
  color: #fffaf4;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(32, 26, 24, 0.9);
  box-shadow: 0 8px 30px rgba(18, 13, 12, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  font-size: 0.82rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}

.site-nav a {
  color: rgba(255, 250, 244, 0.86);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  min-height: 90svh;
  overflow: clip;
  isolation: isolate;
  background: var(--color-warm-dark);
  color: #fffaf4;
}

.hero__media,
.hero__media img,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 22%;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(32, 26, 24, 0.88) 0%,
      rgba(32, 26, 24, 0.78) 34%,
      rgba(32, 26, 24, 0.28) 62%,
      rgba(32, 26, 24, 0.4) 100%
    ),
    linear-gradient(180deg, rgba(32, 26, 24, 0.25) 0%, rgba(32, 26, 24, 0.48) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(620px, calc(100% - 48px));
  margin-left: clamp(24px, 8%, 128px);
  padding-top: var(--header-height);
  animation: heroIn 700ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.hero h1,
.hero .eyebrow,
.hero__lead {
  text-shadow: 0 2px 22px rgba(20, 13, 12, 0.56);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--color-accent-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  font-size: 4.75rem;
  font-weight: 760;
}

h2 {
  margin-bottom: 24px;
  font-size: 3rem;
  font-weight: 720;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 250, 244, 0.86);
  font-size: 1.22rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--color-accent);
}

.button--primary:hover {
  background: var(--color-accent-dark);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fffaf4;
  background: rgba(255, 255, 255, 0.08);
}

.button--light:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.14);
}

.scroll-next {
  position: fixed;
  z-index: 30;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fffaf4;
  background: rgba(47, 113, 135, 0.92);
  box-shadow: 0 16px 38px rgba(30, 26, 24, 0.22);
  cursor: pointer;
  opacity: 0;
  text-decoration: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.scroll-next.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.scroll-next:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--color-accent-dark);
  transform: translateY(-3px);
}

.scroll-next__icon {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.scroll-next.is-at-end .scroll-next__icon {
  transform: translateY(3px) rotate(225deg);
}

.intro-strip {
  display: grid;
  min-height: 10svh;
  place-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-soft);
}

.intro-strip p {
  width: min(920px, 100%);
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  text-align: center;
}

.section {
  padding: 112px clamp(24px, 6%, 96px);
}

.intro-strip,
.section,
.site-footer {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: min(8vw, 96px);
  align-items: center;
}

.section__content {
  width: min(760px, 100%);
}

.large-text {
  margin-bottom: 42px;
  color: var(--color-muted);
  font-size: 1.22rem;
}

.fact-lines {
  border-top: 1px solid var(--color-line);
}

.fact-lines div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.fact-lines span {
  color: var(--color-muted);
}

.fact-lines strong {
  font-size: 1.06rem;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait picture {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 42%;
}

.portrait figcaption {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.section--warm {
  background: #efe5da;
}

.section-heading {
  width: min(780px, 100%);
  margin-bottom: 54px;
}

.section-heading p {
  color: var(--color-muted);
}

.section-heading--narrow {
  width: min(720px, 100%);
}

.process-list {
  display: grid;
  width: min(1040px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(36, 33, 31, 0.18);
}

.process-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(36, 33, 31, 0.18);
}

.process-list p {
  width: min(680px, 100%);
  margin-bottom: 0;
  color: var(--color-muted);
}

.process-list__number {
  color: var(--color-accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.section--records {
  background: var(--color-paper);
}

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

.records-grid article {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fffdf9;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.records-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 113, 135, 0.36);
  box-shadow: 0 18px 40px rgba(30, 26, 24, 0.1);
}

.records-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--color-accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.section--contacts {
  padding-top: 0;
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-soft) 100%);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: min(7vw, 84px);
  align-items: start;
  padding: 72px;
  border-radius: 8px;
  color: #fffaf4;
  background:
    linear-gradient(135deg, rgba(32, 26, 24, 0.98), rgba(53, 43, 39, 0.94)),
    var(--color-warm-dark);
  box-shadow: var(--shadow-soft);
}

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

.contact-panel p {
  width: min(620px, 100%);
  color: rgba(255, 250, 244, 0.74);
}

.contact-panel h2 {
  max-width: 700px;
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list dt {
  color: rgba(255, 250, 244, 0.62);
}

.contact-list dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 48px;
  padding: 46px clamp(24px, 6%, 96px);
  color: rgba(255, 250, 244, 0.72);
  background: #171311;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #fffaf4;
}

.site-footer p {
  margin-bottom: 10px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer__legal {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@media (max-width: 1100px) {
  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.45rem;
  }

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

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 54px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 14px 22px;
  }

  .site-header.is-scrolled {
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

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

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(32, 26, 24, 0.64) 0%, rgba(32, 26, 24, 0.88) 100%),
      linear-gradient(90deg, rgba(32, 26, 24, 0.82) 0%, rgba(32, 26, 24, 0.16) 100%);
  }

  .hero__content {
    align-self: end;
    width: min(620px, calc(100% - 40px));
    margin: 0 auto;
    padding: 120px 0 54px;
  }

  .section {
    padding: 78px 22px;
  }

  .section--split {
    grid-template-columns: 1fr;
  }

  .portrait {
    order: -1;
    width: min(520px, 100%);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 0.94rem;
  }

  h1 {
    max-width: 9ch;
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero__lead,
  .large-text {
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
  }

  .intro-strip p {
    text-align: left;
  }

  .fact-lines div,
  .process-list li,
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-list li {
    padding: 26px 0;
  }

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

  .records-grid article {
    min-height: auto;
  }

  .records-grid span {
    margin-bottom: 24px;
  }

  .contact-panel {
    padding: 34px 22px;
  }

  .scroll-next {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .hero__actions {
    gap: 10px;
  }
}

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

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