/* Vaishvik Exports LLP. One stylesheet, no framework, no JavaScript.
   Ink on paper, one tan accent, square corners, Source Serif 4 self-hosted. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  /* primitives */
  --ink-900: #121417;
  --ink-600: #4a4e55;
  --ink-500: #5f636a;
  --ink-300: #a9aaa6;
  --ink-200: #dcdcd8;
  --ink-100: #ebebe7;
  --paper-50: #fbfbf9;
  --paper-100: #f2f2ef;
  --tan-400: #c9a26b;
  --tan-300: #d9b57e;
  --tan-600: #a9834c;
  --tan-800: #7a5f36;
  --night-900: #0f1114;
  --night-700: #24272d;
  --night-600: #34373e;
  --night-text: #f1f0ec;
  --night-muted: #b7b4ad;

  /* roles */
  --bg: var(--paper-50);
  --bg-2: var(--paper-100);
  --ink: var(--ink-900);
  --muted: var(--ink-500);
  --rule: var(--ink-200);
  --accent: var(--tan-400);
  --accent-hover: var(--tan-300);
  --accent-deep: var(--tan-600);
  --accent-ink: var(--tan-800);
  --dark: var(--night-900);
  --on-dark: var(--night-text);
  --on-dark-muted: var(--night-muted);
  --dark-rule: var(--night-600);

  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 64ch;
  --maxw: 84rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --section: clamp(3rem, 6vw, 5.5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* type scale */
  --step--1: 0.9rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.95rem);
  --step-3: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 5rem);
  --step-5: clamp(2.7rem, 1.4rem + 5.4vw, 6rem);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  accent-color: var(--accent-deep);
  caret-color: var(--accent-deep);
  scrollbar-color: var(--ink-300) var(--bg);
}
body { margin: 0; font-size: var(--step-0); line-height: 1.6; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 0.9em; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; transition: color 160ms ease, text-decoration-color 160ms ease; }
a:hover { color: var(--accent-ink); text-decoration-color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }
.dark :focus-visible, .panel :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.75rem 1rem; background: var(--ink); color: var(--bg); z-index: 30; }
.skip:focus { top: 1rem; }
.hp { display: none; }

/* buttons: square, tan for the one action, ink outline for the second */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.8rem 1.6rem;
  background: var(--accent); color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.button:hover { background: var(--accent-hover); color: var(--ink); }
.button:active { transform: scale(0.97); }
.button.line, .button.ghost, .button--ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.line:hover, .button.ghost:hover, .button--ink:hover { background: var(--ink); color: var(--bg); }
.button.small { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.dark .button.line { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-muted); }
.dark .button.line:hover { background: var(--on-dark); color: var(--dark); }

/* header: sticky, quiet */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; padding-block: 0.6rem; white-space: nowrap; }
.wordmark svg { width: 1.75rem; height: 1.75rem; flex: none; }
.wordmark:hover { color: var(--ink); }
.site-header nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-header nav a { display: inline-block; padding: 0.7rem 0; min-height: 2.75rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left 88% / 0 1.5px no-repeat; transition: background-size 220ms var(--ease-out), color 160ms ease; }
.site-header nav a:hover { color: var(--ink); background-size: 100% 1.5px; }

/* sections */
main > section, .band { padding-block: var(--section); }
main > section + section { border-top: 1px solid var(--rule); }
section h2 { font-size: var(--step-3); margin-bottom: clamp(1.25rem, 3vw, 2rem); max-width: 20ch; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--muted); max-width: 46ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* ---------- home: hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-text { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.4rem, 1rem + 5.4vw, 4.2rem); font-weight: 420; line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 strong { display: block; font-weight: 640; }
.hero .sub { margin-top: clamp(1.25rem, 3vw, 2rem); font-size: var(--step-1); line-height: 1.45; color: var(--ink-600); max-width: 36ch; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.hero .actions .quiet { font-weight: 500; }

/* proof ledger: the facts a buyer checks first */
.ledger { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.ledger > div { padding: 1.1rem 1rem 1.2rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: var(--step--1); color: var(--muted); }
.ledger dd { margin: 0.2rem 0 0; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.ledger dd a { text-decoration-color: var(--accent); }

/* ---------- home: the goods, as an index ---------- */
.index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.index > li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.25rem 1.1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--rule); align-items: start; }
.index .thumb { grid-row: span 3; overflow: hidden; background: var(--bg-2); aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; }
.index .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.index h3 { font-size: var(--step-2); font-weight: 480; }
.index p { color: var(--muted); max-width: 44ch; }
.index .row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.35rem; }
.index .row-actions button, .index .row-actions a { font: inherit; font-weight: 500; font-size: 0.98rem; color: var(--ink); background: none; border: 0; padding: 0.45rem 0; min-height: 2.75rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }
.index .row-actions a::after, .more::after { content: "\2192" / ""; margin-left: 0.4em; display: inline-block; transition: transform 200ms var(--ease-out); }
.index .row-actions a:hover::after, .more:hover::after { transform: translateX(3px); }
.index .row-actions button:hover, .index .row-actions a:hover { color: var(--accent-ink); }
.not-listed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.not-listed p { font-size: var(--step-1); line-height: 1.4; max-width: 34ch; }

