@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --forest: #0e773f;
  --forest-dark: #153d2a;
  --leaf: #0e773f;
  --sage: #e7e9df;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #3b4a3f;
  --line: #e0e0e0;
  --gold: #deb887;
  --shadow: 0 18px 50px rgb(18 52 31 / 12%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: ui-sans-serif, system-ui, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; line-height: 1.08; letter-spacing: -.025em; }
h1 { max-width: 900px; font-size: clamp(3.2rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }

.loading-logo {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--paper);
  pointer-events: none;
  transition: opacity 300ms ease;
}
.loading-logo img { width: clamp(130px, 18vw, 250px); height: auto; }
.loading-logo.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .loading-logo { display: none; }
}

.skip-link { position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 100; padding: .7rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: 1.2rem clamp(1rem, 4vw, 4rem); color: white; }
.brand { display: flex; gap: .8rem; align-items: center; text-decoration: none; }
.brand img { width: 54px; height: 54px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: .25rem; opacity: .72; font-size: .69rem; letter-spacing: .04em; text-transform: uppercase; }
nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); align-items: center; }
nav a { font-size: .92rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--gold); }
.menu-button { display: none; border: 1px solid rgb(255 255 255 / 50%); padding: .55rem .8rem; color: white; background: transparent; border-radius: 999px; font: inherit; }

.hero { position: relative; min-height: min(900px, 96vh); display: flex; align-items: flex-end; padding: 10rem clamp(1.2rem, 7vw, 8rem) clamp(4rem, 9vw, 8rem); color: white; background: url("/assets/hero.jpg") center/cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 35 22 / 62%), rgb(6 35 22 / 72%)); }
.hero-content { position: relative; max-width: 1100px; }
.eyebrow { margin-bottom: 1rem; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy { max-width: 720px; margin-top: 1.5rem; color: rgb(255 255 255 / 86%); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid var(--forest); border-radius: 999px; color: white; background: var(--forest); font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--forest-dark); }
.button-light { border-color: rgb(255 255 255 / 70%); color: white; background: rgb(255 255 255 / 12%); backdrop-filter: blur(8px); }
.button-small { min-height: 38px; padding: .45rem .9rem; border-color: white; background: transparent; }
.button-outline { color: var(--forest); background: transparent; }
.button-outline:hover { color: white; }

.impact-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: -2rem auto 0; position: relative; z-index: 2; background: white; border-radius: 16px; box-shadow: var(--shadow); }
.impact-strip div { padding: 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.impact-strip div:last-child { border: 0; }
.impact-strip strong { display: block; color: var(--forest); font: 700 2rem "Playfair Display", Georgia, serif; }
.impact-strip span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.section { padding: clamp(4.5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 8rem); }
.split { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.lead { max-width: 700px; margin-top: 1.5rem; color: var(--muted); font-size: 1.12rem; }
.image-panel { min-height: 500px; margin: 0; overflow: hidden; border-radius: 45% 45% 1.5rem 1.5rem; background: var(--sage); box-shadow: var(--shadow); }
.image-panel img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; }
.pillars { display: grid; gap: .75rem; margin-top: 2rem; }
.pillar { padding: 1rem 0; border-top: 1px solid var(--line); }
.pillar strong { display: block; color: var(--forest); }
.pillar span { color: var(--muted); }

.section-tint { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading > p { max-width: 440px; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { overflow: hidden; background: white; border: 1px solid rgb(23 77 42 / 10%); border-radius: 18px; box-shadow: 0 10px 35px rgb(18 52 31 / 8%); }
.card-image { aspect-ratio: 4 / 2.7; background: var(--sage); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-image img { transform: scale(1.035); }
.card-image img[src="/assets/kiln-concept.webp"] {
  object-fit: contain;
  rotate: 90deg;
  scale: calc(2.7 / 4);
}
.card-body { padding: 1.35rem; }
.tag { display: inline-block; margin-bottom: .8rem; color: var(--leaf); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card p { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
.meta { margin-top: 1rem; color: var(--forest); font-size: .78rem; font-weight: 700; }
.featured-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-bottom: 1.25rem; }
.featured-project .card-image { aspect-ratio: 16 / 9; }
.featured-project .card-body { padding: clamp(1.35rem, 3vw, 3rem); }
.featured-project h3 { font-size: clamp(2rem, 4vw, 3.5rem); }
.featured-project a { display: inline-block; margin-top: 1rem; color: var(--forest); font-weight: 700; }

.workshop-list { border-top: 1px solid var(--line); }
.workshop { display: grid; grid-template-columns: 160px 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.workshop .category { color: var(--leaf); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.workshop p { max-width: 650px; color: var(--muted); }
.workshop .location { color: var(--muted); font-size: .85rem; text-align: right; }

.library-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  padding: .85rem clamp(1.2rem, 7vw, 8rem);
  border-bottom: 1px solid var(--line);
  color: var(--forest-dark);
  background: var(--paper);
}
.library-nav { flex-wrap: wrap; gap: 0 1rem; }
.library-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.library-nav a:hover, .library-nav a[aria-current="page"] {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: .3em;
}
.library-header .brand strong { color: var(--forest); }
.library-intro, .library-content { padding: clamp(2.75rem, 6vw, 6rem) clamp(1.2rem, 7vw, 8rem); }
.library-intro { background: var(--cream); }
.library-intro h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.library-intro .eyebrow { color: var(--forest); }
.library-intro p:last-child { max-width: 38rem; margin-top: 1rem; color: var(--muted); font-size: 1.15rem; }
.library-content h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.library-filter { margin-bottom: 1rem; }
.library-filter label { display: block; margin-bottom: .35rem; color: var(--forest-dark); font-weight: 700; }
.library-filter select { max-width: 100%; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--muted); border-radius: 8px; color: var(--ink); background: white; font: inherit; }
#library-status:not(:empty) { margin-bottom: 1rem; color: var(--muted); }
.library-workshop { max-width: 72rem; margin-bottom: 1rem; padding: clamp(1.2rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 18px; background: white; }
.library-workshop h3 { margin-bottom: .7rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.library-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.library-tags li { padding: .15rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--forest-dark); font-size: .85rem; }
.library-takeaway { margin: 1rem 0 1.5rem; padding: .9rem 1rem; border-inline-start: 3px solid var(--leaf); background: var(--sage); }
.library-takeaway strong { display: block; color: var(--forest-dark); }
.library-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.library-edition { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.library-edition h4 { margin: 0; color: var(--forest-dark); font-size: 1.1rem; }
.library-language { margin: .2rem 0 .55rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.library-drive-help { margin-block: .75rem 1rem; }
.library-drive-help summary { cursor: pointer; font-weight: 600; }
.library-drive-help p { margin-block: .5rem 0; }
.library-pending { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.library-downloads { margin-bottom: 0; padding-inline-start: 1.2rem; }
.library-downloads a { color: var(--forest); font-weight: 700; overflow-wrap: anywhere; }

.callout { margin: 0 clamp(1.2rem, 4vw, 4rem); padding-left: clamp(2rem, 5vw, 6rem); padding-right: clamp(2rem, 5vw, 6rem); display: flex; align-items: end; justify-content: space-between; gap: 2rem; color: white; background: var(--forest); border-radius: 24px; }
.callout p:not(.eyebrow) { max-width: 750px; margin-top: 1.5rem; color: rgb(255 255 255 / 75%); }
.callout > .button { flex-shrink: 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact > div > p:last-child { max-width: 600px; margin-top: 1.5rem; color: var(--muted); }
.contact-card { padding: 2rem; background: var(--cream); border-radius: 18px; }
.contact-card p { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-card span { color: var(--muted); }
#contact-email { overflow-wrap: anywhere; }
.contact-card .button { margin-top: 1.25rem; }

footer { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2rem clamp(1.2rem, 5vw, 5rem); border-top: 1px solid var(--line); color: var(--forest-dark); background: white; }
.brand-footer img { width: 46px; height: 46px; }
footer p { color: var(--muted); font-size: .82rem; }

@media (max-width: 1120px) {
  .menu-button { display: block; }
  .site-header .brand { margin-inline-end: auto; }
  #site-nav { display: none; position: absolute; top: 86px; right: 1rem; left: 1rem; padding: 1.25rem; flex-direction: column; align-items: stretch; border-radius: 14px; color: var(--ink); background: white; box-shadow: var(--shadow); }
  #site-nav.open { display: flex; }
  nav .button-small { color: white; background: var(--forest); }
}

@media (max-width: 880px) {
  .impact-strip { margin: 0; border-radius: 0; box-shadow: none; }
  .split, .contact { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .callout { align-items: start; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { padding: .9rem 1rem; }
  .brand span { display: none; }
  .library-header .brand span { display: flex; }
  .library-nav { width: 100%; gap: 0 1rem; }
  .hero { min-height: 760px; }
  .impact-strip { grid-template-columns: 1fr 1fr; }
  .impact-strip div:nth-child(2) { border-right: 0; }
  .impact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .image-panel, .image-panel img { min-height: 360px; }
  .card-grid { grid-template-columns: 1fr; }
  .featured-project { grid-template-columns: 1fr; }
  .workshop { grid-template-columns: 1fr; gap: .45rem; }
  .workshop .location { text-align: left; }
  .library-editions { grid-template-columns: 1fr; }
  .contact-card p { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.showcase-home .hero { min-height: clamp(600px, 82vh, 820px); align-items: center; justify-content: center; text-align: center; }
.showcase-home .hero h1 { max-width: 18ch; margin-inline: auto; font-size: clamp(3.1rem, 6.6vw, 5.75rem); text-wrap: balance; }
.showcase-home .hero-copy { max-width: 620px; margin-inline: auto; }
.showcase-home .hero .actions { justify-content: center; }
.showcase-home .section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.showcase-home .section-heading .eyebrow, .showcase-home #about .eyebrow,
.showcase-home #support .eyebrow { color: var(--forest); }
.showcase-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.showcase-stories a:not(.showcase-partner), .project-story-link {
  display: inline-block;
  margin-top: .9rem;
  color: var(--forest);
  font-weight: 700;
}
.showcase-topics { margin-top: 2rem; }
.showcase-topics summary { color: var(--forest); font-weight: 700; cursor: pointer; }
.showcase-topics .workshop-list { margin-top: .8rem; }
.showcase-home .contact-card #contact-description { display: block; color: var(--muted); }
.support-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.support-actions [hidden] { display: none; }
@media (max-width: 600px) {
  .showcase-home .hero { min-height: min(720px, 93svh); padding-block: 7rem 2.5rem; }
  .showcase-home .hero h1 { font-size: clamp(2.7rem, 10vw, 3.65rem); }
  .showcase-stories { grid-template-columns: 1fr; }
}

.showcase-home .impact-strip { background: var(--gold); }
.showcase-home .impact-strip div { border-color: rgb(21 61 42 / 25%); }
.showcase-home .impact-strip strong { color: var(--forest-dark); }
.showcase-partner {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  max-width: 100%;
  margin-top: 1rem;
  padding: .45rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.showcase-partner img { width: auto; height: auto; max-width: min(170px, 100%); max-height: 42px; object-fit: contain; }

.project-photo { margin: 0; }
.project-photo .photo-caption { padding: .6rem 1.35rem 0; }
.photo-caption, .card p.photo-caption { color: var(--muted); font-size: .8rem; }

.article-text { max-width: 65rem; margin-inline: auto; }
.article-text p + p { margin-top: 1rem; }
.article-text h2 { margin: 2rem 0 .65rem; font-size: clamp(1.3rem, 3vw, 1.85rem); }
.founder-portrait { float: inline-end; width: min(36%, 13rem); margin: 2rem 0 1rem; margin-inline-start: clamp(1rem, 4vw, 2rem); border-radius: 12px; }
.founder-link { margin-block-start: 1rem; }
.founder-link a { color: var(--forest-dark); text-underline-offset: .2em; }
.research-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: .75rem;
  padding: 0;
  margin-block: 1rem;
  list-style: none;
  clear: both;
}
.research-partners a {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .35rem;
  height: 100%;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--forest-dark);
  text-align: center;
  font-size: .8rem;
  line-height: 1.3;
}
.research-partners img { width: 100%; max-width: 12rem; height: 3.6rem; object-fit: contain; }
.article-text > p:first-child, .article-text > p:last-child { margin-block: 1rem; }
.article-text a, .editorial-list a { color: var(--forest); text-underline-offset: .15em; }
.article-text .editorial-note { padding: .85rem 1rem; border-inline-start: 3px solid var(--forest); background: var(--cream); }
.editorial-list .showcase-stories { margin-bottom: 2rem; }
.editorial-list article > a { display: inline-block; margin-top: .75rem; }
.resource-related { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.5rem; color: var(--forest); }
.resource-guide { margin-block: 0 2rem; padding-block: 1rem; border-block: 1px solid rgb(30 70 50 / 20%); }
.resource-guide h2 { margin-block: 0 .75rem; }
.resource-guide label { display: block; font-weight: 700; margin-block-end: .4rem; }
.resource-guide form > div { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.resource-guide input { flex: 1 1 15rem; min-width: 0; max-width: 34rem; width: 100%; padding: .65rem .8rem; border: 1px solid var(--forest); border-radius: .4rem; font: inherit; }
.resource-guide button { font: inherit; cursor: pointer; }
.resource-guide-topics:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.resource-guide-topics button { border: 1px solid var(--forest); border-radius: 999px; background: transparent; color: var(--forest); padding: .4rem .8rem; text-align: start; }
.resource-guide-topics button:hover { background: var(--forest); color: white; }
.resource-guide :focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.language-picker { position: relative; flex: none; }
.language-picker summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .7rem; border: 1px solid currentColor; border-radius: 999px; font-size: .9rem; font-weight: 600; list-style: none; cursor: pointer; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(45deg); }
.language-picker[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.language-globe { position: relative; display: inline-block; width: 1rem; height: 1rem; border: 1.5px solid currentColor; border-radius: 50%; }
.language-globe::before, .language-globe::after { content: ""; position: absolute; }
.language-globe::before { inset: -1px 25%; border-inline: 1px solid currentColor; border-radius: 50%; }
.language-globe::after { inset: calc(50% - .5px) 0 auto; border-top: 1px solid currentColor; }
.language-nav { position: absolute; z-index: 12; inset-block-start: calc(100% + .35rem); inset-inline-end: 0; display: grid; gap: 0; min-width: 8rem; padding: .25rem; color: var(--forest-dark); background: var(--paper); border: 1px solid var(--line); border-radius: .75rem; box-shadow: var(--shadow); }
.language-nav a { display: flex; align-items: center; min-height: 44px; padding: .25rem .65rem; border-radius: .5rem; }
.language-nav a:is(:hover, :focus-visible, [aria-current="true"]) { color: var(--forest-dark); background: var(--sage); }
@media (max-width: 600px) {
  .library-header .language-picker { margin-inline-start: auto; }
}

[dir="rtl"] :is(h1, h2, h3):lang(ar) { font-family: system-ui, sans-serif; letter-spacing: normal; line-height: 1.3; }
[dir="rtl"] :is(.eyebrow, .brand small):lang(ar) { letter-spacing: normal; }
.showcase-home .lead a { overflow-wrap: anywhere; }
