/* Leb Lango AI - site styles. Colours, fonts and spacing are set once here, in :root. */
/* Fonts: Source Serif 4 (headings) and Source Sans 3 (text), by Adobe, SIL Open Font License.
   Hosted with the site; the browser only downloads the parts a page needs. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2-variations'), url(assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2-variations'), url(assets/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-serif-4-latin-ext-wght-italic.woff2) format('woff2-variations'), url(assets/fonts/source-serif-4-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-serif-4-latin-wght-italic.woff2) format('woff2-variations'), url(assets/fonts/source-serif-4-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2-variations'), url(assets/fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-wght-normal.woff2) format('woff2-variations'), url(assets/fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-ext-wght-italic.woff2) format('woff2-variations'), url(assets/fonts/source-sans-3-latin-ext-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-wght-italic.woff2) format('woff2-variations'), url(assets/fonts/source-sans-3-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #10231b;
  --ink-2: #183328;
  --ink-soft: #2c4238;
  --muted: #5b6a62;
  --paper: #f8f5ee;
  --paper-2: #f0eadd;
  --white: #fffdf9;
  --green: #1d5a43;
  --green-2: #2f7a5c;
  --green-soft: #dcebe2;
  --ochre: #c27a24;
  --ochre-2: #e09b45;
  --ochre-soft: #f5e4c8;
  --line: #e2d9c7;
  --line-soft: #ece5d6;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 27, .06);
  --shadow: 0 1px 2px rgba(16, 35, 27, .05), 0 10px 30px -8px rgba(16, 35, 27, .12);
  --shadow-lg: 0 2px 6px rgba(16, 35, 27, .06), 0 30px 70px -20px rgba(16, 35, 27, .28);
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
::selection { background: var(--ochre-soft); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .55em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.9rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.95rem); letter-spacing: -.02em; }
h3 { font-size: 1.28rem; }
h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1.8em; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ochre); margin-bottom: 1em; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 0; }

/* ---------- icons (inline SVG, drawn with lines) ---------- */
.ico {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none;
  background: var(--green-soft); color: var(--green);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: auto; height: auto; background: none; border-radius: 0; }
.ico-sm svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 26px; border-radius: 999px;
  font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 90, 67, .6); }
