/* === Aminome Corporate Renewal === */
:root {
  --bg: #fbfbfa;
  --bg-2: #f3f3f1;
  --ink: #0e0f0d;
  --ink-2: #2b2d2a;
  --muted: #6c6f6a;
  --line: #e3e3df;
  --accent: oklch(0.55 0.15 25);
  --accent-soft: oklch(0.96 0.025 25);
  --accent-ink: oklch(0.45 0.15 25);
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Inter", "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "palt";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
  letter-spacing: 0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-weight: 600; letter-spacing: .04em; font-size: 15px; }
.brand-name small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .14em; font-weight: 500; margin-top: 1px;}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  position: relative; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0;
}
.nav a::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .cta {
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 12.5px;
  letter-spacing: .04em; transition: transform .2s ease, background .2s ease;
}
.nav .cta:hover { background: var(--accent-ink); transform: translateY(-1px); }
.nav .cta::after { display:none; }
.lang {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  display: flex; gap: 6px; align-items: center;
}
.lang b { color: var(--ink); font-weight: 500; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 .em { color: var(--accent-ink); font-style: normal; }
.hero h1 .jp {
  display: block; font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 22px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero p.lede {
  font-size: 14px; color: var(--muted); max-width: 36ch;
  line-height: 1.9;
}
.hero-meta {
  display: flex; gap: 32px; margin-top: 36px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-meta span b { display:block; color: var(--ink); font-size: 22px; font-family: var(--sans); font-weight: 500; letter-spacing: 0; margin-bottom: 4px;}

/* Network canvas behind hero */
.net {
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  pointer-events: none;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; display:block; }

/* Hero deco — minimal network-inspired ornament */
.hero-deco { color: var(--ink); margin-bottom: 28px; line-height: 0; }
.hero-deco svg { display: block; }

/* Section */
section.block { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 280px 1fr; gap: 48px; margin-bottom: 64px; align-items: end; }
.sec-head h2 {
  font-size: clamp(28px, 3.6vw, 44px); margin: 0;
  font-weight: 600; letter-spacing: -.01em; line-height: 1.25;
}
.sec-head .sec-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
}
.sec-head p { color: var(--muted); font-size: 14.5px; max-width: 56ch; margin: 0; }

/* About / Philosophy */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.about-quote {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.7; font-weight: 500; letter-spacing: -.005em;
  color: var(--ink);
}
.about-quote em { font-style: normal; background: linear-gradient(transparent 60%, var(--accent-soft) 60%); padding: 0 2px; }
.about-body p { color: var(--ink-2); font-size: 14.5px; line-height: 1.95; margin: 0 0 16px; }
.about-body p + p { color: var(--muted); }

/* Services */
.svc-tabs {
  display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.svc-tab {
  background: transparent; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); letter-spacing: .02em;
  display: inline-flex; gap: 10px; align-items: center;
  transition: all .2s ease;
}
.svc-tab .num { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.svc-tab:hover { border-color: var(--ink-2); }
.svc-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc-tab.active .num { color: color-mix(in oklab, var(--bg) 60%, transparent); }

.svc-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; min-height: 360px; }
.svc-illust {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  aspect-ratio: 4/3; position: relative; overflow: hidden;
}
.svc-illust .label {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .1em;
}
.svc-illust .pattern { position: absolute; inset: 0; }
.svc-info h3 {
  font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; font-weight: 600; letter-spacing: -.005em;
}
.svc-info .svc-en { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px; display: block; }
.svc-info p { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; margin: 0 0 20px; }
.svc-info ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.svc-info ul li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2);
}
.svc-info ul li span:last-child { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.svc-info ul li.is-featured { padding: 0; }
.svc-info ul li.is-featured a {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 16px 12px; margin: 0 -12px;
  font-size: 13.5px; color: var(--ink); text-decoration: none;
  background: var(--accent-soft);
  border-radius: 4px;
  transition: background .2s ease;
}
.svc-info ul li.is-featured a:hover { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.svc-info ul li.is-featured a span:last-child { color: var(--accent-ink); font-weight: 500;}
.svc-tag {
  display: inline-block; margin-left: 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  padding: 2px 6px; border-radius: 2px;
  background: var(--accent); color: white;
  vertical-align: 2px;
}

/* News */
.news-tools {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; gap: 16px; flex-wrap: wrap;
}
.news-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.news-filter button {
  background: transparent; border: 0; padding: 6px 10px; font-size: 12.5px;
  color: var(--muted); border-radius: 4px;
}
.news-filter button.active { color: var(--ink); background: var(--bg-2); }
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 130px 110px 1fr 24px;
  gap: 24px; padding: 22px 8px; align-items: center;
  transition: padding-left .25s ease, background .25s ease;
}
.news-list a:hover { padding-left: 18px; background: linear-gradient(90deg, var(--accent-soft), transparent 60%);}
.news-list time { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em;}
.news-list .tag {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
  color: var(--ink-2); justify-self: start;
}
.news-list .tag.column { border-color: var(--accent-ink); color: var(--accent-ink); }
.news-list .ttl { font-size: 14.5px; color: var(--ink); }
.news-list .arr { color: var(--muted); transition: transform .25s ease;}
.news-list a:hover .arr { transform: translateX(4px); color: var(--ink); }

/* Company table */
.co-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; }
.co-table { border-top: 1px solid var(--line); }
.co-table .row {
  display: grid; grid-template-columns: 160px 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.co-table .row dt { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px;}
.co-table .row dd { margin: 0; color: var(--ink-2); }
.co-map {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  aspect-ratio: 4/3; position: relative; overflow: hidden;
}

/* SDGs strip — official-style colored tiles */
.sdgs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  margin-top: 32px;
}
.sdgs .cell {
  aspect-ratio: 1; position: relative; overflow: hidden;
  border-radius: 4px;
  transition: transform .25s ease, filter .35s ease, box-shadow .25s ease;
  background: #fff;
}
.sdgs .cell img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sdgs .cell:not(.on) img { filter: grayscale(1) brightness(.95) contrast(.95); opacity: .55; }
.sdgs .cell:not(.on)::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in oklab, var(--bg-2) 50%, transparent);
  pointer-events: none;
}
.sdgs .cell.on { box-shadow: 0 8px 22px -10px rgba(0,0,0,.35); }
.sdgs .cell:hover { transform: translateY(-3px); }
.sdgs .cell.is-wheel { background: #fff; }
@media (max-width: 880px) {
  .sdgs { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* Sustainability page */
.sustainability-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}
.sustainability-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.3;
  font-weight: 600;
}
.sustainability-wheel {
  width: min(100%, 360px);
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(18px, 3vw, 32px);
}
.sustainability-wheel img {
  width: 100%;
  height: auto;
  display: block;
}
.sdg-goal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.sdg-goal-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg);
}
.sdg-goal-icon {
  width: 82px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.sdg-goal-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sdg-goal-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.sdg-goal-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.sdg-goal-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.sdg-goal-card li + li { margin-top: 6px; }
.sdg-projects {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sdg-projects-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sdg-project {
  padding: 16px 0 0;
  color: var(--ink-2);
}
.sdg-project + .sdg-project {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.sdg-project-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}
.sdg-project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.sdg-project-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.sdg-project h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}
.sdg-project p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.sdg-project a {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sdg-project a:hover { color: var(--ink); }

/* CTA */
.cta-block {
  padding: clamp(70px, 9vw, 140px) 0;
  background: var(--ink); color: var(--bg);
}
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.cta-block h2 { font-size: clamp(28px, 4vw, 56px); margin: 0; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.cta-block h2 small { display: block; font-size: 13px; color: color-mix(in oklab, var(--bg) 55%, transparent); font-family: var(--mono); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 400;}
.cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 32px; background: var(--bg); color: var(--ink);
  border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Footer */
.ft { background: var(--ink); color: color-mix(in oklab, var(--bg) 70%, transparent); padding: 80px 0 32px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);}
.ft-brand .brand-name { color: var(--bg); }
.ft-brand p { font-size: 12.5px; line-height: 1.9; color: color-mix(in oklab, var(--bg) 55%, transparent); margin: 16px 0 0;}
.ft-col h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 55%, transparent); margin: 0 0 18px; font-weight: 500; font-family: var(--mono);}
.ft-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ft-col a { font-size: 13px; color: color-mix(in oklab, var(--bg) 80%, transparent);}
.ft-col a:hover { color: var(--bg); }
.ft-bot { padding-top: 24px; display: flex; justify-content: center; font-size: 11.5px; font-family: var(--mono); color: color-mix(in oklab, var(--bg) 50%, transparent); letter-spacing: .04em;}

