:root {
  --paper: #f7f5ef;
  --ink: #142831;
  --rust: #994524;
  --muted: #495b60;
  --line: #c9cfca;
  --night: #101a21;
  --amber: #f0b58d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: Georgia, "Times New Roman", serif;
}
html { scroll-padding-top: 88px; }
.shell { width: min(1240px, calc(100% - clamp(36px, 9vw, 144px))); }
.section-space { padding-block: clamp(58px, 7vw, 102px); }
.eyebrow, .project-meta, .notebook-meta, .case-eyebrow {
  font: 600 .77rem/1.55 var(--mono);
  letter-spacing: .09em;
}
.section-heading { align-items: end; grid-template-columns: 1.2fr .8fr; gap: 32px; }
.section-heading h2, .contact-inner h2, .ground-copy h2, .profile-lead h2 {
  font: 400 clamp(2.75rem, 5.1vw, 4.6rem)/1.01 var(--display);
  letter-spacing: -.056em;
}
.section-heading .eyebrow, .profile-lead .eyebrow { margin-bottom: 12px; }
.section-intro { max-width: 39ch; justify-self: end; font-size: 1rem; line-height: 1.55; }
.section-heading { position: relative; }
:focus-visible { outline-color: #c46134; }
a, button { touch-action: manipulation; }
.button { font-size: .94rem; border-radius: 3px; min-height: 46px; }
.site-header { color: #f4f0e8; background: rgba(15,24,31,.97); border-color: #303a40; }
.header-inner { min-height: 68px; }
.brand { font-size: 1.03rem; letter-spacing: -.03em; }
.brand-sail {
  position: relative; width: 26px; height: 28px; display: inline-block;
  background: conic-gradient(from 45deg, #f4c39d 0 25%, #8b7160 25% 50%, #e6dbc5 50% 75%, #fff1d8 75%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.nav-links { gap: clamp(17px, 2.3vw, 38px); }
.nav-links > a { font-size: .88rem; color: #d9dedc; }
.nav-links > a:hover { color: var(--amber); }
.nav-contact { border: 1px solid #637079; border-radius: 3px; padding-inline: 16px; }

.introduction {
  background: #f7f5ef;
  color: var(--ink);
}
.intro-inner {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(28px, 5.8vw, 88px);
  padding-block: clamp(35px, 5vw, 76px);
}
.intro-copy { min-width: 0; }
.intro-kicker, .intro-profiles > span {
  font: 600 .75rem/1.6 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6d4b3d;
}
.intro-kicker { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 0 0 22px; }
.intro-kicker span { color: #ab7861; }
.introduction h1 {
  font: 400 clamp(4.1rem, 7.7vw, 7.4rem)/.98 var(--display);
  letter-spacing: -.069em;
  margin: 0 0 18px -.06em;
}
.introduction h1 em { font-weight: 400; color: #93472b; }
.intro-lead {
  font: 500 clamp(1.35rem, 1.9vw, 1.8rem)/1.34 var(--font);
  letter-spacing: -.035em;
  max-width: 33ch;
  margin: 0 0 14px;
}
.intro-bio { max-width: 53ch; color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 25px 0 23px; }
.intro-primary { background: var(--ink); color: #fff; padding: 12px 20px; }
.intro-primary:hover { background: #294e55; }
.intro-text-link, .intro-profiles a, .profile-options a { text-decoration: underline; text-underline-offset: .22em; }
.intro-text-link { font-size: .94rem; font-weight: 600; padding-block: 8px; }
.intro-profiles { border-top: 1px solid var(--line); padding-top: 12px; display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.intro-profiles > span { color: var(--muted); font-size: .71rem; }
.intro-profiles a { padding-block: 4px; color: var(--ink); font-size: .93rem; font-weight: 550; }
.intro-text-link:hover, .intro-profiles a:hover, .profile-options a:hover { color: var(--rust); }
.public-profile {
  display: grid; grid-template-columns: 1fr .85fr; align-items: center;
  gap: clamp(24px,6vw,96px); border-top: 1px solid var(--line);
  padding-block: clamp(42px,5.5vw,76px);
}
.public-profile h2 { font: 400 clamp(2.2rem,4.1vw,3.7rem)/1.05 var(--display); letter-spacing: -.05em; }
.public-profile .eyebrow { margin-bottom: 10px; }
.public-profile p:not(.eyebrow) { max-width: 47ch; margin: 12px 0 0; }
.profile-options > div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.profile-options > div:last-child { border-bottom: 1px solid var(--line); }
.profile-options a:first-child { font-size: 1.04rem; font-weight: 600; }
.profile-options a:last-child { font: .84rem/1.6 var(--mono); }
.button-cover { color: #11232b; background: #f5ecde; padding-inline: 19px; justify-content: center; }
.button-cover:hover { background: #f5bf98; }
.domain-bar { background: #182932; color: #f3f1e9; border-top: 1px solid #3b474d; }
.domain-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.domain-grid a { display: grid; align-content: center; gap: 4px; min-height: 82px; padding: 10px 25px; border-left: 1px solid #3b4d54; }
.domain-grid a:first-child { border: 0; padding-left: 0; }
.domain-grid small { color: #a9c2c1; font: .73rem/1.4 var(--mono); }
.domain-grid span { width: fit-content; font-size: 1rem; font-weight: 550; line-height: 1.4; }
.domain-grid a:hover span { text-decoration: underline; text-underline-offset: 4px; }

.work-toolbar { margin-bottom: 26px; padding-bottom: 16px; }
.filter, .case-link, .dialog-close { font-size: .875rem; }
.filter { min-height: 42px; }
.filter > span, .filter-status { font: .76rem/1.5 var(--mono); }
.project-grid { gap: 42px clamp(20px,3vw,42px); }
.project-image { border-radius: 3px; }
.project-meta { font-size: .73rem; margin: 18px 0 10px; letter-spacing: .055em; }
.project-card h3, .notebook-card h3 { font: 500 clamp(1.55rem,2.3vw,2.15rem)/1.1 var(--font); letter-spacing: -.05em; }
.project-card > p, .notebook-card > p:not(.notebook-meta):not(.notebook-attribution), .structures-copy > p:not(.notebook-meta) { font-size: 1rem; line-height: 1.65; }
.project-card .tags { margin-top: auto; }
.tags > li { font-size: .76rem; line-height: 1.4; border-radius: 2px; }
.project-card .case-link { margin-top: 11px; }
.case-link { min-height: 44px; border-color: #7e8a89; }
.work-note { font-size: .82rem; }
.case-section p { font-size: 1rem; }
.case-facts dt, .dialog-label { font-size: .78rem; }
.case-facts dd { font-size: .9rem; }

.bench-section { border-block: 1px solid #aabcb7; background: #e5ede7; }
.bench-section .section-heading { margin-bottom: 24px; }
.bench-switch { display: flex; flex-wrap: wrap; border-bottom: 1px solid #a4b8b2; gap: 22px; margin-bottom: 28px; }
.bench-switch a { position: relative; padding: 9px 2px 13px; font-size: 1rem; color: #445955; }
.bench-switch a[aria-selected="true"] { color: #123c39; font-weight: 650; }
.bench-switch a[aria-selected="true"]::after { position: absolute; inset: auto 0 -1px; height: 3px; content: ""; background: #276d61; }
.experiment { display: grid; grid-template-columns: minmax(210px,.67fr) minmax(0,1.33fr); align-items: start; gap: clamp(26px,6vw,84px); }
.experiment + .experiment:not([hidden]) { margin-top: 0; }
.no-js .experiment + .experiment { margin-top: 40px; padding-top: 30px; border-top: 1px solid #b3c4bd; }
.experiment-copy { padding-top: 10px; }
.experiment-copy > h3 { font: 400 clamp(1.9rem,3vw,2.85rem)/1.08 var(--display); letter-spacing: -.045em; margin: 0 0 16px; }
.experiment-copy p { font-size: 1rem; line-height: 1.7; }
.experiment-copy .eyebrow { font: 600 .75rem/1.6 var(--mono); margin-bottom: 12px; color: #2a625a; }
.try-note { margin-top: 20px; padding-left: 15px; border-left: 2px solid #558275; }
.try-note strong { font-size: .94rem; }
.try-note p { margin: 2px 0 0; }
.gujarati-note { margin: 17px 0; }
.gujarati-note summary, .bench-related, .practice a { color: #204e47; font-weight: 550; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.gujarati-note p { margin: 8px 0; }
.sail-explorer { align-self: start; max-width: none; border-radius: 6px; background: #faf9f2; }
.sail-heading { padding-block: 12px; }
.sail-heading h3 { font-size: 1.05rem; margin: 0; }
.sail-control-heading > label, .sail-control-heading .sail-reset, .sail-angle-help, .sail-observation, .sail-presets > button, .sail-value-help, .sail-model > summary, .sail-model p, .sail-model a, .sail-explorer > figcaption, .sail-readouts dt { font-size: .85rem; }
.sail-model > summary, .sail-presets > button { min-height: 40px; }
.sail-slider-labels { font-size: .75rem; }
.sail-controls { padding: 13px clamp(14px,2vw,24px); }
.sail-explorer > figcaption { display: block; padding: 8px 16px; }
#signals-lab { width: 100%; }

.notebook-section { border: 0; }
.notebook-grid { gap: 0 clamp(22px,3vw,44px); }
.notebook-card { padding: 26px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.notebook-card-top { margin-bottom: 13px; }
.notebook-meta { font-size: .73rem; letter-spacing: .055em; }
.notebook-card .notebook-attribution { font-size: .83rem; }
.structures-card { display: grid; grid-column: 1/-1; grid-template-columns: .97fr 1.03fr; gap: clamp(18px,3.8vw,55px); align-items: center; padding: 0 0 28px; border: 0; }
.structures-figure { background: #122a34; border-radius: 4px; overflow: hidden; }
.structures-figure img { display: block; width: 100%; }
.structures-copy .notebook-meta { margin: 0 0 8px; }
.structures-copy > p:not(.notebook-meta) { margin-bottom: 0; color: var(--muted); }
.structures-card .case-link { margin-top: 8px; }
.ground-section { background: #192c34; padding-block: clamp(48px,6vw,86px); }
.ground-copy h2 { font-size: clamp(2.4rem,4.4vw,3.85rem); }
.ground-areas, .ground-copy > .ground-stack, .ground-label > p:last-child { font-size: .86rem; }
.ground-copy > p { margin-top: 17px; }
.profile-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,9vw,126px); align-items: start; }
.profile-lead h2 { margin-bottom: 22px; }
.profile-lead em { font-weight: 400; color: var(--rust); }
.profile-lead > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.75; max-width: 42ch; }
.practice { min-width: 0; }
.practice > h3 { margin: 0 0 15px; font-size: 1.1rem; font-weight: 600; }
.practice article { position: relative; border-top: 1px solid var(--line); padding: 18px 0 17px; }
.practice article h4 { margin: 0 0 7px; font-size: 1.3rem; line-height: 1.26; letter-spacing: -.035em; font-weight: 550; }
.practice article p { margin: 0 0 6px; line-height: 1.55; }
.practice article .eyebrow { font-size: .74rem; }
.contact-band { background: #182932; color: #f8f5ed; }
.contact-inner { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding-block: clamp(45px,6vw,80px); }
.contact-inner .eyebrow { color: var(--amber); margin-bottom: 10px; }
.contact-inner p:not(.eyebrow) { color: #cfd8d5; max-width: 48ch; margin: 14px 0 0; }
.contact-inner .button { flex-shrink: 0; }
.site-footer > p, .site-footer > span { font-size: .78rem; }
@media (prefers-reduced-motion: no-preference) {
  .intro-copy { animation: cover-entry .55s ease-out both; }
  .section-heading.in-view .eyebrow::before, .practice article.in-view .eyebrow::before {
    content: ""; display: inline-block; width: 20px; height: 1px; margin: 0 8px .3em 0;
    background: currentColor; transform-origin: left; animation: trace .65s ease-out both;
  }
  .experiment:not([hidden]) .experiment-copy { animation: cover-entry .28s ease-out; }
  .case-dialog[open] .case-content { animation: cover-entry .22s ease-out; }
  @keyframes cover-entry { from { opacity: .35; transform: translateY(9px); } to { opacity: 1; transform: none; } }
  @keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (max-width: 760px) {
  .header-inner { min-height: 59px; }
  .js .site-nav .nav-links { background: #15242c; color: #f3f1e8; border-color: #42545c; }
  .js .nav-links > a + a, .js .menu-toggle { border-color: #52616a; }
  .js .nav-contact { border: 0; border-radius: 0; padding-inline: 0; }
  .menu-lines, .site-nav[data-open="true"] .menu-lines::after { border-color: #f4f1e7; }
  .domain-grid a { padding-inline: 13px; min-height: 74px; }
  .domain-grid span { font-size: .89rem; }
  .domain-grid small { font-size: .70rem; }
  .section-intro { justify-self: start; }
  .project-grid { gap: 34px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .experiment, .profile-section { grid-template-columns: minmax(0,1fr); }
  .experiment-copy { padding-top: 0; }
  .experiment-copy > p:not(.eyebrow), .try-note p { max-width: 57ch; }
  .structures-card { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .notebook-card { padding-inline: 0; }
  .contact-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 540px) {
  .domain-grid { grid-template-columns: 1fr; padding-block: 4px; }
  .domain-grid a, .domain-grid a:first-child { min-height: 40px; grid-template-columns: .92fr 1.2fr; align-items: baseline; border: 0; padding: 9px 0; gap: 4px; }
  .domain-grid a + a { border-top: 1px solid #38494f; }
  .domain-grid small { font-size: .72rem; }
  .project-meta { align-items: baseline; }
  .ground-areas { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 800px) {
  .intro-inner { gap: 23px; grid-template-columns: 1.14fr .86fr; }
  .introduction h1 { font-size: clamp(3.8rem,8vw,5.4rem); }
  .intro-kicker { margin-bottom: 14px; }
}
@media (max-width: 650px) {
  .intro-inner { grid-template-columns: minmax(0,1fr); padding-block: 29px 35px; }
  .intro-copy { position: relative; }
  .introduction h1 { font-size: clamp(3.3rem,12vw,4.75rem); }
  .intro-lead { font-size: 1.32rem; }
  .intro-kicker { font-size: .7rem; }
  .intro-actions { margin-block: 16px; }
  .public-profile { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
