/* -------------------------------------------------------------------------
   Biography - portfolio styles
   Palette and type extracted from the original landing page (v51),
   extended into a full multi-section portfolio design system.
---------------------------------------------------------------------------- */

:root {
  --ink: #182035;
  --ink-soft: #394254;
  --ink-mute: #5d6678;
  --accent: #b1442f;
  --accent-soft: rgba(177, 68, 47, 0.1);
  --accent-dark: #7b2d20;
  --surface: #fff;
  --surface-soft: #f3f6f9;
  --surface-muted: #eef2f6;

  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.86);
  --panel-line: rgba(24, 32, 53, 0.14);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 8px 28px rgba(24, 32, 53, 0.07);
  --shadow-md: 0 24px 60px rgba(24, 32, 53, 0.14);

  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Work Sans", var(--sans);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background: url("../img/sky.jpg") no-repeat center center / cover fixed;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Layer 0: fixed bird canvas (transparent, birds only) */
#mp-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  user-select: none;
}

/* Layer 1: gradient overlay softens birds; content sits above it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(247, 250, 252, 0.94) 0%,
    rgba(247, 250, 252, 0.82) 48%,
    rgba(247, 250, 252, 0.62) 100%
  );
}

/* Layer 2: page content */
main {
  position: relative;
  z-index: 2;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 46px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--display);
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
}

/* ---- Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  background: rgba(247, 250, 252, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 8px;
  flex-shrink: 0;
}

.site-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-brand-text strong,
.site-brand-text small {
  display: block;
  line-height: 1.2;
}

.site-brand-text strong {
  font-family: var(--display);
  font-size: 1em;
  font-weight: 900;
}

.site-brand-text small {
  margin-top: 2px;
  color: var(--ink-mute);
  font-size: 0.78em;
}

.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 21px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  color: var(--surface);
  background: var(--ink);
  border: 1px solid var(--ink);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--panel-line);
}
.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--panel-strong);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  min-height: min(82svh, 780px);
  padding: 72px 0 80px;
}

.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 860px;
}

.hero-kicker {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.75rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hero-intro {
  max-width: 640px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.12em;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- Generic section ------------------------------------------------- */
.section {
  padding: clamp(86px, 10vw, 132px) 0;
}

.section-tinted {
  background: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(24, 32, 53, 0.06);
  border-bottom: 1px solid rgba(24, 32, 53, 0.06);
}