/* Scroll reveal primitives */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

.reveal-x { opacity: 0; transform: translateX(40px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal-x.in { opacity: 1; transform: none; }

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.7,0,.2,1);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }

.reveal-mask {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 0%, transparent 0%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 0%, transparent 0%, transparent 100%);
  -webkit-mask-size: 200% 100%; mask-size: 200% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: mask-position 1.2s cubic-bezier(.7,0,.2,1), -webkit-mask-position 1.2s cubic-bezier(.7,0,.2,1);
}
.reveal-mask.in { -webkit-mask-position: 0 0; mask-position: 0 0; }

/* Word-by-word reveal */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-word > span {
  display: inline-block; transform: translateY(110%);
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.in .split-word > span,
.split-word.in > span { transform: none; }
.split-word.delay-1 > span { transition-delay: .05s; }
.split-word.delay-2 > span { transition-delay: .12s; }
.split-word.delay-3 > span { transition-delay: .19s; }
.split-word.delay-4 > span { transition-delay: .26s; }
.split-word.delay-5 > span { transition-delay: .33s; }
.split-word.delay-6 > span { transition-delay: .40s; }

/* Parallax image */
.par {
  --shift: 0px;
  transform: translate3d(0, var(--shift), 0) scale(1.06);
  transition: transform .1s linear;
  will-change: transform;
}

/* Photo treatments */
.photo {
  position: relative; overflow: hidden; border-radius: 4px;
  background: var(--bg-2);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1s ease;
}
.photo:hover img { transform: scale(1.04); }
.photo .photo-tag {
  position: absolute; left: 16px; top: 16px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--bg); color: var(--ink);
  padding: 6px 10px; border-radius: 999px; z-index: 2;
}
.photo .photo-pin {
  position: absolute; right: 16px; bottom: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: white; font-family: var(--mono); font-size: 11px;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 20%, transparent);
}
.photo .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, color-mix(in oklab, var(--ink) 50%, transparent));
  pointer-events: none;
}
.photo-cap {
  position: absolute; left: 24px; bottom: 20px; right: 24px;
  color: var(--bg); font-size: 13px; font-weight: 500; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
}
.photo-cap span:last-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; opacity: .8;}

