:root {
  color-scheme: light dark;
  --page: #f4f4f1;
  --surface: #fbfaf8;
  --surface-muted: #e9e7e7;
  --ink: #1c191d;
  --ink-soft: #656066;
  --line: #d8d4d7;
  --accent: #9f2f58;
  --accent-strong: #7f2044;
  --accent-soft: #f0d9e1;
  --button-text: #fff9fb;
  --brand-start: #a92850;
  --brand-end: #74348b;
  --header-bg: rgba(244, 244, 241, 0.92);
  --image-border: rgba(48, 39, 45, 0.14);
  --shadow: 0 28px 80px rgba(66, 49, 58, 0.15);
  --radius-surface: 22px;
  --radius-control: 12px;
  --header-height: 72px;
  --content-width: 1180px;
  --font-sans: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #181719;
    --surface: #211f22;
    --surface-muted: #2b282c;
    --ink: #f4f0f2;
    --ink-soft: #bdb6bd;
    --line: #3d393e;
    --accent: #ef7fa6;
    --accent-strong: #f49abc;
    --accent-soft: #3b242e;
    --button-text: #28131b;
    --brand-start: #ef7fa6;
    --brand-end: #cb91df;
    --header-bg: rgba(24, 23, 25, 0.93);
    --image-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 28px 80px rgba(5, 4, 6, 0.32);
  }
}

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

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

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

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

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--page);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-shell,
.footer-shell,
.section-shell,
.maintenance-hero {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  min-height: 44px;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 44px;
  white-space: nowrap;
}

