/* Homepage – monochrome grotesk layout with a single Envisionar-blue accent */
@font-face {
  font-family: "Inter Tight";
  src: url("InterTight.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #fff;
  --soft: #f1f1f1;
  --line: #d8d8d8;
  --ghost: #ececec;
  --accent: #0a00e9;      /* Envisionar blue */
  --accent-lt: #8fa0ff;   /* Envisionar blue for dark backgrounds */
  --gutter: 16px;
  --col: 160px;
  --maxw: 1120px;
  --mega: clamp(3.25rem, 9.2vw, 8.5rem);
  --h2: clamp(2.75rem, 7vw, 6.5rem);
  --tight: -0.055em;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- chrome ---------- */
.mark {
  position: fixed; top: 16px; left: var(--gutter); z-index: 50;
  width: 16px; height: 16px; background: var(--accent);
  transition: transform .3s;
}
.mark:hover { transform: rotate(90deg); }
.menu-btn {
  position: fixed; top: 16px; right: var(--gutter); z-index: 60;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; letter-spacing: -0.02em;
  padding: 6px 12px 7px; border-radius: 99px;
  transition: background .2s;
}
.menu-btn:hover { background: var(--accent); }

.ghost {
  position: fixed; bottom: 4px; z-index: 0; pointer-events: none;
  font-weight: 700; letter-spacing: -0.07em; line-height: .8;
  font-size: clamp(2rem, 3.6vw, 3.6rem); color: var(--ghost);
  user-select: none;
}
.ghost.l { left: var(--gutter); }
.ghost.r { right: var(--gutter); }

main, footer { position: relative; z-index: 1; }

.overlay {
  position: fixed; inset: 0; z-index: 55; background: var(--paper);
  padding: 72px var(--gutter) 24px; overflow-y: auto;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .55s cubic-bezier(.7, 0, .2, 1), visibility 0s .55s;
}
.overlay.open { transform: none; visibility: visible; transition-delay: 0s; }
.overlay-in { max-width: var(--maxw); margin: 0 auto; }
.overlay ol { list-style: none; margin: 0; padding: 0; }
.overlay li a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2rem, min(6vw, 7.4vh), 4.8rem); font-weight: 700; letter-spacing: var(--tight); line-height: 1;
  padding: .12em 0; border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .3s;
}
.overlay li a sup { font-size: 14px; letter-spacing: 0; font-weight: 500; color: #777; }
.overlay li a:hover { color: var(--accent); padding-left: .3em; }
.overlay .more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; }
.overlay .more a { border-bottom: 1px solid currentColor; }
.overlay .more a:hover { color: var(--accent); }

