:root {
  --cream: #FBF1EA;
  --surface: #FFFFFF;
  --ink: #2D241F;
  --rose: #C0757D;
  --tan: #C4A880;
  --secondary: #6D6058;
  --right-bg: #2D241F;
  --right-accent: #C0757D;
  --header-height: 88px;
  --split: 55%;
  --hairline: rgba(45, 36, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

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

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
}

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

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  left: 18px;
  top: -70px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: var(--split) calc(100% - var(--split));
  align-items: center;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--cream) 94%, transparent) 0 var(--split),
      color-mix(in srgb, var(--right-bg) 94%, transparent) var(--split) 100%
    );
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background 320ms ease;
}

.collection-mark {
  justify-self: start;
  margin-left: clamp(28px, 4.4vw, 74px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.collection-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.7vw, 42px);
  padding-right: clamp(28px, 4.4vw, 74px);
}

.site-header nav a,
.site-header nav button {
  appearance: none;
  border: 0;
  padding: 8px 0;
  color: rgba(255,255,255,0.82);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 580;
  cursor: pointer;
}

.site-header nav a:hover,
.site-header nav button:hover,
.site-header nav a:focus-visible,
.site-header nav button:focus-visible {
  color: #FFFFFF;
  outline: none;
}

.split-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--split) calc(100% - var(--split));
  padding-top: var(--header-height);
}

.copy-pane {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    clamp(46px, 7vh, 82px)
    clamp(38px, 5.6vw, 94px)
    clamp(34px, 5vh, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.72), transparent 28%),
    linear-gradient(145deg, #FFF9F5 0%, var(--cream) 72%);
}

.copy-pane::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: rgba(45,36,31,0.10);
}

.copy-block {
  max-width: 760px;
  transform: translateY(-1.5vh);
}

.section-label {
  margin: 0 0 clamp(26px, 4vh, 46px);
  font-size: clamp(1.08rem, 1.45vw, 1.46rem);
  font-weight: 520;
  letter-spacing: -0.024em;
}

.copy-block h1 {
  margin: 0;
  display: grid;
  gap: 2px;
  max-width: 760px;
  font-size: clamp(4rem, 6.8vw, 7.8rem);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.066em;
}

.copy-block h1 span {
  display: block;
}

.active-description {
  max-width: 650px;
  margin: clamp(30px, 4.2vh, 48px) 0 0;
  color: var(--secondary);
  font-size: clamp(1rem, 1.32vw, 1.3rem);
  line-height: 1.62;
}

.active-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.active-meta span {
  position: relative;
}

.active-meta span + span::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--right-accent);
}

.copy-foot {
  position: absolute;
  left: clamp(38px, 5.6vw, 94px);
  right: clamp(38px, 5.6vw, 94px);
  bottom: clamp(24px, 3.8vh, 46px);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--secondary);
  font-size: 0.76rem;
  letter-spacing: 0.025em;
}

.gallery-pane {
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.32) transparent;
  background: var(--right-bg);
  transition: background 320ms ease;
}

.gallery-pane::-webkit-scrollbar {
  width: 8px;
}

.gallery-pane::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,0.24);
}

.app-scene {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(34px, 6vh, 70px) clamp(24px, 3vw, 56px);
  scroll-snap-align: start;
  background:
    radial-gradient(circle at 78% 74%, color-mix(in srgb, var(--right-accent) 30%, transparent), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.055), transparent 26%),
    var(--right-bg);
}

.scene-inner {
  position: relative;
  width: min(680px, 100%);
  min-height: min(720px, calc(100vh - var(--header-height) - 80px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-link {
  position: relative;
  z-index: 1;
  display: block;
  transform: translateX(-9%);
}

.phone {
  width: clamp(286px, 23vw, 378px);
  aspect-ratio: 0.53;
  padding: 10px;
  border: 4px solid rgba(255,255,255,0.94);
  border-radius: 54px;
  background: transparent;
  box-shadow: 0 34px 74px rgba(0,0,0,0.28);
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.phone-link:hover .phone,
.phone-link:focus-visible .phone {
  transform: translateY(-5px) rotate(-0.35deg);
  box-shadow: 0 42px 88px rgba(0,0,0,0.34);
}

.phone-link:focus-visible {
  outline: none;
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  padding: clamp(34px, 4vh, 48px) 24px 26px;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 10%, rgba(255,255,255,0.80), transparent 24%),
    linear-gradient(180deg, #FFFDFC 0%, var(--cream) 100%);
}

.phone-app-heading {
  text-align: center;
}

.phone-icon-frame {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.12) 100%);
  border: 1px solid rgba(45,36,31,0.06);
  box-shadow: 0 14px 28px rgba(84,58,39,0.10);
}

.phone-icon-frame img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 22px;
}

.phone-app-heading p {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.phone-app-heading > span {
  display: block;
  margin-top: 5px;
  color: var(--secondary);
  font-size: 0.73rem;
}

.phone-feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: clamp(34px, 5vh, 58px) 0 0;
  padding: 0;
}

.phone-feature-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(45,36,31,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.46);
}