/* Marquee */
.marquee {
  overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line);
  background: var(--ink); color: var(--bg);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: scroll-x 40s linear infinite;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  align-items: center;
}
.marquee-track span { display:inline-flex; gap: 48px; align-items: center;}
.marquee-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block;}
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* Sticky number column for hero */
.hero-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
}
.hero-num b {
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); color: var(--ink); letter-spacing: -.02em;
  margin-bottom: 4px;
}
.hero-num b em { font-style: normal; color: var(--accent-ink); }
.hero-meta { gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; }

/* Accent emphasis */
.accent-bar { display: inline-block; width: 36px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 12px;}
.eyebrow::before { background: var(--accent); height: 2px; }
.sec-num { color: var(--accent-ink) !important; }
.sec-num::before { content: "● "; color: var(--accent); }
.about-quote em { background: linear-gradient(transparent 60%, color-mix(in oklab, var(--accent) 35%, transparent) 60%); }

.hero h1 .em {
  position: relative;
}
.hero h1 .em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6%;
  height: 14%; background: color-mix(in oklab, var(--accent) 35%, transparent);
  z-index: -1; transform-origin: left;
  animation: hl 1.2s .6s cubic-bezier(.7,0,.2,1) both;
}
@keyframes hl { from { transform: scaleX(0);} to { transform: scaleX(1);}}

/* Big section index that scrolls in */
.big-index {
  position: absolute; right: var(--gutter); top: 64px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em;
  color: var(--muted); writing-mode: vertical-rl; text-orientation: mixed;
}

