/* ==========================================================================
   TANJA Web V2 — styles.css  (2026-09-29 redesign: "estate editorial")
   Plain CSS, no build step, no framework. One self-hosted webfont (Cormorant Garamond, Latin, variable weight, 38 KB, OFL —
   assets/fonts/OFL.txt) for headings; body text uses the platform's own sans-serif, Japanese headings the platform's Mincho.

   Structure
     0  Design tokens (change the look here; everything below reads these)
     1  Base / reset / language switching / translation-review marker
     2  Layout: the 12-column editorial grid (.wrap), section heads, reveal
     3  Header, navigation, language menu
     4  Hero slider
     5  Shared components (photograph frame, labels, links)
     6  About · What We Do · Career · Contact
     7  Footer
     8  Breakpoints (phone first: everything above is the phone layout)
     9  Motion, forced colours, print

   Direction: the farm's own photographs carry the page. Warm paper, forest green and one coffee-cherry accent; a classical serif
   for the voice of the company, a quiet sans for everything functional; generous space; hairlines instead of boxes.
   References (principles only, nothing copied): Material Design 3 colour roles / type roles / state layers; Apple HIG 44pt
   targets, safe-area insets, content-over-chrome; Lima Tanzania only for the header-over-photograph / section order.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 0. Design tokens ---------------------------------------------- */
:root {
  color-scheme: light;

  /* Colour roles (M3 role names, TANJA values). Measured WCAG contrast: ink on paper 15.1:1 · ink-2 8.3 · muted 5.8 (4.6 on paper-3)
     · outline 4.1 (non-text) · cherry 6.5 · clay 6.0 · cream on forest 10.7 · on-dark-2 on forest 6.4 · cream on deep forest 14.3. */
  --c-surface: #f6f1e7;
  --c-surface-2: #ede5d6;
  --c-surface-3: #e2d8c5;
  --c-on-surface: #1a1d18;
  --c-on-surface-2: #44483f;
  --c-on-surface-3: #5c5f55;
  --c-outline: #7a7566;
  --c-outline-2: #d6cbb6;
  --c-primary: #1f3a2b;
  --c-on-primary: #ffffff;
  --c-primary-2: #dfe7d7;
  --c-on-primary-2: #16301f;
  --c-accent: #9a3324;
  --c-clay: #8a4b22;
  --c-inverse: #142219;
  --c-on-inverse: #f3eee3;
  --c-on-inverse-2: #b9bcae;
  --c-hero-scrim: 8, 14, 10;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --font-ja-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;

  --fs-display: clamp(4.25rem, 1.8rem + 11vw, 11.5rem);
  --fs-headline: clamp(2.75rem, 1.7rem + 4.2vw, 5.5rem);
  --fs-statement: clamp(1.625rem, 1.15rem + 1.9vw, 2.875rem);
  --fs-title-l: clamp(1.625rem, 1.3rem + 1.3vw, 2.375rem);
  --fs-title: 1.25rem;
  --fs-body-l: clamp(1.0625rem, 1.0417rem + 0.0926vw, 1.125rem);
  --fs-body: 1rem;
  --fs-label: 0.75rem;

  /* Space: 4px base. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 7rem;
  --section-y: clamp(5rem, 3rem + 7vw, 10.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 3rem);
  --col-gap: clamp(1rem, 0.4rem + 2vw, 2rem);
  --container: 84rem;
  --measure: 34rem;

  /* Shape */
  --radius-s: 2px;
  --radius-m: 14px;
  --radius-pill: 999px;
  --shadow-menu: 0 18px 48px -12px rgba(20, 34, 25, 0.28), 0 2px 8px rgba(20, 34, 25, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.3, 0, 0.8, 0.15);
  --ease-slide: cubic-bezier(0.45, 0, 0.15, 1);
  --dur-s: 150ms;
  --dur-m: 300ms;
  --dur-l: 450ms;
  --dur-slide: 1400ms;
  --hero-interval: 6s;

  /* Layout constants */
  --header-h: 4.25rem;
  --touch: 44px;
  --focus: var(--c-primary);
}

@media (min-width: 60em) {
  :root { --header-h: 5rem; }
}

/* ---------- 1. Base / reset / language switching --------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-on-surface);
  font-family: var(--font-sans);
  font-size: var(--fs-body-l);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-lang="ja"] body { font-family: var(--font-ja); line-height: 1.95; letter-spacing: 0.03em; }
html[data-lang="ja"] { line-break: strict; word-break: auto-phrase; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: anywhere; font-weight: 500; }
ul[role="list"], .site-nav__list, .site-footer__nav ul, .lang__list { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* The company's voice: serif. Japanese swaps to the platform Mincho (no download). */
.section__title, .lede, .statement, .crop__title, .project__title, .hero__title,
.brand__mark, .site-footer__brand, .cafe__title, .wwd-detail__title {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;           /* Cormorant's default old-style figures sink "1920s" below the line */
}
html[data-lang="ja"] :is(.section__title, .lede, .statement, .crop__title, .project__title, .cafe__title,
  .wwd-detail__title) { font-family: var(--font-ja-serif); letter-spacing: 0.04em; }

/* Language variants: each translatable string exists three times; only the active one is shown.
   With JS off the default (English) shows, because <html data-lang="en"> is hard-coded. */
