/* Typographic portfolio: shared foundations and distinct page families. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-variable.woff2") format("woff2");
}
:root {
  --paper: #fafbfc;
  --paper-deep: #f0f3f6;
  --ink: #1c2833;
  --ink-soft: #52606c;
  --line: #d9dfe5;
  --accent: #365b8f;
  --accent-dark: #274a78;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --page: 1200px;
  --gutter: 48px;
  --reading: 704px;
  --label-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body, button, summary { font-family: var(--font-body); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: 58px; line-height: 1.14; font-weight: 450; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-family: var(--font-body); font-size: 20px; letter-spacing: -0.015em; line-height: 1.22; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
:where(a, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
:where(p, h1, h2, h3, dd, a) { overflow-wrap: break-word; }
.page-shell, .wrap { width: min(calc(100% - 2 * var(--gutter)), var(--page)); margin-inline: auto; }
:where(.profile, .selected-grid, .cs-hero__grid, .cs-body__grid, .about-intro) > * { min-width: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 84px; }
.wordmark { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; text-decoration: none; }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.desktop-nav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 8px; }
.desktop-nav a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.desktop-nav a:hover, .site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.mobile-menu { display: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.footer-inner { align-items: flex-start; padding-block: 24px; flex-wrap: wrap; gap: 12px 32px; }
.footer-inner > div { padding-top: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 20px; border: 1px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: var(--paper); font-family: var(--font-body);
  font-size: 14px; font-weight: 500; line-height: 1.4; gap: 12px; text-decoration: none;
}
.button:visited { color: var(--paper); }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--paper); }
.button:active { background: #1f3d66; border-color: #1f3d66; color: var(--paper); }
.button--outline, .button--outline:visited { background: transparent; color: var(--ink); }
.button--outline:hover, .button--outline:active { border-color: var(--ink); background: var(--paper-deep); color: var(--ink); }
.text-link { gap: 12px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
.action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.section { padding-block: 64px; }
.eyebrow, .section__label, .article-hero__tag, .fact-panel__label, .cs-next__label, .cs-toc__label {
  color: var(--accent-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}

/* Interior openings and case evidence. */
.cs-hero { padding-block: 48px 36px; }
.case-kind { margin-bottom: 16px; }
.cs-hero__breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 24px; color: var(--ink-soft); font-size: 14px; }
.cs-hero__breadcrumb a { color: var(--accent-dark); font-weight: 600; }
.cs-hero__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 48px; align-items: end; }
.cs-hero__title { max-width: none; }
.cs-hero__subtitle { margin-top: 18px; font-size: 23px; line-height: 1.35; color: var(--ink-soft); }
.cs-hero__lede { max-width: 61ch; margin-top: 12px; color: var(--ink-soft); font-size: 18px; }
.cs-summary { display: grid; gap: 24px; padding: 24px; background: var(--paper-deep); border-top: 2px solid #91a8c3; }
.cs-summary dt, .cs-meta dt { color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cs-summary dd { margin-top: 4px; color: var(--ink-soft); font-size: 16px; line-height: 1.45; }
.case-context { margin-bottom: 40px; }
.cs-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.cs-meta > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.cs-meta__wide { grid-column: 1 / -1; }
.cs-meta dd { font-size: 16px; color: var(--ink-soft); }
.cs-hero__links { margin-top: 24px; }
.build-example { padding-block: 24px; border-block: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; margin-bottom: 32px; }
.case-figure img { width: 100%; border: 1px solid var(--line); border-radius: 3px; }
.case-figure figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.build-example__copy h2 { font-size: 32px; }
.build-example__copy p { margin-top: 16px; color: var(--ink-soft); }
.case-sample { margin-bottom: 32px; }
.case-sample h2 { font-size: 28px; }
.case-sample p { margin-top: 12px; }
.case-sample pre { max-width: 704px; }
.cs-body { padding-bottom: 64px; }
.cs-body__grid { display: grid; grid-template-columns: 184px minmax(0, 760px); gap: 72px; align-items: start; }
.cs-toc { position: sticky; top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.cs-toc ul { display: block; list-style: none; padding: 0; margin: 12px 0 0; }
.cs-toc li a { min-height: 44px; display: flex; align-items: center; padding-block: 8px; color: var(--ink-soft); font-size: 16px; text-decoration: none; }
.cs-toc li a:hover, .cs-toc li a.is-active { color: var(--accent-dark); text-decoration: underline; }
.cs-content > section { padding-block: 36px; border-top: 1px solid var(--line); }
.cs-content > section:first-child { padding-top: 12px; border-top: 0; }
.cs-content h2 { font-size: 32px; line-height: 1.12; }
.cs-content h2 + :not(h2) { margin-top: 16px; }
.cs-content p, .cs-content li, .article-body p, .article-body li { color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.cs-content p + p, .cs-content p + ul, .cs-content ul + p, .article-body p + p, .article-body p + ul, .article-body ul + p { margin-top: 16px; }
.cs-content ul, .article-body ul { padding-left: 20px; }
.cs-content li + li, .article-body li + li { margin-top: 8px; }
.cs-content a:not(.button):not(.text-link), .article-body a { color: var(--accent-dark); }
.fact-panel, .cs-artifact, .evidence-window { padding: 16px 20px; margin-top: 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-deep); }
.fact-panel ul { margin-block: 12px 0; }
.cs-artifact__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.cs-artifact__body { padding-top: 12px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
code { font-size: 0.9em; }
pre { max-width: 100%; margin-block: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-deep); white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
pre code { font-size: inherit; }
.cs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border-block: 1px solid var(--line); }
.cs-stat { padding: 16px 12px; border-left: 1px solid var(--line); }
.cs-stat:first-child { padding-left: 0; border-left: 0; }
.cs-stat__value { display: block; color: var(--ink); font-family: var(--font-heading); font-size: 24px; font-weight: 600; }
.cs-stat__label { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.metric-limitations, .catalog-limitations { margin-block: 16px; }
.methodology-details { margin-top: 16px; border-block: 1px solid var(--line); }
.methodology-details summary { min-height: 48px; padding-block: 12px; color: var(--accent-dark); font-weight: 600; cursor: pointer; }
.methodology-details__body { padding-bottom: 20px; }
.cs-next { padding-block: 32px; border-top: 1px solid var(--line); }
.cs-next a:not(.button):not(.text-link) { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; text-decoration: none; }
.cs-next__name { margin-top: 8px; font-family: var(--font-heading); font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -0.035em; }
.cs-next__links { margin-top: 24px; }
.project__arrow { color: var(--accent-dark); }

/* Experience: professional introduction and complete background. */
.about-intro { display: grid; grid-template-columns: 208px minmax(0, 760px); gap: 0 64px; padding-block: 48px; }
.about-intro .cs-hero__breadcrumb { grid-column: 1 / -1; }
.about__portrait img { width: 208px; border-radius: 3px; }
.about-intro__copy p { margin-top: 12px; color: var(--ink-soft); }
.about-intro__copy .cs-hero__lede { font-size: 20px; }
.about__actions { margin-top: 16px; }
.about-reading { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 300px); gap: 64px; padding-block: 24px 64px; border-top: 1px solid var(--line); }
.about-examples, .about-background, .about__stack { max-width: 672px; }
.about-examples { padding-block: 16px 32px; }
.about-reading h2 { font-size: 32px; }
.work-example { margin-top: 24px; border-left: 3px solid var(--accent); padding-left: 20px; }
.work-example p { margin-top: 12px; color: var(--ink-soft); }
.about-background p { margin-top: 16px; color: var(--ink-soft); }
.about-background h2:not(:first-child) { margin-top: 40px; }
.about-background > .text-link { margin-top: 12px; }
.about__stack { display: grid; grid-template-columns: 1fr; align-self: start; gap: 20px; padding: 24px; margin: 0; background: var(--paper-deep); }
.about__stack dt { color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.about__stack dd { margin-top: 4px; color: var(--ink-soft); }

/* Service and Writing each retain their own density. */
.service-page .cs-hero > .wrap { max-width: 704px; }
.service-page .cs-hero__title { max-width: 26ch; font-size: 52px; }
.service-page .section { padding-top: 16px; }
.service-page .section > .wrap { max-width: 704px; }
.codex-help > p, .codex-help > ul { margin-top: 16px; }
.codex-help__action { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 24px; }
.codex-help__action p { margin-top: 0; }
.writing-page .cs-hero { padding-bottom: 0; }
.writing-page .section--compact { padding-top: 32px; }
.section__head { margin-bottom: 16px; }
.writing { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px 56px 20px; gap: 24px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row__metadata { display: contents; }
.article-row__title { grid-column: 2; grid-row: 1; font-family: var(--font-heading); font-size: 23px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; }
.article-row__date { grid-column: 1; grid-row: 1; }
.article-row__tag { grid-column: 3; grid-row: 1; }
.article-row__read { grid-column: 4; grid-row: 1; }
.article-row .row-arrow { grid-column: 5; grid-row: 1; }
.article-row__date, .article-row__tag, .article-row__read { color: var(--ink-soft); font-size: 14px; }

/* Articles are essays with a protected common reading measure. */
.article-hero { padding-block: 48px; border-bottom: 1px solid var(--line); }
.article-hero .wrap, .article-body { max-width: 704px; }
.article-hero__tag { margin-bottom: 20px; }
.article-hero__title { font-size: 50px; line-height: 1.22; font-weight: 450; }
.article-hero__meta { margin-top: 20px; color: var(--ink-soft); font-size: 14px; }
.article-body { padding-block: 40px 64px; }
.article-body > p:first-child { color: var(--ink); font-size: 20px; line-height: 1.5; }
.article-body h2 { margin-top: 40px; font-size: 32px; line-height: 1.12; }
.article-body h2 + p { margin-top: 16px; }
.article-body blockquote { margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink-soft); }

@media (min-width: 701px) and (max-width: 1023px) {
  :root { --gutter: 32px; }
  .section { padding-block: 48px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .cs-hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(200px, 1fr); gap: 32px; }
  .build-example { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
  .about-intro { grid-template-columns: 176px minmax(0, 1fr); gap: 0 32px; }
  .about__portrait img { width: 176px; }
  .about-reading { gap: 32px; grid-template-columns: minmax(0, 1fr) 240px; }
  .article-hero__title { font-size: 52px; }
  .article-row { grid-template-columns: 100px minmax(0, 1fr) 80px 44px 20px; gap: 16px; }
}
@media (max-width: 1023px) {
  .cs-body__grid { display: block; }
  .cs-content { max-width: 704px; }
  .cs-toc { position: static; margin-bottom: 20px; }
  .cs-toc ul { display: flex; flex-wrap: wrap; gap: 0 12px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  body { line-height: 1.55; }
  h1 { font-size: 42px; line-height: 1.08; }
  h2 { font-size: 32px; line-height: 1.15; }
  h3 { font-size: 19px; }
  .header-inner { min-height: 64px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 52px; min-height: 44px; font-weight: 700; list-style: none; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: min(272px, calc(100vw - 48px)); padding: 10px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 16px 32px rgba(17, 27, 29, 0.12); }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 48px; padding-inline: 12px; text-decoration: none; }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { background: var(--paper-deep); }
  .footer-inner { flex-direction: column; gap: 8px; }
  .footer-inner > div { padding-top: 0; }
  .section { padding-block: 40px; }
  .cs-hero { padding-block: 28px; }
  .cs-hero__breadcrumb { margin-bottom: 16px; }
  .cs-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-hero__subtitle { font-size: 21px; }
  .cs-hero__lede { font-size: 18px; }
  .cs-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .case-context { margin-bottom: 32px; }
  .cs-meta { grid-template-columns: 1fr; }
  .cs-meta > div { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .cs-meta__wide { grid-column: auto; }
  .cs-hero__links .button, .about__actions .button { width: 100%; }
  .build-example { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
  .build-example__copy h2 { font-size: 28px; }
  .cs-content > section { padding-block: 36px; border-top: 1px solid var(--line); }
  .cs-content h2, .about-reading h2 { font-size: 28px; line-height: 1.15; }
  .cs-content p, .cs-content li, .article-body p, .article-body li { line-height: 1.55; }
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cs-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cs-next__name { font-size: 28px; }
  .cs-next__links .button { width: 100%; }
  .about-intro { grid-template-columns: minmax(0, 1fr) 88px; grid-template-areas: "crumb crumb" "title portrait" "lead lead" "role role" "fit fit" "actions actions"; gap: 12px 16px; padding-block: 28px; align-items: center; }
  .about-intro .cs-hero__breadcrumb { grid-area: crumb; margin-bottom: 4px; }
  .about-intro__copy { display: contents; }
  .about-intro__copy h1 { grid-area: title; }
  .about__portrait { grid-area: portrait; }
  .about__portrait img { width: 96px; }
  .about-intro__copy p { margin: 0; }
  .about-intro__copy .cs-hero__lede { grid-area: lead; font-size: 18px; }
  .about-intro__copy > p:not([class]) { grid-area: role; }
  .about__closing { grid-area: fit; }
  .about__actions { grid-area: actions; margin-top: 4px; }
  .about-reading { grid-template-columns: 1fr; gap: 28px; padding-inline: 0; }
  .about-examples { padding-top: 0; }
  .work-example { padding-left: 16px; }
  .about__stack { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .service-page .cs-hero__title { font-size: 38px; }
  .article-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 12px 16px; }
  .article-row__title { grid-column: 1; grid-row: 1; font-size: 24px; }
  .article-row .row-arrow { grid-column: 2; grid-row: 1; }
  .article-row__metadata { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .article-hero { padding-block: 32px; }
  .article-hero__title { font-size: 34px; }
  .article-body { padding-block: 32px 40px; }
  .article-body > p:first-child { font-size: 19px; }
  .article-body h2 { font-size: 28px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .cs-summary { grid-template-columns: 1fr; }
  .about-intro__copy h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Homepage: compact professional identity and an asymmetric project index. */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 192px; grid-template-areas: "label portrait" "title portrait" "summary portrait" "actions actions"; gap: 20px 72px; align-items: start; padding-block: 64px 56px; }
.profile-label { grid-area: label; }
.profile h1 { grid-area: title; font-size: clamp(44px, 5vw, 70px); line-height: 1.12; font-weight: 450; letter-spacing: -0.045em; }
.profile h1 span { color: #5a6671; }
.profile-summary { grid-area: summary; max-width: 640px; color: var(--ink-soft); font-size: 18px; line-height: 1.7; }
.profile-portrait { grid-area: portrait; padding-top: 6px; }
.profile-portrait img { width: 192px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.profile-actions { grid-area: actions; margin-top: 4px; }
.profile-actions .button { gap: 24px; }
.section-index { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px; border-top: 1px solid var(--ink); }
.section-index > div { display: flex; align-items: baseline; gap: 22px; }
.index-number { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.section-index h2 { font-family: var(--font-body); font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.section-index > p { font-size: 13px; color: var(--ink-soft); }
.selected { padding-bottom: 64px; }
.selected-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: 48px; }
.selected-grid > * { min-width: 0; }
.flagship-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 8px 0 18px; }
.flagship-title h3 { font-size: 26px; font-weight: 500; }
.flagship-title a { text-decoration: none; }
.flagship-title a:hover { text-decoration: underline; }
.flagship-title h3 span { color: var(--accent); margin-left: 8px; font-size: 20px; }
.flagship-title > span { font-size: 12px; color: var(--ink-soft); }
.flagship-image { display: block; padding: 24px; background: #e9edf3; border: 1px solid #e0e5eb; border-radius: 4px; }
.flagship-image img { width: 100%; border: 1px solid #d7d5e1; border-radius: 4px; }
.flagship-image:hover { background: #e1e7f0; }
.flagship-description { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.flagship-description p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.flagship-description p:first-child { color: var(--ink); }
.flagship > .action-group { margin-top: 14px; }
.project-index { padding-top: 16px; }
.project-index > h3 { padding-bottom: 22px; }
.project-list { list-style: none; padding: 0; margin: 0; }
.project-index .project-list a { position: relative; display: block; padding: 24px 28px 26px 0; border-top: 1px solid var(--line); text-decoration: none; }
.project-index .project-list a:hover h3 { color: var(--accent-dark); text-decoration: underline; }
.project-index .project-list h3 { margin-top: 9px; font-size: 20px; font-weight: 500; }
.project-index .project-list p { margin-top: 12px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.project-topic { font-size: 12px; color: var(--ink-soft); }
.row-arrow { color: var(--accent); font-size: 22px; line-height: 1.2; }
.project-index .row-arrow { position: absolute; top: 55px; right: 0; }
.background { background: var(--paper-deep); border-block: 1px solid var(--line); }
#experience { padding-block: 64px; }
#experience h2 { font-size: 36px; margin-top: 16px; }
.section-heading > p:last-child { margin-top: 12px; color: var(--ink-soft); }
.experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.experience-grid section { border-top: 1px solid #bfc8d1; padding-top: 20px; }
.experience-grid h3 { font-size: 20px; font-weight: 500; }
.experience-grid p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.experience-close { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.experience-close .text-link { grid-column: 1 / -1; justify-self: start; }
.closing { background: #eaf0f7; border-top: 1px solid #d9e1ec; padding-block: 64px; }
.closing-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.closing h2 { margin-top: 18px; font-size: 42px; font-weight: 450; line-height: 1.2; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; gap: 20px; color: var(--accent-dark); font-size: 21px; text-decoration-thickness: 1px; }
.closing-options { padding-top: 8px; }
.closing-options h3 { font-size: 20px; font-weight: 500; }
.closing-options p { margin-top: 12px; max-width: 46ch; font-size: 15px; color: var(--ink-soft); }
.closing-options > .text-link { margin-top: 12px; }
.secondary-offers { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #cbd6e4; font-size: 14px; }
.secondary-offers a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1023px) {
  .profile { column-gap: 36px; }
  .profile h1 { font-size: 52px; }
  .selected-grid { gap: 30px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .flagship-title { align-items: baseline; }
  .flagship-title > span { display: none; }
  .flagship-image { padding: 16px; }
  .flagship-description { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 700px) {
  .profile { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "label label" "title title" "summary portrait" "actions actions"; gap: 20px; padding-block: 36px; }
  .profile h1 { font-size: clamp(32px, 7.8vw, 48px); line-height: 1.18; letter-spacing: -0.04em; }
  .profile-label { font-size: 11px; letter-spacing: 0.035em; }
  .profile-summary { font-size: 15px; line-height: 1.7; }
  .profile-portrait { padding-top: 2px; }
  .profile-portrait img { width: 96px; }
  .profile-actions { margin: 0; gap: 4px 18px; }
  .profile-actions .button { width: 100%; justify-content: space-between; }
  .section-index { align-items: flex-start; gap: 8px; flex-wrap: wrap; padding-block: 20px; }
  .section-index > div { gap: 14px; }
  .section-index h2 { font-size: 18px; }
  .section-index > p { margin-left: 29px; font-size: 12px; }
  .selected { padding-bottom: 40px; }
  .selected-grid { grid-template-columns: 1fr; gap: 24px; }
  .flagship-title { margin-top: 0; }
  .flagship-title h3 { font-size: 24px; }
  .flagship-image { padding: 12px; }
  .flagship-description { margin-top: 18px; }
  .project-index { padding-top: 8px; }
  .project-index > h3 { padding-bottom: 16px; }
  .project-index .project-list a { padding-block: 20px; }
  .project-index .row-arrow { top: 50px; }
  #experience { padding-block: 40px; }
  #experience h2 { font-size: 30px; }
  .experience-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .experience-close { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .closing { padding-block: 40px; }
  .closing-grid { grid-template-columns: 1fr; gap: 32px; }
  .closing h2 { font-size: 34px; }
  .contact-email { font-size: 18px; gap: 12px; }
}
