/* ROSESAM portfolio: brand colors from the Rosesam logo (olive on cream, sage accents) */
:root {
  --cream: #FBF6E7;
  --cream-2: #F4EDD4;
  --paper: #FFFDF6;
  --butter: #F8E7A0;
  --olive: #3F4A28;
  --olive-deep: #2E3819;
  --olive-2: #5E6B3A;
  --sage: #A6B68C;
  --sage-soft: #DCE3C8;
  --text: #2C321C;
  --muted: #5B5F47;
  --line: rgba(63, 74, 40, .14);
  --line-2: rgba(63, 74, 40, .26);
  --on-dark: #F7F0DC;
  --on-dark-muted: #C4C6A8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -.01em; color: var(--olive); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--olive-2); }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--olive); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--olive-2); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--olive-2); margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.lead { font-size: clamp(16.5px, 1.45vw, 19px); line-height: 1.65; color: var(--muted); max-width: 34em; }
.lead-hero { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; max-width: 28em; }
.hero-own { margin-top: 18px; font: italic 500 clamp(21px, 2vw, 26px)/1.3 var(--serif); color: var(--olive-2); }
.lead strong { color: var(--olive); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--olive-deep); }
.btn-ghost { border-color: var(--line-2); color: var(--olive); background: rgba(255, 253, 246, .5); }
.btn-ghost:hover { border-color: var(--olive); }
.btn-light { background: var(--on-dark); color: var(--olive-deep); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(251, 246, 231, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; }
.brand-mark { height: 38px; width: auto; }
.brand-word { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 13.5px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--olive); }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--olive); transition: transform .3s ease, top .3s ease; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 150px 0 100px; overflow: hidden; }
.hero-glow {
  position: absolute; width: 1000px; height: 1000px; left: -300px; top: -380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(248, 231, 160, .75), rgba(248, 231, 160, 0) 72%);
}
.hero-wave {
  position: absolute; right: -12%; top: 60px; bottom: -40px; width: 52%; pointer-events: none;
  background: linear-gradient(160deg, #B9C69F, #97A87A);
  border-radius: 62% 0 0 38% / 55% 0 0 45%;
  opacity: .55;
}
.hero-wave::after {
  content: ""; position: absolute; inset: 14% 0 0 12%; border-radius: inherit;
  background: linear-gradient(160deg, #A2B387, #7F9263); opacity: .45;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(44px, 5.4vw, 78px); margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: 38px; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font: 500 30px/1 var(--sans); letter-spacing: -.02em; color: var(--olive); }
.hero-proof span { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* Device mockups */
.browser {
  border-radius: 14px; overflow: hidden; background: #F7F2EA;
  box-shadow: 0 40px 80px -34px rgba(46, 56, 25, .55), 0 0 0 1px rgba(63, 74, 40, .08);
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #ECE4D8; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D4C8B8; }
.browser-url { margin-left: 12px; font-size: 10.5px; color: #85786A; background: #F7F2EA; padding: 3px 12px; border-radius: 999px; }

.store-dilag { --dl: #5E6B3A; color: #2F3320; background: #F7F2EA; font-family: var(--sans); }
.s-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid rgba(47, 51, 32, .1); font-size: 10px; }
.s-logo { font: 600 17px/1 var(--serif); letter-spacing: .16em; color: var(--dl); }
.s-links { display: flex; gap: 14px; }
.s-links b, .s-cart { font-weight: 500; color: #5A5B48; }
.s-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 300px; }
.s-hero-copy { padding: 34px 20px 24px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.s-kicker { font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dl); }
.s-title { font: 500 clamp(22px, 2.5vw, 32px)/1 var(--serif); color: #2F3320; }
.s-title em { font-style: italic; color: var(--dl); }
.s-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.s-btn { font-size: 8px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--dl); color: #F7F2EA; }
.s-btn-line { background: transparent; color: var(--dl); border: 1px solid var(--dl); }
.s-hero img { width: 100%; height: 100%; object-fit: cover; }

.phone {
  position: absolute; right: -8px; bottom: 0; width: 34%; min-width: 150px; max-width: 200px;
  border-radius: 28px; padding: 8px; background: #1F2412;
  box-shadow: 0 30px 60px -22px rgba(46, 56, 25, .7);
  animation: float 7s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 12px; left: 50%; width: 38%; height: 12px; border-radius: 999px; background: #1F2412; transform: translateX(-50%); z-index: 2; }
.phone-screen { border-radius: 21px; overflow: hidden; padding-bottom: 10px; }
.s-nav-sm { padding: 26px 12px 9px; }
.s-nav-sm .s-logo { font-size: 13px; }
.s-section { font: italic 500 14px/1 var(--serif); padding: 11px 12px 8px; color: #2F3320; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px; }
.s-grid figure { margin: 0; }
.s-grid img { border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; }
.s-grid figcaption { font-size: 7px; line-height: 1.3; padding-top: 4px; color: #4A4C3A; display: flex; flex-direction: column; }
.s-grid figcaption b { color: var(--dl); }
.s-add { margin: 10px 10px 0; text-align: center; font-size: 8px; font-weight: 600; padding: 7px; border-radius: 999px; background: var(--dl); color: #F7F2EA; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { background: var(--olive); color: var(--on-dark); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font: italic 500 clamp(22px, 2.6vw, 30px)/1 var(--serif); display: flex; align-items: center; white-space: nowrap; }
.marquee span::before { content: "\2022"; font-style: normal; font-size: 16px; color: var(--sage); margin: 0 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: var(--cream-2); }
.section-head { margin-bottom: clamp(40px, 6vw, 68px); }
.section-head h2, .thinking-head h2, .preview-copy h2 { font-size: clamp(38px, 5vw, 64px); }

.section-head-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 60px; align-items: end; }
.head-note { font: italic 500 clamp(19px, 1.7vw, 22px)/1.5 var(--serif); color: var(--olive); border-left: 1px solid var(--line-2); padding-left: 32px; max-width: 26em; }
.head-note .head-intro { margin-top: 24px; font: 400 15.5px/1.65 var(--sans); color: var(--muted); }
.head-note .head-fine { margin-top: 24px; font: 500 12px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--olive-2); }
.work-intro { padding-top: clamp(90px, 12vw, 150px); margin-bottom: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); gap: 32px clamp(60px, 8vw, 120px); }
.work-intro h2 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.05; }
.work-sub { margin-top: 22px; font: italic 500 clamp(21px, 2.1vw, 28px)/1.3 var(--serif); color: var(--olive-2); }
.nav-quiet { color: var(--olive) !important; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--olive); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .25s, gap .25s;
}
.text-link:hover { border-color: var(--olive); gap: 12px; }

/* Feature case studies: name, status, big store screenshot, strategy, case study */
.study { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.study-head { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: baseline; margin-bottom: clamp(22px, 3vw, 34px); }
.study-head > :not(.study-no) { grid-column: 2; }
.study-no { grid-row: 1 / span 3; font: 600 11px/1 var(--sans); letter-spacing: .16em; color: var(--olive-2); padding-top: 14px; }
.study-head h3 { font-size: clamp(38px, 4.6vw, 62px); }
.study-status, .card-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--olive); background: var(--sage-soft); padding: 6px 11px; border-radius: 999px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-2); }
.study-type, .card-type { font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.study-industry { margin-top: 12px; font: 600 14px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive-2); }

.shot { position: relative; margin: 0; padding-right: clamp(0px, 7vw, 110px); }
.shot-desktop {
  border-radius: 14px; overflow: hidden; background: #F3EEE3;
  box-shadow: 0 40px 80px -40px rgba(46, 56, 25, .55), 0 0 0 1px rgba(63, 74, 40, .1);
}
.shot-phone {
  position: absolute; right: 0; bottom: -28px; width: clamp(120px, 17%, 200px);
  border-radius: 26px; padding: 7px; background: #1F2412;
  box-shadow: 0 30px 50px -20px rgba(46, 56, 25, .7);
}
.shot-phone img { border-radius: 20px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
/* Scrolling store preview */
.scroller { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F3EEE3; }
.scroller .shot-top { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-full {
  position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; will-change: transform;
  transition: opacity .4s ease, transform 1.2s cubic-bezier(.4, 0, .2, 1);
}
.shot-full.ready { opacity: 1; }
.scroller.is-scrolling .shot-full { transform: translateY(var(--dist, 0)); transition: opacity .4s ease, transform var(--dur, 8s) cubic-bezier(.45, .05, .55, .95); }
.scroll-hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cream);
  background: rgba(46, 56, 25, .82); padding: 8px 12px; border-radius: 999px; backdrop-filter: blur(6px);
  transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.scroll-hint::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px) rotate(45deg); } }
.scroller.is-scrolling .scroll-hint { opacity: 0; transform: translateY(6px); }
.shot-sm .scroll-hint { font-size: 9.5px; padding: 6px 10px; right: 10px; bottom: 10px; }
@media (hover: none) { .scroll-hint { display: none; } }
.shot-missing { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 13px; color: var(--muted); background: repeating-linear-gradient(135deg, var(--cream-2) 0 14px, var(--cream) 14px 28px); }

.study-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 56px); }
.study-lede { font: italic 500 clamp(24px, 2.7vw, 34px)/1.3 var(--serif); color: var(--olive); max-width: 26em; }
.case-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 20px;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive);
  transition: gap .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.case-btn:hover { gap: 16px; background: var(--olive); border-color: var(--olive); color: var(--cream); }

