@font-face {
  font-family: Corinthia;
  src: url('/website/fonts/corinthia-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f8f6;
  --ink: #2c2b29;
  --clay: #8a735e;
  --quiet: #625c54;
  --hairline: #ded9d1;
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
::selection { background: #ded0bf; color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 6px; border-radius: 3px; }
[hidden] { display: none !important; }
.page-width { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: .75rem; line-height: 1.5; letter-spacing: .17em; text-transform: uppercase; font-weight: 500; color: var(--quiet); }

.hero { position: relative; isolation: isolate; min-height: 780px; min-height: max(760px, 100svh); display: flex; flex-direction: column; }
.light-fallback, #ambient-light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.light-fallback {
  background: radial-gradient(ellipse at 15% 70%, #d5bea750, transparent 60%),
    radial-gradient(ellipse at 92% 48%, #c5a48138, transparent 62%),
    linear-gradient(180deg, var(--paper) 10%, #ede6dc 100%);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; z-index: -1; pointer-events: none; background: linear-gradient(transparent, var(--paper)); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-block: 2rem; }
.header-brand { flex-shrink: 0; }
.header-brand img { width: 86px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-header nav a { font-size: .875rem; line-height: 1.5; text-decoration: none; padding-block: .6rem; }
.site-header nav a:hover { text-decoration: underline; }
.hero-content { flex: 1; width: min(100% - 2 * var(--gutter), 800px); margin-inline: auto; text-align: center; display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 3.5rem 0 6rem; }
.hero-content .eyebrow { margin-bottom: 2.6rem; }
.hero-wordmark { width: clamp(246px, 27vw, 348px); height: auto; }
.tagline { font-family: Corinthia, 'Brush Script MT', cursive; font-size: clamp(2.125rem, 3.4vw, 2.875rem); font-weight: 400; line-height: 1.25; letter-spacing: .01em; color: #79614c; margin-top: 1.6rem; }
.tagline span { display: inline-block; max-width: 100%; }
.hero-description { font-size: 1rem; line-height: 1.8; color: #5c564f; max-width: 460px; margin-top: 1.6rem; text-wrap: pretty; }
.glass-link { min-height: 50px; padding: .8rem 1.5rem; min-width: 174px; margin-top: 2.25rem; border-radius: 999px; border: 1px solid #ffffffad; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; font-size: .9375rem; background: #ffffff40; box-shadow: 0 2px 12px #5746350c, inset 0 1px 0 #ffffffb3; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.glass-link:hover { background: #ffffff80; box-shadow: 0 5px 18px #57463512, inset 0 1px 0 #ffffffb3; }
.glass-link:active { transform: scale(.98); }
.glass-link span { font-size: 1.1rem; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 2rem; min-height: 70px; color: var(--quiet); }
.hero-note { font-size: .8125rem; }
#motion-toggle { padding: .65rem 0 .65rem 1rem; border: 0; background: transparent; font-size: .8125rem; cursor: pointer; text-align: right; text-decoration: underline; text-decoration-color: #8a735e60; text-underline-offset: .3em; }

.story { padding-block: clamp(5rem, 10vw, 8.5rem); display: grid; grid-template-columns: 1fr 1.2fr; column-gap: clamp(3rem, 7vw, 7.5rem); row-gap: 4rem; align-items: center; }
.story-introduction { grid-column: 1 / -1; width: min(100%, 670px); margin: 0 auto 1.5rem; text-align: center; }
h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.045em; }
h2 em, h3 em { font-weight: 400; }
.story-introduction h2 { margin-top: 1.25rem; }
.section-lead { max-width: 570px; margin: 1.5rem auto 0; font-size: 1.0625rem; line-height: 1.85; color: var(--quiet); text-wrap: pretty; }
.product-figure { justify-self: center; width: min(100%, 342px); }
.phone { position: relative; width: 100%; aspect-ratio: 1350 / 2760; filter: drop-shadow(0 24px 34px #352d211c); }
.phone-screen { position: absolute; left: 5.333%; top: 2.5%; width: 89.333%; height: 95%; object-fit: cover; border-radius: 14% / 6.5%; }
.phone-bezel { position: absolute; inset: 0; width: 100%; height: 100%; }
figcaption { margin-top: 1.5rem; font-size: .8125rem; line-height: 1.6; text-align: center; color: var(--quiet); }
.story-chapters { align-self: center; }
.chapter { display: grid; grid-template-columns: 24px 1fr; column-gap: 1.5rem; padding-block: 2rem; border-top: 1px solid var(--hairline); }
.chapter:first-child { padding-top: 0; border-top: 0; }
.chapter-number { margin-top: .6rem; color: #79614c; font-size: .75rem; font-variant-numeric: tabular-nums; }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.25; letter-spacing: -.035em; }
.chapter p { margin-top: 1rem; color: var(--quiet); font-size: 1rem; line-height: 1.85; max-width: 440px; text-wrap: pretty; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; margin: .5rem 0 0 3rem; font-size: .875rem; line-height: 1.8; text-decoration-color: #8a735e70; }
.text-link:hover, .contact-email:hover { text-decoration-color: currentColor; }

.contact { padding-block: 4.75rem; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.contact h2 { margin-top: 1.25rem; }
.contact-email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 1.5rem; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.5; text-decoration-color: #8a735e70; }
.contact-email span { display: inline-block; margin-left: .5rem; }
.company-details { justify-self: end; max-width: 360px; font-size: .9375rem; line-height: 1.85; color: var(--quiet); }
.company-details p + p { margin-top: .8rem; }
.company-details .company-name { color: var(--ink); font-size: 1rem; font-weight: 500; }
.company-details .availability { font-size: .8125rem; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; border-top: 1px solid var(--hairline); padding-block: 1.75rem 2.25rem; font-size: .8125rem; line-height: 1.7; color: var(--quiet); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.back-top { white-space: nowrap; }

@media (min-width: 1600px) {
  .hero { min-height: min(100svh, 1080px); }
}

@media (max-width: 720px) {
  :root { --gutter: 1.5rem; }
  .hero { min-height: max(720px, 100svh); }
  .site-header { padding-block: 1.5rem; }
  .header-brand img { width: 72px; }
  .hero-content { padding-block: 2.5rem 4rem; }
  .hero-content .eyebrow { margin-bottom: 2.1rem; }
  .tagline { margin-top: 1.3rem; font-size: 2.125rem; }
  .hero-description { max-width: 320px; margin-top: 1.35rem; font-size: 1rem; line-height: 1.75; }
  .glass-link { margin-top: 2rem; }
  .hero-bottom { align-items: flex-end; padding-bottom: 1.35rem; }
  .hero-note { max-width: 120px; line-height: 1.6; }
  #motion-toggle { max-width: 150px; font-size: .75rem; line-height: 1.6; }
  .story { display: flex; flex-direction: column; gap: 3.25rem; padding-block: 5rem; }
  .story-introduction { margin: 0; }
  .section-lead { font-size: 1rem; line-height: 1.8; }
  .product-figure { width: min(86%, 320px); }
  .story-chapters { width: 100%; max-width: 480px; }
  .chapter { padding-block: 1.8rem; column-gap: 1rem; }
  .chapter p { margin-top: .8rem; }
  .text-link { margin-left: 2.5rem; }
  .contact { grid-template-columns: 1fr; padding-block: 3.5rem; gap: 2.75rem; }
  .company-details { justify-self: start; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 1rem; padding-bottom: 2rem; }
  .site-footer nav { gap: 1rem; }
}

@media (max-width: 360px) {
  :root { --gutter: 1.25rem; }
  .site-header nav { gap: 1rem; }
  .site-header nav a { font-size: .8125rem; }
  .hero-wordmark { width: 220px; }
  .tagline { font-size: 1.9rem; }
  .contact-email { font-size: 1rem; gap: .5rem; }
}

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

@media print {
  .hero { min-height: 0; }
  .light-fallback, #ambient-light, .hero-bottom, .glass-link { display: none; }
  .hero-content { padding-block: 2rem; }
  .story { padding-block: 2rem; }
  .contact, .site-footer { break-inside: avoid; }
}