.btn-primary:hover { background: var(--ink); box-shadow: 0 12px 26px -10px rgba(16, 35, 27, .7); }
.btn-ghost { border-color: rgba(16, 35, 27, .22); color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: var(--ochre); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ochre { background: var(--ochre); color: var(--ink); }
.btn-ochre:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 238, .78);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px -18px rgba(16, 35, 27, .35); background: rgba(248, 245, 238, .9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
.brand-logo { height: 40px; width: auto; }
.footer-brand .brand-logo { height: 36px; padding: 5px 7px; box-sizing: content-box; border-radius: 10px; background: #fff; }
.brand strong { color: var(--green); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink-soft); font-size: .94rem; font-weight: 550; transition: color .2s ease, background .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: #fff; margin-left: 10px; padding: 9px 20px; }
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover, .nav-links .nav-cta.active { background: var(--green); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: 76px 0 104px; overflow: hidden;
  background:
    radial-gradient(900px 520px at 90% 0%, rgba(194, 122, 36, .16), transparent 60%),
    radial-gradient(760px 520px at 0% 100%, rgba(29, 90, 67, .12), transparent 60%);
}
.hero::after { /* subtle woven pattern */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 24 L12 12 L24 24 L36 12 L48 24' fill='none' stroke='%23c27a24' stroke-opacity='.12' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.12fr; gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 16px 7px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 4px rgba(194, 122, 36, .18); }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: italic; color: var(--green); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 34em; }
.hero-sub { color: var(--muted); max-width: 36em; }

.hero-visual { position: relative; }
.hero-visual::before { /* offset frame behind the image */
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 28px;
  border: 1.5px solid rgba(194, 122, 36, .45); background: linear-gradient(135deg, rgba(194, 122, 36, .08), rgba(29, 90, 67, .08));
}
.hero-image { position: relative; margin: 0; }
.hero-image img { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow-lg); }
.hero-chip {
  position: absolute; left: -26px; bottom: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  border-radius: 16px; background: rgba(255, 253, 249, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease);
}
.hero-chip:hover { transform: translateY(-3px); }
.hero-chip .ico-sm { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; }
.hero-chip strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.2; }
.hero-chip small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #e9efe9; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 100% 0%, rgba(194, 122, 36, .16), transparent 60%),
              radial-gradient(600px 420px at 0% 100%, rgba(47, 122, 92, .3), transparent 60%);
}
.section-dark > .wrap { position: relative; }
.section-dark h2 { color: #fff; }
.section-dark h4 { color: #9fb5aa; }
.section-dark .prose p { color: #cfdad3; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.prose p { color: var(--ink-soft); font-size: 1.06rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.about-image { position: relative; margin: 0; isolation: isolate; }
.about-image::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 45%; height: 55%; z-index: -1; border-radius: 24px;
  background: repeating-linear-gradient(45deg, rgba(194, 122, 36, .22) 0 2px, transparent 2px 10px);
}
.about-image img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 80px; }
.pillar {
  padding: 32px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ico { margin-bottom: 20px; }
.pillar:nth-child(2) .ico { background: var(--ochre-soft); color: #8a5512; }
.pillar:nth-child(3) .ico { background: var(--ink); color: #fff; }
.pillar p { color: var(--muted); margin: 0; }

/* what we do */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.card {
  position: relative; grid-column: span 2; background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--line-soft); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.card::before { /* accent line that grows on hover */
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--ochre)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:nth-child(4), .card:nth-child(5) { grid-column: span 3; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ico { margin-bottom: 22px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- work ---------- */
.feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 52px; padding: 52px;
  background: var(--white); border-radius: 28px; border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--green), var(--ochre)); }
.feature h3 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin-top: 16px; margin-bottom: .2em; }
.feature .sub { color: var(--green); font-weight: 650; margin-bottom: 1.3em; }
.feature-main p:not(.sub) { color: var(--ink-soft); }
.feature-side { border-left: 1px solid var(--line-soft); padding-left: 44px; }
.feature-side h4:first-child { margin-top: 4px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; background: var(--ochre-soft); color: #7a4a10;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.status-done { background: var(--green-soft); color: var(--green); }
.status-done::before { background: var(--green-2); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; padding: 6px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.tags-sm li { font-size: .78rem; padding: 4px 10px; }
.tags-dark li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e3ebe5; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 32px; color: var(--ink-soft); font-size: .97rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.project {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .25s var(--ease), box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.project h3 { margin-bottom: .45em; }
.project p { color: var(--muted); font-size: .97rem; flex: 1; }
.project-link { margin-top: 20px; font-weight: 650; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.project-link .arrow { transition: transform .2s var(--ease); }
.project-link:hover .arrow { transform: translateX(4px); }

/* ---------- research ---------- */
.research-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.paper-card {
  padding: 40px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
}
.paper-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.25; margin-top: 18px; }
.paper-meta { color: #9fb5aa; margin: 0 0 1.6em; }
.award {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px;
  background: rgba(194, 122, 36, .18); color: #f1c98d; font-weight: 700; font-size: .86rem; border: 1px solid rgba(241, 201, 141, .25);
}
.award::before { content: "\2605"; color: var(--ochre-2); }

/* ---------- values ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.values article {
  padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-soft); background: var(--white);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.values article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.values .ico { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; background: var(--ochre-soft); color: #8a5512; }
.values .ico svg { width: 22px; height: 22px; }
.values h3 { font-size: 1.12rem; }
.values p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.member {
  display: grid; grid-template-columns: 200px 1fr; align-items: start; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s var(--ease);
}
.member:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.member .photo {
  aspect-ratio: 4 / 5; margin: 22px 0 22px 22px; border-radius: 14px;
  background: linear-gradient(160deg, var(--green), var(--ink)); display: grid; place-items: center; overflow: hidden;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.member .initials { font-family: var(--serif); font-size: 3.2rem; color: rgba(255, 255, 255, .85); }
.member .info { padding: 26px 28px 28px; }
.member h3 { font-size: 1.32rem; margin-bottom: .2em; }
.member .role { color: var(--ochre); font-weight: 650; font-size: .92rem; margin-bottom: .9em; }
.member .bio { color: var(--muted); font-size: .94rem; line-height: 1.65; margin: 0; }
.member .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.member .links a {
  font-size: .82rem; font-weight: 650; text-decoration: none; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft); transition: all .2s ease;
}
.member .links a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- collaborate ---------- */
.collab {
  position: relative; overflow: hidden; max-width: none; text-align: center; padding: 72px 48px; border-radius: 32px;
  background: linear-gradient(135deg, var(--white), var(--ochre-soft));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.collab::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 24 L12 12 L24 24 L36 12 L48 24' fill='none' stroke='%231d5a43' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E");
}
.collab > * { position: relative; max-width: 780px; margin-left: auto; margin-right: auto; }
.collab .eyebrow { justify-content: center; }
.collab .eyebrow::before { display: none; }
.collab p { color: var(--ink-soft); font-size: 1.08rem; }
.collab .btn { margin-top: 1.2rem; }

/* ---------- contact ---------- */
.contact-section { background: var(--paper-2); }
.contact-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 64px; border-radius: 28px; color: #e9efe9;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(194, 122, 36, .22), transparent 60%),
    radial-gradient(520px 420px at 0% 100%, rgba(47, 122, 92, .35), transparent 60%),
    var(--ink);
  box-shadow: 0 30px 80px -30px rgba(16, 35, 27, .55);
}
.contact-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M0 24 L12 12 L24 24 L36 12 L48 24' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E");
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-intro h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .45em; }
.contact-lead { color: #cfdad3; font-size: 1.1rem; max-width: 34em; }
.contact-who-label { margin: 1.6em 0 .6em; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb5aa; }
.contact-who { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-who li { padding: 6px 13px; border-radius: 999px; font-size: .88rem; color: #e3ebe5; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn-whatsapp { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-whatsapp svg { color: #4ade80; }
.btn-whatsapp:hover { background: #fff; color: var(--ink); }
.btn-whatsapp:hover svg { color: #16a34a; }
.contact-cards { display: grid; gap: 14px; }
.ccard {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ccard:hover { border-color: rgba(241, 201, 141, .5); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.ccard-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(194, 122, 36, .2); color: #f1c98d; }
.ccard-icon svg { width: 24px; height: 24px; }
.ccard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccard-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb5aa; }
.ccard-value { font-family: var(--serif); font-size: 1.22rem; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.ccard-value:hover { color: #f1c98d; }
.ccard-action {
  font: inherit; font-size: .86rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.ccard-action:hover { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }
.ccard-action.copied { background: #4ade80; border-color: #4ade80; color: var(--ink); }
.ccard-socials { display: block; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.social {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px;
  color: #e3ebe5; text-decoration: none; font-size: .88rem; font-weight: 600; text-align: center; line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social svg { width: 26px; height: 26px; }
.social:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c8c0; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand strong { color: var(--ochre-2); }
.footer-brand p { margin: 0 0 .8em; }
.footer-tag { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-top: 1.2em !important; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; margin: 4px 0 6px; }
.footer-col a { color: #b9c8c0; text-decoration: none; transition: color .2s ease; width: fit-content; }
.footer-col a:hover { color: #f1c98d; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #b9c8c0; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 18px 18px; display: none;
    box-shadow: 0 20px 30px -20px rgba(16, 35, 27, .3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: var(--paper-2); }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }
  .hero-grid, .split, .feature, .about-grid, .research-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-bottom: 96px; }
  .hero-visual { max-width: 680px; }
  .feature-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 30px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .card:nth-child(5) { grid-column: span 2; }
  .projects, .trio { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; gap: 36px; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 44px 0 80px; }
  .hero-visual::before { inset: 14px -8px -10px 14px; border-radius: 22px; }
  .hero-image img { border-radius: 20px; }
  .hero-chip { left: 12px; bottom: -28px; padding: 10px 14px 10px 10px; }
  .actions .btn { flex: 1 1 auto; }
  .about-image::after { right: -8px; bottom: -10px; }
  .trio { margin-top: 56px; }
  .cards, .values { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: span 1; }
  .feature { padding: 32px 24px; border-radius: 22px; }
  .paper-card { padding: 28px 22px; }
  .collab { padding: 52px 22px; border-radius: 24px; }
  .member { grid-template-columns: 1fr; }
  .member .photo { aspect-ratio: 1 / 1; margin: 0; border-radius: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .contact-panel { padding: 34px 20px; border-radius: 22px; }
  .ccard { grid-template-columns: 44px 1fr; padding: 16px; }
  .ccard-icon { width: 44px; height: 44px; }
  .ccard-value { font-size: 1.05rem; overflow-wrap: normal; }
  .ccard-action { grid-column: 2; justify-self: start; padding: 6px 14px; }
  .social { padding: 14px 4px; font-size: .8rem; }
  .contact-ctas .btn { width: 100%; }
}