/* Metric cards on hero */
.metric-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 96px);
}
.metric-cell { background: var(--bg); padding: 28px 24px;}
.metric-cell .num {
  font-size: clamp(36px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.03em;
  line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 6px;
}
.metric-cell .num em { color: var(--accent-ink); font-style: normal;}
.metric-cell .num small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0;}
.metric-cell .lab { margin-top: 14px; font-size: 12.5px; color: var(--muted);}

@media (max-width: 880px) {
  .metric-grid { grid-template-columns: 1fr; }
}

/* Service: full-bleed photo treatment */
.svc-illust { aspect-ratio: 5/4; }
.svc-illust img { width: 100%; height: 100%; object-fit: cover; }

/* Photo strip in About */
.about-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 56px;
}
.philo {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; height: 100%;
}
.philo-media { position: relative; aspect-ratio: 16/9; overflow: hidden;}
.philo-media .photo-tag, .philo-media .photo-pin, .philo-media .scrim, .philo-media .photo-cap { position: absolute; }
.philo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.philo-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px;}
.philo-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink);
}
.philo-kicker::before { content: "● "; color: var(--accent); }
.philo-title {
  font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.5; letter-spacing: -.005em; font-weight: 500; margin: 0;
  color: var(--ink);
}
.philo-body p { color: var(--ink-2); font-size: 14px; line-height: 1.9; margin: 0;}
.philo-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px;}
.philo-list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.philo-list li:last-child { border-bottom: 1px solid var(--line); }
.philo-list b { font-family: var(--sans); font-weight: 600; color: var(--ink); letter-spacing: .02em;}
.philo-stats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.philo-stats li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg);
}
.philo-stats b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em;}
.philo-stats span { font-size: 11px; color: var(--muted); line-height: 1.4;}
@media (max-width: 880px) {
  .about-photos { grid-template-columns: 1fr;}
  .philo-body { padding: 22px;}
  .philo-list li { grid-template-columns: 80px 1fr;}
}

/* Cursor accent dot under section header */
.sec-head h2 .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-left: 8px; vertical-align: top; margin-top: 14px;
}

/* Reveal helpers shouldn't collapse layout */
.reveal, .reveal-x, .reveal-clip, .reveal-mask { display: block; }
.svc-panel > .reveal-clip,
.about-photos > .reveal-clip,
.co-grid > .reveal-clip { height: 100%; }
.svc-illust img, .co-map img { position: absolute; inset: 0; }
.svc-illust, .co-map { isolation: isolate; }

/* Failsafe: if reveal never triggers, still show after delay */
@keyframes reveal-fallback { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); -webkit-mask-position: 0 0; mask-position: 0 0; } }
.reveal, .reveal-x, .reveal-clip, .reveal-mask {
  animation: reveal-fallback 0s 2s forwards;
}
.reveal.in, .reveal-x.in, .reveal-clip.in, .reveal-mask.in { animation: none; }