/* ---------- layout primitives ---------- */
.frame { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.cols {
  display: grid; grid-template-columns: var(--col) 1px minmax(0, 1fr);
  column-gap: var(--gutter);
}
.rule { background: var(--ink); }
.label { align-self: end; font-weight: 700; }
.kicker { font-weight: 700; display: flex; gap: 10px; align-items: baseline; margin-bottom: 20px; }
.kicker i { font-style: normal; color: #777; }
.dark .kicker i { color: #8a8a8a; }
.mega { font-size: var(--mega); line-height: .88; letter-spacing: var(--tight); }
.h2 { font-size: var(--h2); line-height: .86; letter-spacing: var(--tight); }
.line { display: block; }
.i1 { padding-left: calc(var(--col) + var(--gutter) * 2 + 1px); }
.i2 { padding-left: calc(var(--col) + var(--gutter) * 2 + 1px + 140px); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 9px 16px 10px; border-radius: 99px;
  font-weight: 700; transition: background .2s, transform .2s;
}
.pill:hover { background: var(--accent); transform: translateY(-2px); }
.pill.ghosted { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.pill.ghosted:hover { background: var(--accent); color: #fff; box-shadow: none; }
.arrow { display: inline-block; transition: transform .25s; }
a:hover > .arrow, .pill:hover .arrow { transform: translate(3px, -3px); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding-top: 16px; padding-bottom: 32px; }
.hero .cols { min-height: calc(100svh - 48px); grid-template-rows: auto 1fr auto; }
.blob {
  width: 96px; height: 160px; overflow: hidden;
  border-radius: 46% 54% 42% 58% / 34% 38% 62% 66%;
  background: var(--ink);
}
.blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.15); transition: filter .4s; }
.blob:hover img { filter: none; }
.hero .rule { grid-row: 1 / span 3; grid-column: 2; }
.hero .side { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; justify-content: space-between; }
.hero .top { grid-column: 3; grid-row: 1; font-weight: 700; }
.hero .name { grid-column: 3; grid-row: 3; align-self: end; }
.hero .name h1 { font-size: var(--mega); line-height: .88; letter-spacing: var(--tight); }

.statement { padding-block: 24px 72px; }
.statement .mega { padding: 0; }
.lede { padding: 32px 0 0 calc(var(--col) + var(--gutter) + 1px + var(--gutter)); max-width: 620px; font-weight: 700; font-size: 15px; line-height: 1.15; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gutter); margin-top: 96px; }
.tile { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.08); }

/* ---------- studio (dark) ---------- */
.dark { background: #0e0e0e; color: #fff; }
.studio { padding: 96px 0 104px; }
.studio .cols { row-gap: 0; }
.studio-head { grid-column: 1 / -1; margin-bottom: 40px; }
.studio-head .h2 span { display: block; }
.studio-head .h2 em { font-style: normal; color: var(--accent-lt); }
.studio .side { grid-column: 1; }
.studio .body { grid-column: 3; }
.studio .tag { font-weight: 700; margin-bottom: 20px; color: var(--accent-lt); }
.studio .intro { font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; max-width: 640px; }
.studio .shot { margin: 40px 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.studio .shot img { width: 100%; height: 100%; object-fit: cover; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid #333; counter-reset: s; }
.svc li { border-bottom: 1px solid #333; }
.svc a, .svc div {
  display: grid; grid-template-columns: 36px minmax(0, 1.1fr) minmax(0, 1.6fr) 24px; gap: var(--gutter);
  align-items: baseline; padding: 14px 0; transition: color .2s, padding-left .3s;
}
.svc b { font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -0.045em; line-height: 1; }
.svc span { color: #a9a9a9; }
.svc small { font-size: 12px; color: #777; }
.svc a:hover { color: var(--accent-lt); padding-left: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.studio .pill { background: #fff; color: var(--ink); }
.studio .pill:hover { background: var(--accent); color: #fff; }
.studio .pill.ghosted { background: transparent; color: #fff; }
.studio .facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; color: #a9a9a9; }
.studio .facts a:hover { color: var(--accent-lt); }
.studio .facts b { color: #fff; }
.book {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid #333;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end;
}
.book h3 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); letter-spacing: var(--tight); line-height: .95; }
.book p { color: #a9a9a9; margin-top: 8px; max-width: 520px; }

/* ---------- work strip ---------- */
.work { padding: 96px 0 40px; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--gutter); margin-bottom: 32px; }
.work-head .h2 { font-size: clamp(3rem, 8vw, 7rem); }
.strip { overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.track { display: flex; gap: var(--gutter); padding: 0 var(--gutter); width: max-content; }
.is-anim .strip { overflow: hidden; }
.is-anim .track { animation: slide 70s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - var(--gutter) / 2)); } }
.strip a { display: block; width: clamp(200px, 22vw, 300px); aspect-ratio: 1; background: var(--soft); overflow: hidden; flex: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .35s, transform .5s; }
.strip a:hover img { filter: none; transform: scale(1.05); }

/* ---------- tables ---------- */
.section { padding-block: 88px 0; }
.section .h2 { margin-bottom: 40px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; color: #777; padding: 0 0 8px; }
.tbl td { padding: 9px 16px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child, .tbl th:first-child { width: 120px; }
.tbl.wide td:first-child, .tbl.wide th:first-child { width: 190px; }
.tbl tr:last-child td { border-bottom: 1px solid var(--line); }
.tbl tbody tr { transition: background .2s, color .2s; }
.tbl.link tbody tr:hover { background: var(--ink); color: #fff; }
.tbl.link tbody tr:hover td { border-color: var(--ink); }
.tbl td:first-child { color: #777; }
.tbl.link tbody tr:hover td:first-child { color: #aaa; }
.tbl strong { font-weight: 700; }
.thumb { width: 44px; height: 44px; background: var(--soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.more-link { display: inline-block; margin-top: 20px; font-weight: 700; border-bottom: 1px solid currentColor; }
.more-link:hover { color: var(--accent); }

/* ---------- explore index ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 24px; gap: var(--gutter);
  align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .3s;
}
.index b { font-size: clamp(1.6rem, 4vw, 3.4rem); letter-spacing: var(--tight); line-height: .95; }
.index span { color: #666; }
.index i { font-style: normal; color: #777; }
.index a:hover { color: var(--accent); padding-left: 10px; }

/* ---------- press ---------- */
.press { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; }
.press figure { margin: 0; background: var(--soft); }
.press figure img { width: 100%; filter: grayscale(1); }
.press blockquote { margin: 0; font-size: clamp(1.6rem, 3.3vw, 2.9rem); font-weight: 700; letter-spacing: -0.05em; line-height: .98; }
.press blockquote::before { content: "“"; color: var(--accent); }
.press blockquote::after { content: "”"; color: var(--accent); }
.press cite { display: block; margin-top: 20px; font-size: 14px; font-style: normal; font-weight: 500; color: #666; letter-spacing: -0.02em; }

/* ---------- close ---------- */
.closing { padding-block: 120px 40px; }
.closing .mega { font-size: clamp(3rem, 8.2vw, 7.6rem); }
.contact { padding: 80px 0 140px; display: grid; grid-template-columns: var(--col) 1px minmax(0, 1fr); column-gap: var(--gutter); }
.contact .side { font-weight: 700; }
.contact .mail { display: inline-block; font-size: clamp(1.6rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: var(--tight); line-height: 1; border-bottom: 3px solid var(--accent); margin: 14px 0 24px; word-break: break-word; }
.contact .mail:hover { color: var(--accent); }
.contact ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.contact ul a { border-bottom: 1px solid currentColor; }
.contact ul a:hover { color: var(--accent); }
.contact address { font-style: normal; margin-top: 28px; color: #666; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0 88px; border-top: 1px solid var(--ink); font-size: 12px; }
.legal a:hover { color: var(--accent); }

/* ---------- motion ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .is-anim .track { animation: none; }
  .overlay, .pill, .mark { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  :root { --col: 96px; }
  .i2 { padding-left: calc(var(--col) + var(--gutter) * 2 + 1px + 40px); }
  .tiles { grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
  .press { grid-template-columns: 1fr; }
  .svc a, .svc div { grid-template-columns: 28px minmax(0, 1fr) 20px; }
  .svc a > small { grid-column: 1; grid-row: 1; }
  .svc a > b { grid-column: 2; grid-row: 1; }
  .svc a > .arrow { grid-column: 3; grid-row: 1; }
  .svc a > span { grid-column: 2 / 4; grid-row: 2; }
  .index a { grid-template-columns: 32px minmax(0, 1fr) 20px; }
  .index a > i:first-child { grid-column: 1; grid-row: 1; }
  .index a > b { grid-column: 2; grid-row: 1; }
  .index a > .arrow { grid-column: 3; grid-row: 1; }
  .index a > span { grid-column: 2 / 4; grid-row: 2; }
  .tbl .hide-s { display: none; }
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --col: 0px; --gutter: 12px; }
  .cols, .contact { grid-template-columns: minmax(0, 1fr); }
  .rule { display: none; }
  .hero { padding-top: 64px; }
  .hero .cols { grid-template-rows: auto auto 1fr auto; min-height: calc(100svh - 80px); }
  .hero .side { grid-row: 1; flex-direction: row; align-items: flex-end; gap: 16px; }
  .hero .top { grid-column: 1; grid-row: 2; padding-top: 12px; }
  .hero .name { grid-column: 1; grid-row: 4; }
  .blob { width: 72px; height: 120px; }
  .i1 { padding-left: 0; } .i2 { padding-left: 1.2em; }
  .lede { padding-left: 0; }
  .studio .side, .studio .body, .contact .side { grid-column: 1; }
  .studio .side { margin-bottom: 20px; }
  .contact .side { margin-bottom: 16px; }
  .tbl td:first-child, .tbl th:first-child { width: 78px; }
  .tbl { font-size: 13px; }
  .work-head { flex-direction: column; gap: 12px; }
  .ghost { display: none; }
}

/* =====================================================================
   Inner pages: shared components (same tokens as the homepage)
   ===================================================================== */
.ph { padding-top: 16px; padding-bottom: 40px; }
.ph .cols { min-height: min(78svh, 760px); grid-template-rows: auto 1fr auto; }
.ph .rule { grid-row: 1 / span 3; grid-column: 2; }
.ph .side { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; justify-content: space-between; }
.ph .top { grid-column: 3; grid-row: 1; font-weight: 700; }
.ph .ttl { grid-column: 3; grid-row: 3; align-self: end; }
.ph h1 { font-size: var(--mega); line-height: .88; letter-spacing: var(--tight); }
.ph h1 .line { display: block; }
.lead {
  font-size: clamp(1.25rem, 2.5vw, 2.1rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 820px; margin: 0;
}
.intro { padding: 40px 0 0 calc(var(--col) + var(--gutter) * 2 + 1px); }
.intro .cta-row { margin-top: 28px; }
.intro p + p { margin-top: 14px; }
.body-text { font-size: 15px; line-height: 1.22; font-weight: 500; max-width: 620px; }

.sec { padding-block: 96px 0; }
.sec-h { margin-bottom: 40px; }
.sec-h .h2 { margin-top: 0; }
.sec-note { max-width: 560px; margin-top: 18px; color: #555; }
.split { display: grid; grid-template-columns: var(--col) 1px minmax(0, 1fr); column-gap: var(--gutter); }
.split > .stick { position: sticky; top: 64px; align-self: start; font-weight: 700; }
.split > .stick .h3 { font-size: clamp(1.1rem, 1.7vw, 1.5rem); letter-spacing: -0.045em; line-height: 1; display: block; margin-top: 8px; overflow-wrap: anywhere; }
.split .yr { grid-template-columns: minmax(96px, 160px) minmax(0, 1fr); }
.split .yr .y { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.split > .rule { align-self: stretch; }

/* year rows: huge numerals + content */
.yrs { border-top: 1px solid var(--ink); }
.yr {
  display: grid; grid-template-columns: minmax(110px, 250px) minmax(0, 1fr); gap: var(--gutter);
  padding: 18px 0 22px; border-bottom: 1px solid var(--line);
}
.yr .y { font-size: clamp(2rem, 5.2vw, 4.6rem); font-weight: 700; letter-spacing: -0.065em; line-height: .88; }
.yr .y small { display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.02em; color: #777; margin-top: 8px; }
.yr h3 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); letter-spacing: -0.045em; line-height: 1; }
.yr .where { color: #555; margin-top: 6px; }
.yr ul { list-style: none; margin: 0; padding: 0; }
.yr li { padding: 5px 0; max-width: 680px; }
.yr li + li { border-top: 1px solid #ececec; }
.yr:hover .y { color: var(--accent); }
.yr .y { transition: color .25s; }

/* accordion */
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(110px, 250px) minmax(0, 1fr) 28px; gap: var(--gutter);
  align-items: baseline; padding: 18px 0;
}
.acc summary::-webkit-details-marker { display: none; }
.acc .y { font-size: clamp(1.6rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.065em; line-height: .9; transition: color .25s; }
.acc .r b { display: block; font-size: clamp(1.2rem, 2.2vw, 1.9rem); letter-spacing: -0.045em; line-height: 1; }
.acc .r span { display: block; color: #666; margin-top: 4px; }
.acc .pm { font-size: 24px; font-weight: 500; line-height: 1; justify-self: end; transition: transform .3s; }
.acc details[open] .pm { transform: rotate(45deg); }
.acc details[open] .y, .acc summary:hover .y { color: var(--accent); }
.acc .more-txt { padding: 0 0 26px calc(min(250px, 100%) + var(--gutter)); max-width: 820px; font-size: 15px; line-height: 1.22; }
.acc .more-txt { margin-left: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.stat { border-top: 1px solid var(--ink); padding-top: 14px; }
.stat b { display: block; font-size: clamp(3.5rem, 9vw, 8rem); letter-spacing: var(--tight); line-height: .85; font-weight: 700; }
.stat span { display: block; margin-top: 10px; font-weight: 700; }
.stat small { display: block; margin-top: 2px; color: #666; font-size: 13px; }

/* tile cards */
.cardg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.card {
  background: var(--soft); padding: 16px; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background .3s, color .3s;
}
.card i { font-style: normal; color: #777; transition: color .3s; }
.card h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.05em; line-height: .95; margin: 40px 0 12px; }
.card p { color: #444; transition: color .3s; }
.card:hover { background: var(--ink); color: #fff; }
.card:hover i, .card:hover p { color: #bbb; }
a.card:hover { background: var(--accent); }

/* chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 700; letter-spacing: -0.02em; border: 0; cursor: pointer;
  padding: 7px 14px 8px; border-radius: 99px; background: var(--soft); color: var(--ink); transition: background .2s, color .2s;
}
.chip sup { font-size: 10px; font-weight: 500; opacity: .6; margin-left: 2px; }
.chip:hover { background: #e2e2e2; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tags li { font-size: 12px; color: #555; background: var(--soft); padding: 3px 8px 4px; border-radius: 99px; }

/* dark band */
.band { background: #0e0e0e; color: #fff; margin-top: 96px; padding: 88px 0 96px; }
.band .kicker i { color: #8a8a8a; }
.band .pill { background: #fff; color: var(--ink); }
.band .pill:hover { background: var(--accent); color: #fff; }
.band .pill.ghosted { background: transparent; color: #fff; }
.band p.lead { max-width: 900px; }
.quote { margin: 0; font-size: clamp(1.7rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.055em; line-height: .96; max-width: 1000px; }
.quote::before { content: "“"; color: var(--accent-lt); }
.quote::after { content: "”"; color: var(--accent-lt); }
.quote-by { display: block; margin-top: 20px; font-size: 14px; letter-spacing: -0.02em; color: #a9a9a9; font-weight: 500; }

/* pair links */
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.pair { border-top: 1px solid var(--ink); padding: 14px 0 0; display: block; transition: color .2s; }
.pair b { display: block; font-size: clamp(1.5rem, 3vw, 2.6rem); letter-spacing: var(--tight); line-height: .92; margin: 32px 0 8px; }
.pair span { color: #666; }
.pair:hover { color: var(--accent); }

/* next-page band */
.next { margin-top: 112px; border-top: 1px solid var(--ink); position: relative; z-index: 1; }
.next a { display: grid; grid-template-columns: var(--col) 1px minmax(0, 1fr) 40px; column-gap: var(--gutter); align-items: baseline; padding: 28px 0 36px; transition: color .25s; }
.next span { font-weight: 700; }
.next b { grid-column: 3; font-size: clamp(2.6rem, 8vw, 7rem); letter-spacing: var(--tight); line-height: .9; font-weight: 700; }
.next i { font-style: normal; font-size: clamp(1.6rem, 4vw, 3rem); }
.next a:hover { color: var(--accent); }
.next a:hover .arrow { transform: translateX(8px); }
.site-foot { position: relative; z-index: 1; padding-bottom: 80px; }
.site-foot .legal { border-top: 1px solid var(--line); padding: 16px 0 24px; }
.next + .site-foot .legal { border-top: 0; }

/* work */
.wtools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 28px; }
.wcount { color: #666; }
.wgrid { columns: 3; column-gap: var(--gutter); }
.wcard { break-inside: avoid; margin-bottom: 40px; }
.wcard[hidden] { display: none; }
.wimg { display: block; overflow: hidden; background: var(--soft); }
.wimg img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.wcard:hover .wimg img { transform: scale(1.045); }
.wcard h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.045em; line-height: 1; margin-top: 14px; }
.wcard h3 a:hover { color: var(--accent); }
.wcard p { color: #555; margin-top: 4px; }
.agrid { columns: 3; column-gap: var(--gutter); }
.afig { margin: 0 0 var(--gutter); break-inside: avoid; background: var(--soft); }
.afig img { width: 100%; height: auto; display: block; }
.afig figcaption { padding: 10px 12px 12px; color: #444; font-size: 13px; }

/* profile portrait */
.bigblob { width: min(100%, 300px); aspect-ratio: 3 / 5; overflow: hidden; background: var(--ink); border-radius: 46% 54% 42% 58% / 34% 38% 62% 66%; }
.bigblob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.12); transition: filter .5s; }
.bigblob:hover img { filter: none; }

/* PDF embed */
.pdf { width: 100%; aspect-ratio: 210 / 297; max-height: 1000px; border: 1px solid var(--line); background: var(--soft); }
.pdf-fallback { padding: 24px; }

/* two-column list (committees) */
.cols2 { columns: 2; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.cols2 li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--line); }
.cols2 li small { display: block; color: #777; font-size: 12px; }
.group + .group { margin-top: 44px; }
.group h3 { font-size: 14px; margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; }
.group h3 i { font-style: normal; color: #777; font-weight: 500; }

/* contact */
.mail-big { display: inline-block; font-size: min(4.8rem, max(1.6rem, 5.4vw)); font-weight: 700; letter-spacing: var(--tight); line-height: .95; border-bottom: 4px solid var(--accent); overflow-wrap: anywhere; }
@media (max-width: 560px) { .mail-big { font-size: 7.4vw; border-bottom-width: 3px; } }
.mail-big:hover { color: var(--accent); }
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 72px; }
.cgrid > div { border-top: 1px solid var(--ink); padding-top: 12px; }
.cgrid h3 { font-size: 14px; margin-bottom: 14px; }
.cgrid p, .cgrid li { color: #333; }
.cgrid ul { list-style: none; margin: 0; padding: 0; }
.cgrid li + li { margin-top: 5px; }
.cgrid a { border-bottom: 1px solid currentColor; }
.cgrid a:hover { color: var(--accent); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; letter-spacing: -0.02em; padding: 12px 0; border: 0; border-bottom: 1px solid #555;
  background: transparent; color: inherit; border-radius: 0; width: 100%;
}
.dark .form input, .dark .form select, .dark .form textarea { border-bottom-color: #666; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--accent-lt); }
.form select option { color: #000; }
.form .pill { border: 0; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.form small { color: #a9a9a9; }

@media (max-width: 860px) {
  .cardg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wgrid { columns: 2; }
  .agrid { columns: 2; }
  .pairs { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; margin-top: 48px; }
  .stats { gap: 10px; }
  .intro { padding-left: 0; }
  .acc .more-txt { padding-left: 0; }
  .yr, .acc summary { grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 24px; }
  .yr { grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ph .cols { grid-template-rows: auto auto 1fr auto; min-height: calc(100svh - 96px); }
  .ph { padding-top: 64px; }
  .ph .side { grid-row: 1; flex-direction: row; align-items: flex-end; gap: 16px; }
  .ph .top { grid-column: 1; grid-row: 2; padding-top: 12px; }
  .ph .ttl { grid-column: 1; grid-row: 4; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .stick { position: static; margin-bottom: 16px; }
  .split > .rule { display: none; }
  .cardg { grid-template-columns: minmax(0, 1fr); }
  .wgrid { columns: 1; }
  .card { min-height: 190px; }
  .agrid { columns: 1; }
  .yr, .acc summary { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .acc summary { grid-template-columns: minmax(0, 1fr) 24px; }
  .acc .y { grid-column: 1; } .acc .pm { grid-column: 2; grid-row: 1; }
  .acc .r { grid-column: 1 / -1; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .cols2 { columns: 1; }
  .next a { grid-template-columns: minmax(0, 1fr) 30px; }
  .next b { grid-column: 1; }
  .next span { grid-column: 1 / -1; }
  .band { padding: 64px 0 72px; }
}

.yrs.huge .yr { grid-template-columns: minmax(170px, 34%) minmax(0, 1fr); align-items: end; padding: 22px 0 26px; }
.yrs.huge .y { font-size: clamp(3.4rem, 11vw, 10rem); letter-spacing: -0.07em; line-height: .8; }
.yrs.huge h3 { font-size: clamp(1.4rem, 2.8vw, 2.4rem); }
@media (max-width: 560px) { .yrs.huge .yr { grid-template-columns: minmax(0, 1fr); } }
.tbl.kind td:nth-child(2) { white-space: nowrap; color: #666; }
.tbl td strong { color: var(--accent); }
.tbl.link td strong { color: inherit; }
@media (max-width: 560px) {
  .tbl.wide td:first-child, .tbl.wide th:first-child { width: 104px; }
  .thumb { width: 36px; height: 36px; }
}
.wimg { position: relative; }
.wimg::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(0, 0, 0, .07); pointer-events: none; }
@media (max-width: 560px) { .split .yr { grid-template-columns: minmax(0, 1fr); } }
