/* One Touch Coffee | onetouchfoods.com
   Light theme only (brand: white + orange). One accent: --orange.
   Radius rule: buttons and small tiles 12px, media and panels 24px. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F5F5F2;
  --paper: #FCFCFA;
  --panel: #EAE9E4;
  --ink: #151515;
  --ink-2: #3B3B39;
  --muted: #6B6B67;
  --line: #DEDDD7;
  --orange: #E2531F;
  --orange-deep: #C4441A;
  --night: #141210;
  --r-sm: 12px;
  --r-lg: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Outfit", "Avenir Next", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.55; font-weight: 400;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
h3, .pour-line, .contact-title { text-wrap: balance; }
.ic { width: 20px; height: 20px; flex: none; }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 17px; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-sm .ic { width: 18px; height: 18px; }
.btn-main { background: var(--orange); color: #fff; }
.btn-main:hover { background: var(--orange-deep); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--orange-deep); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .6s var(--ease), background-color .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(245,245,242,.82); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-size: 18px; font-weight: 600; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.brand i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; gap: 32px; font-size: 16px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(24px, 6vh, 72px)); padding-bottom: clamp(40px, 7vh, 88px); min-height: 100dvh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(46px, 6.6vw, 98px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 30em; color: var(--ink-2); }
.hero .ctas { margin-top: 36px; }

.hero-visual { position: relative; }
.stage {
  position: relative; border-radius: var(--r-lg); background: var(--panel);
  aspect-ratio: 4 / 4.6; display: grid; place-items: center; overflow: hidden;
  perspective: 1200px;
}
.stage::before { /* soft floor light under the machine */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 9%;
  background: radial-gradient(closest-side, rgba(0,0,0,.22), transparent);
  filter: blur(6px);
}
.stage .machine { width: min(78%, 440px); transform-style: preserve-3d; }

/* ---------- the machine and its live screen ---------- */
.machine { position: relative; container-type: inline-size; }
.machine-img { width: 100%; height: auto; }
.screen {
  position: absolute; left: 36.1%; top: 17.55%; width: 27.75%; height: 30.75%;
  background: #070707; overflow: hidden; color: #fff; line-height: 1.1;
}
.st {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.8cqw; padding: 2cqw; text-align: center;
  opacity: 0; transform: translateY(8%); transition: opacity .45s ease, transform .6s var(--ease);
}
.st b { font-size: 2.5cqw; font-weight: 600; }
.st i { font-style: normal; font-size: 1.9cqw; color: #B5B5B5; }
.machine[data-screen="menu"] [data-state="menu"],
.machine[data-screen="pay"] [data-state="pay"],
.machine[data-screen="brew"] [data-state="brew"],
.machine[data-screen="ready"] [data-state="ready"] { opacity: 1; transform: none; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1cqw; width: 100%; }
.tiles li {
  background: #1E1E1E; border-radius: .9cqw; padding: 2.2cqw .5cqw; font-size: 1.75cqw; font-weight: 500;
  transition: background-color .3s, transform .4s var(--ease);
}
.machine[data-pick="2"] .tiles li:nth-child(2) { background: var(--orange); transform: scale(1.06); }

.qr { width: 19cqw; padding: 1.3cqw; background: #fff; border-radius: .6cqw; }
.qr img { width: 100%; height: auto; }

.ring { width: 12cqw; height: 12cqw; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; stroke: #2A2A2A; }
.ring .ring-fill { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 100.6; stroke-dashoffset: 100.6; }
.machine[data-screen="brew"] .ring-fill { animation: brew 2.6s linear forwards; }
@keyframes brew { to { stroke-dashoffset: 0; } }
.st .mark { width: 11cqw; height: 11cqw; background: #fff; border-radius: 50%; padding: 1cqw; }

/* ---------- drinks menu row (still) ---------- */
.menu { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.menu-row { display: grid; grid-template-columns: repeat(6, 1fr); }
.menu-row li { padding: 30px 8px; text-align: center; font-size: clamp(19px, 1.7vw, 24px); font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.menu-row li + li { border-left: 1px solid var(--line); }

/* ---------- how a cup is made ---------- */
.how { padding: clamp(80px, 12vh, 140px) 0 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.how-visual { position: relative; }
.how-sticky { position: sticky; top: calc(var(--nav-h) + 4vh); height: calc(100dvh - var(--nav-h) - 8vh); display: grid; place-items: center; }
.machine-lg { width: min(100%, 470px); max-height: 100%; }
.how-steps .h2 { margin-bottom: 8vh; }
.step { min-height: 62vh; padding-top: 4vh; border-top: 1px solid var(--line); opacity: .28; transition: opacity .6s var(--ease); }
.step:last-child { min-height: 70vh; }
.step.is-active { opacity: 1; }
.step-n { display: block; font-size: 15px; font-weight: 600; color: var(--orange); margin-bottom: 18px; }
.step h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.step p { margin-top: 16px; font-size: 20px; max-width: 26em; }

/* ---------- places (horizontal pan on large screens) ---------- */
.places { padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 8vh, 100px); }
.places-pin { overflow: hidden; padding-top: 12px; }
.places-head { margin-bottom: clamp(28px, 5vh, 56px); }
.places-track { display: flex; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--pad) 0 max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))); width: max-content; }
.place { width: min(60vw, 900px, calc((100dvh - 330px) * 1.5)); flex: none; }
.place-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--panel); }
.place-img img { width: 100%; height: 100%; object-fit: cover; }
.motion .place-img img { transform: scale(1.08); }
.place figcaption { display: flex; gap: 24px; align-items: baseline; padding-top: 20px; }
.place h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; flex: none; }
.place p { color: var(--muted); font-size: 18px; max-width: 30em; }