[data-l="sw"], [data-l="ja"] { display: none; }
html[data-lang="sw"] [data-l="sw"],
html[data-lang="ja"] [data-l="ja"] { display: revert; }
html[data-lang="sw"] [data-l="en"],
html[data-lang="ja"] [data-l="en"] { display: none; }
@supports selector(:has(*)) {
  html[data-lang="sw"] [data-l="en"]:not(:has(~ [data-l="sw"])),
  html[data-lang="ja"] [data-l="en"]:not(:has(~ [data-l="ja"])) { display: revert; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -4rem; z-index: 300;
  padding: var(--sp-3) var(--sp-4); min-height: var(--touch);
  background: var(--c-primary); color: var(--c-on-primary); border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600;
  transition: top var(--dur-s) var(--ease);
}
.skip-link:focus { top: var(--sp-3); --focus: #fff; }

/* Translation review marker: shown at the top of a section only while it still holds a draft string in the active language. */
.tl-scope { position: relative; }
.tl-mark {
  display: none; position: absolute; z-index: 2; margin: 0;
  top: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem);
  right: max(var(--gutter), env(safe-area-inset-right), calc((100% - var(--container)) / 2));
  padding: 0.125rem 0.625rem; border: 1px solid currentColor; border-radius: var(--radius-pill);
  color: var(--c-on-surface-3); font-size: 0.75rem; line-height: 1.6; letter-spacing: 0.03em; pointer-events: none;
}
html[data-lang="sw"] .tl-mark, html[data-lang="ja"] .tl-mark { display: inline-flex; }
@supports selector(:has(*)) {
  html[data-lang="sw"] .tl-mark, html[data-lang="ja"] .tl-mark { display: none; }
  html[data-lang="sw"] .tl-scope:has(:not(.tl-mark) > [data-l="sw"][data-review="draft"]) > .tl-mark,
  html[data-lang="ja"] .tl-scope:has(:not(.tl-mark) > [data-l="ja"][data-review="draft"]) > .tl-mark { display: inline-flex; }
}
.site-footer > .tl-mark, .page-hero > .tl-mark { color: var(--c-on-inverse-2); }

/* ---------- 2. Layout: 12-column editorial grid ---------------------------- */
/* .wrap = two edge tracks + 12 columns. Text sits on the columns; a photograph may run to a window edge:
     grid-column: col 7 / full-end       right half, bleeding off the right edge
     grid-column: full-start / col 7     left half, bleeding off the left edge
   Below 768px the grid has no gaps and every child takes the whole text width. */
.wrap {
  --cg: 0px;
  --edge-l: max(var(--gutter), env(safe-area-inset-left), calc((100% - var(--container)) / 2));
  --edge-r: max(var(--gutter), env(safe-area-inset-right), calc((100% - var(--container)) / 2));
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, calc(var(--edge-l) - var(--cg)))
    repeat(12, [col] minmax(0, 1fr))
    [content-end] minmax(0, calc(var(--edge-r) - var(--cg)))
    [full-end];
  column-gap: var(--cg);
}
.wrap > * { grid-column: col 1 / content-end; min-width: 0; }
.wrap > .wrap { grid-column: full-start / full-end; }

.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section { position: relative; padding-block: var(--section-y); }
/* An element with the hidden attribute must stay hidden even when a class gives it a display value (the prepared Mission section). */
[hidden] { display: none !important; }
/* Backgrounds alternate by themselves, counting every <section> in <main> (the hero is the first, the hidden Mission section the second): About tint, What We Do paper, Staff tint. */
main > .section:nth-of-type(odd) { background: var(--c-surface-2); }

/* The small kicker above the title was removed on 2026-10-16 (meeting), so the title starts flush; margin-top stays for a title that follows other content (the detail page). */
.section__title {
  margin-top: var(--sp-4);
  font-size: var(--fs-headline); line-height: 0.98; font-weight: 500; letter-spacing: -0.01em;
  text-wrap: balance;
}
html[data-lang="ja"] .section__title { font-size: calc(var(--fs-headline) * 0.72); line-height: 1.3; font-weight: 600; }
.section__title:first-child { margin-top: 0; }

.eyebrow, .group__title, .chip {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
}
html[data-lang="ja"] :is(.eyebrow, .group__title, .chip) { letter-spacing: 0.08em; font-size: 0.8125rem; }

.lede {
  font-size: var(--fs-statement); line-height: 1.22; font-weight: 500; letter-spacing: -0.005em;
  text-wrap: pretty; overflow-wrap: anywhere;
}
html[data-lang="ja"] .lede { font-size: calc(var(--fs-statement) * 0.72); line-height: 1.75; font-weight: 600; }

/* Scroll reveal (progressive enhancement: only once script.js has run and only when motion is allowed). */
@media (prefers-reduced-motion: no-preference) {
  .js-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .js-ready [data-reveal].is-in { opacity: 1; transform: none; }
  .js-ready [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .js-ready [data-reveal-group].is-in > * { opacity: 1; transform: none; }
  .js-ready [data-reveal-group].is-in > :nth-child(2) { transition-delay: 90ms; }
  .js-ready [data-reveal-group].is-in > :nth-child(3) { transition-delay: 180ms; }
  .js-ready [data-reveal-group].is-in > :nth-child(4) { transition-delay: 270ms; }
}

/* ---------- 3. Header, navigation, language menu --------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 231, 0.94); color: var(--c-on-surface);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--c-outline-2);
  --focus: var(--c-primary);
}
.site-header__bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4); min-height: var(--header-h);
}
.site-header :is(a, button) { scroll-margin-top: calc(-1 * var(--header-h)); }

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: var(--touch); text-decoration: none; }
.brand img { display: block; width: 44px; height: 44px; object-fit: contain; transition: filter var(--dur-l) var(--ease); }
.brand__mark { font-weight: 600; font-size: 1.625rem; letter-spacing: 0.24em; line-height: 1; margin-right: -0.24em; }

.site-header__tools { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }

/* Primary nav — default (no JS / wide) is a plain inline list. */
.site-nav { order: 3; flex-basis: 100%; padding-bottom: var(--sp-2); }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--touch);
  padding: 0 var(--sp-2); text-decoration: none;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