.section-eyebrow {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-title {
  max-width: 780px;
  margin-top: 15px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

/* ---- About ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 28px;
}

.about-summary p {
  color: var(--ink-soft);
  font-size: 1.1em;
  line-height: 1.82;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
}

.fact-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-sm);
}

.fact-card .fa {
  color: var(--accent);
  font-size: 1.05em;
  margin-bottom: 6px;
}

.fact-label {
  color: var(--ink-mute);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fact-value {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98em;
}

/* ---- Skill tags ------------------------------------------------------ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.tag-list li {
  padding: 7px 12px;
  color: #273044;
  background: var(--panel-strong);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.82em;
  font-weight: 500;
}

/* ---- Employment history ----------------------------------------------- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--panel-line);
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--panel-line);
  border-radius: 0;
  box-shadow: none;
}

.history-role {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
}

.history-company {
  margin-top: 5px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 700;
}

.history-company > a {
  color: var(--accent);
  text-decoration: none;
}

/* ---- FAQ ------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  border-top: 1px solid var(--panel-line);
}

.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--panel-line);
  border-radius: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "\f107"; /* fa chevron-down */
  font-family: "FontAwesome";
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 40px 26px 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.72;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 36px 0 44px;
  border-top: 1px solid var(--panel-line);
}

.site-footer .container {
  display: flex;
  justify-content: center;
}

.footer-copyright {
  padding: 8px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(24, 32, 53, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.85em;
}

/* ---- Responsive ------------------------------------------------------ */
@media only screen and (max-width: 1200px) {
  body::before {
    background: linear-gradient(
      180deg,
      rgba(247, 250, 252, 0.95) 0%,
      rgba(247, 250, 252, 0.86) 60%,
      rgba(247, 250, 252, 0.7) 100%
    );
  }
  .container {
    padding: 0 34px;
  }
}

@media only screen and (max-width: 767px) {
  body {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  #mp-bg {
    display: none;
  }
}

/* ---- Multi-page publishing foundation ------------------------------- */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.inner-page::before { background: linear-gradient(180deg, rgba(247, 250, 252, 0.97), rgba(247, 250, 252, 0.92) 45%, rgba(247, 250, 252, 0.96)); }
.inner-page .site-header { background: rgba(247, 250, 252, 0.94); }
.inner-shell { position: relative; z-index: 2; min-height: 68vh; padding: 38px 0 96px; }

.breadcrumbs { margin-bottom: 54px; color: var(--ink-mute); font-family: var(--display); font-size: 0.82rem; font-weight: 700; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(24, 32, 53, 0.34); }
.breadcrumbs a, .text-link { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.page-hero { max-width: 860px; padding-bottom: 66px; }
.page-hero h1, .case-hero h1, .not-found-panel h1 { margin-top: 12px; color: var(--ink); font-family: var(--display); font-size: clamp(2.35rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; overflow-wrap: break-word; }
.page-hero > p:not(.section-eyebrow), .case-subtitle, .not-found-panel > p:not(.section-eyebrow) { max-width: 760px; margin-top: 24px; color: var(--ink-soft); font-size: 1.15rem; line-height: 1.72; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 46px; }
.section-heading-row .section-title { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-family: var(--display); font-weight: 800; }
.content-block + .content-block { margin-top: 82px; }
.content-block > h2, .resource-main h2 { margin-bottom: 28px; color: var(--ink); font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 370px)); gap: 28px; align-items: start; }
.work-card { overflow: hidden; background: var(--panel-strong); border: 1px solid var(--panel-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-muted); border-bottom: 1px solid var(--panel-line); }
.work-card-media img, .resource-preview-image, .resource-detail-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-card-body { padding: 24px; }
.work-card h3, .resource-category-card h3 { margin-top: 16px; color: var(--ink); font-family: var(--display); font-size: 1.25rem; line-height: 1.28; }
.work-card h3 a, .resource-category-card h3 a { color: inherit; text-decoration: none; }
.work-card-body > p, .resource-category-body > p { margin-top: 12px; color: var(--ink-soft); line-height: 1.66; }
.work-card .text-link, .resource-category-card .text-link { margin-top: 22px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-mute); font-size: 0.78rem; font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 3px 9px; color: var(--accent-dark); background: rgba(177, 68, 47, 0.11); border: 1px solid rgba(177, 68, 47, 0.22); border-radius: 999px; font-family: var(--display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }

/* Case study */
.case-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr); gap: 54px; align-items: center; padding: 24px 0 88px; }
.case-hero h1 { margin-top: 20px; font-size: clamp(2.4rem, 5vw, 4.35rem); }
.case-facts { display: grid; gap: 16px; margin: 30px 0; }
.case-facts div { padding-left: 14px; border-left: 3px solid var(--accent); }
.case-facts dt, .resource-category-card dt, .resource-action-panel dt { color: var(--ink-mute); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.case-facts dd, .resource-category-card dd, .resource-action-panel dd { margin-top: 4px; color: var(--ink-soft); line-height: 1.55; }
.case-cover { overflow: hidden; background: var(--surface); border: 1px solid var(--panel-line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-md); }
.case-cover img { display: block; width: 100%; height: auto; }
.case-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 72px; align-items: start; justify-content: center; }
.case-toc { position: sticky; top: 112px; padding: 20px; background: rgba(255, 255, 255, 0.76); border: 1px solid var(--panel-line); border-radius: var(--radius-sm); }
.case-toc > p { color: var(--ink); font-family: var(--display); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.case-toc ol { display: grid; gap: 9px; margin-top: 14px; padding-left: 18px; color: var(--ink-mute); font-size: 0.78rem; }
.case-toc a, .legal-toc a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-soft); text-decoration-color: rgba(177, 68, 47, 0.34); text-underline-offset: 3px; }
.case-section { scroll-margin-top: 112px; padding: 0 0 68px; }
.case-section + .case-section { padding-top: 68px; border-top: 1px solid var(--panel-line); }
.case-section h2 { margin-bottom: 22px; color: var(--ink); font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.18; }
.case-section h3 { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.case-section > p, .case-callout > p, .legal-content p, .legal-review-note p, .resource-main p { color: var(--ink-soft); font-size: 1rem; line-height: 1.82; }
.case-section p + p { margin-top: 18px; }
.editorial-list, .case-section-comparison ul, .legal-content ul { display: grid; gap: 12px; margin-top: 24px; padding-left: 24px; color: var(--ink-soft); line-height: 1.7; }
.editorial-list li::marker, .legal-content li::marker { color: var(--accent); }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.comparison-grid > section { padding: 24px; background: rgba(255, 255, 255, 0.78); border: 1px solid var(--panel-line); border-radius: var(--radius); }
.table-scroll { margin-top: 28px; overflow-x: auto; border: 1px solid var(--panel-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.architecture-table { width: 100%; min-width: 720px; border-collapse: collapse; background: rgba(255, 255, 255, 0.84); font-size: 0.88rem; line-height: 1.55; }
.architecture-table th, .architecture-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--panel-line); }
.architecture-table thead th { color: var(--ink); background: rgba(24, 32, 53, 0.06); font-family: var(--display); }
.architecture-table tbody tr:last-child > * { border-bottom: 0; }
.architecture-table code { color: var(--accent); font-weight: 800; }
.case-callout, .notice-panel, .legal-review-note { padding: 28px; background: rgba(255, 248, 242, 0.86); border: 1px solid rgba(177, 68, 47, 0.28); border-left: 5px solid var(--accent); border-radius: var(--radius-sm); }
.case-callout h2 { margin-top: 9px; }
.screenshot-grid { display: grid; gap: 28px; margin-top: 30px; }
.screenshot-grid figure { overflow: hidden; background: var(--surface); border: 1px solid var(--panel-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.screenshot-grid img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--panel-line); }
.screenshot-grid figcaption { padding: 14px 18px; color: var(--ink-mute); font-size: 0.8rem; line-height: 1.55; }
.related-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Resource catalog */
.notice-panel { display: flex; align-items: center; gap: 18px; max-width: 880px; margin-bottom: 72px; }
.notice-panel p { color: var(--ink-soft); line-height: 1.65; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.resource-category-card { overflow: hidden; background: rgba(255, 255, 255, 0.84); border: 1px solid var(--panel-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.resource-preview { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--accent); background: linear-gradient(135deg, rgba(177, 68, 47, 0.1), rgba(24, 32, 53, 0.05)), linear-gradient(var(--surface), var(--surface-soft)); border-bottom: 1px solid var(--panel-line); font-size: 2.1rem; }
.resource-category-body { padding: 24px; }
.resource-category-card dl { display: grid; gap: 14px; margin-top: 22px; }
.catalog-principles { max-width: 760px; }
.resource-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; }
.resource-detail-preview { aspect-ratio: 16 / 9; margin-bottom: 48px; border: 1px solid var(--panel-line); border-radius: var(--radius); }
.resource-main section { padding: 38px 0; border-top: 1px solid var(--panel-line); }
.resource-action-panel { position: sticky; top: 112px; display: grid; gap: 14px; padding: 24px; background: rgba(255, 255, 255, 0.88); border: 1px solid var(--panel-line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.resource-action-panel h2 { font-family: var(--display); font-size: 1.2rem; }
.resource-action-panel dl { display: grid; gap: 14px; margin-bottom: 8px; }

/* Legal, 404, and expanded footer */
.legal-container { max-width: 920px; }
.legal-hero { padding-bottom: 42px; }
.effective-date { font-size: 0.86rem !important; }
.legal-toc { padding: 26px 28px; background: rgba(255, 255, 255, 0.78); border: 1px solid var(--panel-line); border-radius: var(--radius); }
.legal-toc h2, .legal-review-note h2 { font-family: var(--display); font-size: 1rem; }
.legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 16px; padding-left: 20px; color: var(--ink-mute); }
.legal-content { max-width: 740px; margin: 66px auto; }
.legal-content section { scroll-margin-top: 110px; padding-bottom: 48px; }
.legal-content section + section { padding-top: 48px; border-top: 1px solid var(--panel-line); }
.legal-content h2 { margin-bottom: 18px; color: var(--ink); font-family: var(--display); font-size: 1.55rem; line-height: 1.3; }
.legal-review-note { max-width: 740px; margin: 0 auto; }
.legal-review-note p { margin-top: 12px; font-size: 0.9rem; }
.not-found-panel { max-width: 720px; margin: 40px auto; padding: 54px; background: rgba(255, 255, 255, 0.84); border: 1px solid var(--panel-line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.site-footer .footer-simple { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; list-style: none; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 28px; color: var(--ink-soft); font-family: var(--display); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

@media only screen and (max-width: 980px) {
  .case-hero, .case-layout, .resource-detail-grid { grid-template-columns: 1fr; }
  .case-cover { max-width: 720px; }
  .case-toc, .resource-action-panel { position: static; }
  .case-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (max-width: 767px) {
  .inner-shell { padding-top: 26px; padding-bottom: 70px; }
  .breadcrumbs { margin-bottom: 38px; }
  .page-hero, .case-hero { padding-bottom: 54px; }
  .section-heading-row, .notice-panel { align-items: flex-start; flex-direction: column; }
  .comparison-grid, .legal-toc ol, .case-toc ol { grid-template-columns: 1fr; }
  .site-footer .footer-simple { align-items: flex-start; flex-direction: column; }
  .footer-legal ul { justify-content: flex-start; }
  .not-found-panel { padding: 32px 24px; }
  .table-scroll { overflow: visible; border: 0; box-shadow: none; }
  .architecture-table, .architecture-table tbody, .architecture-table tr, .architecture-table th, .architecture-table td { display: block; width: 100%; min-width: 0; }
  .architecture-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .architecture-table tr { margin-bottom: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.88); border: 1px solid var(--panel-line); border-radius: var(--radius-sm); }
  .architecture-table th, .architecture-table td { padding: 13px 16px; border-bottom: 1px solid var(--panel-line); }
  .architecture-table td::before, .architecture-table tbody th::before { display: block; margin-bottom: 4px; color: var(--ink-mute); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
  .architecture-table tbody th::before { content: "Surface"; }
  .architecture-table td:nth-child(2)::before { content: "Primary role"; }
  .architecture-table td:nth-child(3)::before { content: "Responsibilities"; }
  .architecture-table td:nth-child(4)::before { content: "Delivery state"; }
}

@media only screen and (max-width: 480px) {
  .facts-list, .work-grid, .resource-grid { grid-template-columns: 1fr; }
}

/* ---- Homepage conversion system ------------------------------------- */
.home-page::before {
  background: linear-gradient(100deg, rgba(247, 250, 252, 0.97) 0%, rgba(247, 250, 252, 0.91) 48%, rgba(247, 250, 252, 0.56) 100%);
}

.btn[aria-busy="true"] { cursor: wait; opacity: 0.72; }

.work-facts dt { color: var(--ink-mute); font-family: var(--display); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.section-quiet { background: rgba(255, 255, 255, 0.5); border-block: 1px solid rgba(24, 32, 53, 0.07); }
.section-intro { max-width: 790px; margin-bottom: 58px; }
.section-intro > p:last-child, .editorial-heading > p:last-child { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.75; }
.section-intro > p:last-child { max-width: 660px; margin-top: 24px; }

/* Preserve the original About composition requested for this section. */
.about-section { padding: 84px 0; }

.featured-work-list { display: grid; gap: 36px; }
.featured-work { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); min-height: 500px; overflow: hidden; background: rgba(255, 255, 255, 0.88); border: 1px solid var(--panel-line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.featured-work-media { display: block; min-height: 100%; overflow: hidden; background: #edf1f5; border-right: 1px solid var(--panel-line); }
.featured-work-media img { display: block; width: 100%; height: 100%; padding: 22px; object-fit: contain; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.featured-work-media:hover img, .featured-work-media:focus img { transform: scale(1.018); }
.featured-work-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 58px); }
.featured-work .card-meta { justify-content: space-between; color: var(--ink-mute); font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.featured-work h3 { margin-top: 26px; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.04em; }
.featured-work h3 a { color: var(--ink); text-decoration: none; }
.featured-work h3 a:hover, .featured-work h3 a:focus { color: var(--accent); }
.work-subtitle { margin-top: 18px; color: var(--accent) !important; font-family: var(--display); font-size: 0.86rem !important; font-weight: 700; line-height: 1.55 !important; }
.featured-work-copy > p:not(.work-subtitle) { margin-top: 16px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.72; }
.work-facts { display: grid; gap: 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--panel-line); }
.work-facts dd { margin-top: 5px; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.55; }
.work-actions { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 28px; }
.text-link, .section-link { color: var(--accent); font-family: var(--display); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus, .section-link:hover, .section-link:focus { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link-muted { color: var(--ink-soft); }
.section-link { display: inline-flex; gap: 8px; margin-top: 30px; }

.editorial-grid, .faq-layout { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: clamp(56px, 8vw, 112px); align-items: start; }
.editorial-heading { position: sticky; top: 118px; }
.editorial-heading .section-title { font-size: clamp(2.05rem, 3.6vw, 3.05rem); }
.editorial-heading > p:last-child { max-width: 460px; margin-top: 26px; }
.capability-list { border-top: 1px solid var(--panel-line); }
.capability-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--panel-line); }
.capability-number, .process-number { color: var(--accent); font-family: var(--display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.capability-item h3, .process-list h3, .technical-group h3 { color: var(--ink); font-family: var(--display); font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.capability-item p { margin-top: 9px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.68; }

.process-section { background: rgba(240, 244, 248, 0.62); }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--panel-line); }
.process-list li { position: relative; padding: 30px 28px 4px; border-left: 1px solid var(--panel-line); }
.process-list li:first-child { padding-left: 0; border-left: 0; }
.process-list h3 { margin-top: 38px; font-size: 1.22rem; }
.process-list p { margin-top: 12px; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.7; }

.history-period { color: var(--ink-mute); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; }
.history-location { color: var(--ink-mute); font-size: 0.75rem; white-space: nowrap; }

.technical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 54px; border-top: 1px solid var(--panel-line); }
.technical-group { padding: 28px 0 32px; border-bottom: 1px solid var(--panel-line); }
.technical-group ul { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 15px; list-style: none; }
.technical-group li { position: relative; color: var(--ink-soft); font-size: 0.79rem; line-height: 1.5; }
.technical-group li:not(:last-child)::after { content: "·"; position: absolute; right: -10px; color: var(--accent); }

.conversion-section { padding-top: clamp(72px, 9vw, 116px); padding-bottom: clamp(72px, 9vw, 116px); }
.conversion-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 52px 80px; padding: clamp(38px, 6vw, 72px); color: var(--ink-soft); background: rgba(255, 255, 255, 0.86); border: 1px solid var(--panel-line); border-top: 4px solid var(--accent); border-radius: 16px; box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.conversion-panel .section-eyebrow { color: var(--accent); }
.conversion-copy h2 { max-width: 720px; margin-top: 18px; color: var(--ink); font-family: var(--display); font-size: clamp(2.05rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; }
.conversion-copy > p:last-child { max-width: 670px; margin-top: 24px; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.72; }
.conversion-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; }
.conversion-actions > p { margin-top: 4px; color: var(--ink-mute); font-size: 0.68rem; text-align: center; }
.profile-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 26px; border-top: 1px solid var(--panel-line); font-family: var(--display); font-size: 0.72rem; }
.profile-links > span { color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.profile-links a { display: inline-flex; gap: 5px; color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.profile-links a:hover, .profile-links a:focus { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.cal-embed { z-index: 1000 !important; }

.inner-page .page-hero h1, .inner-page .case-hero h1, .not-found-panel h1 { font-weight: 700; letter-spacing: -0.05em; }
.inner-page .work-card, .inner-page .resource-category-card, .inner-page .not-found-panel { box-shadow: var(--shadow-sm); }
.inner-page .work-card:hover { transform: translateY(-2px); }

@media only screen and (max-width: 1080px) {
  .container { padding-inline: 34px; }
  .site-header-inner { gap: 18px; }
  .site-nav a { padding-inline: 8px; }
  .featured-work { grid-template-columns: 1fr; }
  .featured-work-media { aspect-ratio: 16 / 8.5; min-height: 0; border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .featured-work-media img { padding: 14px; }
}

@media only screen and (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-header-inner { grid-template-columns: 1fr; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { width: max-content; }
  html { scroll-padding-top: 126px; }
  .hero { min-height: min(78svh, 700px); }
  .editorial-grid, .faq-layout { grid-template-columns: 1fr; gap: 48px; }
  .editorial-heading { position: static; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list li:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--panel-line); }
  .process-list li:nth-child(4) { border-top: 1px solid var(--panel-line); }
  .conversion-panel { grid-template-columns: 1fr; }
  .conversion-actions { max-width: 420px; }
}

@media only screen and (max-width: 767px) {
  .container { padding-inline: 20px; }
  .site-header { padding: 9px 0 7px; }
  .site-header-inner { display: grid; gap: 7px 14px; }
  .site-brand-mark { width: 38px; height: 38px; }
  .site-brand-text small { font-size: 0.66rem; }
  .site-nav { overscroll-behavior-inline: contain; }
  .site-nav ul { min-width: 100%; justify-content: space-between; }
  .site-nav a { padding: 6px 10px 7px 0; font-size: 0.74rem; white-space: nowrap; }
  .hero { min-height: calc(100svh - 89px); padding: 48px 0 56px; }
  .hero h1 { margin-top: 16px; font-size: clamp(2.2rem, 10vw, 2.75rem); line-height: 1.1; }
  .hero-intro { margin-top: 18px; font-size: 1.02rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 76px 0; }
  .section-title, .editorial-heading .section-title { margin-bottom: 32px; font-size: clamp(1.9rem, 8.7vw, 2.4rem); }
  .about-section { padding: 56px 0; }
  .section-intro { display: block; margin-bottom: 42px; }
  .featured-work { min-height: 0; border-radius: 14px; }
  .featured-work-media { aspect-ratio: 16 / 10; }
  .featured-work-copy { padding: 28px 24px 32px; }
  .featured-work h3 { font-size: 1.75rem; }
  .capability-item { grid-template-columns: 36px 1fr; gap: 12px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:first-child, .process-list li:nth-child(3) { padding: 26px 0; border-left: 0; border-top: 1px solid var(--panel-line); }
  .process-list li:first-child { border-top: 0; }
  .process-list h3 { margin-top: 16px; }
  .history-item { grid-template-columns: 1fr; gap: 12px; align-items: flex-start; padding: 18px 20px; }
  .history-location { white-space: normal; }
  .technical-grid { grid-template-columns: 1fr; }
  .conversion-panel { gap: 38px; padding: 34px 24px; border-radius: 14px; }
  .conversion-copy h2 { font-size: clamp(1.9rem, 8.7vw, 2.4rem); }
  .profile-links { gap: 14px 18px; }
  .profile-links > span { width: 100%; }
}

@media only screen and (max-width: 430px) {
  .site-brand-text small { display: none; }
  .site-brand-text strong { font-size: 0.9rem; }
  .work-actions { flex-direction: column; }
}
