/* ToxicFree Foundation homepage: page-specific styles. Nav, footer and buttons come from styles/site-v2. */
:root {
  --ink: #0E1E18; --ink-2: #16291F; --ink-3: #1C3128; --line-d: #22362D; --line-d2: #2A3D34; --line-d3: #3A4E45;
  --paper: #F4F2EC; --white: #FFFFFF; --line: #DEDAD0; --line-2: #CFCBC0;
  --text: #0E1E18; --text-2: #2E3A34; --muted: #4E5A54;
  --on-dark: #F3F1EA; --on-dark-2: #D5DED9; --on-dark-3: #B9C7C0; --on-dark-4: #9FB3AA;
  --mint: #7FDDB0; --green: #1F6B45; --green-2: #15492F;
  --serif: 'Instrument Serif', Georgia, serif; --sans: 'Geist', system-ui, -apple-system, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5.5vw, 80px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-2); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #2E9E66; outline-offset: 2px; }
::placeholder { color: #6B7771; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); letter-spacing: 0.1em; font-size: 12px; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.lift { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.lift:hover { transform: translateY(-2px); }

/* Preview bar */

/* Hero + nav */
.hero { position: relative; background-color: var(--ink); background-image: linear-gradient(rgba(127, 221, 176, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 221, 176, 0.06) 1px, transparent 1px); background-size: 56px 56px; color: var(--on-dark); }

.hero-body { display: flex; gap: 72px; align-items: flex-start; padding-top: 88px; padding-bottom: 96px; }
.hero-left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--mint); text-transform: uppercase; }
.eyebrow.green { color: var(--green); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.2vw, 104px); line-height: 0.95; letter-spacing: -0.02em; }
.hero h1 em { color: var(--mint); }
.lede { margin: 0; max-width: 580px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--on-dark-3); }

