/* Applied Alchemy — site styles. Loaded after modern-normalize.css.
   Breakpoints: tablet ≤1024px, mobile ≤767px. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #000;
  --muted: #6b6b6b;       /* body-size secondary text (5.3:1 on white) */
  --muted-large: #767676; /* grey half of large statements */
  --ground: #fff;
  --panel: #f5f5f5;
  --panel-hover: #e8e8e8;
  --rule: rgb(0 0 0 / 12%);
  --radius: 8px;
  --wrap: 1120px;
  --gutter: 24px;
  --font: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M1 10L10 1M3 1h7v7' stroke='%23000' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* the full-width rules are 100vw wide, which includes the scrollbar */
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
p a { text-decoration: underline; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ground); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 0; color: var(--ground); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.muted { color: var(--muted); }

/* Links with the ↗ arrow, and the grey button */
.arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.arrow::after { content: ""; width: 11px; height: 11px; flex: none; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.button { background: var(--panel); border-radius: var(--radius); padding: 0 16px; }
.button:hover { background: var(--panel-hover); color: var(--ink); }

/* Header */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; position: relative; }
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px 24px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav a.button { color: var(--ink); }

.menu { display: none; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--panel); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: var(--ground); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; display: flex; flex-direction: column; }
.menu__panel a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); color: var(--muted); }
.menu__panel a:last-child { border-bottom: 0; }
.menu__panel a[aria-current="page"], .menu__panel a.arrow { color: var(--ink); }

/* Sections: thin top rule, label on the left, content on the right */
/* The thin rule above each section runs the full width of the window; the content stays in the column. */
.section, .projects__head, .site-footer__legal { position: relative; }
.section::before, .projects__head::before, .site-footer__legal::before { content: ""; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; border-top: 1px solid var(--rule); pointer-events: none; }
.section { max-width: var(--wrap); margin: 0 auto; }
.section__inner { display: flex; flex-wrap: wrap; gap: 32px 0; padding: 80px var(--gutter); }
.section__label { flex: 1 1 300px; min-width: 0; }
.section__body { flex: 2 1 560px; min-width: 0; }
.section__body--stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section__body--stack > p:not(.statement) { max-width: 620px; }

.label { display: flex; gap: 8px; align-items: flex-start; }
.label::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 5px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; }
.label h2, .label__title { font-size: 16px; font-weight: 400; }
.label p { color: var(--muted); margin-top: 2px; }

.statement { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 400; }
.statement span { color: var(--muted-large); }
.statement span.block { display: block; }
.hero .statement { max-width: 600px; }
/* Home page headline: larger, and aligned with the logo instead of the right-hand column. */
.statement--lead { font-size: clamp(40px, 5.1vw, 60px); }
.hero .statement--lead { max-width: 900px; }

/* Numbered rows (Our Approach, Capabilities) and key/value rows */
.rows > li { display: flex; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.rows > li:first-child { padding-top: 0; }
.rows__num { color: var(--muted); }
.rows h3, .grid h3, .kv h3 { font-size: 16px; font-weight: 400; }
.rows p, .grid p { color: var(--muted); margin-top: 2px; }
.rows .seen { margin-top: 6px; font-size: 14px; }

.kv > li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.kv > li:first-child { padding-top: 0; }
.kv h3 { flex: 1 1 200px; }
.kv p { flex: 2 1 320px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }

.bar { margin-top: 24px; background: var(--panel); border-radius: var(--radius); padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.bar span { color: var(--muted); }

/* Featured projects slider */
.projects { padding-bottom: 64px; }
.projects__head { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter) 0; box-sizing: border-box; }
.slider { position: relative; --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); --card: min(420px, 80vw); }
.slider__track { display: flex; gap: 24px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 32px; padding: 0 var(--edge) 16px; scroll-padding-left: var(--edge); scrollbar-width: thin; scrollbar-color: #c4c4c4 transparent; }
.card { flex: 0 0 var(--card); scroll-snap-align: start; }
.card__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--rule); box-sizing: border-box; }
.card__title { font-size: 16px; font-weight: 400; margin-top: 12px; }
.card__tag { color: var(--muted); margin-top: 2px; }
.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; white-space: pre; color: var(--muted); }
.more[open] summary::after { content: " –"; }
.more p { margin-top: 10px; }
.more .credits p { color: var(--muted); }

.slider__btn { display: none; position: absolute; z-index: 2; top: calc(32px + var(--card) / 3 - 20px); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--ground); color: var(--ink); box-shadow: 0 2px 10px rgb(0 0 0 / 16%); cursor: pointer; align-items: center; justify-content: center; padding: 0; opacity: 0; transition: opacity .15s; }
.js .slider__btn { display: inline-flex; }
.slider__btn[hidden] { display: none; }
.slider__btn:hover { background: var(--panel); }
.slider:hover .slider__btn, .slider__btn:focus-visible { opacity: 1; }
@media (hover: none) { .slider__btn { opacity: 1; } }
.slider__btn--prev { left: calc(var(--edge) - 20px); }
.slider__btn--next { right: 8px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; align-items: start; border-top: 1px solid var(--rule); }
.member { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.member summary { display: flex; flex-direction: column; gap: 2px; padding: 20px 0 8px; cursor: pointer; list-style: none; }
.member summary::-webkit-details-marker { display: none; }
.member__photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.member__name::after { content: " +"; white-space: pre; color: var(--muted); }
.member details[open] .member__name::after { content: " –"; }
.member__role { color: var(--muted); }
.member__bio p { color: var(--muted); margin-top: 10px; }
.team-intro { max-width: 620px; margin-bottom: 24px; }

/* Footer */
.site-footer__inner { padding-top: 56px; padding-bottom: 56px; }
.site-footer__logo img { height: 36px; width: auto; display: block; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.site-footer__cols > * { display: flex; flex-direction: column; gap: 6px; }
.site-footer__cols a { color: var(--muted); }
.site-footer__cols a:hover { color: var(--ink); }
.site-footer__legal { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter); box-sizing: border-box; font-size: 15px; color: var(--muted); }

@media (max-width: 767px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .section__inner { padding-top: 56px; padding-bottom: 56px; }
  .projects__head { padding-top: 56px; }
  .hero .section__label, .cta .section__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__btn { transition: none; }
}