html[data-lang="ja"] .site-nav a { letter-spacing: 0.08em; font-size: 0.875rem; }
.site-nav a::after {
  content: ""; position: absolute; left: var(--sp-2); right: var(--sp-2); bottom: 0.55rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-m) var(--ease);
}
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) { .site-nav a:hover::after { transform: scaleX(1); } }

/* Language menu: ONE button (globe + current code). One tap opens a small panel listing all three languages.
   Without JavaScript the button stays hidden (switching needs JS anyway) and the page reads in English. */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--touch); padding: 0 0.875rem 0 0.75rem;
  border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; cursor: pointer;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em;
  transition: background-color var(--dur-s) var(--ease), color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
.lang__toggle .icon { width: 1.125rem; height: 1.125rem; }
.lang__toggle .lang__chev { width: 0.75rem; height: 0.75rem; transition: transform var(--dur-m) var(--ease); }
.lang__toggle[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
@media (hover: hover) { .lang__toggle:hover { background: rgba(26, 29, 24, 0.06); } }

.lang__list {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; min-width: 13.5rem; margin: 0; padding: 0.375rem;
  background: var(--c-surface); color: var(--c-on-surface); border-radius: var(--radius-m); box-shadow: var(--shadow-menu);
  border: 1px solid var(--c-outline-2); transform-origin: top right; --focus: var(--c-primary);
}
.lang__list[hidden] { display: none; }
.js-ready .lang__list:not([hidden]) { animation: lang-in var(--dur-m) var(--ease-out); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.lang__opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; min-height: 48px;
  padding: 0 0.875rem; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left;
  font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.lang__opt small { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--c-on-surface-3); }
.lang__opt[aria-pressed="true"] { background: var(--c-primary-2); color: var(--c-on-primary-2); }
.lang__opt[aria-pressed="true"] small { color: var(--c-on-primary-2); }
.lang__opt[aria-pressed="true"] small::before { content: "\2713\00a0\00a0"; letter-spacing: 0; }
@media (hover: hover) { .lang__opt[aria-pressed="false"]:hover { background: rgba(26, 29, 24, 0.06); } }
.lang__opt:focus-visible { outline-offset: -3px; }
/* Upward-opening variant (footer). */
.lang--up .lang__list { top: auto; bottom: calc(100% + 0.5rem); left: 0; right: auto; transform-origin: bottom left; }

/* Menu button exists only once script.js has loaded. */
.menu-btn {
  display: none; position: relative; width: var(--touch); height: var(--touch);
  align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-pill);
}
.menu-btn__icon, .menu-btn__icon::before, .menu-btn__icon::after {
  display: block; width: 1.375rem; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-m) var(--ease), background-color var(--dur-s) var(--ease);
}
.menu-btn__icon { position: relative; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; }
.menu-btn__icon::before { top: -6px; }
.menu-btn__icon::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { transform: translateY(-6px) rotate(-45deg); }

html:not(.js-ready) .lang, html:not(.js-ready) .menu-btn { visibility: hidden; }
html:not(.js) .lang { display: none; }

/* --- Mobile: language button + menu button in the bar; nav becomes a full-screen sheet --- */
@media (max-width: 59.99em) {
  .js .site-header__bar { flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; }

  .js .site-nav {
    position: fixed; inset: 0; z-index: -1; order: 0; flex-basis: auto;
    padding: calc(var(--header-h) + var(--sp-5)) max(var(--gutter), env(safe-area-inset-right)) calc(var(--sp-7) + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: var(--c-surface); color: var(--c-on-surface); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-0.5rem);
    transition: opacity 200ms var(--ease-in), transform 200ms var(--ease-in), visibility 0s linear 200ms;
  }
  /* backdrop-filter would make the header the containing block of the fixed sheet (clipping it to the bar): drop it while open. */
  .js .site-header.is-menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--c-surface); }
  .js .site-header.is-menu-open .site-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur-l) var(--ease-out), transform var(--dur-l) var(--ease-out), visibility 0s;
  }
  .js .site-nav__list { display: block; counter-reset: nav; }
  .js .site-nav li { counter-increment: nav; }
  .js .site-nav a {
    display: flex; align-items: baseline; gap: var(--sp-4); width: 100%; min-height: 4.5rem; padding: var(--sp-3) 0;
    font-family: var(--font-serif); font-size: min(2.25rem, 11vw); font-weight: 500; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere;
    border-bottom: 1px solid var(--c-outline-2);
  }
  html[data-lang="ja"].js .site-nav a { font-family: var(--font-ja-serif); font-size: 1.5rem; }
  .js .site-nav a::before {
    content: counter(nav, decimal-leading-zero); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.14em; color: var(--c-accent);
  }
  .js .site-nav a::after { display: none; }
  .js .site-nav a[aria-current="true"] { color: var(--c-primary); }
  body.menu-open { overflow: hidden; }
}