.search { position: relative; max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
.search label { color: var(--on-dark-4); }
.search-box { display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 12px 0 24px; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.search-box input { flex-grow: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: var(--sans); font-size: 20px; color: var(--text); }
.search-box input::-webkit-search-cancel-button { display: none; }
.icon-btn { width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.results { position: absolute; top: 112px; left: 0; right: 0; z-index: 40; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); color: var(--text); }
.results li[role="option"] { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.results li[aria-selected="true"], .results li[role="option"]:hover { background: var(--paper); }
.results .r-name { font-size: 17px; font-weight: 600; }
.results .r-cats { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .empty { padding: 16px; font-size: 16px; color: var(--muted); }
.mini { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.popular .mono { color: var(--on-dark-4); margin-right: 4px; }
.chip-dark { height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-d3); background: rgba(255, 255, 255, 0.04); color: var(--on-dark); font-size: 14px; font-weight: 500; }
.chip-dark:hover { border-color: var(--mint); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line-d2); }
.stats a { display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 0 0; text-decoration: none; color: var(--on-dark); }
.stats a:hover { color: var(--on-dark); }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 1; }
.stats span { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--on-dark-3); white-space: nowrap; }
.stats .arr { font-style: normal; }

/* Profile card */
.profile { width: 500px; flex-shrink: 0; margin-top: 8px; padding: 32px; border-radius: 28px; background: var(--paper); color: var(--text); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 22px; }
.profile .head { display: flex; justify-content: space-between; color: var(--muted); }
.profile .top { display: flex; gap: 22px; align-items: stretch; }
.bigtile { width: 132px; height: 148px; flex-shrink: 0; padding: 12px 14px; border-radius: 16px; border-bottom: 6px solid; display: flex; flex-direction: column; justify-content: space-between; }
.bigtile .no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bigtile .sym { font-family: var(--serif); font-size: 68px; line-height: 0.9; }
.profile h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 42px; line-height: 1.02; }
.profile .sci { font-style: italic; font-size: 15px; color: var(--muted); }
.profile .desc { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.found { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.found .mono { color: var(--muted); }
.found span:last-child { font-size: 16px; font-weight: 500; }
.btn-ink { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: var(--on-dark); font-size: 16px; font-weight: 600; text-decoration: none; }
.btn-ink:hover { color: var(--on-dark); background: #193328; }
.flash { animation: flash .45s ease; }
@keyframes flash { from { transform: scale(0.985); opacity: .6; } to { transform: none; opacity: 1; } }

/* Hero background: ingredient tile field */
.hero-body { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-glow { position: absolute; z-index: 0; width: 1100px; height: 1100px; right: -260px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(127, 221, 176, 0.16), rgba(127, 221, 176, 0.05) 55%, transparent 72%); }
.hero-field { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; display: grid; grid-auto-rows: 112px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 47%, rgba(0, 0, 0, 0.55) 56%, #000 68%), linear-gradient(180deg, #000 72%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, transparent 47%, rgba(0, 0, 0, 0.55) 56%, #000 68%), linear-gradient(180deg, #000 72%, transparent 100%); mask-composite: intersect; }
.hf-cell { width: 112px; height: 112px; padding: 6px; }
.hf-tile { width: 100%; height: 100%; border-radius: 12px; border: 1px solid rgba(127, 221, 176, 0.13); background: rgba(22, 41, 31, 0.72); padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color 1.2s ease, border-color 1.2s ease, box-shadow 1.2s ease; }
.hf-tile .n { font-family: var(--mono); font-size: 10px; color: rgba(185, 199, 192, 0.45); }
.hf-tile .s { font-family: var(--serif); font-size: 44px; line-height: 0.9; opacity: 0.5; transition: opacity 1.2s ease; }
.hf-tile .b { height: 3px; border-radius: 2px; opacity: 0.45; transition: opacity 1.2s ease; }
.hf-tile.lit { background: rgba(22, 41, 31, 0.95); border-color: var(--lit); box-shadow: 0 0 0 1px var(--lit), 0 0 38px -6px var(--lit); }
.hf-tile.lit .s, .hf-tile.lit .b { opacity: 1; }
@media (max-width: 1240px) {
  .hero-field { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.6) 68%, #000 85%); -webkit-mask-composite: source-over; mask-image: linear-gradient(180deg, transparent 0%, transparent 52%, rgba(0, 0, 0, 0.6) 68%, #000 85%); mask-composite: add; }
}
@media (max-width: 720px) {
  .hero-field { opacity: 0.7; }
  .hero-glow { width: 700px; height: 700px; right: -320px; top: auto; bottom: -260px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-tile, .hf-tile .s, .hf-tile .b { transition: none; }
}

/* Hero card rotation */
.profile .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.p-ctrl { display: flex; align-items: center; gap: 6px; }
.p-btn { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s ease, background-color .15s ease; }
.p-btn:hover { border-color: var(--ink); }
.p-progress { height: 2px; margin-top: -8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.p-progress span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left center; transform: scaleX(0); }
#profile [data-p] { transition: opacity .28s ease, transform .28s ease; }
#profile.is-swapping [data-p] { opacity: 0; transform: translateY(6px); }
@media (max-width: 720px) {
  .p-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  #profile [data-p] { transition: none; }
}

/* Sections */
section.sec { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); scroll-margin-top: 84px; }
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 48px; }
.sec-head .t { display: flex; flex-direction: column; gap: 16px; max-width: 840px; }
h2.big { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.015em; }
.sec-head p { margin: 0; max-width: 380px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; text-decoration: none; color: var(--green); white-space: nowrap; }

/* Label check */
.check { display: flex; gap: 32px; align-items: stretch; }
.check-in { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.check-in label { font-size: 15px; font-weight: 600; }
.check-in textarea { flex-grow: 1; min-height: 320px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); font-family: var(--mono); font-size: 16px; line-height: 1.7; color: var(--text); resize: vertical; }
.check-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-outline { height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; }
.btn-text { height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: underline; }
.check-actions .mono { margin-left: auto; color: var(--muted); }
.check-out { width: 640px; flex-shrink: 0; padding: 36px; border-radius: 28px; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; gap: 22px; }
.check-out .count { display: flex; justify-content: space-between; align-items: baseline; }
.check-out .count b { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; }
.check-out .count .mono { color: var(--on-dark-4); }
.verdict { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 500; }
.bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--ink-3); }
.bar span { transition: width .35s ease; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-2); }
.legend b { color: var(--on-dark); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line-d2); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: left; }
.chip .via { font-weight: 400; opacity: 0.85; }
.chip-unk { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px dashed #6F8279; border-radius: 999px; color: #C9D6CF; font-size: 14px; }
.chip-unk small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--on-dark-4); }
.check-out .hint { font-size: 14px; color: var(--on-dark-4); }