/* Hamburger / mobile nav */
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px;
  width: 40px; height: 40px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--ink); display: block;
  transition: transform .3s ease, opacity .3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg);}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0;}
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg);}

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 12.5px;}
}
@media (max-width: 880px) {
  .hero-grid, .about-grid, .svc-panel, .co-grid, .cta-inner, .sustainability-intro, .sdg-goal-grid { grid-template-columns: 1fr; gap: 32px; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px;}
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 24px var(--gutter) 32px; gap: 0;
    transform: translateY(-110%); transition: transform .35s cubic-bezier(.7,0,.2,1);
    z-index: 49; box-shadow: 0 12px 40px rgba(0,0,0,.04);
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a {
    font-size: 15px; padding: 16px 0; border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { margin-top: 16px; align-self: flex-start; border: 0; padding: 12px 20px;}
  .nav a::after { display: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px;}
  .news-list a { grid-template-columns: 90px 80px 1fr; gap: 12px; padding: 18px 4px;}
  .news-list .arr { display: none;}
  .news-list .ttl { font-size: 13.5px; line-height: 1.5;}
  .sdgs { grid-template-columns: repeat(6, 1fr);}
  .hero { padding: 60px 0 80px;}
  .hero h1 { font-size: clamp(34px, 9vw, 56px);}
  .about-quote { font-size: clamp(20px, 4.5vw, 26px);}
  .svc-tabs { gap: 6px;}
  .svc-tab { padding: 8px 14px; font-size: 12px;}
  .cta-inner { text-align: left;}
  .cta-btn { padding: 18px 24px; font-size: 13px;}
  .ft-bot { flex-direction: column; gap: 8px; align-items: center;}
  .sustainability-wheel { margin-left: 0; }
  .sdg-goal-grid { gap: 1px; }
}
@media (max-width: 540px) {
  .ft-grid { grid-template-columns: 1fr; }
  .sdgs { grid-template-columns: repeat(4, 1fr);}
  .news-tools { flex-direction: column; align-items: flex-start; gap: 12px;}
  .hdr-inner { height: 64px;}
  .nav { top: 64px;}
  .photo-cap { left: 16px; right: 16px; bottom: 14px; font-size: 12px;}
  .photo-cap span:last-child { display: none;}
  .co-table .row { grid-template-columns: 110px 1fr; gap: 16px;}
  .sdg-goal-card { grid-template-columns: 64px 1fr; gap: 16px; }
  .sdg-goal-icon { width: 64px; }
  .sdg-project-head { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .sdg-project-logo { width: 56px; height: 44px; }
}

/* WordPress sub pages */
.sub-hero {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in oklab, var(--accent-soft) 55%, transparent), transparent 42%),
    var(--bg);
}
.sub-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}
.sub-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.015em;
}
.sub-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.archive-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.archive-desc p {
  margin: 0;
}
.narrow {
  max-width: 860px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post-card {
  min-height: 270px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  box-shadow: 0 18px 36px -30px rgba(0,0,0,.45);
}
.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-card h2 {
  margin: 24px 0 12px;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
  letter-spacing: 0;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.post-more {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
}
.pager {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}
.pager .nav-links,
.pager {
  gap: 8px;
}
.pager .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.pager .current,
.pager a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.empty-state {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}
.empty-state h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
}
.entry-content {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 2;
}
.entry-content > *:first-child {
  margin-top: 0;
}
.entry-content h2,
.entry-content h3 {
  color: var(--ink);
  line-height: 1.45;
  margin: 2em 0 .7em;
}
.entry-content p {
  margin: 0 0 1.4em;
}
.entry-content a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-thumb {
  margin-top: 48px;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-2);
}
.single-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-cats {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.single-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.inline-link,
.single-nav a {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}
.access-lead {
  max-width: 860px;
  margin-bottom: clamp(56px, 7vw, 92px);
}
.access-lead h2,
.contact-copy h2 {
  margin: 0 0 26px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.35;
}
.office-list {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 48px);
}
.office-card {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}
.office-card:not(:last-child) {
  margin-bottom: 0 !important;
}
.office-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--bg);
}
.office-body .inline-link {
  margin-top: 8px;
}
.office-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.office-label::before {
  content: "● ";
  color: var(--accent);
}
.office-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
}
.office-body p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.95;
}
.access-map {
  min-height: 360px;
  overflow: hidden;
  background: var(--bg-2);
}
.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(.18);
}
.contact-copy p {
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.9;
}
.contact-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-notes li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
}
.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}
.contact-form label {
  display: grid;
  gap: 8px;
}
.contact-form label span {
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}
.contact-form label b {
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.submit-btn {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 24px;
  transition: transform .2s ease, background .2s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-ink);
}
.form-message {
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
}
.form-message.success {
  background: color-mix(in oklab, #2f8f5b 13%, white);
  color: #1f6841;
}
.form-message.error {
  background: color-mix(in oklab, var(--accent) 12%, white);
  color: var(--accent-ink);
}

@media (max-width: 960px) {
  .post-grid,
  .sub-hero-inner,
  .office-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .office-card {
    gap: 0;
  }
  .office-card + .office-card {
    margin-top: 0 !important;
  }
  .post-grid {
    gap: 14px;
  }
}

@media (max-width: 540px) {
  .post-card a,
  .contact-form,
  .empty-state {
    padding: 22px;
  }
  .post-meta {
    flex-direction: column;
    gap: 6px;
  }
  .access-map,
  .access-map iframe {
    min-height: 300px;
  }
}
