:root {
  --paper: #f2f3ef;
  --paper-bright: #fafbf8;
  --ink: #111615;
  --ink-soft: #39413f;
  --line: rgba(17, 22, 21, 0.15);
  --mist: #bdeff1;
  --ocean: #087eaa;
  --night: #071c29;
  --coral: #ff795f;
  --cream: #f7eee3;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
article[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 0 clamp(24px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(242, 243, 239, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  fill: var(--ink);
  overflow: visible;
}

.brand-mark path:nth-child(2) {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.brand-mark .brand-eye {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3.3;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.1vw, 52px);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.site-nav > a:not(.nav-contact) {
  position: relative;
  padding: 8px 0;
}

.site-nav > a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px clamp(24px, 6vw, 104px) 54px;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(460px, 1.1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 30px clamp(36px, 4.5vw, 82px);
  isolation: isolate;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(17, 22, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 21, 0.08) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  mask-image: linear-gradient(to right, black 0%, transparent 63%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 58vw;
  aspect-ratio: 1;
  right: -15vw;
  top: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 55%, rgba(189, 239, 241, 0.9), rgba(189, 239, 241, 0) 69%);
  filter: blur(8px);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(25px, 3.5vh, 46px);
  animation: rise-in 1s 0.1s both var(--ease);
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(52px, 5.9vw, 102px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.06em;
  animation: rise-in 1.1s 0.18s both var(--ease);
}

.hero h1 span {
  position: relative;
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: -1%;
  bottom: 5%;
  height: 18%;
  background: var(--mist);
  border-radius: 50%;
  transform: rotate(-1.4deg);
}

.hero-lead {
  margin: clamp(30px, 4.2vh, 52px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.9;
  letter-spacing: 0.035em;
  animation: rise-in 1.1s 0.28s both var(--ease);
}

.hero-actions {
  margin-top: clamp(30px, 4vh, 48px);
  display: flex;
  align-items: center;
  gap: 30px;
  animation: rise-in 1.1s 0.36s both var(--ease);
}

.button {
  min-width: 206px;
  min-height: 56px;
  padding: 10px 11px 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.button-dark {
  color: white;
  background: var(--ink);
  box-shadow: 0 18px 32px rgba(17, 22, 21, 0.15);
}

.button-light {
  color: var(--ink);
  background: var(--paper-bright);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(17, 22, 21, 0.2);
}

.button-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--mist);
  font-size: 16px;
}

.button-light .button-arrow {
  color: white;
  background: var(--ink);
}

.text-link {
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1;
  justify-self: end;
  animation: fade-in 1.35s 0.25s both var(--ease);
  transform-style: preserve-3d;
}

.whale-orbit {
  position: absolute;
  inset: 2%;
  width: 96%;
  height: 96%;
  fill: none;
  stroke: rgba(17, 22, 21, 0.25);
  stroke-width: 1;
  stroke-dasharray: 2 7;
}

.whale-orbit path:first-of-type {
  stroke: var(--ink);
  stroke-dasharray: none;
  stroke-width: 1.3;
}

.orbit-label {
  position: absolute;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.19em;
}

.orbit-label-top {
  top: 4%;
  left: 34%;
}

.orbit-label-side {
  right: -4%;
  bottom: 34%;
  transform: rotate(90deg);
}

.float-card {
  position: absolute;
  z-index: 2;
  width: clamp(250px, 21vw, 330px);
  aspect-ratio: 1.12;
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: clamp(30px, 3vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  box-shadow: 0 34px 75px rgba(8, 32, 40, 0.23);
  overflow: hidden;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}

.float-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}

.float-card-sleep {
  top: 14%;
  left: 2%;
  background: linear-gradient(145deg, #4fc7dd, #0879a9 62%, #075374);
  transform: rotate(-8deg);
}

.float-card-closet {
  right: 2%;
  bottom: 10%;
  color: #301d18;
  background: linear-gradient(145deg, #ffd9c7, #f88a70 58%, #e9634d);
  transform: rotate(7deg);
}

.float-card-index {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 10px;
  letter-spacing: 0.2em;
  opacity: 0.75;
}

.product-symbol {
  position: absolute;
  top: 12%;
  left: 10%;
  width: 44%;
  aspect-ratio: 1;
}

.app-symbol img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 24%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(7, 28, 41, 0.2));
  transform: translateZ(0) scale(0.96);
  transition: transform 0.65s var(--ease), filter 0.65s var(--ease);
}

.float-card-closet .app-symbol img {
  filter: drop-shadow(0 16px 22px rgba(83, 40, 26, 0.2));
}

.float-card:hover .app-symbol img {
  filter: drop-shadow(0 22px 28px rgba(7, 28, 41, 0.28));
  transform: translate3d(0, -5px, 0) scale(1.01) rotate(-2deg);
}

.float-card-closet:hover .app-symbol img {
  filter: drop-shadow(0 22px 28px rgba(83, 40, 26, 0.28));
  transform: translate3d(0, -5px, 0) scale(1.01) rotate(2deg);
}

.float-card p {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.float-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 2.5vw, 39px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.float-card-arrow {
  position: absolute;
  right: 26px;
  bottom: 29px;
  font-size: 20px;
}

.hero-seal {
  position: absolute;
  z-index: 3;
  left: 43%;
  top: 47%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #d8f65a;
  box-shadow: 0 18px 40px rgba(17, 22, 21, 0.17);
}

.hero-seal svg {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  animation: seal-spin 18s linear infinite;
}

.hero-seal text {
  font-size: 8.1px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.hero-seal > span {
  font-family: var(--serif);
  font-size: 25px;
}

.hero-foot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  animation: fade-in 1s 0.7s both;
}

.hero-foot-line {
  height: 1px;
  background: var(--line);
}

.section-shell {
  padding: clamp(84px, 11vw, 176px) clamp(24px, 6vw, 104px);
}

.section-index {
  margin-bottom: clamp(70px, 10vw, 150px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #5d6663;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.manifesto {
  min-height: 100svh;
  background: var(--paper-bright);
}

.manifesto-content {
  margin-left: 13vw;
}

.manifesto-content > .eyebrow {
  margin-bottom: 28px;
  color: #66706e;
}

.manifesto h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(45px, 6.4vw, 104px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.manifesto h2 em {
  color: var(--ocean);
  font-style: normal;
}

.manifesto-note {
  width: min(620px, 70%);
  margin: clamp(45px, 7vw, 90px) 0 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  color: var(--ink-soft);
}

.manifesto-note .note-line {
  height: 1px;
  margin-top: 13px;
  background: var(--ink);
}

.manifesto-note p {
  margin: 0;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 2;
  letter-spacing: 0.035em;
}

.products {
  color: white;
  background: var(--ink);
}

.section-index-light {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

.product-story + .product-story {
  margin-top: clamp(130px, 18vw, 270px);
}

.product-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(50px, 10vw, 180px);
  align-items: end;
}

.product-number {
  margin-bottom: 21px;
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}

.product-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 130px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.product-english {
  margin: 22px 0 0;
  font-size: 10px;
  letter-spacing: 0.35em;
  opacity: 0.62;
}

.product-summary > p {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.4;
}

.product-summary > span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.product-sleep .product-head h2,
.product-sleep .product-summary > p {
  color: #b9eef5;
}

.product-closet .product-head h2,
.product-closet .product-summary > p {
  color: #ffb7a2;
}

.feature-ribbon {
  margin-top: clamp(60px, 7vw, 104px);
  padding: 20px 0;
  border-top: 1px solid rgba(185, 238, 245, 0.35);
  border-bottom: 1px solid rgba(185, 238, 245, 0.35);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #b9eef5;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.feature-ribbon span:not(:first-child) {
  padding-left: 24px;
  border-left: 1px solid rgba(185, 238, 245, 0.24);
}

.feature-ribbon-warm {
  color: #ffb7a2;
  border-color: rgba(255, 183, 162, 0.35);
}

.feature-ribbon-warm span:not(:first-child) {
  border-color: rgba(255, 183, 162, 0.24);
}

.story-gallery {
  --gallery-pad: clamp(28px, 4vw, 58px);
  position: relative;
  isolation: isolate;
  margin-top: 32px;
  padding: var(--gallery-pad);
  border-radius: clamp(28px, 3vw, 46px);
  overflow: hidden;
}

.story-gallery::before,
.story-gallery::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.story-gallery::before {
  width: min(58vw, 760px);
  aspect-ratio: 1;
  top: -52%;
  right: -8%;
  border-radius: 50%;
  filter: blur(2px);
}

.story-gallery.is-visible::before {
  animation: gallery-drift 9s ease-in-out infinite alternate;
}

.story-gallery::after {
  inset: 0;
  opacity: 0.42;
  background-size: 48px 48px;
  mask-image: linear-gradient(120deg, black, transparent 66%);
  -webkit-mask-image: linear-gradient(120deg, black, transparent 66%);
}

.story-gallery-sleep {
  color: white;
  background:
    radial-gradient(circle at 5% 95%, rgba(64, 193, 231, 0.24), transparent 35%),
    linear-gradient(145deg, #0a2637 0%, #071824 54%, #092d40 100%);
  border: 1px solid rgba(185, 238, 245, 0.2);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
}

.story-gallery-sleep::before {
  background: radial-gradient(circle, rgba(116, 224, 239, 0.35), rgba(12, 104, 142, 0.08) 47%, transparent 70%);
}

.story-gallery-sleep::after {
  background-image: radial-gradient(circle, rgba(203, 246, 248, 0.3) 1px, transparent 1.5px);
}

.story-gallery-closet {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 7%, rgba(255, 141, 106, 0.22), transparent 24%),
    linear-gradient(135deg, #fffaf3, #f4e9dd 58%, #fff8ef);
  border: 1px solid rgba(255, 183, 162, 0.26);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.9);
}

.story-gallery-closet::before {
  background: radial-gradient(circle, rgba(255, 121, 95, 0.24), rgba(255, 199, 170, 0.08) 48%, transparent 70%);
}

.story-gallery-closet::after {
  background-image: radial-gradient(circle, rgba(255, 121, 95, 0.2) 1px, transparent 1.5px);
}

.gallery-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.gallery-kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
  opacity: 0.55;
}

.gallery-heading p {
  max-width: 590px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.35vw, 36px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-controls button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  font: 400 20px/1 var(--sans);
  cursor: pointer;
  transition: color 0.3s, background 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  color: var(--ink);
  background: white;
  transform: scale(1.06);
  outline: none;
}

.story-gallery-closet .gallery-controls button:hover,
.story-gallery-closet .gallery-controls button:focus-visible {
  color: white;
  background: var(--ink);
}

.gallery-controls button:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

.gallery-count {
  min-width: 64px;
  color: currentColor;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
  opacity: 0.7;
}

.gallery-count strong {
  font-size: 15px;
  font-weight: 600;
  opacity: 1;
}

.gallery-track {
  position: relative;
  z-index: 1;
  margin: clamp(34px, 4.5vw, 68px) calc(0px - var(--gallery-pad)) 0;
  padding: 10px var(--gallery-pad) 68px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(270px, 25vw, 380px);
  gap: clamp(18px, 2.3vw, 34px);
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--gallery-pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-track.is-dragging {
  scroll-snap-type: none;
  user-select: none;
}

.gallery-track:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -8px;
}

.story-card {
  --card-lift: 0px;
  --card-hover: 0px;
  --card-rotate: -0.7deg;
  --card-rx: 0deg;
  --card-ry: 0deg;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 12px 12px 18px;
  border-radius: 30px;
  scroll-snap-align: start;
  opacity: 0;
  transform:
    perspective(1000px)
    translateY(calc(42px + var(--card-lift) + var(--card-hover)))
    rotate(var(--card-rotate))
    rotateX(var(--card-rx))
    rotateY(var(--card-ry));
  transform-style: preserve-3d;
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.5s;
  transition-delay: calc(var(--story-index) * 70ms);
}

.story-gallery.is-visible .story-card {
  opacity: 1;
  transform:
    perspective(1000px)
    translateY(calc(var(--card-lift) + var(--card-hover)))
    rotate(var(--card-rotate))
    rotateX(var(--card-rx))
    rotateY(var(--card-ry));
}

.story-card:nth-child(even) {
  --card-lift: 44px;
  --card-rotate: 1deg;
}

.story-card:nth-child(3n) {
  --card-rotate: 0.4deg;
}

.story-gallery-sleep .story-card {
  background: rgba(224, 249, 251, 0.08);
  border: 1px solid rgba(203, 246, 248, 0.14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.story-gallery-closet .story-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 55px rgba(107, 61, 35, 0.13);
}

.story-card:hover {
  --card-hover: -12px;
}

.story-gallery-sleep .story-card:hover {
  border-color: rgba(203, 246, 248, 0.34);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.42);
}

.story-gallery-closet .story-card:hover {
  border-color: white;
  box-shadow: 0 34px 70px rgba(107, 61, 35, 0.2);
}

.story-card-label {
  height: 34px;
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.62;
}

.story-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  object-fit: cover;
  user-select: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.story-card:hover img {
  transform: scale(1.012);
}

.story-card figcaption {
  padding: 18px 5px 2px;
  display: grid;
  gap: 5px;
}

.story-card figcaption strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.story-card figcaption span {
  font-size: 10px;
  letter-spacing: 0.05em;
  opacity: 0.55;
}

.gallery-progress {
  position: relative;
  z-index: 2;
  height: 1px;
  margin-top: 5px;
  overflow: hidden;
  background: currentColor;
  opacity: 0.28;
}

.gallery-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.story-gallery-sleep .gallery-progress span {
  background: #b9eef5;
}

.story-gallery-closet .gallery-progress span {
  background: var(--coral);
}

.principles {
  background: var(--paper-bright);
}

.principles-title {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.principles-title .eyebrow {
  padding-top: 16px;
}

.principles-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 5.3vw, 86px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.principle-list {
  margin-top: clamp(80px, 11vw, 170px);
  margin-left: 20%;
  border-top: 1px solid var(--ink);
}

.principle-list article {
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 30px;
  align-items: start;
  transition: padding 0.45s var(--ease), color 0.3s;
}

.principle-list article:hover {
  padding-left: 18px;
  color: var(--ocean);
}

.principle-no {
  padding-top: 8px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.principle-list h3 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 38px);
  font-weight: 500;
}

.principle-list p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.principle-icon {
  font-size: 26px;
  font-weight: 300;
}

.contact {
  position: relative;
  min-height: 85svh;
  padding: clamp(100px, 12vw, 185px) clamp(24px, 6vw, 104px);
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: #0a222b;
  overflow: hidden;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.25;
  background:
    radial-gradient(circle at 50% 110%, #16a1ad, transparent 53%),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 8.333vw 8.333vw, 8.333vw 8.333vw;
}

.contact-orbit {
  position: absolute;
  z-index: -1;
  width: min(68vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(255, 255, 255, 0.025),
    0 0 0 144px rgba(255, 255, 255, 0.02);
}

.contact-copy .eyebrow {
  color: #8edce0;
}

.contact h2 {
  margin: 30px 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 112px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.06em;
}

.contact-copy > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.contact .button {
  margin-top: 45px;
}

.contact-watermark {
  position: absolute;
  right: -0.03em;
  bottom: -0.21em;
  color: rgba(255, 255, 255, 0.028);
  font-size: 21vw;
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
}

.site-footer {
  padding: 38px clamp(24px, 6vw, 104px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: #071a21;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.site-footer .brand {
  color: white;
}

.site-footer .brand-mark {
  fill: white;
}

.site-footer .brand-mark path:nth-child(2) {
  stroke: white;
}

.site-footer .brand-eye {
  stroke: #071a21;
}

.site-footer p:nth-of-type(1) {
  text-align: center;
}

.site-footer p:nth-of-type(2) {
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

@keyframes gallery-drift {
  from { transform: translate3d(-2%, -2%, 0) scale(0.96); }
  to { transform: translate3d(4%, 5%, 0) scale(1.05); }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    padding-top: 150px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
  }

  .hero-visual {
    width: min(78vw, 660px);
    justify-self: center;
  }

  .hero-foot {
    margin-top: 15px;
  }

  .product-head {
    gap: 50px;
  }

  .gallery-track {
    grid-auto-columns: clamp(260px, 34vw, 350px);
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header.is-scrolled {
    height: 68px;
    padding: 0 20px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 15px;
  }

  .site-header > .brand {
    position: relative;
    z-index: 102;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    display: grid;
    place-content: center;
    gap: 7px;
    color: inherit;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 0.35s var(--ease);
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 101;
    top: 0;
    left: -20px;
    width: 100vw;
    height: 100dvh;
    padding: 120px 28px 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    color: white;
    background: #0a222b;
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-header:has(.site-nav.is-open) {
    color: white;
    background: transparent;
    border-color: transparent;
  }

  .site-header:has(.site-nav.is-open) .brand-mark {
    fill: white;
  }

  .site-header:has(.site-nav.is-open) .brand-mark path:nth-child(2) {
    stroke: white;
  }

  .site-header:has(.site-nav.is-open) .brand-eye {
    stroke: #0a222b;
  }

  .site-nav > a:not(.nav-contact),
  .site-nav .nav-contact {
    padding: 20px 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: 0;
  }

  .hero {
    padding: 122px 20px 36px;
    gap: 30px;
  }

  .hero-grid {
    background-size: 25vw 25vw;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
  }

  .hero-glow {
    width: 130vw;
    right: -75vw;
    top: -10vw;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 66px);
    line-height: 1.14;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-visual {
    width: min(112vw, 520px);
    margin-left: -6vw;
  }

  .float-card {
    width: 54%;
    border-radius: 28px;
  }

  .float-card-sleep {
    left: 5%;
  }

  .float-card-closet {
    right: 3%;
  }

  .float-card-arrow {
    right: 18px;
    bottom: 22px;
  }

  .hero-seal {
    width: 80px;
    height: 80px;
    left: 44%;
  }

  .hero-seal > span {
    font-size: 20px;
  }

  .hero-foot {
    grid-template-columns: 1fr auto;
    font-size: 8px;
  }

  .hero-foot-line {
    display: none;
  }

  .section-shell {
    padding: 84px 20px;
  }

  .section-index {
    margin-bottom: 70px;
  }

  .manifesto-content {
    margin-left: 0;
  }

  .manifesto h2 {
    font-size: clamp(40px, 12vw, 60px);
  }

  .manifesto-note {
    width: 100%;
    grid-template-columns: 42px 1fr;
    gap: 15px;
  }

  .product-head {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-head h2 {
    font-size: clamp(58px, 19vw, 90px);
  }

  .feature-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }

  .feature-ribbon span {
    padding: 15px 10px !important;
    border-bottom: 1px solid rgba(185, 238, 245, 0.24);
  }

  .feature-ribbon span:nth-child(odd) {
    border-left: 0;
  }

  .feature-ribbon-warm span {
    border-color: rgba(255, 183, 162, 0.24);
  }

  .story-gallery {
    --gallery-pad: 20px;
    margin-top: 28px;
    margin-right: -20px;
    border-radius: 26px 0 0 26px;
  }

  .gallery-heading {
    padding-right: 20px;
    align-items: flex-start;
    gap: 24px;
  }

  .gallery-heading p {
    font-size: 21px;
  }

  .gallery-controls {
    gap: 6px;
  }

  .gallery-controls button {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .gallery-count {
    display: none;
  }

  .gallery-track {
    margin-top: 32px;
    padding-top: 2px;
    padding-bottom: 40px;
    grid-auto-columns: min(78vw, 310px);
    gap: 16px;
  }

  .story-card,
  .story-card:nth-child(even),
  .story-card:nth-child(3n) {
    --card-lift: 0px;
    --card-rotate: 0deg;
    padding: 9px 9px 16px;
    border-radius: 25px;
  }

  .story-card img {
    border-radius: 18px;
  }

  .story-card-label {
    height: 30px;
  }

  .story-card figcaption {
    padding-top: 14px;
  }

  .story-card figcaption strong {
    font-size: 18px;
  }

  .principles-title {
    grid-template-columns: 1fr;
  }

  .principles-title .eyebrow {
    padding-top: 0;
  }

  .principle-list {
    margin-top: 75px;
    margin-left: 0;
  }

  .principle-list article {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .principle-icon {
    display: none;
  }

  .contact {
    min-height: 760px;
    padding: 100px 20px;
  }

  .contact-orbit {
    width: 115vw;
  }

  .contact h2 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .site-footer {
    padding: 36px 20px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer p,
  .site-footer p:nth-of-type(1),
  .site-footer p:nth-of-type(2) {
    margin: 0;
    text-align: left;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .story-card,
  .story-gallery.is-visible .story-card {
    opacity: 1;
    transform: none;
  }
}