/* Table */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.f-rate { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid #D9D6CC; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.f-rate[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.f-rate .dot { box-shadow: 0 0 0 2px #fff; }
.f-rate small, .f-cat small { font-family: var(--mono); font-size: 12px; font-weight: 400; opacity: 0.75; }
.f-cat { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.f-cat[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.table-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.tiles-wrap { height: 720px; overflow-y: auto; padding: 6px 12px 6px 6px; }
.tiles-wrap::-webkit-scrollbar { width: 10px; }
.tiles-wrap::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--paper); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile { position: relative; height: 120px; padding: 10px 10px 14px; border-radius: 12px; border: 2px solid transparent; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-3px); }
.tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 12px 28px rgba(14, 30, 24, 0.2); }
.tile .no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tile .sym { font-family: var(--serif); font-size: 40px; line-height: 0.9; }
.tile .nm { width: 100%; font-size: 11.5px; line-height: 1.25; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .strip { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.empty-list { padding: 48px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 17px; color: var(--muted); }
.panel { position: sticky; top: 104px; padding: 30px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.panel .bigtile { width: 100%; height: 180px; padding: 16px 18px; border-bottom-width: 8px; }
.panel .bigtile .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.panel .bigtile .sym { font-size: 96px; line-height: 0.85; }
.panel h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.panel .sci { margin-top: -8px; font-style: italic; font-size: 15px; color: var(--muted); }
.panel p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.rows { display: none; }

/* Claims */
.claims { display: flex; gap: 80px; align-items: center; }
.claims-l { width: 560px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-d3); background: transparent; color: var(--on-dark); font-size: 16px; font-weight: 600; }
.tab[aria-selected="true"] { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.claim-panel { flex: 1 1 0; min-width: 0; padding: 48px 52px; border-radius: 28px; border: 1px solid var(--line-d2); background: var(--ink-2); display: flex; flex-direction: column; gap: 24px; }
.claim-panel .mono { color: var(--on-dark-4); font-size: 13px; }
.claim-panel p { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; }
.claim-panel a { color: var(--mint); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

/* Certification */
.cert { display: flex; gap: 88px; align-items: center; }
.stamp { width: 480px; height: 480px; flex-shrink: 0; border-radius: 50%; background: var(--paper); display: flex; align-items: center; justify-content: center; position: relative; }
.stamp::before { content: ""; position: absolute; inset: 24px; border-radius: 50%; border: 1px dashed var(--line-2); }
.stamp img { width: 340px; position: relative; }
.cert-r { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 22px; border-radius: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.pillar h3 { margin: 0; font-size: 19px; font-weight: 600; }
.pillar p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-dark { display: inline-flex; align-items: center; height: 58px; padding: 0 28px; border-radius: 14px; background: var(--ink); color: var(--on-dark); font-size: 17px; font-weight: 600; text-decoration: none; }
.btn-dark:hover { color: var(--on-dark); background: #193328; }

/* Research */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; border-radius: 22px; background: #fff; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); box-shadow: 0 18px 40px rgba(14, 30, 24, 0.08); }
.card .img { width: 100%; height: 250px; border-radius: 14px; object-fit: cover; background: var(--ink); display: block; }
.card .img-report { width: 100%; height: 250px; border-radius: 14px; background: var(--ink); overflow: hidden; display: flex; justify-content: center; }
.card .img-report img { height: 100%; width: auto; }
.card .tag { padding: 0 8px; color: var(--muted); }
.card .tag.recall { color: #A8231C; }
.card .tag.ours { color: var(--green); }
.card h3 { margin: 0; padding: 0 8px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.card p { margin: 0; padding: 0 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* FAQ */
.faq { display: flex; gap: 96px; align-items: flex-start; }
.faq-l { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }
.faq-l p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.faq-list { flex: 1 1 0; min-width: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; cursor: pointer; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .plus { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--paper); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.faq-list details[open] .plus { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 64px 28px 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }

/* Footer */

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lift, .tile, .bar span, .faq-list .plus { transition: none; }
  .flash { animation: none; }
}

/* Responsive */
@media (max-width: 1240px) {
  .hero-body { flex-direction: column; gap: 48px; }
  .profile { width: 100%; max-width: 640px; }
  .check { flex-direction: column; }
  .check-out { width: 100%; }
  .claims, .cert, .faq { flex-direction: column; align-items: stretch; gap: 40px; }
  .claims-l, .faq-l { width: 100%; }
  .stamp { width: 360px; height: 360px; align-self: center; }
  .stamp img { width: 250px; }
}
@media (max-width: 1080px) {
  .table-body { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; order: -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 720px) {
  .hero-body { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .hero-left { gap: 20px; }
  .search-box { height: 60px; padding-left: 16px; border-radius: 16px; }
  .search-box input { font-size: 17px; }
  .results { top: 92px; }
  .stats b { font-size: 40px; }
  .stats span { font-size: 12.5px; gap: 6px; }
  .stats .arr { display: none; }
  .chip { flex-wrap: wrap; row-gap: 2px; }
  .chip .via { flex-basis: 100%; padding-left: 16px; font-size: 12px; }
  .profile { padding: 22px; border-radius: 22px; gap: 16px; }
  .profile .bigtile { width: 92px; height: 104px; }
  .profile .bigtile .sym { font-size: 50px; }
  .profile h2 { font-size: 32px; }
  .profile .desc { font-size: 15px; }
  .sec-head { margin-bottom: 28px; }
  .check-in textarea { min-height: 180px; font-size: 15px; padding: 16px; }
  .check-out { padding: 24px 20px; border-radius: 22px; }
  .check-out .count b { font-size: 36px; }
  .verdict { font-size: 17px; }
  .check-actions .mono { display: none; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .f-rate { height: 44px; padding: 0 16px; font-size: 14px; }
  .f-cat { height: 44px; }
  .panel, .tiles-wrap { display: none; }
  .rows { display: block; height: 620px; overflow-y: auto; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
  .rows .r-item { border-bottom: 1px solid #EDEBE4; }
  .rows button.r-head { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; background: transparent; text-align: left; color: var(--ink); }
  .rows .mini { width: 44px; height: 44px; font-size: 24px; }
  .rows .r-name { font-size: 15px; font-weight: 600; display: block; }
  .rows .r-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
  .rows .r-no { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .rows .r-body { padding: 0 16px 18px 70px; display: flex; flex-direction: column; gap: 10px; }
  .rows .r-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
  .rows .r-body a { font-size: 14px; font-weight: 600; }
  .tab { flex-grow: 1; height: 46px; padding: 0 10px; font-size: 14px; }
  .claim-panel { padding: 26px 22px; border-radius: 22px; }
  .stamp { width: 260px; height: 260px; }
  .stamp img { width: 190px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { flex-direction: row; align-items: center; gap: 14px; padding: 12px; }
  .card .img, .card .img-report { width: 92px; height: 92px; flex-shrink: 0; border-radius: 12px; }
  .card p { display: none; }
  .card .body { display: flex; flex-direction: column; gap: 6px; }
  .card h3 { font-size: 22px; padding: 0; }
  .card .tag { padding: 0; }
  .faq-list summary { font-size: 17px; padding: 18px 0; }
  .faq-list details p { padding: 0 0 20px; font-size: 16px; }
}
@media (min-width: 721px) {
  .card .body { display: contents; }
}
/* ===== Light theme (replaces the dark hero, results panel, claims and footer) ===== */
.hero { background-color: #F4F2EC; background-image: linear-gradient(rgba(31, 107, 69, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 107, 69, 0.07) 1px, transparent 1px); color: var(--text); }
.eyebrow { color: var(--green); }
.hero h1 em { color: var(--green); }
.lede { color: var(--muted); }
.search label, .popular .mono { color: var(--muted); }
.search-box { border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(14, 30, 24, 0.10); }
.chip-dark { background: #fff; border-color: var(--line-2); color: var(--text); }
.chip-dark:hover { border-color: var(--green); }
.stats { border-top-color: var(--line); }
.stats a, .stats a:hover { color: var(--text); }
.stats span { color: var(--muted); }
.profile { background: #fff; border: 1px solid #E5E2D9; box-shadow: 0 30px 70px rgba(14, 30, 24, 0.12); }
.p-btn { background: var(--paper); }
.btn-ink { background: var(--green); color: #fff; }
.btn-ink:hover { background: var(--green-2); color: #fff; }
.btn-ink svg { stroke: #fff; }
.hero-bg::before { opacity: 0.05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-glow { background: radial-gradient(closest-side, rgba(127, 221, 176, 0.32), rgba(127, 221, 176, 0.10) 55%, transparent 72%); }
.hf-tile { background: rgba(255, 255, 255, 0.72); border-color: rgba(14, 30, 24, 0.08); }
.hf-tile .n { color: rgba(78, 90, 84, 0.6); }
.hf-tile .s { opacity: 0.4; }
.hf-tile .b { opacity: 0.35; }
.hf-tile.lit { background: #fff; box-shadow: 0 0 0 1px var(--lit), 0 14px 32px -10px var(--lit); }
.check-out { background: var(--paper); color: var(--text); border: 1px solid var(--line); }
.check-out .count .mono, .check-out .hint { color: var(--muted); }
.bar { background: #E5E2D9; }
.legend span { color: var(--text-2); }
.legend b { color: var(--text); }
.chips { border-top-color: var(--line); }
.chip-unk { border-color: #9A9E97; color: var(--text-2); }
.chip-unk small { color: var(--muted); }
.bg-ink { background: #E6F0E9; color: var(--text); }
.bg-ink .eyebrow { color: var(--green); }
.tab { border-color: #B9CFC1; background: rgba(255, 255, 255, 0.55); color: var(--text); }
.tab[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.claim-panel { background: #fff; border-color: #D3E3D8; }
.claim-panel .mono { color: var(--muted); }
.claim-panel a { color: var(--green); }
.stamp img { mix-blend-mode: multiply; }
/* ===== Photography ===== */
.p-photo { position: relative; height: 220px; border-radius: 16px; overflow: hidden; background: var(--paper); }
.p-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel .p-photo { height: 200px; }
.hide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hide-card { position: relative; isolation: isolate; display: block; height: 320px; border-radius: 22px; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.hide-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hide-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 30, 24, 0) 35%, rgba(14, 30, 24, 0.8) 100%); }
.hide-card:hover { color: #fff; }
.hide-card:hover img { transform: scale(1.05); }
.hc-body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.hc-title { font-family: var(--serif); font-size: 36px; line-height: 1; }
.hc-meta { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.hc-bar { display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.25); }
.hc-bar span { display: block; height: 100%; }
.head-photo { width: 420px; height: 260px; flex-shrink: 0; object-fit: cover; border-radius: 22px; }
.claim-photo { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.cert-visual { position: relative; width: 520px; flex-shrink: 0; }
.cert-photo { display: block; width: 100%; height: 520px; object-fit: cover; border-radius: 28px; }
.cert-badge { position: absolute; right: -28px; bottom: -28px; width: 190px; height: 190px; border-radius: 50%; background: #fff; box-shadow: 0 20px 50px rgba(14, 30, 24, 0.18); display: flex; align-items: center; justify-content: center; }
.cert-badge img { width: 150px; mix-blend-mode: multiply; }
.mission-band { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.mb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.mission-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 30, 24, 0) 30%, rgba(14, 30, 24, 0.55) 55%, rgba(14, 30, 24, 0.82) 100%); }
.mb-inner { position: relative; z-index: 1; width: 100%; display: flex; justify-content: flex-end; }
.mb-copy { max-width: 560px; display: flex; flex-direction: column; gap: 22px; padding: 80px 0; }
.mission-band .eyebrow { color: var(--mint); }
.mb-quote { margin: 0; font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1.02; }
.mb-quote em { color: var(--mint); }
.mission-band .btn-mint { height: 56px; padding: 0 26px; font-size: 16px; }
.btn-ghost-light { display: inline-flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
@media (max-width: 1240px) {
  .cert-visual { width: 100%; max-width: 560px; align-self: center; }
  .cert-photo { height: 400px; }
  .cert-badge { right: 16px; }
}
@media (max-width: 1080px) {
  .hide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-photo { width: 100%; max-width: 640px; height: 240px; }
}
@media (max-width: 720px) {
  .p-photo { height: 180px; }
  .hide-grid { gap: 12px; }
  .hide-card { height: 200px; border-radius: 16px; }
  .hc-body { left: 14px; right: 14px; bottom: 14px; gap: 6px; }
  .hc-title { font-size: 24px; }
  .hc-meta { font-size: 12px; }
  .head-photo { height: 200px; border-radius: 18px; }
  .claim-photo { height: 180px; }
  .cert-photo { height: 300px; border-radius: 22px; }
  .cert-badge { width: 130px; height: 130px; right: 12px; bottom: -22px; }
  .cert-badge img { width: 100px; }
  .mission-band { min-height: 540px; align-items: flex-end; }
  .mission-band::after { background: linear-gradient(180deg, rgba(14, 30, 24, 0) 25%, rgba(14, 30, 24, 0.82) 78%); }
  .mb-photo { object-position: 25% 30%; }
  .mb-copy { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hide-card img { transition: none; }
}
/* Hero card: photo-led (no letter tile) */
#profile .p-photo { height: 280px; }
#profile .p-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rate, transparent); }
#profile .p-photo.is-diagram { background: #fff; border: 1px solid var(--line); }
#profile .p-photo.is-diagram img { object-fit: contain; padding: 20px 20px 26px; }
#profile .top { display: block; }
.p-namecol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.p-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-no { color: var(--muted); }
@media (max-width: 720px) {
  #profile .p-photo { height: 210px; }
}
/* Hero card: fixed-size text areas so the card never changes height */
#profile .p-namebox { height: 82px; display: flex; align-items: flex-end; }
#profile h2 { font-size: 38px; line-height: 1.05; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#profile .sci { display: block; min-height: 1.45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#profile .desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; height: 6.4em; }
#profile .found span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  #profile .p-namebox { height: 66px; }
  #profile h2 { font-size: 30px; }
  #profile .desc { -webkit-line-clamp: 5; height: 8em; }
}
#profile.flash { animation: flashfade .45s ease; }
@keyframes flashfade { from { opacity: 0.55; } to { opacity: 1; } }
/* Compact hero card: fits on a laptop screen with the button visible */
.hero-body { padding-top: 56px; padding-bottom: 72px; }
#profile { padding: 24px; gap: 14px; }
#profile .p-progress { margin-top: -4px; }
#profile .p-photo { height: clamp(150px, 24vh, 220px); }
#profile .p-namecol { gap: 6px; }
#profile .p-namebox { height: 60px; }
#profile h2 { font-size: 28px; line-height: 1.05; }
#profile .sci { font-size: 14px; }
#profile .desc { font-size: 15.5px; line-height: 1.55; -webkit-line-clamp: 2; height: 3.1em; }
#profile .found { display: none; }
#profile .btn-ink { height: 48px; font-size: 15px; }
@media (max-width: 720px) {
  #profile { padding: 20px; }
  #profile .p-photo { height: 180px; }
  #profile .p-namebox { height: 56px; }
  #profile h2 { font-size: 26px; }
  #profile .desc { -webkit-line-clamp: 3; height: 4.65em; }
}
/* Homepage links */
.t-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.topics .mono { color: var(--muted); margin-right: 6px; }
.topics a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.topics a:hover { border-color: var(--green); color: var(--green); }
.faq-list details p a { font-weight: 600; }
.results .empty button { border: 0; padding: 0; background: none; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; text-align: left; }
@media (max-width: 1080px) {
  .t-side { align-items: flex-start; }
}
@media (max-width: 720px) {
  .topics .mono { width: 100%; }
}

/* Contrast fixes (Lighthouse) */
.chip .via { opacity: 1; }
.f-rate[aria-pressed="true"] small, .f-cat[aria-pressed="true"] small { opacity: 1; }
