/* soroco.coffee: Soroco House brand website.
   Tokens from the Soroco House design system. Urbanist only (+ Noto Sans Tamil). */
@font-face { font-family: Urbanist; src: url(/fonts/Urbanist-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: Urbanist; src: url(/fonts/Urbanist-Variable-Italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Sans Tamil"; src: url(/fonts/NotoSansTamil-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #faebd4;
  --cream-sunk: #f3dcba;
  --white: #ffffff;
  --sunk: #f2f2f2;
  --ink: #0c0c0c;
  --ink-soft: #3a3a32;
  --muted: #6a6a60;
  --rule: #0c0c0c3d;
  --brand: #d98d37;
  --roast-light: #b776bd;
  --roast-medium: #6a7ea8;
  --roast-dark: #cf5178;
  --navy: #203f63;
  --sans: Urbanist, system-ui, sans-serif;
  --tamil: "Noto Sans Tamil", Urbanist, system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink-soft); font: 400 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.tamil { font-family: var(--tamil); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow { display: block; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.display { margin: 0; color: var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .92; font-size: clamp(44px, 9vw, 112px); }
.display-sm { margin: 0; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: .95; font-size: clamp(32px, 5.5vw, 60px); }
.editorial { margin: 0; color: var(--ink); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.editorial-sub { margin: 8px 0 0; font-weight: 300; font-style: italic; font-size: clamp(19px, 2.6vw, 27px); line-height: 1.25; color: var(--ink-soft); }
.headline { margin: 0; color: var(--ink); font-weight: 500; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 60ch; }
.section-title { margin: 0 0 28px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
p { max-width: 64ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: .01em; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--cream); }
.btn.outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--ink); }
.btn.orange { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250, 235, 212, .96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-color: var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.site-head .logo { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-color: var(--brand); }
.site-nav .btn { padding: 9px 18px; font-size: 14px; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; margin-right: -8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 auto 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--rule); transform: translateY(-110%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
  .site-nav .btn { margin-top: 16px; justify-content: center; padding: 14px; font-size: 16px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero: photo with type (pattern E) ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 12, .05) 30%, rgba(12, 12, 12, .62) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(36px, 7vw, 80px); }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { margin: 12px 0 0; color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: clamp(48px, 10vw, 128px); }
.hero p { margin: 18px 0 0; font-size: clamp(18px, 2.4vw, 24px); font-weight: 300; font-style: italic; max-width: 34ch; }
.hero.short { min-height: min(62vh, 620px); }

/* ---------- home hero: type on cream, photo beside it ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100vh - 72px), 880px); background: var(--cream); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 72px) clamp(40px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero-copy .display { margin-top: 18px; font-size: clamp(52px, 7.4vw, 116px); }
.hero-copy .editorial-sub { margin-top: 22px; max-width: 26ch; }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3.4; }
  .hero-photo img { object-position: 50% 60%; }
}

/* ---------- page head on cream (pattern A) ---------- */
.page-head { background: var(--cream); padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 80px); }
.page-head p { margin-top: 20px; }

/* ---------- blocks ---------- */
.block { padding: clamp(64px, 10vw, 128px) 0; }
.block.cream { background: var(--cream); }
.block.sunk { background: var(--sunk); }
.block.ink { background: var(--ink); color: #fff; }
.block.ink .display-sm, .block.ink .headline, .block.ink .editorial { color: #fff; }
.block.ink .eyebrow { color: rgba(255, 255, 255, .7); }
.block.tight { padding: clamp(40px, 6vw, 72px) 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
.split .media img { width: 100%; border-radius: 4px; }
.split.reverse .media { order: 2; }
@media (max-width: 820px) {
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .split .media img:not(.legend-art) { aspect-ratio: 4 / 3; object-fit: cover; }
}

.stats { display: flex; gap: clamp(28px, 6vw, 72px); margin-top: 36px; flex-wrap: wrap; }
.stat strong { display: block; font-size: clamp(44px, 6vw, 68px); font-weight: 500; color: var(--ink); line-height: 1; }
.stat span { font-size: 14px; font-weight: 300; }

/* WHY SOROCO feature words */
.proofs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.proof { padding: 28px 24px 8px 0; border-right: 1px solid var(--rule); }
.proof + .proof { padding-left: 24px; }
.proof:last-child { border-right: 0; }
.proof h3 { margin: 0 0 14px; color: var(--ink); font-size: clamp(26px, 2.6vw, 34px); line-height: .95; text-transform: uppercase; font-weight: 800; letter-spacing: -.01em; }
.proof h3 em { display: block; font-weight: 300; }
.proof p { margin: 0; font-size: 15px; }
@media (max-width: 960px) { .proofs { grid-template-columns: 1fr 1fr; } .proof { border-bottom: 1px solid var(--rule); padding: 24px 16px 20px 0 !important; } .proof:nth-child(2n) { border-right: 0; padding-left: 16px !important; } }
@media (max-width: 520px) { .proofs { grid-template-columns: 1fr; } .proof { border-right: 0 !important; padding-left: 0 !important; } }

/* craft photo strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.strip figcaption { margin-top: 12px; }
.strip figcaption strong { display: block; color: var(--ink); font-size: 20px; font-weight: 700; }
.strip figcaption span { font-size: 15px; font-weight: 300; }
@media (max-width: 720px) { .strip { grid-template-columns: 1fr; } .strip img { aspect-ratio: 4 / 3; } }

/* roast cards (pattern C) */
.roasts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roast { border-radius: 4px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.block.cream .roast { background: var(--white); }
.roast .band { padding: 24px; color: #fff; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; line-height: .92; text-transform: uppercase; letter-spacing: -.01em; }
.roast.light .band { background: var(--roast-light); }
.roast.medium .band { background: var(--roast-medium); }
.roast.dark .band { background: var(--roast-dark); }
.roast dl { margin: 0; padding: 8px 24px 0; }
.roast dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.roast dt { color: var(--muted); }
.roast dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }
.roast blockquote { margin: 0; padding: 18px 24px 26px; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.4; }
.roast blockquote::before { content: "What does Sogo think?"; display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .roasts { grid-template-columns: 1fr; max-width: 520px; } }

/* outlet posts (pattern D) */
.outlets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.outlet { background: #fff; display: flex; flex-direction: column; border-radius: 4px; overflow: hidden; }
.block.sunk .outlet, .block.cream .outlet { background: #fff; }
.outlet-top { padding: 22px 22px 14px; }
.outlet-name { margin: 0; color: var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: clamp(34px, 3.6vw, 46px); overflow-wrap: anywhere; }
.outlet-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; }
.outlet-sub .tamil { color: var(--muted); }
.outlet-media { aspect-ratio: 4 / 3; background: var(--sunk); overflow: hidden; }
.outlet-media img { width: 100%; height: 100%; object-fit: cover; }
.outlet-media.type { display: grid; place-items: center; background: var(--cream); padding: 24px; text-align: center; }
.outlet-media.type strong { display: block; color: var(--ink); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.15; }
.outlet-media.type span { display: block; margin-top: 10px; font-weight: 300; font-style: italic; }
.outlet-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.outlet-body strong { color: var(--ink); font-weight: 600; }
.outlet-body .where { font-size: 14px; font-weight: 300; }
.outlet-body .actions { margin-top: auto; padding-top: 16px; }
.outlet-body .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 960px) { .outlets { grid-template-columns: 1fr; max-width: 560px; } }

/* full outlet sections (outlets page) */
.outlet-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.outlet-feature.reverse .gallery { order: 2; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; aspect-ratio: 1; }
.gallery img.big { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.facts { margin: 28px 0 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .outlet-feature { grid-template-columns: 1fr; } .outlet-feature.reverse .gallery { order: 0; } }

/* the legend (dancing goats line art) */
.legend-art { width: 100%; max-width: 760px; margin: 0 auto; }
.chapter-num { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--brand); }

/* methods list */
.methods { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
.method { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.method h3 { margin: 0 0 4px; color: var(--ink); font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.method h3 small { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.method p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .methods { grid-template-columns: 1fr; } }

/* estates map list */
.estates { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--ink); }
.estates li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.estates li strong { color: var(--ink); font-weight: 600; }
.estates li span { color: var(--muted); font-size: 15px; text-align: right; }

/* order band */
.order-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.order-band .display-sm { color: #fff; }

/* legal pages */
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 10px; color: var(--ink); font-size: 22px; font-weight: 700; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 64px 0 32px; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h4 { margin: 0 0 14px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .logo-rev { height: 44px; width: auto; margin-bottom: 16px; }
.site-foot .tag { font-size: 20px; font-weight: 500; color: #fff; max-width: 22ch; line-height: 1.3; margin: 0; }
.site-foot .base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* reveal on scroll (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