.phone-feature-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--right-accent);
  background: color-mix(in srgb, var(--right-accent) 14%, transparent);
  font-size: 0.68rem;
}

.phone-feature-list strong,
.phone-feature-list small {
  display: block;
}

.phone-feature-list strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.phone-feature-list small {
  margin-top: 4px;
  color: var(--secondary);
  font-size: 0.69rem;
  line-height: 1.34;
}

.app-product-card {
  position: absolute;
  z-index: 3;
  right: -1%;
  width: clamp(214px, 16.5vw, 274px);
  min-height: clamp(410px, 49vh, 510px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.app-product-card:hover,
.app-product-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 38px 86px rgba(0,0,0,0.35);
  outline: none;
}

.card-index {
  align-self: flex-end;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
}

.card-icon-frame {
  width: 120px;
  height: 120px;
  margin: clamp(28px, 5vh, 54px) auto 28px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(45,36,31,0.06);
}

.card-icon-frame img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 18px;
}

.card-category {
  margin: 0 0 8px;
  color: var(--right-accent);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-body h2 {
  margin: 0;
  font-size: clamp(2rem, 2.45vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.card-body > p:last-child {
  margin: 15px 0 0;
  color: var(--secondary);
  font-size: 0.87rem;
  line-height: 1.5;
}

.card-footer {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(45,36,31,0.12);
  color: var(--secondary);
  font-size: 0.69rem;
}

.card-arrow {
  color: var(--ink);
  font-size: 1.4rem;
}

.about-dialog {
  width: min(520px, calc(100% - 36px));
  padding: 34px;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}

.about-dialog::backdrop {
  background: rgba(22,18,15,0.60);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: 0;
  color: var(--secondary);
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}

.dialog-label {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-dialog h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.about-dialog > p:last-child {
  margin: 20px 0 0;
  color: var(--secondary);
  line-height: 1.65;
}

@media (max-width: 1080px) {
  :root {
    --split: 50%;
  }

  .copy-pane {
    padding-left: 42px;
    padding-right: 42px;
  }

  .copy-foot {
    left: 42px;
    right: 42px;
  }

  .copy-block h1 {
    font-size: clamp(3.7rem, 7vw, 6rem);
  }

  .scene-inner {
    min-height: 620px;
  }

  .phone-link {
    transform: translateX(-13%);
  }

  .app-product-card {
    right: -4%;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .site-header {
    position: sticky;
    grid-template-columns: auto 1fr;
    background: rgba(251,241,234,0.92);
  }

  .site-header nav a,
  .site-header nav button {
    color: var(--secondary);
  }

  .site-header nav a:hover,
  .site-header nav button:hover,
  .site-header nav a:focus-visible,
  .site-header nav button:focus-visible {
    color: var(--ink);
  }

  .split-shell {
    height: auto;
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .copy-pane {
    min-height: calc(100vh - var(--header-height));
    padding: 70px 28px 82px;
  }

  .copy-pane::after {
    display: none;
  }

  .copy-block {
    transform: none;
  }

  .copy-block h1 {
    font-size: clamp(4rem, 13vw, 6.8rem);
  }

  .copy-foot {
    left: 28px;
    right: 28px;
    bottom: 30px;
  }

  .gallery-pane {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .app-scene {
    min-height: 850px;
  }

  .scene-inner {
    min-height: 760px;
  }

  .phone-link {
    transform: translateX(-9%);
  }

  .app-product-card {
    right: 2%;
  }
}

@media (max-width: 610px) {
  :root {
    --header-height: 72px;
  }

  .collection-mark {
    margin-left: 18px;
    width: 38px;
    height: 38px;
  }

  .collection-mark svg {
    width: 29px;
    height: 29px;
  }

  .site-header nav {
    gap: 16px;
    padding-right: 18px;
  }

  .site-header nav a,
  .site-header nav button {
    font-size: 0.82rem;
  }

  .copy-pane {
    min-height: auto;
    padding: 58px 22px 96px;
  }

  .section-label {
    margin-bottom: 26px;
    font-size: 1rem;
  }

  .copy-block h1 {
    font-size: clamp(3.45rem, 17vw, 5rem);
  }

  .active-description {
    margin-top: 28px;
    font-size: 1rem;
  }

  .copy-foot {
    left: 22px;
    right: 22px;
  }

  .copy-foot span:last-child {
    display: none;
  }

  .app-scene {
    min-height: 900px;
    padding: 46px 18px;
  }

  .scene-inner {
    min-height: 800px;
    align-items: flex-start;
  }

  .phone-link {
    transform: none;
  }

  .phone {
    width: min(310px, 86vw);
  }

  .app-product-card {
    right: 50%;
    bottom: 10px;
    transform: translateX(50%);
    width: min(270px, 78vw);
    min-height: 385px;
  }

  .app-product-card:hover,
  .app-product-card:focus-visible {
    transform: translateX(50%) translateY(-5px);
  }
}

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

  .site-header,
  .gallery-pane,
  .phone,
  .app-product-card {
    transition: none;
  }
}