/* --- Desktop: one quiet row --- */
@media (min-width: 60em) {
  .site-header__bar { flex-wrap: nowrap; gap: clamp(1.5rem, 3.5vw, 3.5rem); }
  .site-nav { order: 0; flex-basis: auto; margin-left: auto; padding-bottom: 0; }
  .site-nav__list { flex-wrap: nowrap; gap: clamp(1rem, 2vw, 2rem); }
  .site-header__tools { margin-left: 0; }
  .brand__mark { font-size: 1.875rem; }
  .brand img { width: 52px; height: 52px; }
}

/* --- Header over the hero photograph (only when JS is ready, so there is a safe solid fallback) --- */
.js-ready .site-header { transition: background-color var(--dur-l) var(--ease), border-color var(--dur-l) var(--ease), color var(--dur-l) var(--ease); }
.js-ready .site-header:not(.is-solid):not(.is-menu-open) {
  background: transparent; border-bottom-color: rgba(255, 255, 255, 0.18); color: #fff; --focus: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.js-ready .site-header:not(.is-solid):not(.is-menu-open) :is(.brand__mark, .site-nav a) { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.js-ready .site-header:not(.is-solid):not(.is-menu-open) .brand img { filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0, 0, 0, 0.3)); }
@media (hover: hover) {
  .js-ready .site-header:not(.is-solid):not(.is-menu-open) .lang__toggle:hover { background: rgba(255, 255, 255, 0.14); }
}
.js .hero, .js .page-hero { margin-top: calc(-1 * (var(--header-h) + 1px)); }

/* ---------- 4. Hero slider ------------------------------------------------- */
/* Full-bleed photographs laid side by side; every few seconds the next one slides in from the right (script.js, job 6).
   Slide 1 carries .is-active in the HTML, so with no JS or with prefers-reduced-motion exactly one photograph shows, still. */
.hero {
  --focus: #fff; touch-action: pan-y;
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  height: clamp(36rem, 100vh, 64rem); height: clamp(36rem, 100svh, 64rem);
  color: #fff; background: #1d2b21; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; touch-action: pan-y; }
.hero__slide { position: absolute; inset: 0; margin: 0; overflow: hidden; transform: translate3d(100%, 0, 0); visibility: hidden; backface-visibility: hidden; }
.hero__slide.is-active { transform: none; visibility: visible; }
.hero__slide.is-leaving { visibility: visible; }
.hero__slide.is-anim { transition: transform var(--dur-slide) var(--ease-slide); will-change: transform; }
/* The photograph moves a little slower than its slide (parallax), on the same clock, so the edge never shows a gap:
   script.js sets --px to +/-10% at the start / end of a move and back to 0. */
.hero__slide picture { position: absolute; inset: 0; display: block; transform: translate3d(var(--px, 0%), 0, 0); }
.hero__slide.is-anim picture { transition: transform var(--dur-slide) var(--ease-slide); }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
/* A slow push-in on the photograph gives the still image some life (motion allowed only). It stays on while the photograph leaves,
   so it never snaps back mid-slide. */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .hero.has-slider .hero__slide.is-active img,
  .js-ready .hero.has-slider .hero__slide.is-leaving img { animation: hero-push calc(var(--hero-interval) + var(--dur-slide)) linear both; }
}
@keyframes hero-push { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero::after {                       /* scrim: header (top) and wordmark (bottom-left) stay legible on any photo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--c-hero-scrim), 0.72) 0, rgba(var(--c-hero-scrim), 0.62) calc(var(--header-h) * 0.8), rgba(var(--c-hero-scrim), 0.2) calc(var(--header-h) * 1.8), rgba(var(--c-hero-scrim), 0) 32%),
    linear-gradient(to top, rgba(var(--c-hero-scrim), 0.78) 0, rgba(var(--c-hero-scrim), 0.32) 34%, rgba(var(--c-hero-scrim), 0) 60%),
    linear-gradient(to right, rgba(var(--c-hero-scrim), 0.35) 0, rgba(var(--c-hero-scrim), 0) 55%);
}
.hero__inner { width: 100%; padding-block: 0 clamp(1rem, 0.75rem + 2vw, 2.25rem); display: grid; gap: clamp(1rem, 0.75rem + 1.5vw, 2rem); }
.hero__inner > * { min-width: 0; }
.hero__title {
  font-size: min(calc(var(--fs-display) * 1.5), 32vw); font-weight: 500; line-height: 0.82; letter-spacing: 0.06em; margin-left: -0.04em;
}
.hero__copy { transform: translateY(clamp(0.75rem, 0.5rem + 1vw, 1.5rem)); }
.hero__sub {
  margin-top: var(--sp-5); display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.hero__sub::before { content: ""; flex: none; width: 2.5rem; height: 1px; background: currentColor; opacity: 0.8; }
.hero__sub > span { min-width: 0; }
html[data-lang="ja"] .hero__sub { letter-spacing: 0.12em; font-size: 0.875rem; }

/* Controls row (bottom). No captions and no page numbers (2026-10-16 meeting). Controls exist only once script.js has run and motion is allowed;
   without them the row would be an empty hairline, so it is hidden too. */
.hero__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-4) var(--sp-5); flex-wrap: wrap; padding-top: 0; border-top: 0; }
.hero:not(.has-slider) .hero__foot { display: none; }
.hero__controls { display: none; align-items: center; gap: var(--sp-3); }
.js-ready .hero.has-slider .hero__controls { display: flex; }
/* A grid, not a flex row: Safari mis-sizes the intrinsic width of nested flex rows of fixed-basis buttons and let the dots collapse onto the arrows. */
.hero__dots { display: grid; grid-auto-flow: column; grid-auto-columns: 44px; gap: 0.25rem; flex: 0 0 auto; }
.hero__dot { position: relative; min-width: 0; height: var(--touch); padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero__dot::before, .hero__dot::after { content: ""; position: absolute; left: 0.125rem; right: 0.125rem; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.hero__dot::before { background: rgba(255, 255, 255, 0.35); }
.hero__dot::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot[aria-current="true"]::after { transform: scaleX(1); }
.hero.is-playing .hero__dot[aria-current="true"]::after { animation: hero-progress var(--hero-interval) linear both; }
.hero.is-paused .hero__dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-pill); background: transparent; color: #fff; cursor: pointer;
  transition: background-color var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease);
}
@media (hover: hover) { .hero__arrow:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; } }
.hero__arrow .icon { width: 1.125rem; height: 1.125rem; }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }

/* Phones: swipe moves the photos, so the arrows step aside. The dots take the row (each about a finger wide) and the pause
   button sits at its end. */
@media (max-width: 37.49em) {
  .hero__controls { width: 100%; }
  .hero__controls [data-hero-prev], .hero__controls [data-hero-next] { display: none; }
  .hero__dots { flex: 1 1 auto; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .hero__sub { letter-spacing: 0.16em; }
}

@media (max-width: 59.99em) and (max-height: 34rem) { .js .site-nav a { min-height: 3.25rem; font-size: 1.5rem; } }
@media (max-height: 34rem) and (orientation: landscape) {
  .hero { height: 100vh; height: 100svh; min-height: 0; }
  .hero__title { font-size: min(clamp(4.5rem, 24vh, 7.5rem), 20vw); }
  .hero__inner { padding-bottom: 1rem; gap: var(--sp-3); }
}

/* ---------- 5. Shared components ------------------------------------------ */
.media {
  position: relative; overflow: hidden; background: var(--c-surface-3);
  aspect-ratio: var(--ar, 4 / 3); border-radius: var(--radius-s);
}
.media--3x2 { --ar: 3 / 2; }
.media--4x3 { --ar: 4 / 3; }
.media--4x5 { --ar: 4 / 5; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-7) var(--sp-4) var(--sp-3);
  color: #fff; font-size: 0.8125rem; line-height: 1.45; letter-spacing: 0.01em;
  background: linear-gradient(to top, rgba(var(--c-hero-scrim), 0.62), rgba(var(--c-hero-scrim), 0));
}

/* Placeholder frame (only where no approved photograph exists yet): quiet, patterned, never a grey box. */
.media--placeholder {
  color: var(--c-on-surface-3);
  background: repeating-linear-gradient(135deg, rgba(31, 58, 43, 0.05) 0 1px, transparent 1px 11px), var(--c-surface-2);
  box-shadow: inset 0 0 0 1px var(--c-outline-2);
}
.media__slot { position: absolute; left: var(--sp-4); top: var(--sp-3); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; }
.media__ph-text { position: absolute; left: var(--sp-4); bottom: var(--sp-3); right: var(--sp-4); font-size: var(--fs-label); letter-spacing: 0.04em; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.625rem; border-radius: var(--radius-pill);
  background: rgba(246, 241, 231, 0.94); color: var(--c-clay); font-size: 0.6875rem; letter-spacing: 0.12em; max-width: calc(100% - 1.5rem);
}
.chip { overflow-wrap: anywhere; }
.chip::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.tbc { margin-top: var(--sp-3); color: var(--c-on-surface-3); font-size: var(--fs-body); font-style: italic; }
.note { margin-top: var(--sp-4); color: var(--c-on-surface-3); font-size: 0.875rem; }

/* Text link with an arrow that travels on hover. */
.more {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: var(--touch);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor;
}
html[data-lang="ja"] .more { letter-spacing: 0.06em; font-size: 0.875rem; }
.more .icon { width: 1rem; height: 1rem; transition: transform var(--dur-m) var(--ease); }
@media (hover: hover) { .more:hover .icon { transform: translateX(4px); } }

/* Mission / Vision / Values: prepared in the markup (id="mission", before About), hidden until the wording is decided (2026-10-16). */
.mvv__wrap { row-gap: var(--sp-4); }
.mvv__wrap > * { grid-column: col 1 / content-end; }

/* ---------- 6. About ------------------------------------------------------- */
.about { row-gap: var(--sp-7); }
.about__text { display: grid; align-content: start; }
.about__text .lede { margin-top: var(--sp-6); max-width: 22em; }
html[data-lang="ja"] .about__text .lede { max-width: 30em; }
.about__body { margin-top: var(--sp-5); color: var(--c-on-surface-2); max-width: var(--measure); }
.about__photo { grid-column: full-start / full-end; border-radius: 0; }

/* ---------- What We Do ----------------------------------------------------- */
/* Only the heading is left in this head (the lede sentence was removed on 2026-10-16), so the gap below it is tighter. */
.wwd__head { row-gap: var(--sp-5); margin-bottom: clamp(2rem, 1.2rem + 3vw, 4rem); align-items: end; }