.brand-name,
.brand-domain {
  background: linear-gradient(100deg, var(--brand-start) 0%, var(--brand-end) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.brand-domain {
  font-weight: 760;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 650;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.nav-link:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"]::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.maintenance-main {
  display: grid;
  min-height: calc(100dvh - var(--header-height) - 82px);
  align-items: center;
  padding: clamp(44px, 6vw, 78px) 0;
}

.maintenance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.hero-copy {
  max-width: 680px;
}

.status-label,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.status-label::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero-copy h1,
.about-heading h1 {
  max-width: 13ch;
  font-size: clamp(3.25rem, 5.5vw, 5.4rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-message {
  max-width: 52ch;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--button-text);
  box-shadow: 0 10px 26px rgba(132, 34, 70, 0.18);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.text-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.hero-visual {
  position: relative;
  width: min(100%, 500px);
  justify-self: end;
  padding: 0 18px 18px 0;
}

.visual-frame,
.about-portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--image-border);
  border-radius: var(--radius-surface);
  background: #232125;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 48%;
  border-radius: var(--radius-surface);
  background: var(--accent-soft);
  content: "";
}

.hero-image,
.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-frame .hero-image {
  aspect-ratio: 4 / 5;
  object-position: 54% 50%;
}

.hero-image.image-loading {
  opacity: 0.01;
  transform: scale(1.025);
}

.hero-image.image-loading.is-loaded {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 650ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer {
  min-height: 82px;
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* About page */
.about-page main {
  overflow: clip;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(54px, 8vw, 118px);
  padding-block: clamp(64px, 9vw, 124px);
}

.about-portrait {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.about-portrait::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.portrait-image {
  object-position: 54% 48%;
}

.about-heading {
  max-width: 680px;
}

.about-heading h1 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 5vw, 5.1rem);
}

.about-heading > p:last-child {
  max-width: 53ch;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.13rem;
  line-height: 1.7;
}

.story-section {
  padding-block: clamp(76px, 11vw, 144px);
  border-top: 1px solid var(--line);
}

.reading-column {
  width: min(100%, 800px);
  margin-inline: auto;
}

.reading-column h2,
.section-heading h2,
.purpose-panel h2,
.services-copy h2,
.contact-section h2 {
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  font-weight: 710;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.reading-column p {
  max-width: 66ch;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

.focus-section,
.commitment-section {
  padding-block: clamp(76px, 10vw, 128px);
}

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

.section-heading p {
  max-width: 48ch;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(34px, 7vw, 92px);
  margin-top: clamp(48px, 7vw, 84px);
}

.focus-item {
  min-height: 178px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.focus-item h3 {
  font-size: 1.34rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.focus-item p {
  max-width: 46ch;
  margin-top: 12px;
  color: var(--ink-soft);
}

.purpose-wrap {
  padding-block: clamp(30px, 5vw, 64px);
}

.purpose-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 8vw, 116px);
  padding: clamp(34px, 6vw, 76px);
  border-radius: var(--radius-surface);
  background: var(--accent-soft);
}

.purpose-panel > div > p {
  max-width: 34ch;
  margin-top: 20px;
  color: var(--ink-soft);
}

.purpose-list {
  list-style: none;
  padding: 0;
}

.purpose-list li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.purpose-list li:first-child {
  padding-top: 4px;
}

.purpose-list li:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.purpose-list span {
  font-weight: 780;
}

.purpose-list p {
  color: var(--ink-soft);
}

.services-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 9vw, 128px);
  padding-block: clamp(92px, 12vw, 160px);
}

.services-copy p {
  max-width: 55ch;
  margin-top: 24px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.services-list {
  display: grid;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-list li {
  min-height: 76px;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 1.06rem;
  font-weight: 680;
}

.services-list li:first-child {
  border-top: 1px solid var(--line);
}

.commitment-section {
  border-top: 1px solid var(--line);
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px clamp(32px, 6vw, 84px);
  margin-top: clamp(50px, 7vw, 82px);
}

.commitment-grid p {
  min-height: 92px;
  padding: 24px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.commitment-grid p::first-line {
  color: var(--ink);
}

.owner-details {
  margin-top: clamp(50px, 7vw, 82px);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.owner-details summary {
  min-height: 68px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 760;
}

.owner-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  padding: 12px 24px 28px;
}

.owner-grid > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.owner-grid dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owner-grid dd {
  margin-top: 7px;
  font-weight: 650;
}

.owner-grid a {
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.owner-grid a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(72px, 10vw, 128px);
  padding: clamp(40px, 7vw, 80px);
  border-radius: var(--radius-surface);
  background: var(--surface-muted);
}

.contact-section h2 {
  max-width: 14ch;
}

.contact-section p {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--ink-soft);
}

.reveal.reveal-ready {
  opacity: 0.01;
  transform: translateY(22px);
}

.reveal.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
  .maintenance-main {
    min-height: auto;
  }

  .maintenance-hero,
  .about-hero,
  .services-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .maintenance-hero {
    gap: 56px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .hero-visual {
    width: min(100%, 620px);
    justify-self: start;
  }

  .about-hero {
    gap: 48px;
  }

  .about-portrait {
    width: min(100%, 560px);
  }

  .services-section {
    gap: 52px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
  }

  .header-shell,
  .footer-shell,
  .section-shell,
  .maintenance-hero {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .brand {
    font-size: 1rem;
  }

  .site-nav {
    gap: 0;
  }

  .nav-link {
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .nav-contact {
    display: none;
  }

  .maintenance-main {
    padding: 42px 0 64px;
  }

  .maintenance-hero {
    gap: 46px;
  }

  .status-label,
  .section-label {
    margin-bottom: 18px;
  }

  .hero-copy h1,
  .about-heading h1 {
    max-width: 14ch;
    font-size: clamp(2.72rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .hero-message,
  .about-heading > p:last-child {
    margin-top: 22px;
    font-size: 1rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    padding: 0 10px 10px 0;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 112px;
    gap: 2px;
    padding-block: 22px;
  }

  .about-hero {
    padding-block: 44px 76px;
  }

  .story-section,
  .focus-section,
  .commitment-section,
  .services-section {
    padding-block: 72px;
  }

  .reading-column h2,
  .section-heading h2,
  .purpose-panel h2,
  .services-copy h2,
  .contact-section h2 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
  }

  .reading-column p {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.75;
  }

  .focus-grid,
  .commitment-grid,
  .owner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-grid {
    margin-top: 44px;
  }

  .focus-item {
    min-height: auto;
  }

  .purpose-wrap {
    width: 100%;
    padding: 0;
  }

  .purpose-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    border-radius: 0;
    padding: 64px 20px;
  }

  .purpose-list li {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
  }

  .commitment-grid {
    gap: 0;
    margin-top: 42px;
  }

  .owner-details summary {
    padding-inline: 18px;
  }

  .owner-grid {
    padding-inline: 18px;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    padding: 34px 24px;
  }
}

@media (max-width: 390px) {
  .header-shell {
    gap: 10px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 0.8rem;
  }
}

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

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

  .hero-image.image-loading,
  .reveal.reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .contact-section,
  .hero-actions {
    display: none;
  }

  body {
    background: #fdfdfc;
    color: #1d1b1e;
  }

  .section-shell {
    width: 100%;
  }
}