/* ---------- home: how an order runs ---------- */
.run { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.run li { counter-increment: step; position: relative; padding: 0 0 1.75rem 2.75rem; }
.run li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.run li::after { content: ""; position: absolute; left: 0.3rem; top: 1.9rem; bottom: 0.4rem; width: 1px; background: var(--rule); }
.run li:last-child::after { display: none; }
.run h3 { font-size: var(--step-1); font-weight: 560; letter-spacing: -0.01em; }
.run p { margin-top: 0.35rem; color: var(--muted); max-width: 34ch; }

/* ---------- home: why kolkata ---------- */
.kolkata { position: relative; isolation: isolate; overflow: hidden; }
.kolkata .streets { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kolkata .streets img { width: 100%; height: 100%; object-fit: cover; }
.kolkata h2 { font-size: var(--step-2); }
.kolkata .statement { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.25rem); font-weight: 420; line-height: 1.06; letter-spacing: -0.025em; max-width: 18ch; }
.kolkata .body { margin-top: clamp(1.5rem, 4vw, 2.5rem); color: var(--ink-600); font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.kolkata figure { margin-top: clamp(2rem, 5vw, 3rem); }
.kolkata figure img { width: 100%; }
.attrib { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }
.attrib a { color: inherit; }

/* ---------- the one dark chapter: how goods travel ---------- */
.dark { background: var(--dark); color: var(--on-dark); }
main > section.dark, main > section.dark + section { border-top: 0; }
.dark h2 { color: var(--on-dark); }
.dark a { text-decoration-color: var(--accent); }
.dark a:hover { color: var(--accent); }
main > section.routes { padding-bottom: 0; }
.routes .statement { font-size: var(--step-2); line-height: 1.3; max-width: 30ch; color: var(--on-dark); }
.routes .statement + p { margin-top: 1.25rem; color: var(--on-dark-muted); max-width: 60ch; }
.uk-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--dark-rule); border-left: 1px solid var(--accent); color: var(--on-dark); max-width: 60ch; font-size: 0.98rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.freight img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.routes-map { margin-top: clamp(2.5rem, 6vw, 4rem); background: #0b0c0f; line-height: 0; }
.routes-map picture { display: block; }
.routes-svg { width: 100%; height: auto; max-height: 82vh; display: block; object-fit: cover; }
.routes-svg .land { fill: #22252b; stroke: #343840; stroke-width: 1.2; }
.routes-svg .grat { fill: none; stroke: #262930; stroke-width: 1; stroke-dasharray: 6 10; }
.routes-svg .sea { fill: none; stroke: #c9a26b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.routes-svg .flow { fill: none; stroke: #fff1d6; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 220; animation: flow 6s linear infinite; opacity: 0.9; }
.routes-svg .air { fill: none; stroke: #e8d3ad; stroke-width: 1.6; stroke-dasharray: 10 12; opacity: 0.55; }
.routes-svg .plane { fill: #fff8ea; filter: drop-shadow(0 0 6px #ffe9b8); }
.routes-svg .port { fill: #c9a26b; stroke: #0b0c0f; stroke-width: 2; }
.routes-svg .lbl { fill: #b7b4ad; font-size: 26px; }
.routes-svg .lbl.big { fill: #f1f0ec; font-size: 36px; }
.routes-svg .kol { fill: #fff8ea; stroke: #c9a26b; stroke-width: 3; }
.routes-svg .pulse { fill: none; stroke: #c9a26b; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
.routes-svg .pulse.two { animation-delay: 1.5s; }
.routes-svg .legend .sea { stroke-width: 4; }
@keyframes flow { to { stroke-dashoffset: -234; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(4); opacity: 0; } }

/* ---------- questions ---------- */
.qa-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.qa-grid .intro p { color: var(--muted); max-width: 32ch; }
.faq .qa { border-top: 1px solid var(--rule); padding: 1.25rem 0 1.4rem; }
.faq .qa:last-child { border-bottom: 1px solid var(--rule); }
.faq .qa h3 { font-size: var(--step-1); font-weight: 560; line-height: 1.3; letter-spacing: -0.01em; }
.faq .qa p { margin-top: 0.5rem; color: var(--ink-600); }

/* ---------- contact and forms ---------- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-grid > * { min-width: 0; }
.contact .promise { font-size: var(--step-1); line-height: 1.45; color: var(--ink-600); max-width: 36ch; }
.company { margin-top: 2rem; border-top: 1px solid var(--ink); padding-top: 1.1rem; color: var(--muted); }
.company strong { color: var(--ink); font-weight: 600; display: block; }
.company .email, .company .phone, .company .wa { display: inline-block; color: var(--ink); font-weight: 500; min-height: 2.75rem; line-height: 2.75rem; margin-right: 1.25rem; }
.company .email { display: block; font-size: var(--step-1); }
.company .wa { color: var(--accent-ink); }
form { margin-top: 0; }
.formbox { background: var(--bg); border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2.25rem); max-width: 40rem; }
.note { color: var(--muted); font-size: 0.93rem; margin-bottom: 1.25rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-weight: 500; font-size: 0.98rem; margin-bottom: 0.35rem; }
.field input, .field textarea { display: block; width: 100%; min-height: 3.1rem; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--ink-300); border-radius: 0; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input[type="file"] { padding: 0.6rem 0.85rem; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 500; margin-right: 0.8rem; padding: 0.3rem 0.8rem; color: var(--ink); background: var(--bg-2); border: 1px solid var(--ink-300); cursor: pointer; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.contact > .wrap > p, .contact > .wrap > h2 { max-width: 40rem; }
.contact > .wrap > form { margin-top: 1.75rem; max-width: 40rem; background: var(--bg); border: 1px solid var(--rule); padding: clamp(1.25rem, 3vw, 2.25rem); }

/* ---------- inner pages ---------- */
.wrap.narrow > p { max-width: var(--measure); color: var(--ink-600); }
.wrap.narrow > h2 + p { margin-top: 0; }
.page-hero { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
.crumb { font-size: 0.95rem; color: var(--muted); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.crumb a { color: var(--muted); }
.page-hero h1 { font-size: var(--step-4); font-weight: 440; letter-spacing: -0.028em; max-width: 14ch; margin-bottom: 1.25rem; }
.page-hero .lead { margin-bottom: 1.25rem; }
.page-hero .who { color: var(--accent-ink); font-weight: 500; margin-bottom: 2rem; }
.page-photo { margin-block: 0.5rem 2rem; }
.page-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero .wrap > p:not(.crumb):not(.lead):not(.who) { color: var(--ink-600); }
.steps { padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); max-width: 56rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem 1fr; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.after { margin-top: 1.75rem; color: var(--ink-600); }
.also { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.also a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1rem; border: 1px solid var(--rule); background: var(--bg); text-decoration: none; font-weight: 500; transition: border-color 160ms ease, color 160ms ease; }
.also a:hover { border-color: var(--ink); color: var(--ink); }

/* sourcing lists, in the panels and on the category pages */
.groups { display: grid; grid-template-columns: 1fr; gap: 1.25rem 2rem; margin-top: 1.5rem; align-items: start; }
.groups section { border-top: 1px solid var(--dark-rule); padding: 0.9rem 0 0; }
.groups h4, .groups h3 { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.groups ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
/* a chip that is a link carries its border on the link, so the whole 44 px chip is the tap target */
.groups li { display: flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 0.7rem; border: 1px solid var(--dark-rule); font-size: 0.95rem; color: var(--on-dark); transition: border-color 160ms ease; }
.groups li:has(> a) { padding: 0; border: 0; }
.groups li a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 0.7rem; border: 1px solid var(--dark-rule); color: inherit; text-decoration: none; transition: border-color 160ms ease, color 160ms ease; }
.groups li a:hover { color: var(--accent); border-color: var(--accent); }
.groups.light section { border-top-color: var(--rule); }
.groups.light h4, .groups.light h3 { color: var(--accent-ink); }
.groups.light li { border-color: var(--rule); color: var(--ink); background: var(--bg); }
.groups.light li a { border-color: var(--rule); }
.groups.light li a:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* the product panels: native popovers */
.panel { inset: 0; margin: auto; width: min(46rem, calc(100% - 2rem)); max-height: min(88vh, 50rem); overflow: auto; padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
  background: var(--dark); color: var(--on-dark); border: 1px solid var(--night-700); border-top: 3px solid var(--accent); box-shadow: 0 30px 80px rgba(8, 9, 11, 0.5);
  opacity: 0; transform: translateY(10px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), display 200ms allow-discrete, overlay 200ms allow-discrete; }
.panel:popover-open { opacity: 1; transform: none; }
@starting-style { .panel:popover-open { opacity: 0; transform: translateY(10px); } }
.panel::backdrop { background: rgba(10, 11, 13, 0.64); }
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel h3 { font-size: var(--step-3); }
.panel-lead { margin-top: 0.75rem; color: var(--on-dark-muted); max-width: 56ch; }
.panel-photo { margin-top: 1.25rem; }
.panel-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.panel-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--dark-rule); color: var(--on-dark-muted); font-size: 0.95rem; max-width: none; }
.panel-foot a { color: var(--on-dark); }
.close { flex: none; background: none; border: 1px solid var(--night-600); color: var(--on-dark); font: inherit; font-weight: 500; padding: 0.55rem 0.9rem; min-height: 2.75rem; cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.close:hover { border-color: var(--accent); color: var(--accent); }

/* privacy, thanks, 404 */
.prose { padding-bottom: var(--section); }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; margin-bottom: 0.7rem; }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li + li { margin-top: 0.45rem; }
.page-title { font-size: var(--step-4); font-weight: 440; margin-block: clamp(2.5rem, 6vw, 4rem) 1rem; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4rem) 2.25rem; color: var(--muted); font-size: 0.95rem; }
.site-footer p { max-width: none; }
.site-footer p + p { margin-top: 0.35rem; }
.site-footer a { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem 3rem; }
.foot-name { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.site-footer .pages { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer .pages a { display: inline-block; padding-block: 0.4rem; min-height: 2.75rem; }
.foot-grid > div:first-child a { display: inline-flex; align-items: center; min-height: 2.75rem; }   /* phone, WhatsApp, email, LinkedIn: 44 px tall on a phone */
.links > li > a { display: inline-block; padding-block: 0.65rem; }   /* 404 page */
.foot-small { font-size: 0.88rem; }

/* inner-page details */
.page-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 2rem; }
.page-hero .actions .quiet, .hero .actions .quiet { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
.h-inline { font-size: var(--step-2); margin: 2rem 0 0.75rem; }
.page-hero.slim { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero.slim .wrap { display: block; }
.page-hero.slim h1 { max-width: 18ch; }
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0.95rem; border: 1px solid var(--rule); background: var(--bg); text-decoration: none; font-weight: 500; }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
.group-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; max-width: 30ch; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: -1.25rem 0 2rem; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.credits-table { border-collapse: collapse; margin-top: 1.5rem; width: 100%; max-width: 44rem; font-size: 0.95rem; }
.credits-table th, .credits-table td { text-align: left; padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.credits-table th { font-weight: 600; color: var(--muted); }
.prose .back { margin-top: 2rem; }
.crumb span { color: var(--ink-300); margin-inline: 0.2rem; }
.site-header nav a[aria-current="page"] { background-size: 100% 1.5px; }

/* ---------- wider screens ---------- */
@media (min-width: 48rem) {
  .ledger { grid-template-columns: repeat(4, 1fr); }
  .ledger > div { border-bottom: 0; padding-right: 1.5rem; }
  .ledger > div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
  .index > li { grid-template-columns: 9rem 1fr; gap: 0.3rem 2rem; padding-block: 1.75rem; }
  .run { grid-template-columns: repeat(5, 1fr); gap: 2rem; border-top: 1px solid var(--rule); padding-top: 0; }
  .run li { padding: 1.4rem 0 0; }
  .run li::before { position: static; display: block; margin-bottom: 1.1rem; }
  .run li::after { left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 2px; background: var(--accent); transform-origin: left; }
  .run li:last-child::after { display: block; }
  .split { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .groups { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .qa-grid { grid-template-columns: 4fr 8fr; gap: 4rem; }
  .qa-grid .intro { position: sticky; top: 6rem; align-self: start; }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .foot-grid { grid-template-columns: 5fr 4fr 3fr; }
  .page-hero .wrap > .thumbs { grid-column: 2; margin: 0.75rem 0 0; }
  .page-hero .wrap { grid-template-columns: 7fr 5fr; }
  .page-hero .wrap > * { grid-column: 1; }
  .page-hero .wrap > .page-photo { grid-column: 2; grid-row: 1 / span 8; margin: 0; align-self: start; position: sticky; top: 6rem; }
  .page-hero .wrap > .page-photo img { aspect-ratio: 4 / 5; }
}
@media (min-width: 64rem) {
  .hero-text { padding-right: clamp(2rem, 4vw, 4rem); }
  .hero h1 { font-size: clamp(3rem, 4.35vw, 3.95rem); }
  .index > li { grid-template-columns: 11rem 6fr 5fr; grid-template-rows: auto 1fr; align-items: center; column-gap: 2.5rem; }
  .index .thumb { grid-row: span 2; }
  .index h3 { grid-column: 2; grid-row: 1 / span 2; font-size: var(--step-4); font-weight: 420; letter-spacing: -0.03em; }
  .index p, .index .row-actions { grid-column: 3; }
  .index p { align-self: end; }
  .index .row-actions { align-self: start; }
  .kolkata .wrap { display: grid; grid-template-columns: 7fr 5fr; column-gap: 4rem; align-items: end; }
  .kolkata figure { margin-top: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .index > li:hover .thumb img, .index .thumb:focus-visible img { transform: scale(1.06); }
  .index > li { transition: background-color 200ms ease; }
}


/* ---------- home, second version: mosaic, blueprint band, tiles, strip ---------- */
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-inline: calc(-1 * var(--gutter)); }
.hero-mosaic figure { overflow: hidden; background: var(--bg-2); }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.m-side { aspect-ratio: 4 / 3; }
.spec-band { background: var(--bg-2); }
.spec-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.spec-intro h2 { max-width: 16ch; }
.spec-intro p { color: var(--ink-600); font-size: var(--step-1); line-height: 1.5; max-width: 42ch; }
.spec-body { align-self: start; }
.spec-body figure { overflow: hidden; background: var(--bg-2); margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.spec-body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.spec-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; align-content: start; border-top: 1px solid var(--ink); }
.spec-list li { padding: 0.95rem 0 1rem; border-bottom: 1px solid var(--rule); }
.spec-list h3 { font-size: var(--step-1); font-weight: 560; letter-spacing: -0.01em; }
.spec-list p { margin-top: 0.3rem; color: var(--ink-600); }
.head-row { display: grid; gap: 0.75rem 3rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); align-items: end; }
.head-row h2 { margin-bottom: 0; }
.head-row p { color: var(--muted); max-width: 44ch; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.tile { position: relative; display: flex; flex-direction: column; }
.tile-link { display: block; text-decoration: none; color: var(--ink); }
.tile figure { overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.tile figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.tile h3 { margin-top: 0.9rem; font-size: var(--step-2); font-weight: 480; }
.tile p { margin-top: 0.35rem; color: var(--muted); max-width: 40ch; }
.tile-link:hover h3 { color: var(--accent-ink); }
.tile .range { align-self: flex-start; margin-top: 0.4rem; font: inherit; font-weight: 500; font-size: 0.98rem; color: var(--ink); background: none; border: 0; padding: 0.4rem 0; min-height: 2.75rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; }
.tile .range:hover { color: var(--accent-ink); }
.strip-band { padding-bottom: calc(var(--section) - 1rem); }
.strip-band h2 { margin-bottom: 1.25rem; }
.strip { --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); list-style: none; margin: 0; padding: 0 var(--edge) 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 16rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); overscroll-behavior-x: contain; }
.strip li { scroll-snap-align: start; }
.strip a { display: block; text-decoration: none; color: var(--ink); }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
.strip span { display: block; margin-top: 0.6rem; font-weight: 500; }
.strip a:hover span { color: var(--accent-ink); }
.uk-note { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.1rem 1.3rem; background: var(--bg-2); border: 1px solid var(--rule); color: var(--ink); max-width: 64rem; font-size: 1rem; }
@media (min-width: 48rem) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .spec-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .head-row { grid-template-columns: 7fr 5fr; }
}
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 6fr 6fr; min-height: 0; }
  .hero-text { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
  .hero-mosaic { margin-inline: 0; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; padding-block: 1.5rem; }
  .m-main { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 30rem; }
  .m-side { aspect-ratio: auto; }
  .spec-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .spec-intro { position: sticky; top: 6rem; }
  .spec-body figure img { aspect-ratio: 2 / 1; }
  .tiles { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .tile.big { grid-column: span 2; grid-row: span 2; }
  .tile.big .tile-link { flex: 1; display: flex; flex-direction: column; }
  .tile.big figure { aspect-ratio: auto; flex: 1; min-height: 24rem; }
  .tile.big h3 { font-size: var(--step-3); }
  .tile.wide { grid-column: span 2; }
  .tile.wide figure { aspect-ratio: 16 / 7; }
}
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover figure img, .strip a:hover img { transform: scale(1.04); }
  .strip img { transition: transform 700ms var(--ease-out); }
}

/* ---------- motion, only when it is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .sub, .hero .actions { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .hero .sub { transition-delay: 90ms; }
  .hero .actions { transition-delay: 160ms; }
  @starting-style {
    .hero h1, .hero .sub, .hero .actions { opacity: 0; transform: translateY(14px); }
  }
  @supports (animation-timeline: view()) {
    @media (min-width: 48rem) {
      .run li::after { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
      .run li:nth-child(2)::after { animation-range: entry 30% cover 50%; }
      .run li:nth-child(3)::after { animation-range: entry 40% cover 55%; }
      .run li:nth-child(4)::after { animation-range: entry 50% cover 60%; }
      .run li:nth-child(5)::after { animation-range: entry 60% cover 65%; }
    }
  }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .routes-svg .flow, .routes-svg .pulse, .routes-svg .plane { display: none; }
}


/* ---------- depth and motion, batch 2 (26 Oct 2026): CSS only, no script; every movement stops under reduced motion ---------- */
/* (the tan edge under the type, tried 26 Oct 2026, came off the same day: Bose found it blurry) */
@media (hover: hover) and (pointer: fine) {
  /* a tile lifts and turns a little toward the pointer, as a card does when you pick it up */
  .tile-link { transition: transform 420ms var(--ease-out); transform-origin: center bottom; }
  .tile-link:hover { transform: perspective(1200px) rotateX(1.6deg) rotateY(-1.2deg) translateY(-4px); }
}
@media (prefers-reduced-motion: no-preference) {
  /* the hero photographs arrive turned slightly, as if laid on the desk one after another */
  .hero-mosaic figure { transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transform-origin: left center; }
  .hero-mosaic figure:nth-child(2) { transition-delay: 110ms; }
  .hero-mosaic figure:nth-child(3) { transition-delay: 220ms; }
  @starting-style { .hero-mosaic figure { opacity: 0; transform: perspective(1400px) rotateY(-9deg) translateX(28px); } }
  @supports (animation-timeline: view()) {
    /* as the page scrolls away, the hero pictures drift at different speeds (parallax), so the hero reads as layered */
    .hero-mosaic .m-main img { animation: drift-main linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
    .hero-mosaic .m-side img { animation: drift-side linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
    /* rows and tiles rise into place as they enter the window; nothing moves that is already in view */
    /* not inside any overflow:hidden box (that box would count as the scroller and never scroll) */
    .tile, .spec-list li, .faq .qa, .run li, .steps li, .split > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes drift-main { from { transform: scale(1.12) translateY(5%); } to { transform: scale(1.12) translateY(-5%); } }
@keyframes drift-side { from { transform: scale(1.12) translateY(-5%); } to { transform: scale(1.12) translateY(5%); } }
@keyframes rise { from { opacity: 0.001; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- phones ---------- */
@media (max-width: 47.99rem) {
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; gap: 0 1rem; padding-block: 0.35rem 0.1rem; }
  .wordmark { font-size: 1.1rem; gap: 0.5rem; padding-block: 0.5rem 0.2rem; }
  .wordmark svg { width: 1.45rem; height: 1.45rem; }
  .site-header nav { flex-basis: 100%; gap: 1.4rem; }
  .site-header nav a { font-size: 0.98rem; padding-block: 0.45rem 0.6rem; }
  .hero .actions .button { flex: 1 1 auto; }
  .ledger { margin-inline: 0; }
  .map.world img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 52% 42%; }
  .routes-svg { max-height: none; aspect-ratio: 4 / 3; }
  .routes-svg .lbl { font-size: 34px; }
  .routes-svg .lbl.big { font-size: 46px; }
  .page-photo img { aspect-ratio: 16 / 10; }
  .site-footer { font-size: 0.9rem; }
}
@media (max-width: 23rem) {
  .wordmark span { font-size: 0.95rem; }
  .site-header nav { gap: 0.65rem; }
}