.group { row-gap: var(--sp-6); }
.group + .group { margin-top: clamp(5rem, 3rem + 6vw, 10rem); }
.group__title { display: flex; align-items: center; gap: var(--sp-4); color: var(--c-on-surface-2); }
.group__title::after { content: ""; flex: 1; height: 1px; background: var(--c-outline-2); }

/* Farm: one overall introduction (the production team's own wording) above four equal photo tiles. */
.farm-intro { display: grid; gap: var(--sp-5); }
.statement { font-size: var(--fs-statement); line-height: 1.24; font-weight: 500; text-wrap: pretty; max-width: 26em; }
html[data-lang="ja"] .statement { font-size: calc(var(--fs-statement) * 0.72); line-height: 1.8; font-weight: 600; max-width: 34em; }
.farm-intro__body { display: grid; gap: var(--sp-4); color: var(--c-on-surface-2); max-width: var(--measure); }
.farm-intro__body p:first-child { color: var(--c-on-surface); font-weight: 500; }
/* 2026-10-16 meeting: "make the sentence smaller": the Farm intro and the Farm tiles have to be readable on ONE screen. The big statement size stays for the detail page. */
#farm .farm-intro .statement, .sustainability-statement { font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem); line-height: 1.3; max-width: 34em; }
html[data-lang="ja"] :is(#farm .farm-intro .statement, .sustainability-statement) { font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.5rem); line-height: 1.8; }
#farm .farm-intro { gap: var(--sp-4); }
#farm .farm-grid { margin-top: var(--sp-5); }
/* Certification marks: small, one row, under the one sentence of intent. */
.farm-certs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); }
.farm-certs__logo { display: block; height: clamp(2.75rem, 2.2rem + 1.6vw, 3.75rem); width: auto; }
.farm-certs__mark { display: inline-flex; align-items: center; min-height: 2.5rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; color: var(--c-on-surface-2); }