.swatches { display: flex; gap: 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 50, 28, .14); }

/* More work */
.more-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin: clamp(50px, 7vw, 90px) 0 30px; padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); }
.more-head h3 { font-size: clamp(30px, 3.4vw, 42px); }
.more-sub { font: italic 500 clamp(18px, 1.6vw, 21px)/1.4 var(--serif); color: var(--olive-2); margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 12.5px/1 var(--sans); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; transition: all .25s ease;
}
.chip:hover { color: var(--olive); border-color: var(--olive-2); }
.chip.is-active { background: var(--olive); color: var(--cream); border-color: var(--olive); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
.card.is-hidden { display: none; }
.card h4 { font-size: 30px; }
.card-status { margin-top: 8px; }
.card-type { margin-top: 8px; }
.card-shot { display: block; width: 100%; padding: 0; margin: 18px 0 16px; border: 0; background: none; cursor: pointer; text-align: left; }
.shot-sm { border-radius: 12px; box-shadow: 0 24px 44px -30px rgba(46, 56, 25, .6), 0 0 0 1px rgba(63, 74, 40, .1); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
.shot-sm .browser-bar { padding: 8px 10px; }
.shot-sm .browser-bar i { width: 7px; height: 7px; }
.shot-sm .browser-url { font-size: 9.5px; }
.card-shot:hover .shot-sm { transform: translateY(-5px); box-shadow: 0 34px 54px -30px rgba(46, 56, 25, .7), 0 0 0 1px rgba(63, 74, 40, .14); }
.card-lede { font: italic 500 20px/1.35 var(--serif); color: var(--olive); margin-bottom: 14px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 48px; font-style: italic; }

/* Case study dialog */
.case-dialog {
  width: min(1120px, 100% - 24px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 26px;
  background: var(--cream); color: var(--text); box-shadow: 0 40px 120px -30px rgba(20, 24, 10, .6); overflow: hidden;
}
.case-dialog::backdrop { background: rgba(30, 36, 16, .55); backdrop-filter: blur(4px); }
.case-dialog[open] { animation: caseIn .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes caseIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.case-inner { max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(26px, 4.5vw, 56px); overscroll-behavior: contain; }
.case-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--paper); color: var(--olive); font-size: 24px; line-height: 1; cursor: pointer;
}
.case-close:hover { background: var(--olive); color: var(--cream); }
.case-head h2 { font-size: clamp(38px, 5vw, 60px); margin-top: 14px; }
.case-lede { font: italic 500 clamp(19px, 2vw, 24px)/1.35 var(--serif); color: var(--olive-2); margin-top: 10px; }
.case-shots { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; margin: 32px 0 36px; }
.case-page { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); background: #F3EEE3; }
.case-scroll { max-height: 62vh; overflow-y: auto; }
.case-scroll img { width: 100%; height: auto; }
.case-phone { width: 210px; border-radius: 28px; padding: 7px; background: #1F2412; }
.case-phone img { border-radius: 21px; width: 100%; }
.case-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.facts dd { margin: 0; font-size: 14.5px; }
.case-photo { margin: 0 0 20px; }
.case-photo img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-photo figcaption { font-size: 11.5px; color: var(--muted); margin-top: 8px; font-style: italic; }
.case-label { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
body.case-open { overflow: hidden; }

/* Thinking (dark band) */
.section-dark { background: var(--olive-deep); color: var(--on-dark); overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark h2 em { color: var(--sage); }
.section-dark .eyebrow { color: var(--sage); }
.section-dark .lead { color: var(--on-dark-muted); }
.section-dark .lead strong { color: var(--on-dark); }
.section-head .lead { margin-top: 22px; }
.thinking-head { max-width: 820px; }
.thinking-head .lead { margin-top: 24px; }
.journey-wrap { position: relative; margin-top: clamp(50px, 7vw, 84px); }
.journey-line { position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: rgba(247, 240, 220, .18); }
.journey-line span { display: block; height: 100%; width: 0; background: var(--sage); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.journey-wrap.in .journey-line span { width: 100%; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; position: relative; }
.journey li { padding-top: 44px; position: relative; }
.j-no { display: block; font: 600 12px/1 var(--sans); letter-spacing: .18em; color: var(--sage); margin-bottom: 12px; }
.j-dot { position: absolute; top: 0; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--olive-deep); border: 1.5px solid var(--sage); }
.j-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sage); transform: scale(0); transition: transform .5s ease .3s; }
.journey li.in .j-dot::after { transform: scale(1); }
.journey b { display: block; font: 600 clamp(15px, 1.3vw, 17px)/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 12px; }
.journey p { font: italic 500 clamp(19px, 1.7vw, 22px)/1.35 var(--serif); color: var(--on-dark); opacity: .88; }
.journey li:not(:last-child) b::after { content: " \2192"; color: var(--sage); }

/* Range */
.range { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.range-item { padding: 32px 30px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s ease; }
.range-item:hover { background: var(--paper); }
.range-mode { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); background: var(--sage-soft); padding: 6px 11px; border-radius: 999px; }
.range-item h3 { font-size: 16px; margin: 0 0 12px; font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.range-item p { color: var(--olive); font-size: 17px; line-height: 1.6; }
.range-item .range-path { margin: 0 0 14px; font: italic 500 clamp(21px, 1.9vw, 25px)/1.35 var(--serif); color: var(--olive); }
.range-path i { font-style: normal; color: var(--olive-2); margin: 0 2px; }
.range-item .range-work { margin-top: 18px; font: italic 600 19px/1.3 var(--serif); color: var(--olive); }

/* A home online: illustration + copy */
.home-online { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; margin: 0 0 clamp(90px, 12vw, 160px); }
.home-online-art { margin: 0; border-radius: 28px; background: var(--cream-2); padding: clamp(18px, 3vw, 34px); overflow: hidden; }
.oh-art { display: block; width: 100%; height: auto; }
.oh-phone { animation: ohFloat 7s ease-in-out infinite; transform-box: fill-box; }
.oh-bag { animation: ohFloat 6s ease-in-out -2s infinite; }
.oh-path { animation: ohDash 18s linear infinite; }
@keyframes ohFloat { 50% { translate: 0 -8px; } }
@keyframes ohDash { to { stroke-dashoffset: -240; } }
.home-online h2 { font-size: clamp(38px, 5vw, 64px); }
.home-online .lead { margin-top: 30px; max-width: 30em; }
.home-online-final {
  margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(30px, 4vw, 40px); max-width: 22em; border-top: 1px solid var(--line-2);
  font: italic 500 clamp(22px, 2.3vw, 30px)/1.3 var(--serif); color: var(--olive);
}

/* See it first */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.preview-media { position: relative; aspect-ratio: 1 / 1; max-width: 540px; }
.pv { position: absolute; border-radius: 18px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(46, 56, 25, .55); border: 6px solid var(--paper); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.pv-1 { width: 66%; aspect-ratio: 16 / 10; object-position: top; left: 0; top: 6%; transform: rotate(-4deg); }
.pv-2 { width: 62%; aspect-ratio: 16 / 10; object-position: top; right: 0; top: 30%; transform: rotate(3deg); z-index: 1; }
.pv-3 { width: 64%; aspect-ratio: 16 / 10; object-position: top; left: 8%; bottom: 6%; transform: rotate(-1.5deg); z-index: 2; }
.preview-media:hover .pv-1 { transform: rotate(-6deg) translate(-8px, -4px); }
.preview-media:hover .pv-2 { transform: rotate(5deg) translate(8px, -6px); }
.preview-media:hover .pv-3 { transform: rotate(0deg) translateY(6px); }
.pv-tag {
  position: absolute; left: 4%; bottom: 8%; z-index: 3; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--olive); color: var(--cream); padding: 9px 14px; border-radius: 999px;
}
.preview-copy .lead { margin-top: 20px; }
.ticks { list-style: none; margin: 26px 0 30px; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px;
  border-left: 1.5px solid var(--olive-2); border-bottom: 1.5px solid var(--olive-2); transform: rotate(-45deg);
}

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--olive); }
.process li { padding: 28px 24px 10px 0; position: relative; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.p-no { font: 600 11.5px/1 var(--sans); letter-spacing: .18em; color: var(--olive-2); }
.process h3 { font-size: 30px; margin: 18px 0 12px; }
.process p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* Closing */
.closing { overflow: hidden; text-align: center; background: var(--cream); border-top: 1px solid var(--line); }
.closing .hero-glow { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1100px; height: 800px; }
.closing-inner { position: relative; max-width: 760px; }
.closing-mark { width: 64px; margin: 0 auto 28px; }
.closing h2 { font-size: clamp(40px, 5.4vw, 70px); }
.closing .lead { margin: 18px auto 0; font-size: clamp(18px, 1.7vw, 22px); }
.closing-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3.4vw, 36px); margin-top: 40px; text-align: left;
  border-radius: 24px; border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 30px 60px -40px rgba(46, 56, 25, .4);
}
.form[hidden] { display: none; }
.form:not([hidden]) { animation: formIn .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes formIn { from { opacity: 0; transform: translateY(12px); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full, .form .btn { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--olive); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  font: 400 16px/1.4 var(--sans); color: var(--text); background: var(--cream); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s, background .2s; resize: vertical;
}
.field input::placeholder { color: rgba(103, 107, 83, .6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive-2); background: #fff; }
.form-note { grid-column: 1 / -1; margin: -4px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-note a { color: var(--olive); font-weight: 600; }

/* Footer */
.footer { background: var(--olive-deep); color: var(--on-dark-muted); padding: 64px 0 40px; text-align: center; }
.footer-logo { width: 180px; margin: 0 auto 26px; }
.footer p { font-size: 13.5px; }
.footer .small { font-size: 11.5px; margin-top: 8px; opacity: .8; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .range { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .journey-line { display: none; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .process li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 24px;
    background: rgba(251, 246, 231, .98); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { color: var(--olive) !important; font-family: var(--serif); font-weight: 600; font-size: 30px; }
  .nav-quiet { border: 0; font-style: italic; }
  body.menu-open { overflow: hidden; }

  .hero { padding: 120px 0 70px; }
  .hero-wave { width: 90%; top: auto; height: 460px; bottom: -60px; right: -30%; }
  .hero-grid, .preview-grid, .section-head-split, .case-body, .home-online { grid-template-columns: 1fr; }
  .home-online-art { max-width: 560px; }
  .shot { padding-right: 0; }
  .shot-phone { right: 10px; width: 26%; bottom: -22px; }
  .case-shots { grid-template-columns: 1fr; }
  .case-phone { display: none; }
  .hero-visual { max-width: 560px; }
  .browser { transform: none; }
  .preview-media { width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .brand-mark { height: 32px; }
  .brand-word { height: 25px; }
  .hero-proof { gap: 22px; }
  .hero-proof strong { font-size: 26px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-own { margin-top: 14px; }
  .home-online-final { font-size: 21px; }
  .s-hero { min-height: 220px; }
  .s-hero-copy { padding: 20px 12px 16px 14px; }
  .s-links { display: none; }
  .phone { width: 40%; right: -4px; }
  .work-grid, .range, .journey, .process, .form { grid-template-columns: 1fr; }
  .journey li { padding: 0 0 0 36px; }
  .process li, .process li + li { padding: 22px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .study-head { grid-template-columns: 1fr; }
  .study-no { grid-row: auto; padding: 0 0 8px; }
  .study-head > :not(.study-no) { grid-column: 1; }
  .case-dialog { width: 100%; max-height: 100vh; border-radius: 20px 20px 0 0; margin: auto 0 0; }
  .case-inner { max-height: 92vh; }
  .marquee span::before { margin: 0 20px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chip { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .phone, .scroll-hint::before, .oh-phone, .oh-bag, .oh-path { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .journey-line span { transition: none; }
}

/* Hero: stacked real store screenshots */
.hero-visual { position: relative; padding: 40px 0 30px; }
.stack { position: relative; }
.stack img { display: block; width: 100%; height: auto; }
.stack-back { position: absolute; width: 70%; opacity: .9; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.stack-left { left: -6%; top: 0; transform: rotate(-5deg); }
.stack-right { right: -4%; top: 18px; transform: rotate(4deg); }
.stack-front { width: 88%; margin: 70px auto 0; z-index: 2; }
.hero-visual:hover .stack-left { transform: rotate(-7deg) translate(-10px, -6px); }
.hero-visual:hover .stack-right { transform: rotate(6deg) translate(10px, -6px); }
@media (max-width: 600px) {
  .stack-front { width: 94%; margin-top: 44px; }
  .stack-back { width: 74%; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-photo img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(46, 56, 25, .35); }
.about-copy h2 { font-size: clamp(38px, 5vw, 60px); }
.about-copy p { margin: 0 0 18px; }
.about-copy .lead { margin-top: 26px; }
.about-sub { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive-2); margin: 36px 0 18px; }
.about-copy .ticks { margin-bottom: 32px; }
.about-proof { margin: 30px 0 0; }

/* Experience badge on the About photo */
.about-photo { position: relative; }
.xp-badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px 10px 12px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; cursor: pointer;
  background: rgba(255, 253, 246, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -14px rgba(46, 56, 25, .45); font: 500 13px/1 var(--sans); color: var(--muted);
  transition: transform .25s, box-shadow .25s;
}
.xp-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(46, 56, 25, .55); }
.xp-badge:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.xp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive-2); box-shadow: 0 0 0 0 rgba(94, 107, 58, .5); animation: xpPulse 2s infinite; }
@keyframes xpPulse { 70% { box-shadow: 0 0 0 8px rgba(94, 107, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 107, 58, 0); } }
.xp-word { font-weight: 700; color: var(--olive); min-width: 9.5em; text-align: left; transition: opacity .35s, transform .35s; }
.xp-word.out { opacity: 0; transform: translateY(6px); }
.xp-plus { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: var(--cream); font-size: 15px; transition: transform .3s; }
.xp-badge[aria-expanded="true"] .xp-plus { transform: rotate(45deg); }
.xp-panel {
  position: absolute; left: 16px; right: 16px; bottom: 72px; padding: 18px 18px 14px; border-radius: 16px;
  background: rgba(255, 253, 246, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -24px rgba(46, 56, 25, .55); animation: xpIn .35s cubic-bezier(.2, .7, .2, 1);
}
.xp-panel[hidden] { display: none; }
@keyframes xpIn { from { opacity: 0; transform: translateY(10px); } }
.xp-title { margin: 0 0 12px; font: italic 500 22px/1.1 var(--serif); color: var(--olive); }
.xp-group { margin: 0 0 8px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--olive-2); }
.xp-chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.xp-chips li { padding: 6px 11px; border-radius: 999px; background: var(--sage-soft); color: var(--olive); font: 500 12.5px/1 var(--sans); }
@media (prefers-reduced-motion: reduce) { .xp-dot, .xp-panel { animation: none; } .xp-word { transition: none; } }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } }
