@font-face {
    font-family: 'Apple Garamond';
    src: url('/assets/fonts/AppleGaramond-Light.ttf') format('truetype');
    font-style: normal; font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'Geist';
    src: url('/assets/fonts/Geist-Regular.ttf') format('truetype');
    font-style: normal; font-weight: 400; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-dark: #4a7c3a;
    --green-mid:  #7ba852;
    --green-lt:   #d4e8a8;
    --bg:         #e8f0d0;
    --bg-card:    #f5f9ed;
    --text:       #2d3d1f;
    --text-soft:  #4a6035;
    --border:     rgba(74,124,58,.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
    color: var(--text);
    line-height: 1.6;
}

h1,h2,h3,h4 {
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    line-height: 1.15;
}

::selection      { background: #3d6832; color: #fff; }
::-moz-selection { background: #3d6832; color: #fff; }

.ph-duotone { --ph-icon-color-2: var(--green-mid); }

.nav-root {
    position: fixed; top: 1.6rem; right: 2rem;
    z-index: 200;
}
.nav-brand {
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    font-size: 1.5rem; font-weight: 700;
    color: white; text-decoration: none;
    mix-blend-mode: difference;
    display: inline-block; line-height: 1;
    user-select: none; cursor: pointer;
}
.nav-toggle {
    display: none; margin-left: .5rem;
    flex-direction: column; gap: 4px;
    cursor: pointer; background: none; border: none; padding: 3px;
    vertical-align: middle;
}
.nav-toggle span {
    display: block; width: 20px; height: 1.5px;
    background: white; mix-blend-mode: difference;
    transition: .25s;
}
.nav-drop {
    position: absolute; top: calc(100% + .4rem); right: 0;
    padding: .3rem 0;
    opacity: 0; transform: translateY(-5px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    text-align: right;
}
.nav-root:hover .nav-drop,
.nav-root:focus-within .nav-drop,
.nav-drop.open {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-drop a {
    display: block; padding: .28rem 0;
    text-decoration: none;
    font-family: 'Geist', system-ui, sans-serif;
    font-size: .85rem; letter-spacing: .04em; font-weight: 500;
    color: white; mix-blend-mode: difference;
    transition: opacity .15s; white-space: nowrap;
}
.nav-drop a:hover   { opacity: .65; }
.nav-drop a.current { font-weight: 700; }

#hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 44fr 56fr;
    gap: 0; padding: 0;
    overflow: hidden; position: relative;
}
.hero-left {
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem 5rem 5vw;
}
#hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700;
    color: var(--green-dark); filter: url(#inkBleed);
    letter-spacing: -.02em; margin-bottom: .5rem; line-height: 1.05;
}
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero-right {
    height: 100dvh; position: relative; overflow: visible;
}
.img-frame-outer {
    width: 100%; height: 100%;
    filter: drop-shadow(-8px 0 32px rgba(74,124,58,.18));
}
.img-frame {
    width: 100%; height: 100%;
    filter: url(#roughEdge);
}
.img-slot {
    width: 100%; height: 100%;
    background: #c8d8a0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .6rem; color: var(--text-soft);
    border-left: 2px dashed rgba(74,124,58,.3);
}
.img-slot i      { font-size: 2.8rem; color: var(--green-mid); }
.img-slot span   { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.img-slot img    { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--green-dark); color: var(--green-lt);
    padding: .72rem 1.8rem; border-radius: 7px; text-decoration: none;
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif; font-size: 1.1rem;
    filter: url(#inkBleed); border: 2px solid var(--green-dark);
    transition: background .2s, transform .15s; cursor: pointer;
}
.btn-primary:hover { background: #3a6230; transform: translateY(-2px); }
.btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent; color: var(--green-dark);
    padding: .72rem 1.8rem; border-radius: 7px; text-decoration: none;
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif; font-size: 1.1rem;
    filter: url(#inkBleed); border: 2px solid var(--green-dark);
    transition: background .2s, transform .15s; cursor: pointer;
}
.btn-ghost:hover { background: rgba(74,124,58,.1); transform: translateY(-2px); }

.page-header {
    padding: 9rem 5vw 3rem;
    max-width: 1200px; margin: 0 auto;
}
.page-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: var(--green-dark); filter: url(#inkBleed); margin-bottom: .4rem;
}
.page-subtitle {
    font-size: 1.05rem; color: var(--text-soft);
    max-width: 52ch; line-height: 1.7;
}

.section-wrap { padding: 4rem 5vw; }
.container    { max-width: 1200px; margin: 0 auto; }
.section-full { background: rgba(74,124,58,.04); }

.section-h {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--text); filter: url(#inkBleed); margin-bottom: .85rem;
}
.section-sub {
    font-size: 1rem; color: var(--text-soft);
    max-width: 55ch; line-height: 1.75; margin-bottom: 2.5rem;
}
.divider {
    width: 48px; height: 3px;
    background: var(--green-dark); margin: 0 0 1.6rem;
    filter: url(#inkBleed);
}

.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center; margin-bottom: 4rem;
}
.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    color: var(--text); filter: url(#inkBleed); margin-bottom: 1rem;
}
.about-text p { color: var(--text-soft); line-height: 1.8; margin-bottom: .85rem; }
.stats-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card {
    background: var(--green-dark); color: var(--green-lt);
    padding: 1.35rem; border-radius: 12px; text-align: center;
    filter: url(#paperTexture);
}
.stat-num {
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    font-size: 2.5rem; filter: url(#inkBleed); line-height: 1;
}
.stat-lbl { font-size: .8rem; opacity: .8; letter-spacing: .05em; margin-top: .3rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}
.value-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: 13px; padding: 1.6rem;
    filter: url(#paperTexture);
    box-shadow: 0 2px 8px rgba(74,124,58,.07);
    transition: transform .2s;
}
.value-card:hover { transform: translateY(-3px); }
.value-icon {
    width: 44px; height: 44px; background: var(--green-lt);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; margin-bottom: .9rem;
    font-size: 1.4rem; color: var(--green-dark);
}
.value-card h4 {
    font-size: 1.2rem; color: var(--green-dark);
    filter: url(#inkBleed); margin-bottom: .4rem;
}
.value-card p { font-size: .92rem; color: var(--text-soft); line-height: 1.65; }

.carousel-header {
    position: absolute; top: 4rem; left: 8vw;
    z-index: 2; pointer-events: none;
}
.carousel-header .page-title  { margin: 0; }
.carousel-wrapper {
    height: calc(8 * 100dvh);
    position: relative;
}
.carousel-sticky {
    position: sticky; top: 0;
    height: 100dvh; overflow: hidden;
}
.carousel-track {
    display: flex; height: 100%;
    will-change: transform;
}
.member-slide {
    width: 100vw; height: 100dvh; flex-shrink: 0;
    display: flex; align-items: center;
    gap: 5vw; padding: 12rem 6vw 4rem 8vw;
    background: var(--bg);
    position: relative;
}

.member-slide:nth-child(even) { background: #ecf3d4; }

.member-photo {
    flex-shrink: 0;
    width: min(32vw, 360px);
    height: calc(min(32vw, 360px) * 3 / 2);
}
.photo-slot {
    width: 100%; height: 100%;
    background: #cddfa6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    border-radius: 12px;
    border: 2px dashed rgba(74,124,58,.3);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .5rem;
    color: var(--text-soft);
    filter: url(#roughEdge);
    overflow: hidden;
}
.photo-slot i    { font-size: 2.2rem; color: var(--green-mid); }
.photo-slot span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.photo-slot img  { width: 100%; height: 100%; object-fit: cover; display: block; }

.member-info   { flex: 1; min-width: 0; }
.member-name {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text); filter: url(#inkBleed); margin-bottom: .2rem;
}
.member-role {
    font-size: .82rem; color: var(--green-mid);
    text-transform: uppercase; letter-spacing: .07em;
    font-weight: 500; margin-bottom: .1rem;
}
.member-age    { font-size: .95rem; color: var(--text-soft); }
.member-divider {
    height: 1.5px; background: var(--border);
    margin: 1rem 0; filter: url(#inkBleed);
}
.member-bio    { font-size: 1rem; color: var(--text-soft); line-height: 1.8; }
.member-bio-placeholder { color: rgba(74,96,53,.35); font-style: italic; font-size: .9rem; }
.member-socials {
    display: flex; gap: .9rem; margin-top: 1.1rem;
}
.member-socials a {
    font-size: 1.35rem; color: var(--green-mid);
    transition: color .18s, transform .18s;
    display: inline-flex;
}
.member-socials a:hover { color: var(--green-dark); transform: translateY(-2px); }

.carousel-progress {
    position: absolute; bottom: 2.5rem; left: 8vw;
    display: flex; align-items: baseline; gap: .4rem;
    pointer-events: none;
}
.carousel-idx {
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    font-size: 3.5rem; line-height: 1;
    color: var(--green-dark); filter: url(#inkBleed);
}
.carousel-of  { font-size: 1rem; color: var(--text-soft); opacity: .5; }

.scroll-hint {
    position: absolute; bottom: 2.8rem; right: 6vw;
    font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-soft); opacity: .5;
    display: flex; align-items: center; gap: .4rem;
    pointer-events: none;
    animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .5; } 50% { opacity: .2; } }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
}
.project-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: 13px; overflow: hidden;
    filter: url(#paperTexture);
    box-shadow: 0 2px 8px rgba(74,124,58,.08);
    transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(74,124,58,.15); }
.project-stripe      { height: 9px; background: var(--green-dark); }
.project-stripe.past { background: var(--green-mid); }
.project-body  { padding: 1.6rem; }
.project-eye {
    font-size: .73rem; letter-spacing: .13em;
    text-transform: uppercase; color: var(--green-mid);
    font-weight: 600; margin-bottom: .45rem;
}
.project-card h3 { font-size: 1.4rem; color: var(--text); filter: url(#inkBleed); margin-bottom: .7rem; }
.project-card p  { font-size: .93rem; color: var(--text-soft); line-height: 1.7; margin-bottom: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag {
    display: inline-block; background: rgba(74,124,58,.11);
    color: var(--green-dark); padding: .18rem .65rem;
    border-radius: 999px; font-size: .76rem; font-weight: 500;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 1.6rem;
}
.res-group {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: 13px; padding: 1.6rem;
    filter: url(#paperTexture);
    box-shadow: 0 2px 8px rgba(74,124,58,.07);
}
.res-group h3 {
    font-size: 1.15rem; color: var(--green-dark);
    filter: url(#inkBleed); margin-bottom: 1rem;
    padding-bottom: .65rem; border-bottom: 1.5px solid var(--border);
}
.res-link {
    display: flex; align-items: center; gap: .7rem;
    padding: .58rem 0; text-decoration: none; color: var(--text);
    border-bottom: 1px solid rgba(74,124,58,.09);
    transition: color .18s, transform .15s;
}
.res-link:last-child { border-bottom: none; }
.res-link:hover { color: var(--green-dark); transform: translateX(3px); }
.res-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--green-lt); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; color: var(--green-dark);
}
.res-text strong { display: block; font-size: .87rem; font-weight: 600; }
.res-text span   { font-size: .77rem; color: var(--text-soft); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.6rem;
}
.blog-card {
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: 13px; overflow: hidden;
    filter: url(#paperTexture);
    box-shadow: 0 2px 8px rgba(74,124,58,.07);
    transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(74,124,58,.15); }
.blog-card-body  { padding: 1.7rem; }
.blog-date {
    font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--green-mid); font-weight: 600; margin-bottom: .5rem;
}
.blog-card h3 {
    font-size: 1.35rem; color: var(--text);
    filter: url(#inkBleed); margin-bottom: .55rem;
}
.blog-desc { font-size: .92rem; color: var(--text-soft); line-height: 1.65; margin-bottom: 1rem; }
.blog-read-more {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .84rem; font-weight: 600;
    color: var(--green-dark); text-decoration: none;
    transition: gap .15s;
}
.blog-read-more:hover { gap: .6rem; }
.blog-empty {
    text-align: center; color: var(--text-soft);
    font-size: 1.05rem; padding: 4rem 0;
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    font-size: 1.3rem;
}

.post-date {
    font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--green-mid); font-weight: 600; margin-bottom: .4rem;
}
.post-back {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .84rem; font-weight: 600; color: var(--green-dark);
    text-decoration: none; margin-bottom: 2rem;
    transition: gap .15s;
}
.post-back:hover { gap: .65rem; }
.post-content {
    max-width: 72ch;
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text); filter: url(#inkBleed);
    margin: 2rem 0 .6rem;
}
.post-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.post-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.post-content h3 { font-size: 1.3rem; }
.post-content p  { color: var(--text-soft); line-height: 1.85; margin-bottom: 1.1rem; }
.post-content a  { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-content img {
    max-width: 100%; border-radius: 10px;
    filter: url(#roughEdge); margin: 1.2rem 0;
    display: block;
}
.post-content ul,
.post-content ol {
    padding-left: 1.5rem; margin-bottom: 1.1rem; color: var(--text-soft);
    line-height: 1.85;
}
.post-content li { margin-bottom: .3rem; }
.post-content blockquote {
    border-left: 3px solid var(--green-mid);
    margin: 1.4rem 0; padding: .6rem 1.2rem;
    color: var(--text-soft); font-style: italic;
    background: rgba(74,124,58,.05); border-radius: 0 8px 8px 0;
}
.post-content code {
    background: rgba(74,124,58,.1); color: var(--green-dark);
    padding: .15em .4em; border-radius: 4px;
    font-size: .9em; font-family: monospace;
}
.post-content pre {
    background: var(--green-dark); color: var(--green-lt);
    padding: 1.2rem 1.4rem; border-radius: 10px;
    overflow-x: auto; margin-bottom: 1.2rem;
}
.post-content pre code {
    background: none; color: inherit;
    padding: 0; font-size: .88rem;
}
.post-content hr {
    border: none; border-top: 1.5px solid var(--border);
    margin: 2rem 0;
}

footer {
    background: var(--green-dark); color: rgba(212,232,168,.9);
    padding: 2.5rem 5vw; text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    font-size: 1.9rem; color: var(--green-lt);
    filter: url(#inkBleed); margin-bottom: 1.2rem;
}
.footer-hr { width: 48px; height: 2px; background: rgba(212,232,168,.22); margin: 0 auto 1.4rem; }
.footer-social {
    display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.3rem;
}
.footer-social a {
    color: rgba(212,232,168,.7); text-decoration: none;
    font-size: 1.4rem; transition: color .2s, transform .15s;
}
.footer-social a:hover { color: var(--green-lt); transform: translateY(-2px); }
.footer-links {
    display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
}
.footer-links a { color: rgba(212,232,168,.6); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--green-lt); }

.not-found {
    min-height: 80dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 4rem 5vw;
    gap: 1rem;
}
.not-found-code {
    font-family: 'Apple Garamond', 'Crimson Text', Georgia, serif;
    font-size: clamp(5rem, 18vw, 12rem); line-height: 1;
    color: var(--green-dark); filter: url(#inkBleed);
    opacity: .18; margin-bottom: -.5rem;
}
.not-found-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text); filter: url(#inkBleed); margin: 0;
}
.not-found-sub {
    font-size: 1rem; color: var(--text-soft);
    max-width: 44ch; line-height: 1.7; margin-bottom: .5rem;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    #hero { grid-template-columns: 1fr; grid-template-rows: auto 55vw; }
    .hero-left { padding: 7rem 5vw 2rem; }
    .hero-right { height: 55vw; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .section-wrap { padding: 3.5rem 5vw; }
    .page-header  { padding: 7rem 5vw 2.5rem; }
}
@media (max-width: 640px) {
    .nav-root   { top: 1.2rem; right: 1.25rem; }
    .nav-toggle { display: inline-flex; }
    
    .nav-root:hover .nav-drop { opacity: 0; pointer-events: none; }
    .nav-drop.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .member-slide { flex-direction: column; gap: 1.5rem; padding: 5rem 5vw 5rem; align-items: flex-start; }
    .member-photo { width: 52vw; height: calc(52vw * 3 / 2); }
    .hero-btns  { flex-direction: column; align-items: flex-start; }
    .section-wrap { padding: 2.75rem 5vw; }
}