/* ---------- pour interlude (one deliberate dark block) ---------- */
.pour { position: relative; background: var(--night); color: #fff; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.pour-img { position: absolute; inset: 0; }
.pour-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform-origin: 70% 50%; }
.motion .pour-img img { transform: scale(1.18); }
.pour-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,16,.85) 0%, rgba(20,18,16,.35) 55%, rgba(20,18,16,0) 80%); }
.pour-copy { position: relative; }
.pour-line { font-size: clamp(40px, 6vw, 92px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; max-width: 12ch; }
.pour-dim { color: rgba(255,255,255,.62); margin-top: 8px; }

/* ---------- owners bento ---------- */
.owners { padding: clamp(90px, 13vh, 150px) 0; }
.bento {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "rent  photo photo"
    "give  we    we"
    "free  we    we";
}
.cell { border-radius: var(--r-lg); padding: clamp(26px, 2.6vw, 40px); background: var(--paper); border: 1px solid var(--line); }
.cell h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.cell p { margin-top: 12px; }
.cell ul { margin-top: 18px; display: grid; gap: 12px; }
.cell li { padding-left: 22px; position: relative; }
.cell li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--orange); }
.cell-rent { grid-area: rent; background: var(--orange); border-color: var(--orange); color: rgba(255,255,255,.92); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.cell-rent h3 { color: #fff; font-size: clamp(34px, 3.4vw, 50px); letter-spacing: -.035em; }
.cell-photo { grid-area: photo; padding: 0; overflow: hidden; border: 0; min-height: 300px; }
.cell-photo img { width: 100%; height: 100%; object-fit: cover; }
.cell-give { grid-area: give; }
.cell-we { grid-area: we; background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.82); }
.cell-we h3 { color: #fff; }
.cell-we ul.cols2 { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 16px; font-size: 19px; }
.cell-free { grid-area: free; background: var(--panel); border-color: var(--panel); }

/* ---------- start timeline ---------- */
.start { padding: clamp(40px, 6vh, 80px) 0 clamp(90px, 13vh, 150px); }
.timeline { position: relative; margin-top: clamp(40px, 7vh, 72px); }
.timeline-line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.timeline-line span { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); position: relative; }
.tl-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); color: var(--orange); font-weight: 600; font-size: 18px; }
.tl h3 { margin-top: 24px; font-size: 24px; letter-spacing: -.015em; }
.tl p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* ---------- care ---------- */
.care { padding: clamp(90px, 13vh, 150px) 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.care-list { margin-top: 36px; counter-reset: c; }
.care-list li { padding: 18px 0 18px 44px; position: relative; font-size: 19px; color: var(--ink); }
.care-list li + li { border-top: 1px solid var(--line); }
.care-list li::before { counter-increment: c; content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-size: 14px; font-weight: 600; color: var(--orange); }
.needs-title { font-size: 22px; letter-spacing: -.01em; }
.needs-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.need { border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); padding: 26px 24px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.need b { font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.need span { color: var(--muted); font-size: 16px; }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 13vh, 150px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { width: 22px; height: 22px; color: var(--orange); transition: transform .5s var(--ease); }
.qa details[open] summary .ic { transform: rotate(45deg); }
.qa details p { padding: 0 48px 28px 0; font-size: 18px; max-width: 40em; }
.qa details[open] p { animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact ---------- */
.contact { background: var(--orange); color: #fff; padding: clamp(80px, 12vh, 140px) 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.contact-title { color: #fff; font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -.045em; max-width: 11ch; }
.contact-sub { margin-top: 22px; font-size: 20px; color: rgba(255,255,255,.9); }
.contact .ctas { margin-top: 34px; }
.contact-card { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 18px; color: rgba(255,255,255,.9); border-left: 1.5px solid rgba(255,255,255,.5); padding-left: 24px; }
.contact-card b { font-size: 22px; color: #fff; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: clamp(56px, 9vh, 100px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------- reveal (only when JS runs and motion is allowed) ---------- */
.js.motion [data-reveal] { opacity: 0; transform: translateY(22px); }
.js.motion .hero-title .line > span { transform: translateY(110%); }
.js.motion [data-hero-fade] { opacity: 0; transform: translateY(24px); }
.js.motion .stage { opacity: 0; transform: scale(.98); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 3.6; }
  .stage .machine { width: min(56%, 340px); }
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-visual { position: sticky; top: var(--nav-h); z-index: 2; background: var(--bg); padding: 8px 0 12px; box-shadow: 0 calc(-1 * var(--nav-h)) 0 var(--bg); }
  .how-sticky { position: static; height: auto; }
  .machine-lg { width: min(36vw, 180px); }
  .how-steps .h2 { margin: 24px 0 4vh; }
  .step { min-height: 44vh; }
  .step:last-child { min-height: 50vh; }
  .step p { font-size: 18px; }
  .places-track { flex-direction: column; width: auto; padding: 0 var(--pad); }
  .place { width: auto; }
  .place figcaption { flex-direction: column; gap: 6px; }
  .menu-row { grid-template-columns: repeat(3, 1fr); }
  .menu-row li { padding: 20px 6px; }
  .menu-row li:nth-child(4) { border-left: 0; }
  .menu-row li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "rent" "photo" "give" "we" "free"; }
  .cell-we ul.cols2 { grid-template-columns: 1fr; }
  .cell-rent, .cell-photo { min-height: 230px; }
  .timeline-line { display: none; }
  .tl { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .care-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .nav .btn-sm span { display: none; }
  .nav .btn-sm { width: 44px; padding: 0; justify-content: center; }
  .brand b { font-size: 16px; }
  .hero-title { font-size: clamp(42px, 12.4vw, 60px); }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .tl { grid-template-columns: 1fr; }
  .needs-grid { grid-template-columns: 1fr 1fr; }
  .need { min-height: 140px; padding: 20px 18px; }
  .qa details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .st, .tiles li, .btn, .nav { transition: none; }
  .machine[data-screen="brew"] .ring-fill { animation: none; stroke-dashoffset: 30; }
  .step { opacity: 1; }
}
