/* Ty Collins — Corporate Navy & Warm White design system (from the Figma template). */
:root {
  --navy: #172b45; --steel: #496782; --warm-white: #f7f8f7; --white: #fff; --slate: #536476;
  --text: #3d4b5c; --border: #dfe5e9; --surface: #e7ecef;
  --heading: "IBM Plex Sans", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius-sm: 5px; --radius-md: 8px; --content: 1160px; --transition: .18s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--warm-white); color: var(--slate); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
img, svg { max-width: 100%; }
::selection { color: var(--white); background: var(--steel); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 30; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { transform: none; }

.content-shell, .nav-shell, .wrap { width: min(calc(100% - 96px), var(--content)); margin-inline: auto; }

/* Navigation */
.site-header { z-index: 20; border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; }
.nav-shell { display: flex; justify-content: space-between; align-items: center; min-height: 76px; }
.wordmark { color: var(--navy); font: 600 18px/1 var(--heading); letter-spacing: .04em; }
.wordmark span { color: var(--steel); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { display: flex; align-items: center; min-height: 44px; color: var(--navy); font: 500 15px/1 var(--body); border-bottom: 2px solid #0000; transition: color var(--transition), border-color var(--transition); }
.nav-links a:hover { color: var(--steel); border-color: var(--steel); }

/* Shared type */
.eyebrow { color: var(--steel); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; }
.section { padding: 96px 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading h2 { color: var(--navy); font: 600 clamp(34px, 3.2vw, 44px)/1.15 var(--heading); letter-spacing: -.025em; margin-bottom: 18px; }
.section-description { max-width: 720px; margin-bottom: 0; font-size: 18px; line-height: 1.6; }

/* Buttons and links */
.button, .btn { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 48px; padding: 0 20px; border: 1px solid var(--navy); border-radius: var(--radius-sm); color: var(--navy); background: none; font: 600 15px/1.2 var(--body); transition: background-color var(--transition), color var(--transition), border-color var(--transition); }
.button span { font-size: 18px; transition: transform var(--transition); }
.button:hover span { transform: translate(3px); }
.button-primary, .btn.primary { color: var(--white); background: var(--navy); }
.button-primary:hover, .btn.primary:hover { background: var(--steel); border-color: var(--steel); }
.button-secondary:hover, .btn:not(.primary):hover { color: var(--white); background: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 9px; width: fit-content; min-height: 44px; margin-top: auto; color: var(--steel); font-weight: 600; text-decoration: underline #0000; text-underline-offset: 4px; transition: color var(--transition), text-decoration-color var(--transition); }
.text-link:hover { color: var(--navy); text-decoration-color: currentColor; }

/* Hero */
.hero { background: var(--warm-white); padding: 112px 0 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: end; gap: 96px; }
.hero h1 { max-width: 780px; color: var(--navy); font: 600 clamp(48px, 4.2vw, 60px)/1.1 var(--heading); letter-spacing: -.035em; margin-bottom: 28px; }
.hero-description { max-width: 650px; margin-bottom: 36px; font-size: 19px; line-height: 1.6; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-system { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
.system-header { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 18px; color: var(--steel); background: var(--surface); border-bottom: 1px solid var(--border); font: 500 10px/1 var(--mono); letter-spacing: .06em; }
.system-list { padding: 10px 18px; }
.system-list > div { display: grid; grid-template-columns: 36px 1fr; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border); }
.system-list > div:last-child { border-bottom: 0; }
.system-list span { color: var(--steel); font: 500 10px/1 var(--mono); }
.system-list p { color: var(--navy); font: 500 15px/1.3 var(--heading); margin: 0; }
.system-location { color: var(--slate); background: var(--warm-white); border-top: 1px solid var(--border); font: 400 10px/1.4 var(--mono); margin: 0; padding: 14px 18px; }

/* Metrics */
.metrics { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics-grid > div { border-right: 1px solid var(--border); padding: 32px 28px; }
.metrics-grid > div:first-child { padding-left: 0; }
.metrics-grid > div:last-child { border-right: 0; }
.metrics strong { display: block; color: var(--navy); font: 600 30px/1.2 var(--heading); letter-spacing: -.02em; margin-bottom: 6px; }
.metrics p { max-width: 190px; margin: 0; font-size: 14px; line-height: 1.45; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--transition), border-color var(--transition); }
.project-card:hover { border-color: var(--steel); transform: translateY(-3px); }
.project-visual { position: relative; height: 274px; background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.project-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; color: var(--steel); font: 600 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.project-card h3 { color: var(--navy); font: 600 22px/1.3 var(--heading); letter-spacing: -.012em; margin-bottom: 13px; }
.project-card .project-body > p { margin-bottom: 20px; line-height: 1.6; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.tag { color: var(--slate); background: var(--warm-white); border: 1px solid var(--border); font: 500 10px/1.2 var(--mono); border-radius: 4px; padding: 5px 8px; }

.architecture-enterprise { padding: 48px 32px 32px; }
.architecture-row { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin-top: 34px; }
.architecture-row span { min-width: 66px; color: var(--navy); background: var(--white); border: 1px solid var(--steel); border-radius: var(--radius-sm); text-align: center; font: 500 10px/1 var(--mono); padding: 12px 9px; }
.architecture-row i { background: var(--steel); height: 1px; }
.governance-rail { display: flex; justify-content: center; gap: 16px; margin: 45px 10% 0; padding-top: 12px; color: var(--slate); border-top: 1px solid var(--steel); font: 500 9px/1.4 var(--mono); }
.governance-rail b { color: var(--navy); font-weight: 600; }
.architecture-capital { display: grid; place-items: center; }
.capital-center { z-index: 2; display: grid; place-items: center; width: 86px; height: 86px; color: var(--white); background: var(--navy); text-align: center; font: 500 11px/1.3 var(--mono); border-radius: 50%; }
.capital-center { margin-bottom: 28px; }
.agent-ring { position: absolute; width: 200px; height: 200px; margin-bottom: 28px; border: 1px solid var(--steel); border-radius: 50%; }
.agent-ring span { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; color: var(--navy); background: var(--white); border: 1px solid var(--steel); font: 500 9px/1 var(--mono); border-radius: 50%; }
.agent-ring span:first-child { top: -15px; left: calc(50% - 15px); }
.agent-ring span:nth-child(2) { top: 35px; right: 3px; }
.agent-ring span:nth-child(3) { bottom: 35px; right: 3px; }
.agent-ring span:nth-child(4) { bottom: -15px; left: calc(50% - 15px); }
.agent-ring span:nth-child(5) { bottom: 35px; left: 3px; }
.agent-ring span:nth-child(6) { top: 35px; left: 3px; }
.architecture-capital > p { position: absolute; bottom: 14px; margin: 0; font: 500 9px/1 var(--mono); }
.architecture-research { padding: 26px 36px; }
.research-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--steel); font: 500 9px/1.4 var(--mono); }
.research-bars > div { display: grid; grid-template-columns: 68px 1fr 40px; align-items: center; gap: 10px; height: 24px; color: var(--slate); font: 500 10px/1 var(--mono); }
.research-bars i { width: var(--bar); min-width: 1px; background: var(--steel); height: 8px; }
.research-bars b { font-weight: 500; text-align: right; }
.architecture-reporting { padding: 34px 40px; }
.report-code { display: grid; grid-template-columns: 28px 1fr; padding: 12px 18px; background: var(--navy); border-radius: var(--radius-sm); }
.report-code span, .report-code p { font: 400 10px/1.2 var(--mono); border-bottom: 1px solid #ffffff21; margin: 0; padding: 8px 0; }
.report-code span { color: #aec0d1; }
.report-code p { color: var(--white); }
.report-status { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--steel); font: 600 9px/1 var(--mono); }
.report-status i { background: var(--steel); border-radius: 50%; width: 7px; height: 7px; }

/* More projects list */
.more-heading { margin: 72px 0 0; }
.more-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); }
.more-list li { display: grid; grid-template-columns: 240px 1fr; gap: 4px 24px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.more-list a, .more-list b { color: var(--navy); font: 600 16px/1.5 var(--heading); }
.more-list a { text-decoration: underline #0000; text-underline-offset: 4px; transition: color var(--transition), text-decoration-color var(--transition); }
.more-list a:hover { color: var(--steel); text-decoration-color: currentColor; }

/* Approach (navy) */
.approach { color: var(--white); background: var(--navy); }
.approach-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 96px; }
.section-heading-inverse { margin: 0; }
.section-heading-inverse .eyebrow { color: #b9cad8; }
.section-heading-inverse h2 { color: var(--white); }
.approach-copy { padding-top: 45px; }
.approach-copy > p { color: #d7e0e7; max-width: 600px; font-size: 18px; line-height: 1.65; }
.principle-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 42px; border-top: 1px solid #496079; }
.principle-row > div { border-right: 1px solid #496079; padding: 18px 16px 0 0; }
.principle-row > div:not(:first-child) { padding-left: 16px; }
.principle-row > div:last-child { border-right: 0; }
.principle-row span { color: #b9cad8; font: 500 11px/1 var(--mono); }
.principle-row p { color: var(--white); font: 500 14px/1.4 var(--heading); margin: 28px 0 0; }

/* About */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 96px; }
.portrait-reserve { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; max-height: 590px; color: var(--steel); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.portrait-reserve::before, .portrait-reserve::after { content: ""; position: absolute; inset: 24px; border-top: 1px solid #c7d2da; border-bottom: 1px solid #c7d2da; }
.portrait-reserve::after { border-top: 0; border-bottom: 0; border-left: 1px solid #c7d2da; border-right: 1px solid #c7d2da; }
.portrait-reserve > span { z-index: 1; color: #c0ccd5; font: 600 88px/1 var(--heading); letter-spacing: -.08em; }
.about-copy .section-heading { margin-bottom: 28px; }
.about-copy > p { max-width: 680px; font-size: 18px; }
.about-details { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 34px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-details > div { padding: 20px 20px 20px 0; }
.about-details > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
.about-details span { color: var(--steel); font: 600 11px/1 var(--mono); letter-spacing: .06em; }
.about-details p { color: var(--navy); margin: 9px 0 0; line-height: 1.5; }

/* Experience */
.experience { background: var(--warm-white); border-top: 1px solid var(--border); }
.role { display: grid; grid-template-columns: 240px 1fr; gap: 6px 24px; padding: 28px 0; border-top: 1px solid var(--border); }
.role .when { color: var(--steel); font: 500 12px/1.6 var(--mono); letter-spacing: .04em; padding-top: 5px; }
.role h3 { color: var(--navy); font: 600 20px/1.3 var(--heading); margin-bottom: 2px; }
.role ul { margin: 12px 0 0; padding-left: 20px; color: var(--text); }
.role li { margin-bottom: 6px; }

/* Contact and footer */
.contact { background: var(--white); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.contact h2 { color: var(--navy); font: 600 clamp(40px, 4vw, 52px)/1.15 var(--heading); letter-spacing: -.025em; margin: 0; }
.contact-copy > p { max-width: 600px; margin-bottom: 28px; font-size: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 28px; }
footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; min-height: 92px; }
.footer-grid p { margin: 0; font-size: 14px; }
.footer-grid > div { display: flex; gap: 28px; }
.footer-grid a { display: flex; align-items: center; min-height: 44px; color: var(--navy); font-size: 14px; text-decoration: underline #0000; text-underline-offset: 4px; }
.footer-grid a:hover { color: var(--steel); text-decoration-color: currentColor; }

/* Case study pages */
.case-head { padding: 72px 0 48px; max-width: 860px; }
.case-head h1 { color: var(--navy); font: 600 clamp(36px, 3.4vw, 44px)/1.15 var(--heading); letter-spacing: -.025em; margin-bottom: 20px; }
.case-head .eyebrow { margin-bottom: 18px; }
.case-head .actions { margin-top: 28px; }
.lede { max-width: 46em; font-size: 19px; line-height: 1.6; }
.back { color: var(--steel); font-weight: 600; font-size: 15px; text-decoration: underline #0000; text-underline-offset: 4px; }
.back:hover { color: var(--navy); text-decoration-color: currentColor; }
.layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: space-between; gap: 64px; align-items: start; padding-bottom: 96px; }
.layout aside { position: sticky; top: 100px; }
.prose { min-width: 0; color: var(--text); font-size: 17px; }
.prose h2 { color: var(--navy); font: 600 28px/1.2 var(--heading); letter-spacing: -.015em; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 8px 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose b, .prose strong { color: var(--navy); font-weight: 600; }
.prose a, .facts a, .lede a { color: var(--steel); font-weight: 600; text-decoration: underline; text-decoration-color: #49678266; text-underline-offset: 3px; }
.prose a:hover, .facts a:hover, .lede a:hover { color: var(--navy); text-decoration-color: currentColor; }
.prose a.btn, .prose a.btn:hover { text-decoration: none; }
.prose a.btn.primary { color: var(--white); }
.prose a.btn:not(.primary) { color: var(--navy); }
.prose a.btn:not(.primary):hover { color: var(--white); }
.facts { margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; font-size: 15px; line-height: 1.55; }
.facts dt { color: var(--steel); font: 600 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 18px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 5px 0 0; color: var(--navy); }

/* Step diagrams. A numbered list of rows by default; a row of boxes only when there is room. */
.prose { container-type: inline-size; }
.flow { margin: 20px 0 16px; padding: 0; list-style: none; counter-reset: step; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.flow li { display: grid; grid-template-columns: 34px minmax(110px, 170px) 1fr; align-items: baseline; gap: 4px 14px; margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.45; counter-increment: step; }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: "0" counter(step); color: var(--steel); font: 500 11px/1 var(--mono); }
.flow li b { color: var(--navy); font: 600 15px/1.4 var(--heading); }
.flow li span { color: var(--slate); }
@container (min-width: 720px) {
  .flow.wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 26px; background: none; border: 0; border-radius: 0; }
  .flow.wide li { position: relative; display: block; padding: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
  .flow.wide li::before { display: block; margin-bottom: 8px; }
  .flow.wide li b { display: block; }
  .flow.wide li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--steel); }
}
@media (width <= 480px) { .flow li { grid-template-columns: 30px 1fr; } .flow li span { grid-column: 2; } }

.table-wrap { overflow-x: auto; margin: 18px 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--steel); background: var(--warm-white); font: 600 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.note { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--navy); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 16px; }
.prose .note { margin-bottom: 36px; }
figure.chart { margin: 22px 0 12px; }
figure.chart img { display: block; width: 100%; height: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
figure.chart figcaption { color: var(--slate); font-size: 14px; margin-top: 8px; }
code { font-family: var(--mono); font-size: .9em; color: var(--navy); }
.demo-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }

@media (width <= 900px) {
  .content-shell, .nav-shell, .wrap { width: min(calc(100% - 48px), var(--content)); }
  .hero { padding: 88px 0 80px; }
  .hero-grid, .approach-grid, .about-grid, .contact-grid { gap: 56px; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid > div:nth-child(2) { border-right: 0; }
  .metrics-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .metrics-grid > div:nth-child(3) { padding-left: 0; }
  .section { padding: 80px 0; }
  .project-visual { height: 240px; }
  .agent-ring { width: 166px; height: 166px; margin-bottom: 26px; }
  .capital-center { width: 74px; height: 74px; margin-bottom: 26px; }
  .agent-ring span:nth-child(2), .agent-ring span:nth-child(6) { top: 22px; }
  .agent-ring span:nth-child(3), .agent-ring span:nth-child(5) { bottom: 22px; }
  .agent-ring span:nth-child(2), .agent-ring span:nth-child(3) { right: -3px; }
  .agent-ring span:nth-child(5), .agent-ring span:nth-child(6) { left: -3px; }
  .architecture-enterprise { padding-inline: 18px; }
  .architecture-row span { min-width: 52px; font-size: 8px; }
  .architecture-research { padding: 18px 24px; }
  .research-bars > div { height: 22px; }
  .about-grid { grid-template-columns: .75fr 1.25fr; }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .layout aside { position: static; order: -1; }
}
@media (width <= 700px) {
  .content-shell, .nav-shell, .wrap { width: calc(100% - 40px); }
  .nav-shell { min-height: 68px; }
  .nav-links { gap: 20px; }
  .hero { padding: 72px 0 64px; }
  .hero-grid, .approach-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-description { font-size: 18px; }
  .hero-system { max-width: 480px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-visual { height: 260px; }
  .approach-copy { padding-top: 0; }
  .portrait-reserve { aspect-ratio: 4/3; width: min(100%, 420px); }
  .about-copy { order: -1; }
  .role, .more-list li { grid-template-columns: 1fr; }
  .case-head { padding: 48px 0 36px; }
  table { font-size: 14px; }
  th, td { padding: 9px 10px; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0; }
  .footer-grid > div { flex-wrap: wrap; gap: 10px 24px; }
}
@media (width <= 420px) {
  .wordmark { font-size: 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .hero-actions { display: grid; }
  .button { justify-content: space-between; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid > div, .metrics-grid > div:first-child, .metrics-grid > div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 0; }
  .metrics-grid > div:last-child { border-bottom: 0; }
  .project-body { padding: 24px 22px 26px; }
  .architecture-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .architecture-row i { display: none; }
  .governance-rail { flex-wrap: wrap; margin-inline: 0; }
  .architecture-reporting { padding-inline: 22px; }
  .principle-row { grid-template-columns: 1fr; }
  .principle-row > div, .principle-row > div:not(:first-child) { border-bottom: 1px solid #496079; border-right: 0; min-height: 80px; padding: 14px 0; }
  .principle-row p { margin-top: 12px; }
  .about-details { grid-template-columns: 1fr; }
  .about-details > div + div { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .contact-links { display: grid; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition-duration: .01ms !important; }
}