.farm-grid { display: grid; gap: var(--sp-4) var(--col-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--sp-7); }
.crop { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.crop > * { grid-area: 1 / 1; }
.crop .media { --ar: 4 / 5; }
.crop .media img { transition: transform 1200ms var(--ease-out); }
@media (hover: hover) { .crop:hover .media img { transform: scale(1.04); } }
.crop__body { position: static; align-self: end; z-index: 1; padding: var(--sp-8) var(--sp-4) var(--sp-4); color: #fff; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--c-hero-scrim), 0.72), rgba(var(--c-hero-scrim), 0)); }
.crop__title { font-size: var(--fs-title-l); font-weight: 500; line-height: 1; }
html[data-lang="ja"] .crop__title { font-size: 1.375rem; line-height: 1.4; }
/* The title link covers the whole tile (one target, one tab stop). */
.crop__title a { color: inherit; text-decoration: none; pointer-events: auto; }
.crop__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.crop__title a:focus-visible { outline: none; }
.crop:has(a:focus-visible) .media { outline: 3px solid var(--focus); outline-offset: 3px; }
.crop__go { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: var(--sp-2); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.crop__go .icon { width: 0.875rem; height: 0.875rem; transition: transform var(--dur-m) var(--ease); }
@media (hover: hover) { .crop:hover .crop__go .icon { transform: translateX(4px); } }
html[data-lang="ja"] .crop__go { letter-spacing: 0.06em; font-size: 0.75rem; }

/* Sustainability: photo, number, title, text. A new <li> takes the next free cell. */
.project-grid { display: grid; gap: var(--sp-8) var(--col-gap); grid-template-columns: minmax(0, 1fr); }
.project { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.project .media { --ar: 3 / 2; }
.project .media.media--4x5 { --ar: 4 / 5; }
.project__body { display: grid; align-content: start; padding-top: var(--sp-5); }
.project__title { margin-top: 0; font-size: var(--fs-title-l); font-weight: 500; line-height: 1.05; }
html[data-lang="ja"] .project__title { font-size: 1.375rem; line-height: 1.5; }
.project__title a { display: inline-flex; align-items: center; min-height: var(--touch); min-width: var(--touch); color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-m) var(--ease); }
@media (hover: hover) { .project__title a:hover { background-size: 100% 1px; } }
/* One card only (2026-10-16): wide, photo left and text right, square photo, so a single project does not sit in a third of the row. From the second card on, the grid goes back to columns. */
.project-grid > li:only-child { grid-column: 1 / -1; }
.project-grid > li:only-child .project .media.media--4x5 { --ar: 1 / 1; }
.project p { margin-top: var(--sp-3); color: var(--c-on-surface-2); max-width: var(--measure); }

/* Cafe: a dark, quiet band. There is nothing to show yet, so it says so with confidence instead of an empty photo box. */
.cafe { margin-top: clamp(5rem, 3rem + 6vw, 10rem); }
.cafe__panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); align-content: end;
  min-height: clamp(18rem, 14rem + 12vw, 26rem); padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  background: radial-gradient(120% 140% at 100% 0%, #3a2a1f 0%, #22170f 60%, #1a120c 100%); color: var(--c-on-inverse); --focus: #fff;
}
.cafe__panel::before {             /* one large, faint ring as the only ornament */
  content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(243, 238, 227, 0.14); box-shadow: 0 0 0 3rem rgba(243, 238, 227, 0.03), 0 0 0 6rem rgba(243, 238, 227, 0.02);
}
.cafe__panel .eyebrow { color: #d8b59a; }
.cafe__panel .eyebrow a { display: inline-flex; align-items: center; min-height: var(--touch); min-width: var(--touch); color: inherit; text-decoration: none; }
@media (hover: hover) { .cafe__panel .eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.cafe__title { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); font-weight: 500; line-height: 0.9; overflow-wrap: anywhere; }
html[data-lang="ja"] .cafe__title { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
.cafe__panel .tbc { color: rgba(243, 238, 227, 0.8); font-size: var(--fs-body-l); max-width: 28rem; }

/* ---------- Career --------------------------------------------------------- */
.career { row-gap: var(--sp-5); align-items: center; }
.career__media { grid-column: full-start / full-end; border-radius: 0; --ar: 16 / 9; }
#staff.section { --section-y: clamp(3.5rem, 2.5rem + 4vw, 7rem); }
.career__text .lede { margin-top: var(--sp-6); }
.status {
  margin-top: var(--sp-6); display: flex; align-items: center; gap: var(--sp-3); max-width: var(--measure);
  padding-top: var(--sp-4); border-top: 1px solid var(--c-outline-2); color: var(--c-on-surface-3); font-size: var(--fs-body);
}
.status::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1px solid currentColor; }

/* ---------- What We Do detail page (what-we-do.html) ---------------------- */
.page-hero { --focus: #fff; position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1d2b21; min-height: clamp(28rem, 64vh, 40rem); display: flex; align-items: flex-end; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(var(--c-hero-scrim), 0.78), rgba(var(--c-hero-scrim), 0.12) 62%), linear-gradient(to bottom, rgba(var(--c-hero-scrim), 0.5), rgba(var(--c-hero-scrim), 0) 30%); }
.page-hero__inner { width: 100%; padding-block: calc(var(--header-h) + var(--sp-7)) clamp(2rem, 1rem + 4vw, 4.5rem); }
.page-hero .lede { margin-top: var(--sp-5); max-width: 24em; }
.wwd-detail__back { margin-bottom: var(--sp-6); }
.wwd-detail__back a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--touch); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.wwd-detail__back .icon { width: 1rem; height: 1rem; }
html[data-lang="ja"] .wwd-detail__back a { letter-spacing: 0.06em; }

/* Jump-nav: a sticky strip of anchors under the header. */
.wwd-jump { position: sticky; top: var(--header-h); z-index: 50; background: rgba(246, 241, 231, 0.96); border-bottom: 1px solid var(--c-outline-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wwd-jump__row { display: flex; gap: var(--sp-6); overflow-x: auto; scrollbar-width: none; }
.wwd-jump__row::-webkit-scrollbar { display: none; }
.wwd-jump__group { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.wwd-jump__group .eyebrow { color: var(--c-accent); }
.wwd-jump__group ul { display: flex; gap: var(--sp-1); list-style: none; padding: 0; margin: 0; }
.wwd-jump__group a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--touch); min-height: 3.25rem; padding: 0 var(--sp-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
@media (hover: hover) { .wwd-jump__group a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.wwd-jump__group a[aria-current="true"] { color: var(--c-primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.detail-group { padding-block: var(--section-y) 0; }
.detail-group:last-of-type { padding-bottom: var(--section-y); }
.wwd-jump + .detail-group { padding-top: clamp(3rem, 2rem + 3vw, 5.5rem); }
.detail-group__head { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-8); }
.detail-group__head .statement { max-width: 28em; }
.detail-group__head .farm-intro__body { max-width: 40rem; }
.wwd-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); padding-block: var(--sp-8); border-top: 1px solid var(--c-outline-2); scroll-margin-top: calc(var(--header-h) + 3.5rem); }
.wwd-detail__media { grid-column: 1 / -1; }
.wwd-detail__body { display: grid; align-content: start; gap: var(--sp-4); }
.wwd-detail__body .chip { justify-self: start; background: var(--c-surface-2); }
.wwd-detail__title { font-size: var(--fs-headline); font-weight: 500; line-height: 0.95; }
html[data-lang="ja"] .wwd-detail__title { font-size: calc(var(--fs-headline) * 0.6); line-height: 1.3; }
.wwd-detail__section { margin-top: var(--sp-4); max-width: var(--measure); }
.wwd-detail__section h4 { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-on-surface-3); margin-bottom: var(--sp-3); }
html[data-lang="ja"] .wwd-detail__section h4 { letter-spacing: 0.06em; font-size: 0.8125rem; }
.wwd-detail__section p:not(.tbc) { color: var(--c-on-surface-2); }
.wwd-detail__section p + p { margin-top: var(--sp-3); }
.keyfacts { display: grid; border-top: 1px solid var(--c-outline-2); }
.keyfacts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--sp-4); padding-block: var(--sp-3); border-bottom: 1px solid var(--c-outline-2); }
.keyfacts dt { color: var(--c-on-surface-3); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 0.25em; }
html[data-lang="ja"] .keyfacts dt { letter-spacing: 0.06em; font-size: 0.8125rem; }
.keyfacts dd { overflow-wrap: anywhere; }

@media (max-width: 30em) { .keyfacts > div { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); } }

/* ---------- 7. Footer (also the Contact point since 2026-10-16) ------------ */
.site-footer { position: relative; background: var(--c-inverse); color: var(--c-on-inverse); padding-block: var(--sp-8) calc(var(--sp-6) + env(safe-area-inset-bottom)); --focus: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.site-footer__grid > * { min-width: 0; }
.site-footer__brand { font-size: min(clamp(3rem, 2rem + 5vw, 6rem), 16vw); font-weight: 500; letter-spacing: 0.2em; line-height: 0.9; }
.site-footer__mail { margin-top: var(--sp-3); font-size: 1rem; }
.site-footer__mail a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--c-on-inverse); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
@media (hover: hover) { .site-footer__mail a:hover { text-decoration-thickness: 2px; } }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: none; color: var(--c-on-inverse); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
html[data-lang="ja"] .site-footer__nav a { letter-spacing: 0.06em; font-size: 0.875rem; }
@media (hover: hover) { .site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.site-footer__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); }
.site-footer .lang__toggle { border-color: rgba(255, 255, 255, 0.45); }
@media (hover: hover) { .site-footer .lang__toggle:hover { background: rgba(255, 255, 255, 0.1); } }
.site-footer .social { border-top: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.social__icon { display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); padding: 0; background: transparent; border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: var(--radius-pill); color: var(--c-on-inverse-2); cursor: default; }
.social__icon[href] { border-style: solid; cursor: pointer; }
.social__icon .icon { width: 1.25rem; height: 1.25rem; }
.site-footer__legal { padding-top: var(--sp-5); border-top: 1px solid rgba(255, 255, 255, 0.14); color: var(--c-on-inverse-2); font-size: 0.8125rem; }

/* ---------- 8. Breakpoints (mobile-first) ---------------------------------- */
@media (min-width: 37.5em) {          /* 600px */
}

@media (min-width: 48em) {            /* 768px: the 12-column grid switches on */
  .wrap { --cg: var(--col-gap); }
  .about__text { grid-column: col 1 / span 10; }
  .about__photo { --ar: 3 / 2; }

  .wwd__head > .wwd__title { grid-column: col 1 / span 8; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid > li:only-child .project { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
  .project-grid > li:only-child .project__body { padding-top: 0; }

  .career__text { grid-column: col 1 / span 10; }
  .career__media { --ar: 3 / 2; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--sp-7); }
  .site-footer__legal { grid-column: 1 / -1; }

  .wwd-detail { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
  .wwd-detail__media { grid-column: 1 / span 1; position: sticky; top: calc(var(--header-h) + 4.5rem); }
}

@media (min-width: 64em) {            /* 1024px: the asymmetric desktop composition */
  .about { row-gap: 0; align-items: stretch; }
  .about__text { grid-column: col 1 / span 5; grid-row: 1; padding-block: var(--sp-6) var(--sp-4); }
  .about__photo { grid-column: col 7 / full-end; grid-row: 1; aspect-ratio: auto; min-height: 36rem; }

  .wwd__head > .wwd__title { grid-column: col 1 / span 7; grid-row: 1 / span 2; align-self: end; }

  .farm-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
  .farm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Stagger: the middle card sits lower, so the row reads as a sequence rather than a table. */
  .project-grid > li:nth-child(3n + 2) { margin-top: var(--sp-8); }

  .cafe__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }

  .career { row-gap: 0; }
  .career__media { grid-column: full-start / col 7; grid-row: 1; --ar: 16 / 9; }
  .career__text { grid-column: col 8 / content-end; grid-row: 1; }


  .detail-group__head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
}

@media (min-width: 75em) {            /* 1200px */
  .about__photo { min-height: 42rem; }
  .career__media { --ar: 16 / 9; }
}

/* Header on narrow phones: keep the bar inside 320–360px. */
@media (max-width: 59.99em) {
  .brand__mark { font-size: min(1.5rem, 24px); }
  .lang__toggle { padding: 0 0.625rem; }
  .site-header__bar { gap: var(--sp-2) min(var(--sp-4), 16px); }
}
@media (max-width: 22.5em) {
  .brand img { width: 36px; height: 36px; }
  .site-header__bar.container { padding-inline: min(var(--gutter), 5vw); }
  .brand__mark { font-size: min(1.25rem, 6.4vw); }
  .lang__toggle .lang__chev { display: none; }
  .brand__mark { letter-spacing: 0.18em; }
  .farm-grid { gap: var(--sp-3); }
}

/* ---------- 9. Motion, forced colours, print ------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .menu-btn__icon, .menu-btn__icon::before, .menu-btn__icon::after { forced-color-adjust: none; background-color: ButtonText; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon { background-color: transparent; }
  .lang__opt[aria-pressed="true"] { forced-color-adjust: none; background-color: Highlight; color: HighlightText; }
  .site-nav a[aria-current="true"]::after, .hero__dot::after { forced-color-adjust: none; background-color: LinkText; }
  .js-ready .site-header:not(.is-solid):not(.is-menu-open) { background: Canvas; color: CanvasText; }
  .social__icon:not([href]) { color: GrayText; }
}
@media print {
  .hero, .page-hero { margin-top: 0 !important; height: auto; min-height: 0; color: #000; background: none; }
  .site-footer, .site-footer *, .cafe__panel *, .page-hero .lede, .page-hero .section__title { color: #000 !important; }
  .site-footer, .cafe__panel { background: none; }
  .site-header, .tl-mark, .skip-link, .lang, .menu-btn, .hero__controls, .wwd-jump { display: none !important; }
  .hero__media, .hero::after, .page-hero__media, .page-hero::after { display: none; }
  .hero__inner { padding-block: var(--sp-6); }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}

