@font-face {
  font-family: Outfit;
  src: url('/portfolio/outfit-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #183c34;
  --forest-dark: #102a25;
  --forest-hover: #245649;
  --ivory: #f6f3ec;
  --paper: #fffefb;
  --ink: #1c2522;
  --muted: #646c64;
  --line: #dce2d9;
  --clay: #b96643;
  --header-height: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; min-width: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: Outfit, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 550; line-height: 1.15; }
h1, h2 { letter-spacing: -.04em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: #dec6a6; color: var(--forest-dark); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 5px; }
.shell { width: min(1190px, calc(100% - 2 * max(40px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)))); margin-inline: auto; }
.eyebrow { color: var(--forest); font-size: 11px; font-weight: 600; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; }
.text-link, .back-link { display: inline-flex; align-items: center; gap: 14px; color: var(--forest); font-weight: 500; }
.text-link { padding-block: 5px; border-bottom: 1px solid #bfc9bf; }
.text-link:hover { border-color: var(--forest); }
a > span[aria-hidden] { transition: transform 180ms ease; }
a:hover > span[aria-hidden] { transform: translate(2px, -2px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.4; transition: background-color 180ms ease, transform 180ms ease; }
.button > span { font-size: 21px; }
.button:hover { transform: translateY(-2px); }
.button-forest { background: var(--forest); color: var(--paper); }
.button-forest:hover { background: var(--forest-hover); }
.button-light { background: var(--paper); color: var(--forest-dark); }
.button-light:hover { background: #e8ede3; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 110; padding: 12px 18px; border-radius: 8px; background: var(--paper); color: var(--forest); }
.skip-link:focus { top: 12px; }

/* The navigation keeps the same compact wordmark and quiet, solid surfaces. */
.site-header { position: sticky; top: 0; z-index: 50; min-height: var(--header-height); padding-top: env(safe-area-inset-top, 0px); background: #fffefbf2; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 28px; }
.wordmark { display: inline-flex; flex-direction: column; flex-shrink: 0; color: var(--ink); line-height: .95; letter-spacing: -.045em; }
.wordmark > span { font-size: 20px; font-weight: 500; }
.wordmark > strong { font-size: 27px; font-weight: 700; }
.wordmark i { color: var(--clay); font-style: normal; }
.desktop-nav { display: flex; align-items: center; gap: 38px; font-size: 16px; font-weight: 500; }
.desktop-nav > a { padding-block: 12px; }
.desktop-nav > a:hover { color: var(--forest-hover); }
.desktop-nav > a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.desktop-nav .nav-external { display: inline-flex; align-items: center; gap: 13px; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Introduction */
.hero { background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); align-items: center; gap: 72px; padding-block: 78px 72px; }
.hero h1 { margin-top: 24px; font-size: clamp(42px, 4.7vw, 66px); font-weight: 600; line-height: 1.08; letter-spacing: -.048em; }
.hero h1 span { color: var(--forest); }
.hero-intro { max-width: 590px; margin-top: 28px; color: #555f58; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }
.hero-portrait { width: 100%; max-width: 410px; justify-self: end; }
.portrait-frame { aspect-ratio: 1 / 1.08; overflow: hidden; border: 1px solid #d5ddd0; border-radius: 190px 190px 18px 18px; background: #e6eadf; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-portrait figcaption { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Selected work retains the four stacked scroll panels. */
.selected-work { padding-top: 78px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(34px, 3.8vw, 48px); }
.section-heading > p { max-width: 380px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-heading > .text-link { flex-shrink: 0; }
.case-stack { display: grid; align-items: start; gap: 28px; padding-bottom: 28px; }
.case-panel { position: sticky; top: calc(var(--header-height) + 18px); min-height: 565px; padding: 30px 40px 38px; border: 1px solid #fffefb1c; border-radius: 28px; background: var(--forest); color: var(--paper); box-shadow: 0 -8px 30px #102a2510; }
.case-1 { top: calc(var(--header-height) + 28px); background: #26473e; }
.case-2 { top: calc(var(--header-height) + 38px); background: #2d3f36; }
.case-3 { top: calc(var(--header-height) + 48px); background: #363f35; }
.case-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #fffefb26; color: #fffefbb3; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.case-topline > span:last-child { text-align: right; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; margin-top: 32px; }
.case-copy .eyebrow { color: #dce7d8; }
.case-copy h3 { margin-top: 10px; font-size: clamp(33px, 3.5vw, 46px); letter-spacing: -.035em; }
.case-summary { margin-top: 22px; color: #fffefbdb; font-size: 17px; line-height: 1.75; }
.case-role { margin-top: 24px; padding-top: 18px; border-top: 1px solid #fffefb26; }
.case-role > span { display: block; margin-bottom: 6px; color: #fffefb99; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.case-role > p { color: #fffefbdb; font-size: 14px; line-height: 1.65; }
.case-copy > .button { margin-top: 24px; }
.case-visual { min-width: 0; }

/* Product evidence: original captures, icons and explicitly named diagrams. */
.project-capture { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #eef0e8; color: var(--ink); }
.capture-stage { display: flex; align-items: center; justify-content: center; min-width: 0; height: 330px; padding: 20px; }
.capture-stage img { width: 100%; height: 100%; object-fit: contain; }
.portrait-capture .capture-stage { height: 410px; padding: 18px; }
.portrait-capture .capture-stage img { width: auto; max-width: 100%; }
.project-capture figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-capture figcaption > a, .project-gallery figcaption > a { flex-shrink: 0; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.workflow-visual { min-height: 330px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); color: var(--forest-dark); }
.visual-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.visual-topline > span:last-child { color: var(--clay); font-size: 11px; letter-spacing: .05em; }
.workflow-title { margin-top: 18px; font-size: 27px; font-weight: 550; letter-spacing: -.035em; line-height: 1.2; }
.workflow-nodes { display: flex; flex-direction: column; gap: 5px; margin-top: 22px; }
.workflow-node { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 11px 14px; border: 1px solid #d1dacf; border-radius: 9px; background: var(--paper); }
.node-step { flex-shrink: 0; color: var(--clay); font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.workflow-node > strong { font-size: 13px; font-weight: 500; line-height: 1.45; }
.workflow-connector { height: 14px; color: #839182; font-size: 17px; line-height: 14px; text-align: center; }
.workflow-visual > p { margin-top: 19px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.diagram-scope .workflow-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diagram-scope .workflow-node { min-height: 66px; align-items: flex-start; flex-direction: column; gap: 7px; }
.diagram-scope .workflow-node:last-child:nth-child(odd) { grid-column: 1 / -1; }
.diagram-hierarchy .workflow-node { border-left: 3px solid #91a48e; }
.diagram-hierarchy .workflow-node:nth-of-type(2) { margin-left: 18px; }
.diagram-hierarchy .workflow-node:nth-of-type(3) { margin-left: 36px; }
.icon-workflow { position: relative; }
.icon-workflow > img { position: absolute; z-index: 1; top: 45px; right: 24px; width: 50px; height: 50px; object-fit: contain; border-radius: 11px; }
.icon-workflow .workflow-title { padding-right: 60px; }

/* Compact indexes provide a second level without repeating featured cards. */
.more-work { padding-block: 80px 100px; }
.project-index { border-top: 1px solid var(--line); }
.project-index > a { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 32px; align-items: center; gap: 28px; padding: 24px 4px; border-bottom: 1px solid var(--line); transition: color 180ms ease, background-color 180ms ease; }
.project-index > a:hover { color: var(--forest-hover); background: #f6f3ec80; }
.project-index-title { font-size: 23px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.project-index-kind { color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-index > a > span[aria-hidden] { justify-self: end; color: var(--forest); font-size: 25px; }
.home-contact { padding-block: 66px; border-top: 1px solid var(--line); background: var(--ivory); }
.contact-invitation { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 100px; }
.contact-invitation h2 { font-size: clamp(34px, 4vw, 48px); }
.contact-invitation p { margin-bottom: 22px; color: var(--muted); font-size: 17px; }

/* Work collection */
.page-intro { padding-block: 72px 46px; }
.page-intro h1 { margin-top: 14px; font-size: clamp(48px, 6vw, 72px); }
.page-intro > p:last-child { max-width: 650px; margin-top: 22px; color: var(--muted); font-size: 19px; line-height: 1.75; }
.work-section { padding-bottom: 54px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 43px; padding: 9px 17px; border: 1px solid #cbd5c8; border-radius: 999px; background: transparent; color: var(--forest); font-size: 14px; line-height: 1.4; }
.filters button:hover { background: #edf0e7; }
.filters button[aria-pressed='true'] { border-color: var(--forest); background: var(--forest); color: var(--paper); }
[data-filter-count] { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 32px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.project-thumbnail { display: block; height: 330px; overflow: hidden; background: #edf0e8; }
.project-thumbnail .project-capture { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 0; }
.project-thumbnail .capture-stage { flex: 1; min-height: 0; height: 270px; padding: 18px; }
.project-thumbnail .capture-stage img { transition: transform 300ms ease; }
.project-thumbnail:hover .capture-stage img { transform: scale(1.025); }
.project-thumbnail .project-capture figcaption { flex-shrink: 0; background: #f3f4ed; }
.project-thumbnail .workflow-visual { min-height: 330px; height: 100%; padding: 23px 26px; border: 0; border-radius: 0; }
.project-thumbnail .workflow-title { margin-top: 14px; font-size: 25px; }
.project-thumbnail .workflow-nodes { margin-top: 17px; gap: 4px; }
.project-thumbnail .workflow-node { padding: 8px 12px; }
.project-thumbnail .workflow-node > strong { font-size: 12px; }
.project-thumbnail .workflow-connector { height: 11px; font-size: 15px; line-height: 11px; }
.project-thumbnail .workflow-visual > p { margin-top: 15px; font-size: 10px; }
.project-card-body { padding: 27px 28px 30px; }
.project-card-body .eyebrow { font-size: 10px; }
.project-card h2 { margin-top: 12px; font-size: 29px; font-weight: 550; letter-spacing: -.03em; }
.project-card h2 a { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.project-card h2 a:hover { color: var(--forest-hover); }
.project-card h2 a > span { flex-shrink: 0; font-size: 24px; }
.project-card-body > p:last-child { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.earlier-work { padding-block: 28px 96px; }

/* Project details */
.project-intro { padding-block: 62px 34px; }
.back-link { margin-bottom: 38px; font-size: 13px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-title-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 65px; }
.project-title-row h1 { margin-top: 13px; font-size: clamp(46px, 5.5vw, 72px); line-height: 1.08; }
.project-title-row > p { color: var(--muted); font-size: 19px; line-height: 1.75; }
.project-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 40px; padding-block: 23px; border-block: 1px solid var(--line); }
.project-facts > div { display: flex; flex-direction: column; gap: 7px; }
.project-facts span { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.project-facts strong { font-size: 14px; font-weight: 450; line-height: 1.65; }
.project-showcase { padding-bottom: 70px; }
.project-showcase .capture-stage { height: auto; min-height: 280px; padding: 28px; }
.project-showcase .capture-stage img { height: auto; max-height: 670px; }
.project-showcase .portrait-capture .capture-stage { height: 660px; }
.project-showcase .portrait-capture .capture-stage img { width: auto; height: 100%; }
.project-showcase .project-capture figcaption { padding: 16px 22px; font-size: 12px; }
.project-showcase .workflow-visual { padding: 32px 48px; }
.project-showcase .workflow-title { font-size: 33px; }
.project-showcase .workflow-nodes { max-width: 760px; margin-top: 25px; }
.project-showcase .workflow-node { min-height: 46px; }
.project-showcase .workflow-node > strong { font-size: 15px; }
.project-showcase .workflow-visual > p { max-width: 760px; font-size: 13px; }
.project-showcase .icon-workflow > img { top: 62px; right: 48px; width: 64px; height: 64px; }
.project-showcase .icon-workflow .workflow-title { padding-right: 80px; }
.project-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 62px 90px; padding-bottom: 86px; }
.story-heading h2 { max-width: 360px; margin-top: 12px; font-size: 36px; }
.story-content { min-width: 0; }
.story-lead { margin-bottom: 24px; color: #4d5a51; font-size: 19px; line-height: 1.85; }
.scope-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; list-style: none; }
.scope-list li { padding-block: 15px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.contribution-list { list-style: none; }
.contribution-list li { position: relative; padding-left: 22px; color: #4d5a51; font-size: 17px; line-height: 1.8; }
.contribution-list li + li { margin-top: 17px; }
.contribution-list li::before { content: ''; position: absolute; top: .8em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
.stack { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.stack h3 { margin-bottom: 14px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.stack li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 5px; background: #f3f4ed; color: #4d5a51; font-size: 12px; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; padding-bottom: 80px; }
.project-gallery figure { padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #f0f2e9; }
.project-gallery figure > img { width: 100%; max-height: 660px; object-fit: contain; }
.project-gallery figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.project-links { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; padding-block: 36px 44px; border-top: 1px solid var(--line); }
.project-links h2 { margin-top: 10px; font-size: 36px; }
.project-links p:not(.eyebrow) { max-width: 440px; margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.link-list { border-top: 1px solid var(--line); }
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 63px; padding-block: 15px; border-bottom: 1px solid var(--line); color: var(--forest); font-size: 18px; }
.resource-link:hover { color: var(--forest-hover); }
.resource-link > span { flex-shrink: 0; font-size: 23px; }
.next-project { display: flex; justify-content: space-between; align-items: baseline; gap: 36px; margin-top: 28px; padding-block: 30px 80px; border-top: 1px solid var(--line); }
.next-project > span { flex-shrink: 0; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.next-project-link { display: inline-flex; align-items: baseline; gap: 24px; color: var(--forest); font-size: clamp(26px, 3.6vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; }
.next-project-link > span { flex-shrink: 0; }

/* About */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px 75px; padding-block: 76px 82px; }
.about-intro > .eyebrow { grid-column: 1 / -1; }
.about-intro h1 { font-size: clamp(48px, 5.6vw, 72px); line-height: 1.09; }
.about-intro h1 span { color: var(--forest); }
.about-summary { color: #555f58; font-size: 18px; line-height: 1.85; }
.about-summary p + p { margin-top: 20px; }
.about-summary > .text-link { margin-top: 22px; font-size: 15px; }
.experience-section { padding-block: 72px; border-block: 1px solid var(--line); background: var(--ivory); }
.experience-list { margin-top: 34px; list-style: none; }
.experience-list > li { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 42px; padding-block: 31px; border-top: 1px solid #ced7cb; }
.experience-list > li:last-child { padding-bottom: 0; }
.experience-period { color: var(--muted); font-size: 13px; line-height: 1.75; }
.experience-list h3 { color: var(--forest); font-size: 25px; font-weight: 550; }
.experience-place { margin-top: 8px; font-size: 15px; font-weight: 500; }
.experience-list li > div > p:not(.experience-place) { max-width: 770px; margin-top: 15px; color: #555f58; font-size: 16px; line-height: 1.8; }
.experience-list li > div > p.experience-note { color: var(--muted); font-size: 13px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; font-size: 14px; }
.experience-list li > div > .text-link { margin-top: 18px; font-size: 14px; }
.about-scope { display: grid; grid-template-columns: .85fr 1.4fr; gap: 90px; padding-block: 80px 92px; }
.about-scope h2 { max-width: 360px; margin-top: 12px; font-size: 39px; }
.about-scope dl > div { padding-block: 23px; border-top: 1px solid var(--line); }
.about-scope dt { color: var(--forest); font-size: 21px; font-weight: 500; }
.about-scope dd { margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.75; }

/* Contact and durable form feedback */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 90px; padding-block: 76px 100px; }
.contact-copy { position: sticky; top: calc(var(--header-height) + 48px); }
.contact-copy h1 { margin-top: 14px; font-size: 72px; }
.contact-copy > p:not(.eyebrow) { max-width: 410px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.contact-email { display: inline-flex; align-items: baseline; gap: 15px; margin-top: 30px; color: var(--forest); font-size: clamp(19px, 2vw, 25px); font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact-email > span { flex-shrink: 0; }
.contact-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.copy-email { padding: 2px 0; border: 0; border-bottom: 1px solid #bfc9bf; border-radius: 0; background: transparent; font-size: 13px; }
[data-copy-status] { color: var(--muted); font-size: 12px; }
.contact-other { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; font-size: 14px; }
.contact-form { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--ivory); }
.contact-form h2 { margin-bottom: 27px; color: var(--forest); font-size: 27px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-field { min-width: 0; margin-bottom: 21px; }
.form-field label { display: block; margin-bottom: 8px; color: #36443b; font-size: 13px; font-weight: 500; line-height: 1.5; }
.form-field label > span { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd4c7; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5; }
.form-field select { padding-right: 30px; }
.form-field textarea { min-height: 145px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #889083; }
.form-field [aria-invalid='true'] { border-color: #a9563d; }
.form-field input[type='file'] { padding: 8px; font-size: 12px; line-height: 1.8; }
.form-field input[type='file']::file-selector-button { margin-right: 10px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 5px; background: #e9eee2; color: var(--forest); font-family: inherit; font-size: 12px; cursor: pointer; }
.attachment-field > p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.contact-form noscript p { margin-top: 18px; font-size: 14px; }
.contact-form noscript a { text-decoration: underline; }
.form-feedback, #form-feedback { margin-bottom: 22px; padding: 15px 17px; border: 1px solid #b8cab4; border-radius: 10px; background: #eaf0e4; color: var(--forest); font-size: 14px; line-height: 1.7; }
.form-feedback[data-state='error'], #form-feedback[data-state='error'] { border-color: #dbb09f; background: #f8ebe3; color: #883e2c; }
.field-error { margin-top: 6px; color: #943f2c; font-size: 12px; line-height: 1.6; }
.contact-form [disabled] { opacity: .65; }
.contact-form[data-submitting='true'] .button { transform: none; }

/* Quiet shared footer and non-blocking reveal motion. */
.site-footer { padding-block: 29px; background: var(--forest-dark); color: var(--ivory); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner > p { color: #f6f3ecad; font-size: 12px; }
.footer-inner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 12px; }
.site-footer .text-link { gap: 8px; padding: 0; border: 0; color: inherit; font-size: 12px; font-weight: 400; }
.site-footer a:hover { color: #e9c7ae; }
.back-top { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; }
.reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 1500px) {
  .hero-grid { padding-block: 88px; gap: 90px; }
}

@media (max-width: 1050px) {
  :root { --header-height: 82px; }
  .shell { width: calc(100% - 2 * max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
  .desktop-nav { gap: 26px; }
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(245px, 1fr); gap: 36px; padding-block: 58px; }
  .hero h1 { font-size: clamp(35px, 4.7vw, 50px); }
  .hero-intro { font-size: 16px; }
  .hero-portrait { max-width: 350px; }
  .case-panel { padding: 25px 29px 30px; min-height: 530px; }
  .case-grid { gap: 30px; }
  .case-copy h3 { font-size: 37px; }
  .case-summary { font-size: 16px; }
  .portrait-capture .capture-stage { height: 365px; }
  .workflow-visual { padding: 22px; }
  .workflow-title { font-size: 24px; }
  .case-role { margin-top: 20px; }
  .contact-invitation { gap: 55px; }
  .work-grid { gap: 23px; }
  .project-card-body { padding: 24px; }
  .project-thumbnail { height: 340px; }
  .project-thumbnail .workflow-visual { padding-inline: 22px; }
  .project-title-row { gap: 40px; }
  .project-title-row > p { font-size: 17px; }
  .project-story { gap: 48px; }
  .story-heading h2 { font-size: 32px; }
  .project-links { gap: 45px; }
  .about-intro { gap: 22px 42px; }
  .about-intro h1 { font-size: 57px; }
  .about-summary { font-size: 16px; }
  .experience-list > li { grid-template-columns: 190px 1fr; gap: 30px; }
  .about-scope { gap: 48px; }
  .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 42px; }
  .contact-copy h1 { font-size: 62px; }
  .contact-copy > p:not(.eyebrow) { font-size: 16px; }
  .contact-email { font-size: 20px; }
  .contact-form { padding: 26px; }
}

@media (max-width: 760px) {
  :root { --header-height: 76px; }
  html { scroll-padding-top: 96px; }
  .shell { width: calc(100% - 2 * max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
  .wordmark > span { font-size: 18px; }
  .wordmark > strong { font-size: 25px; }
  .desktop-nav { display: none; }
  .menu-toggle { position: relative; display: block; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--forest); }
  .menu-toggle > span { position: absolute; left: 11px; top: 16px; width: 20px; height: 2px; background: currentColor; transition: transform 180ms ease, top 180ms ease; }
  .menu-toggle > span + span { top: 24px; }
  /* The overlay is a body sibling, outside the header's backdrop-filter containing block. */
  .mobile-menu { position: fixed; z-index: 100; top: var(--navigation-top, calc(var(--header-height) + 1px)); left: 0; right: 0; height: calc(100vh - var(--navigation-top, calc(var(--header-height) + 1px))); height: calc(100dvh - var(--navigation-top, calc(var(--header-height) + 1px))); display: flex; flex-direction: column; align-items: stretch; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 22px max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); background: var(--forest-dark); color: var(--ivory); }
  .mobile-menu > a { display: block; flex-shrink: 0; min-height: 48px; padding-block: 12px; font-size: clamp(32px, 8.8vw, 42px); line-height: 1.35; letter-spacing: -.03em; }
  .mobile-menu > a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 10px; }
  .mobile-menu > .mobile-external { display: inline-flex; align-items: center; gap: 15px; margin-top: 20px; font-size: 20px; letter-spacing: 0; }
  .mobile-menu > .mobile-email { margin-top: 28px; padding-top: 24px; border-top: 1px solid #fffefb33; color: #f6f3ecbf; font-size: 16px; letter-spacing: 0; overflow-wrap: anywhere; }
  .site-header.menu-open { position: fixed; z-index: 101; inset-inline: 0; border-color: #fffefb20; background: var(--forest-dark); }
  html[data-navigation-open='true'] { overflow: hidden; overscroll-behavior: none; }
  html[data-navigation-open='true'] body { position: fixed; top: var(--navigation-scroll-top, 0px); inset-inline: 0; overflow: hidden; }
  .menu-open .wordmark, .menu-open .menu-toggle { color: var(--ivory); }
  .menu-open .menu-toggle { border-color: #fffefb42; }
  .menu-open .menu-toggle > span { top: 20px; transform: rotate(45deg); }
  .menu-open .menu-toggle > span + span { top: 20px; transform: rotate(-45deg); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 36px 45px; }
  .hero h1 { margin-top: 19px; font-size: clamp(32px, 8.35vw, 56px); line-height: 1.1; }
  .hero-intro { margin-top: 22px; font-size: 16px; line-height: 1.8; }
  .hero-actions { gap: 24px; margin-top: 26px; }
  .button { min-height: 51px; padding: 13px 20px; font-size: 14px; gap: 22px; }
  .hero-portrait { justify-self: center; max-width: 365px; }
  .portrait-frame { aspect-ratio: 1.12; border-radius: 145px 145px 15px 15px; }
  .portrait-frame img { object-position: 50% 32%; }
  .hero-portrait figcaption { margin-top: 12px; font-size: 11px; }
  .selected-work { padding-top: 51px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 17px; margin-bottom: 27px; }
  .section-heading h2 { margin-top: 8px; font-size: 34px; }
  .section-heading > p { max-width: 480px; font-size: 15px; }
  .section-heading > .text-link { font-size: 14px; }
  .case-stack { gap: 22px; padding-bottom: 0; }
  .case-panel { position: relative; top: auto; min-height: 0; padding: 23px; border-radius: 22px; box-shadow: none; }
  .case-topline { gap: 18px; padding-bottom: 18px; font-size: 9px; line-height: 1.6; }
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; margin-top: 25px; }
  .case-copy h3 { font-size: 33px; }
  .case-summary { margin-top: 17px; font-size: 16px; line-height: 1.75; }
  .case-role > p { font-size: 13px; }
  .case-copy > .button { margin-top: 22px; }
  .case-visual { width: 100%; }
  .capture-stage { height: 250px; padding: 12px; }
  .portrait-capture .capture-stage { height: 345px; padding: 13px; }
  .project-capture figcaption { padding: 11px 13px; font-size: 10px; }
  .workflow-visual { min-height: 310px; padding: 21px; }
  .workflow-title { font-size: 25px; }
  .workflow-node { padding: 10px 12px; }
  .workflow-node > strong { font-size: 12px; }
  .workflow-visual > p { font-size: 11px; }
  .more-work { padding-block: 60px 64px; }
  .project-index > a { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 18px; padding: 20px 0; }
  .project-index-title { grid-column: 1; font-size: 21px; }
  .project-index-kind { grid-column: 1; font-size: 12px; }
  .project-index > a > span[aria-hidden] { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 23px; }
  .home-contact { padding-block: 45px; }
  .contact-invitation { grid-template-columns: 1fr; gap: 22px; }
  .contact-invitation h2 { font-size: 35px; }
  .contact-invitation p { margin-bottom: 19px; font-size: 16px; }
  .page-intro { padding-block: 45px 31px; }
  .page-intro h1 { font-size: 51px; }
  .page-intro > p:last-child { margin-top: 18px; font-size: 17px; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 21px; }
  .filters { gap: 7px; }
  .filters button { min-height: 42px; padding: 9px 14px; font-size: 12px; }
  [data-filter-count] { font-size: 12px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 25px; }
  .project-thumbnail { height: 340px; }
  .project-card-body { padding: 23px; }
  .project-card h2 { font-size: 28px; }
  .project-card-body > p:last-child { font-size: 15px; }
  .work-section { padding-bottom: 38px; }
  .earlier-work { padding-block: 20px 66px; }
  .project-intro { padding-block: 39px 25px; }
  .back-link { margin-bottom: 27px; font-size: 12px; }
  .project-title-row { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .project-title-row h1 { font-size: clamp(40px, 10vw, 57px); }
  .project-title-row > p { font-size: 17px; line-height: 1.75; }
  .project-facts { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 29px; padding-block: 22px; }
  .project-facts > div { gap: 4px; }
  .project-showcase { padding-bottom: 47px; }
  .project-showcase .capture-stage { min-height: 0; padding: 12px; }
  .project-showcase .portrait-capture .capture-stage { height: min(140vw, 560px); padding: 17px; }
  .project-showcase .project-capture figcaption { padding: 13px; font-size: 11px; }
  .project-showcase .workflow-visual { padding: 24px; }
  .project-showcase .workflow-title { font-size: 27px; }
  .project-showcase .workflow-node > strong { font-size: 13px; }
  .project-showcase .workflow-visual > p { font-size: 12px; }
  .project-showcase .icon-workflow > img { top: 55px; right: 24px; width: 50px; height: 50px; }
  .project-showcase .icon-workflow .workflow-title { padding-right: 60px; }
  .project-story { grid-template-columns: minmax(0, 1fr); gap: 21px; padding-bottom: 52px; }
  .story-heading h2 { margin-top: 8px; font-size: 31px; }
  .story-content + .story-heading { margin-top: 22px; }
  .story-lead { font-size: 17px; }
  .scope-list { grid-template-columns: 1fr; }
  .scope-list li { padding-block: 12px; font-size: 15px; }
  .contribution-list li { font-size: 16px; }
  .project-gallery { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-bottom: 52px; }
  .project-gallery figure { padding: 16px; }
  .project-gallery figure > img { max-height: 620px; }
  .project-gallery figcaption { gap: 12px; font-size: 11px; }
  .project-links { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 28px 34px; }
  .project-links h2 { font-size: 31px; }
  .resource-link { min-height: 59px; font-size: 16px; }
  .next-project { display: block; margin-top: 16px; padding-block: 26px 56px; }
  .next-project-link { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-size: 29px; }
  .about-intro { display: block; padding-block: 45px 53px; }
  .about-intro h1 { margin-top: 16px; font-size: clamp(42px, 10vw, 57px); }
  .about-summary { margin-top: 29px; font-size: 16px; }
  .experience-section { padding-block: 48px; }
  .experience-list { margin-top: 28px; }
  .experience-list > li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 25px; }
  .experience-period { font-size: 12px; }
  .experience-list h3 { font-size: 23px; }
  .experience-place { font-size: 14px; }
  .experience-list li > div > p:not(.experience-place) { margin-top: 13px; font-size: 15px; }
  .inline-links { gap: 18px; font-size: 13px; }
  .about-scope { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 53px 64px; }
  .about-scope h2 { font-size: 34px; }
  .about-scope dl > div { padding-block: 20px; }
  .about-scope dt { font-size: 20px; }
  .about-scope dd { font-size: 15px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 39px; padding-block: 44px 65px; }
  .contact-copy { position: static; }
  .contact-copy h1 { font-size: 57px; }
  .contact-copy > p:not(.eyebrow) { max-width: 480px; margin-top: 19px; font-size: 17px; }
  .contact-email { margin-top: 24px; font-size: 23px; }
  .contact-other { margin-top: 27px; }
  .contact-form { padding: 24px; border-radius: 20px; }
  .contact-form h2 { margin-bottom: 24px; font-size: 25px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .form-field input[type='file'] { font-size: 12px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 19px; }
  .footer-inner > p { grid-column: 1 / -1; }
  .footer-inner > div { gap: 18px; }
  .site-footer { padding-block: 26px; }
  .back-top { gap: 7px; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
  .hero h1 { font-size: clamp(28px, 8.3vw, 32px); }
  .hero-actions { gap: 19px; }
  .hero-actions .button { gap: 17px; padding-inline: 18px; }
  .case-panel { padding: 20px; }
  .case-copy h3 { font-size: 31px; }
  .workflow-visual { padding: 18px; }
  .project-thumbnail .workflow-visual { padding-inline: 20px; }
  .contact-email { font-size: 20px; }
  .contact-form { padding: 21px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > p { grid-column: auto; }
  .back-top { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready, .reveal-ready.is-visible { opacity: 1; transform: none; }
  .button:hover, a:hover > span[aria-hidden], .project-thumbnail:hover .capture-stage img { transform: none; }
}

/* Presentation: the original immersive rhythm, carried by actual project evidence. */
.site-header { background: #fffefbf5; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ivory); }
.hero-grid { min-height: min(760px, calc(100svh - var(--header-height) - 82px)); grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 54px; padding-block: 85px 78px; }
.hero-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.hero-kicker .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.hero-name { color: var(--forest); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { position: relative; z-index: 2; margin-top: 24px; font-size: clamp(43px, 4.95vw, 70px); font-weight: 650; line-height: 1.035; letter-spacing: -.055em; }
.hero h1 > span { color: var(--forest); }
.hero-intro { max-width: 590px; margin-top: 28px; font-size: 18px; line-height: 1.75; }
.hero-actions { margin-top: 30px; }
.hero-actions .button { min-height: 57px; padding-inline: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 36px; padding-top: 20px; border-top: 1px solid #cdd6c9; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.hero-meta > span + span::before { content: '·'; margin-right: 22px; color: var(--clay); }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; margin-top: 27px; color: var(--forest); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hero-scroll > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #bdcbbb; border-radius: 50%; font-size: 16px; }
.hero-scroll:hover > span { transform: translateY(3px); }
.hero-portrait { --portrait-offset: 0px; position: relative; isolation: isolate; max-width: 420px; translate: 0 var(--portrait-offset); }
.hero-portrait::before { content: ''; position: absolute; z-index: -1; inset: 35px -17px 44px 25px; border-radius: 210px 210px 24px 24px; background: #d7ab8b; transform: rotate(6deg); }
.hero-orbit { position: absolute; z-index: -2; top: -30px; left: -25px; width: calc(100% + 50px); aspect-ratio: 1; border: 1px solid #183c3430; border-radius: 50%; pointer-events: none; }
.hero-orbit::after { content: ''; position: absolute; top: 22%; right: 2%; width: 11px; height: 11px; border: 3px solid var(--ivory); border-radius: 50%; background: var(--clay); }
.portrait-frame { position: relative; border: 9px solid var(--ivory); border-radius: 220px 220px 22px 22px; aspect-ratio: .91; box-shadow: 0 24px 60px #183c3414; }
.portrait-frame img { object-position: 50% 33%; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.hero-portrait:hover .portrait-frame img { transform: scale(1.025); }
.portrait-monogram { position: absolute; z-index: 3; bottom: 19px; left: 19px; display: grid; width: 65px; height: 65px; place-items: center; border: 5px solid var(--ivory); border-radius: 50%; background: var(--forest); color: var(--paper); font-size: 20px; font-weight: 600; letter-spacing: -.07em; }
.hero-portrait figcaption { padding-left: 9px; font-size: 11px; letter-spacing: .015em; }

/* Product names move as a single strip; the links remain usable and pausable. */
.project-marquee { position: relative; overflow: hidden; padding-block: 27px; border-block: 1px solid #ffffff1a; background: var(--forest); color: var(--ivory); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: portfolio-marquee 38s linear infinite; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 44px; padding-inline: 22px; color: var(--ivory); font-size: 25px; font-weight: 450; letter-spacing: -.025em; line-height: 1.3; white-space: nowrap; }
.marquee-item::after { content: '✳'; color: #d8a381; font-size: 19px; font-weight: 400; }
.marquee-item:hover { color: #e9c7ae; }
.marquee-pause, [data-marquee-pause] { position: absolute; z-index: 2; right: 16px; top: 50%; min-width: 37px; height: 37px; padding: 8px; transform: translateY(-50%); border: 1px solid #fffefb50; border-radius: 50%; background: var(--forest-dark); color: var(--ivory); font-size: 12px; line-height: 1; }
.marquee-window:hover .marquee-track, .marquee-window:focus-within .marquee-track, .project-marquee.is-paused .marquee-track, .project-marquee[data-paused='true'] .marquee-track { animation-play-state: paused; }
@keyframes portfolio-marquee { to { transform: translateX(-50%); } }

/* A full dark stage gives each project its own large, tangible surface. */
.selected-work { position: relative; padding-block: 96px 98px; background: var(--forest-dark); color: var(--ivory); }
.selected-work .section-heading { align-items: flex-end; margin-bottom: 48px; }
.selected-work .section-heading > p { color: #bbc9bc; }
.selected-work .eyebrow { color: #c5d4c5; }
.section-number { display: block; margin-bottom: 18px; color: var(--clay); font-size: 12px; font-weight: 500; letter-spacing: .14em; }
.selected-heading h2, .selected-work .section-heading h2 { max-width: 850px; margin-top: 12px; font-size: clamp(62px, 7.6vw, 106px); font-weight: 600; line-height: .96; letter-spacing: -.065em; }
.selected-heading h2 > span { color: #b9cbb9; }
.case-stage { position: relative; isolation: isolate; padding-top: 9px; }
.case-stack { gap: 100px; padding-bottom: 38px; }
.case-panel { --case-scale: 1; --case-lift: 0px; --case-bg: #f1eadb; --case-ink: #183c34; --case-muted: #566258; --case-line: #183c3429; position: sticky; top: calc(var(--header-height) + 20px); min-height: 630px; padding: 34px 44px 38px; overflow: hidden; border: 1px solid #fffefb20; border-radius: 30px; background: var(--case-bg); color: var(--case-ink); box-shadow: 0 30px 70px #00000026; transform: translateY(var(--case-lift)) scale(var(--case-scale)); transform-origin: 50% 0; will-change: transform; }
.case-1 { --case-bg: #874e39; --case-ink: #fffefb; --case-muted: #f3e3d8; --case-line: #fffefb40; top: calc(var(--header-height) + 25px); }
.case-2 { --case-bg: #d8e0cd; --case-ink: #183c34; --case-muted: #4d5e51; --case-line: #183c3433; top: calc(var(--header-height) + 30px); }
.case-3 { --case-bg: #192b24; --case-ink: #f6f3ec; --case-muted: #c7d3c6; --case-line: #f6f3ec33; top: calc(var(--header-height) + 35px); }
.case-topline { padding-bottom: 21px; border-color: var(--case-line); color: var(--case-muted); font-size: 10px; letter-spacing: .12em; }
.case-topline > span:first-child { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.case-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.24fr); gap: 44px; margin-top: 28px; }
.case-copy .eyebrow { color: var(--case-muted); font-size: 10px; }
.case-copy h3 { margin-top: 13px; font-size: clamp(38px, 4.1vw, 57px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
.case-summary { margin-top: 22px; color: var(--case-muted); font-size: 16px; line-height: 1.7; }
.case-role { margin-top: 25px; padding-top: 18px; border-color: var(--case-line); }
.case-role > span { color: var(--case-muted); }
.case-role > p { color: var(--case-ink); font-size: 13px; line-height: 1.65; }
.case-panel .button-light { min-height: 50px; padding-inline: 22px; border-color: var(--case-ink); background: var(--case-ink); color: var(--case-bg); font-size: 13px; }
.case-panel .button-light:hover { box-shadow: 0 7px 20px #00000018; }
.case-visual { padding: 3px; }
.case-panel .project-capture { border: 0; border-radius: 17px; box-shadow: 0 22px 45px #00000020; }
.case-panel .capture-stage { height: 410px; padding: 19px; background: #e8eddf; }
.case-panel .portrait-capture .capture-stage { height: 440px; padding: 16px; background: #f3ede3; }
.case-panel .project-capture figcaption { padding: 12px 17px; font-size: 10px; }
.case-panel .workflow-visual { min-height: 415px; padding: 30px; border: 1px solid #183c3424; border-radius: 17px; background: var(--paper); box-shadow: 0 20px 45px #00000010; }
.case-panel .workflow-title { margin-top: 25px; font-size: 34px; }
.case-panel .workflow-nodes { margin-top: 26px; gap: 6px; }
.case-panel .workflow-node { min-height: 52px; padding: 12px 16px; border-color: #d5dece; background: #f1f3e9; }
.case-panel .workflow-node > strong { font-size: 14px; }
.case-panel .workflow-visual > p { margin-top: 22px; font-size: 12px; }
.case-panel .icon-workflow > img { top: 57px; right: 30px; width: 57px; height: 57px; }

/* Factual capability controls and editorial secondary sections. */
.capability-section { padding-block: 100px 108px; border-bottom: 1px solid var(--line); background: var(--ivory); }
.capability-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 44px; margin-bottom: 36px; }
.capability-heading h2 { max-width: 720px; margin-top: 11px; color: var(--forest); font-size: clamp(43px, 5.8vw, 75px); font-weight: 550; line-height: 1.02; letter-spacing: -.055em; }
.capability-heading > p { max-width: 360px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.capability-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 26px 28px; }
.capability-tabs button { min-height: 43px; padding: 10px 20px; border: 1px solid #bdcbbb; border-radius: 999px; background: transparent; color: var(--forest); font-size: 13px; line-height: 1.4; }
.capability-tabs button:hover { background: #e8ecdf; }
.capability-tabs button[aria-pressed='true'], .capability-tabs button[aria-selected='true'], .capability-tabs button.is-active { border-color: var(--forest); background: var(--forest); color: var(--paper); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
.capability-item { display: flex; align-items: center; gap: 18px; min-width: 0; min-height: 116px; padding: 24px 20px; border: 1px solid #d3dccd; border-radius: 15px; background: var(--paper); transition: transform 220ms ease, box-shadow 220ms ease; }
.capability-item:hover { transform: translateY(-4px); box-shadow: 0 12px 26px #183c340c; }
.capability-mark { display: grid; flex-shrink: 0; width: 48px; height: 48px; place-items: center; border: 1px solid #cdd9c7; border-radius: 12px; background: #edf1e5; color: var(--forest); font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.capability-item h3, .capability-item strong { display: block; color: var(--forest); font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.capability-item p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.more-work { padding-block: 95px 104px; }
.more-work .section-heading h2, .earlier-work .section-heading h2 { font-size: clamp(43px, 5.4vw, 69px); font-weight: 550; letter-spacing: -.055em; }
.project-index > a { padding-block: 28px; }
.project-index-title { font-size: 28px; letter-spacing: -.035em; }
.project-index > a > span[aria-hidden] { font-size: 30px; }
.project-index > a:hover { padding-inline: 12px; }
.project-index > a { transition: padding 200ms ease, background-color 200ms ease; }

.home-contact { padding-block: 94px 100px; border: 0; background: var(--forest-dark); color: var(--ivory); }
.contact-invitation { display: block; }
.contact-invitation h2 { max-width: 1050px; font-size: clamp(51px, 8.1vw, 112px); font-weight: 550; line-height: 1.02; letter-spacing: -.06em; }
.contact-invitation > div { display: flex; align-items: center; justify-content: space-between; gap: 55px; margin-top: 35px; }
.contact-invitation p { max-width: 400px; margin-bottom: 0; color: #b9c9bb; font-size: 17px; }
.contact-invitation .contact-large-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 45px; min-height: 80px; padding-bottom: 12px; border-bottom: 1px solid #f6f3ec65; color: var(--ivory); font-size: clamp(28px, 4.3vw, 60px); font-weight: 450; letter-spacing: -.045em; line-height: 1.2; }
.contact-invitation .contact-large-link > span { font-size: 1.2em; }
.contact-invitation .contact-large-link:hover { color: #e6bb9c; border-color: #e6bb9c; }
.contact-invitation .button-forest { border-color: var(--ivory); background: var(--ivory); color: var(--forest); }
.site-footer { padding-block: 34px 30px; border-top: 1px solid #f6f3ec22; }
.footer-signature { margin-bottom: 33px; padding-bottom: 34px; border-bottom: 1px solid #f6f3ec26; color: #e3e9d9; font-size: clamp(62px, 10.6vw, 155px); font-weight: 550; line-height: .98; letter-spacing: -.065em; white-space: nowrap; }

/* The same stronger scale continues into project pages. */
.page-intro h1 { font-size: clamp(60px, 8vw, 105px); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.page-intro { padding-top: 86px; }
.project-card { transition: transform 240ms ease, box-shadow 240ms ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px #183c3410; }
.project-thumbnail { height: 355px; }
.project-card h2 { font-size: 32px; }
.project-title-row h1 { font-size: clamp(54px, 6.4vw, 86px); font-weight: 600; line-height: 1.02; letter-spacing: -.055em; }
.project-showcase { padding: 32px; margin-bottom: 78px; border: 1px solid #203d30; border-radius: 27px; background: var(--forest-dark); }
.project-showcase .project-capture { border: 0; border-radius: 17px; }
.project-showcase .capture-stage { padding: 25px; background: #e6eadf; }
.project-showcase .workflow-visual { padding: 38px 46px; border: 0; background: var(--ivory); }
.project-showcase .workflow-title { font-size: 37px; }
.project-showcase .icon-workflow > img { top: 65px; right: 46px; }
.about-intro h1 { font-size: clamp(55px, 6.2vw, 82px); line-height: 1.04; letter-spacing: -.055em; }
.reveal-ready { transform: translateY(30px); transition-duration: 750ms; }
.reveal-ready.is-visible { transform: translateY(0); }
.scroll-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: var(--clay); pointer-events: none; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(235px, 1fr); min-height: 620px; gap: 35px; padding-block: 63px; }
  .hero h1 { font-size: clamp(35px, 4.6vw, 50px); }
  .hero-intro { font-size: 16px; }
  .hero-portrait { max-width: 350px; }
  .hero-meta { gap: 9px 15px; margin-top: 27px; }
  .hero-meta > span + span::before { margin-right: 15px; }
  .portrait-frame { border-width: 7px; }
  .hero-orbit { inset: -20px auto auto -17px; width: calc(100% + 34px); }
  .selected-work { padding-block: 72px 78px; }
  .selected-work .section-heading h2 { font-size: 72px; }
  .selected-work .section-heading > p { max-width: 275px; font-size: 14px; }
  .case-panel { min-height: 590px; padding: 28px 31px 32px; }
  .case-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; }
  .case-copy h3 { font-size: 39px; }
  .case-panel .portrait-capture .capture-stage { height: 410px; }
  .case-panel .capture-stage { height: 370px; padding: 14px; }
  .case-panel .workflow-visual { padding: 23px; min-height: 390px; }
  .case-panel .workflow-title { font-size: 28px; }
  .case-panel .workflow-node > strong { font-size: 12px; }
  .case-panel .icon-workflow > img { right: 23px; top: 53px; width: 48px; height: 48px; }
  .capability-section { padding-block: 76px; }
  .capability-heading h2 { font-size: 56px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-invitation h2 { font-size: 82px; }
  .project-showcase { padding: 26px; }
  .footer-signature { font-size: 10.1vw; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 39px; padding-block: 35px 43px; }
  .hero-kicker { gap: 6px 17px; }
  .hero-name { font-size: 10px; }
  .hero-kicker .eyebrow { font-size: 9px; }
  .hero h1 { margin-top: 21px; font-size: clamp(33px, 8.4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
  .hero-intro { margin-top: 21px; font-size: 16px; }
  .hero-actions { gap: 23px; margin-top: 25px; }
  .hero-actions .button { min-height: 52px; padding-inline: 21px; }
  .hero-meta { margin-top: 27px; padding-top: 17px; font-size: 10px; }
  .hero-scroll { margin-top: 20px; font-size: 10px; }
  .hero-portrait { width: calc(100% - 20px); max-width: 370px; translate: 0 0; }
  .hero-portrait::before { inset: 25px -12px 38px 18px; transform: rotate(4deg); }
  .portrait-frame { aspect-ratio: 1.04; border-width: 6px; border-radius: 180px 180px 19px 19px; }
  .hero-orbit { top: -14px; left: -15px; width: calc(100% + 30px); }
  .portrait-monogram { width: 58px; height: 58px; bottom: 15px; left: 15px; border-width: 4px; font-size: 18px; }
  .hero-portrait figcaption { font-size: 10px; }
  .project-marquee { padding-block: 22px; }
  .marquee-item { gap: 29px; padding-inline: 15px; font-size: 20px; }
  .marquee-item::after { font-size: 15px; }
  .marquee-pause, [data-marquee-pause] { right: 10px; height: 32px; min-width: 32px; }
  .selected-work { padding-block: 58px 60px; }
  .selected-work .section-heading { gap: 20px; margin-bottom: 29px; }
  .selected-work .section-heading h2 { max-width: 100%; font-size: clamp(47px, 12vw, 70px); line-height: .98; }
  .selected-work .section-heading > p { max-width: 440px; font-size: 14px; }
  .section-number { margin-bottom: 11px; font-size: 10px; }
  .case-stack { gap: 30px; padding-bottom: 0; }
  .case-panel { position: relative; top: auto; min-height: 0; padding: 23px; border-radius: 23px; transform: none; will-change: auto; }
  .case-topline { padding-bottom: 18px; font-size: 9px; }
  .case-topline > span:first-child { font-size: 13px; }
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; margin-top: 25px; }
  .case-copy h3 { font-size: 37px; }
  .case-summary { margin-top: 19px; font-size: 15px; }
  .case-role { margin-top: 22px; padding-top: 16px; }
  .case-role > p { font-size: 13px; }
  .case-copy > .button { margin-top: 22px; }
  .case-visual { padding: 0; }
  .case-panel .capture-stage { height: 245px; padding: 11px; }
  .case-panel .portrait-capture .capture-stage { height: 385px; padding: 14px; }
  .case-panel .project-capture figcaption { padding: 11px 13px; font-size: 10px; }
  .case-panel .workflow-visual { min-height: 350px; padding: 23px; }
  .case-panel .workflow-title { font-size: 27px; }
  .case-panel .workflow-node { min-height: 45px; padding: 10px 12px; }
  .case-panel .workflow-visual > p { font-size: 11px; }
  .case-panel .icon-workflow > img { right: 23px; top: 53px; width: 46px; height: 46px; }
  .capability-section { padding-block: 57px 63px; }
  .capability-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
  .capability-heading h2 { font-size: 43px; }
  .capability-heading > p { max-width: 480px; font-size: 15px; }
  .capability-tabs { gap: 7px; margin-block: 23px; }
  .capability-tabs button { padding: 9px 15px; font-size: 12px; }
  .capability-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .capability-item { min-height: 91px; padding: 18px; gap: 16px; }
  .capability-mark { width: 44px; height: 44px; font-size: 12px; }
  .capability-item h3, .capability-item strong { font-size: 17px; }
  .more-work { padding-block: 60px 68px; }
  .more-work .section-heading h2, .earlier-work .section-heading h2 { font-size: 43px; }
  .project-index-title { font-size: 23px; }
  .project-index > a { padding-block: 23px; }
  .project-index > a:hover { padding-inline: 4px; }
  .home-contact { padding-block: 61px 64px; }
  .contact-invitation h2 { font-size: clamp(43px, 11.5vw, 66px); }
  .contact-invitation > div { align-items: flex-start; flex-direction: column; gap: 24px; margin-top: 25px; }
  .contact-invitation p { font-size: 16px; }
  .contact-invitation .contact-large-link { min-height: 60px; gap: 35px; font-size: 35px; }
  .footer-signature { padding-bottom: 25px; margin-bottom: 25px; font-size: clamp(35px, 9.8vw, 72px); letter-spacing: -.06em; }
  .site-footer { padding-block: 26px; }
  .page-intro { padding-top: 47px; }
  .page-intro h1 { font-size: 63px; }
  .project-thumbnail { height: 340px; }
  .project-card h2 { font-size: 28px; }
  .project-title-row h1 { font-size: clamp(43px, 10.6vw, 61px); }
  .project-showcase { padding: 14px; margin-bottom: 49px; border-radius: 20px; }
  .project-showcase .capture-stage { padding: 11px; }
  .project-showcase .workflow-visual { padding: 24px; }
  .project-showcase .workflow-title { font-size: 27px; }
  .project-showcase .icon-workflow > img { top: 53px; right: 24px; width: 48px; height: 48px; }
  .about-intro h1 { font-size: clamp(43px, 10.6vw, 61px); }
}

@media (max-width: 380px) {
  .hero h1 { font-size: clamp(28px, 8.2vw, 32px); }
  .hero-actions { gap: 18px; }
  .hero-actions .button { padding-inline: 18px; font-size: 13px; }
  .case-panel { padding: 20px; }
  .case-copy h3 { font-size: 33px; }
  .case-panel .workflow-visual { padding: 19px; }
  .case-panel .icon-workflow > img { right: 19px; }
  .footer-signature { font-size: 9.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; will-change: auto; }
  .project-marquee { overflow-x: auto; }
  .hero-portrait { translate: none; }
  .case-panel { transform: none; will-change: auto; }
  .reveal-ready, .reveal-ready.is-visible { opacity: 1; transform: none; }
  .hero-portrait:hover .portrait-frame img, .project-card:hover, .capability-item:hover { transform: none; }
}

/* Reference interaction: left project selector, changing stage and wide evidence. */
.hero-scroll > span:first-child { display: inline; width: auto; height: auto; border: 0; border-radius: 0; font-size: inherit; white-space: nowrap; }
.hero-scroll > span:last-child { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #bdcbbb; border-radius: 50%; font-size: 16px; }
.hero-portrait figcaption { display: flex; flex-direction: column; gap: 4px; }
.reveal-ready { transition-delay: var(--reveal-delay, 0ms); }
.marquee-track { animation-play-state: var(--marquee-play-state, running); }
.selected-work { --stage-surface: #54382b; background: var(--stage-surface); transition: background-color 300ms ease; }
.selected-work[data-active-case='odabook'] { --stage-surface: #54382b; }
.selected-work[data-active-case='mebot'] { --stage-surface: #102a25; }
.selected-work[data-active-case='afya-maoni'] { --stage-surface: #183c34; }
.selected-work[data-active-case='lunabot'] { --stage-surface: #253b38; }
.case-stage.shell { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 30px; width: min(1380px, calc(100% - 2 * max(40px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)))); }
.case-navigation { position: sticky; top: calc(var(--header-height) + 132px); display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding-block: 8px; }
.case-navigation a { display: block; padding: 11px 14px; border: 1px solid #fffefb33; border-radius: 999px; color: #fffefbd4; font-size: 12px; font-weight: 450; line-height: 1.4; transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }
.case-navigation a:hover { border-color: #fffefb80; color: var(--paper); }
.case-navigation a.is-active, .case-navigation a[aria-current='true'] { border-color: var(--paper); background: var(--paper); color: var(--forest-dark); }
.case-stack { min-width: 0; gap: 90px; }
.case-panel { --case-bg: #54382b; --case-ink: #fffefb; --case-muted: #eee5dd; --case-line: #fffefb30; min-height: 0; padding: 25px 30px 29px; border-color: #fffefb24; background: var(--case-bg); color: var(--case-ink); box-shadow: 0 22px 70px #00000024; scroll-margin-top: calc(var(--header-height) + 24px); }
.case-1 { --case-bg: #102a25; --case-muted: #cad5c9; }
.case-2 { --case-bg: #183c34; --case-muted: #d0dbcf; }
.case-3 { --case-bg: #253b38; --case-muted: #d1dcd5; }
.case-topline { padding-bottom: 15px; border-color: var(--case-line); }
.case-grid { display: block; margin-top: 23px; }
.case-copy { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 42px; }
.case-identity { min-width: 0; }
.case-copy h3 { margin-top: 10px; font-size: clamp(34px, 3.35vw, 48px); line-height: 1.05; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.case-tags > span { padding: 4px 8px; border: 1px solid #fffefb30; border-radius: 4px; color: #fffefbbf; font-size: 9px; font-weight: 400; line-height: 1.5; }
.case-description .case-summary { margin-top: 0; color: var(--case-muted); font-size: 15px; line-height: 1.7; }
.case-description .button { margin-top: 18px; min-height: 43px; padding: 10px 18px; font-size: 12px; }
.case-panel .button-light { background: var(--paper); color: var(--case-bg); border-color: var(--paper); }
.case-visual { margin-top: 24px; padding: 0; }
.case-panel .project-capture { border-radius: 13px; box-shadow: none; }
.case-panel .capture-stage, .case-panel .portrait-capture .capture-stage { height: clamp(250px, 35vh, 380px); padding: 15px; background: #ecede5; }
.case-panel .project-capture figcaption { padding: 9px 14px; font-size: 10px; line-height: 1.5; }
.case-panel .workflow-visual { height: clamp(265px, 34vh, 350px); min-height: 0; padding: 22px 27px; border: 0; border-radius: 13px; box-shadow: none; }
.case-panel .workflow-title { margin-top: 15px; font-size: 28px; }
.case-panel .workflow-nodes { display: flex; flex-direction: row; align-items: stretch; gap: 11px; margin-top: 22px; }
.case-panel .workflow-node { flex: 1 1 0; min-height: 78px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 7px; padding: 12px 15px; }
.case-panel .workflow-node > strong { font-size: 13px; }
.case-panel .workflow-connector { flex: 0 0 16px; align-self: center; transform: rotate(-90deg); }
.case-panel .workflow-visual > p { margin-top: 17px; font-size: 11px; }
.case-panel .icon-workflow > img { top: 47px; right: 27px; width: 48px; height: 48px; }
.case-stack[data-motion='off'] .case-panel { position: relative; top: auto; transform: none; will-change: auto; }
.capability-item { position: relative; }
.capability-item > span:nth-child(2) { min-width: 0; flex: 1; }
.capability-item > span:nth-child(2) > span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.capability-arrow { margin-left: auto; color: var(--forest); font-size: 20px; }

/* Work uses the reference's alternating, full-width project compositions. */
.work-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
.project-card { --work-surface: #54382b; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; border: 1px solid #fffefb24; border-radius: 28px; background: var(--work-surface); color: var(--paper); }
.project-card:nth-child(4n + 2) { --work-surface: #102a25; }
.project-card:nth-child(4n + 3) { --work-surface: #183c34; }
.project-card:nth-child(4n + 4) { --work-surface: #253b38; }
.project-card > .project-thumbnail { order: 2; height: 485px; margin: 24px 24px 24px 0; border-radius: 17px; }
.project-card > .project-card-body { order: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 43px; }
.project-card:nth-child(even) > .project-thumbnail { order: 1; margin: 24px 0 24px 24px; }
.project-card:nth-child(even) > .project-card-body { order: 2; }
.project-card-body .eyebrow { color: #d6e0d1; font-size: 10px; }
.project-card h2 { width: 100%; margin-top: 18px; font-size: clamp(33px, 3.15vw, 46px); line-height: 1.08; }
.project-card h2 a:hover { color: #e3b699; }
.project-card h2 a > span { color: #e3b699; }
.project-card-body > p:last-child { margin-top: 25px; color: #fffefbc9; font-size: 17px; line-height: 1.8; }
.project-thumbnail .workflow-visual { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 0; padding: 29px; }
.project-thumbnail .workflow-title { font-size: 30px; }
.project-thumbnail .workflow-nodes { margin-top: 24px; }
.project-thumbnail .workflow-node { padding: 12px 15px; }
.project-thumbnail .workflow-node > strong { font-size: 14px; }
.project-thumbnail .workflow-visual > p { font-size: 12px; line-height: 1.7; }
.project-thumbnail .icon-workflow { height: 100%; }
.project-thumbnail .icon-workflow > img { top: 56px; right: 28px; }

.about-intro { position: relative; isolation: isolate; padding-block: 93px 99px; }
.about-intro::before { content: ''; position: absolute; z-index: -1; inset-block: 0; left: 50%; width: 100vw; transform: translateX(-50%); background-color: var(--ivory); background-image: linear-gradient(#183c3407 1px, transparent 1px), linear-gradient(90deg, #183c3407 1px, transparent 1px); background-size: 40px 40px; border-bottom: 1px solid var(--line); }
.about-summary { padding-left: 17px; border-left: 1px solid #c8d1c1; }
.contact-hero { padding-block: 83px 205px; background: var(--forest-dark); color: var(--ivory); }
.contact-hero .eyebrow { color: #b9c9bb; }
.contact-hero h1 { margin-top: 17px; font-size: clamp(75px, 8.5vw, 115px); font-weight: 600; line-height: 1; letter-spacing: -.065em; }
.contact-hero h1 + p { margin-top: 25px; color: #cfdbce; font-size: 22px; line-height: 1.6; }
.contact-layout { position: relative; margin-top: -155px; padding-top: 0; align-items: start; }
.contact-copy { padding-top: 195px; }
.contact-copy h2 { margin-top: 16px; color: var(--forest); font-size: 39px; line-height: 1.1; }
.contact-form { padding: 36px; background: var(--paper); box-shadow: 0 18px 55px #102a2512; }
[data-scroll-progress] { position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: var(--clay); pointer-events: none; }

@media (max-width: 1050px) {
  .case-stage.shell { width: calc(100% - 2 * max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .case-navigation { position: relative; top: auto; flex-direction: row; flex-wrap: wrap; gap: 9px; padding: 0; }
  .case-navigation a { padding: 10px 17px; font-size: 12px; }
  .case-stack { gap: 55px; }
  .case-panel { padding: 24px 27px 27px; }
  .case-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; }
  .case-copy h3 { font-size: 38px; }
  .case-panel .capture-stage, .case-panel .portrait-capture .capture-stage { height: clamp(250px, 34vh, 360px); }
  .case-panel .workflow-visual { height: 300px; padding: 23px; }
  .case-panel .workflow-node { padding: 10px 13px; }
  .case-panel .icon-workflow > img { right: 23px; }
  .project-card > .project-card-body { padding: 32px; }
  .project-card > .project-thumbnail { height: 440px; margin: 18px 18px 18px 0; }
  .project-card:nth-child(even) > .project-thumbnail { margin: 18px 0 18px 18px; }
  .project-card h2 { font-size: 35px; }
  .project-card-body > p:last-child { font-size: 16px; }
  .contact-hero { padding-top: 67px; }
  .contact-copy { padding-top: 190px; }
  .contact-copy h2 { font-size: 33px; }
  .contact-form { padding: 27px; }
}

@media (max-width: 760px) {
  .case-stage.shell { width: calc(100% - 2 * max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
  .case-navigation { flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
  .case-navigation a { flex-shrink: 0; padding: 9px 13px; font-size: 11px; }
  .case-stack { gap: 28px; }
  .case-panel { padding: 22px; }
  .case-copy { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .case-copy h3 { font-size: 36px; }
  .case-tags { margin-top: 15px; }
  .case-description .case-summary { font-size: 15px; }
  .case-description .button { margin-top: 18px; }
  .case-visual { margin-top: 26px; }
  .case-panel .capture-stage { height: 235px; padding: 10px; }
  .case-panel .portrait-capture .capture-stage { height: 385px; padding: 14px; }
  .case-panel .workflow-visual { height: auto; min-height: 345px; padding: 22px; }
  .case-panel .workflow-title { font-size: 27px; }
  .case-panel .workflow-nodes { flex-direction: column; gap: 5px; margin-top: 23px; }
  .case-panel .workflow-node { flex: auto; min-height: 45px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 12px; }
  .case-panel .workflow-connector { flex: auto; transform: none; }
  .case-panel .icon-workflow > img { top: 47px; right: 22px; width: 46px; height: 46px; }
  .work-grid { gap: 29px; }
  .project-card { grid-template-columns: minmax(0, 1fr); border-radius: 23px; }
  .project-card > .project-card-body, .project-card:nth-child(even) > .project-card-body { order: 1; padding: 26px; }
  .project-card > .project-thumbnail, .project-card:nth-child(even) > .project-thumbnail { order: 2; height: 370px; margin: 0 20px 20px; }
  .project-card h2 { margin-top: 13px; font-size: 32px; }
  .project-card-body > p:last-child { margin-top: 18px; font-size: 15px; line-height: 1.75; }
  .project-thumbnail .workflow-visual { padding: 24px; }
  .project-thumbnail .workflow-title { font-size: 27px; }
  .project-thumbnail .workflow-node { padding: 9px 12px; }
  .project-thumbnail .workflow-node > strong { font-size: 12px; }
  .project-thumbnail .workflow-visual > p { font-size: 11px; }
  .project-thumbnail .icon-workflow > img { right: 24px; }
  .about-intro { padding-block: 53px 61px; }
  .about-summary { padding-left: 0; border-left: 0; }
  .contact-hero { padding-block: 53px 58px; }
  .contact-hero h1 { font-size: 72px; }
  .contact-hero h1 + p { margin-top: 22px; font-size: 19px; }
  .contact-layout { margin-top: 0; padding-top: 42px; }
  .contact-copy { padding-top: 0; }
  .contact-copy h2 { font-size: 34px; }
  .contact-form { padding: 25px; }
}

@media (max-width: 380px) {
  .case-stage.shell { width: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))); }
  .case-panel { padding: 19px; }
  .case-copy h3 { font-size: 32px; }
  .case-panel .workflow-visual { padding: 18px; }
  .case-panel .icon-workflow > img { right: 18px; }
  .case-navigation a { padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .selected-work { transition: none; }
  .case-panel { position: relative; top: auto; transform: none; will-change: auto; }
  .hero-portrait { translate: none; }
  .marquee-track { animation: none !important; }
  .reveal-ready { transition-delay: 0ms; }
}

.case-navigation a > span { display: inline-block; margin-right: 7px; opacity: .65; font-size: 10px; }

/* Product-specific presentations, technical depth and one reliable motion preference. */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.desktop-nav { gap:25px; margin-left:auto; }
.motion-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:40px; padding:9px 13px; border:1px solid currentColor; border-radius:999px; background:transparent; color:inherit; font:inherit; font-size:11px; line-height:1.2; cursor:pointer; white-space:nowrap; }
.motion-button:hover { background:#183c340b; }
.motion-button:disabled { cursor:default; opacity:.7; }
.motion-symbol { font-size:12px; font-weight:700; }
.header-motion { flex-shrink:0; color:var(--forest); border-color:var(--line); }
.marquee-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; color:#e5ebdf; font-size:11px; letter-spacing:.1em; text-transform:uppercase; }
.marquee-pause { position:static; min-width:0; width:auto; height:auto; transform:none; padding:10px 15px; border-radius:999px; background:transparent; color:inherit; letter-spacing:0; text-transform:none; }
.marquee-window { overflow:hidden; }
.marquee-group { display:flex; flex:0 0 auto; align-items:center; }
.marquee-item { gap:28px; padding-inline:17px; }
.marquee-item::after { content:none; }
.marquee-item > span { color:#d8a381; font-size:18px; }
.marquee-track { animation-duration:65s; }
[data-project-link] { cursor:pointer; }
.project-card[data-project-link] { position:relative; }
[data-project-link]:focus-within { outline:3px solid var(--case-accent,#cda88c); outline-offset:5px; }
.selected-work { --stage-bg:#142f66; --stage-accent:#b5ceff; --stage-ink:#fffefb; background:var(--stage-bg); color:var(--stage-ink); transition:background-color 550ms ease; }
.selected-heading > p { color:#fffefbcc; }
.case-stage.shell { grid-template-columns:148px minmax(0,1fr); gap:26px; }
.case-navigation { top:calc(var(--header-height) + 35px); gap:7px; max-height:calc(100svh - var(--header-height) - 60px); overflow-y:auto; scrollbar-width:thin; }
.case-navigation a { padding:10px 12px; font-size:11px; }
.case-navigation a.is-active { color:var(--stage-bg); }
.case-panel { padding:24px 26px 27px; transition:border-color 220ms ease,box-shadow 220ms ease; }
.case-panel:hover { border-color:#ffffff74; box-shadow:0 24px 80px #00000035; }
.case-grid { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); align-items:center; gap:27px; margin-top:24px; }
.case-copy { display:flex; flex-direction:column; align-items:flex-start; gap:25px; }
.case-copy h3 { font-size:clamp(30px,3vw,43px); line-height:1.07; overflow-wrap:normal; }
.case-summary { max-width:360px; }
.case-description .case-summary { font-size:14px; line-height:1.75; }
.case-tags { gap:5px; }
.case-tags > span { color:#fffefbcc; font-size:9px; }
.case-visual { width:100%; min-width:0; margin:0; }
.case-panel .portfolio-composition .capture-stage { height:auto; min-height:0; aspect-ratio:1.6; padding:0; background:transparent; }
.portfolio-composition .capture-stage img { width:100%; height:100%; object-fit:contain; }
.case-panel .project-capture figcaption { padding:9px 11px; font-size:9px; line-height:1.5; background:#fffefb; }
.case-panel .project-capture { border-radius:11px; }
.card-open-hint { position:absolute; right:27px; bottom:10px; color:#fffefba3; font-size:9px; opacity:0; translate:0 3px; transition:opacity 180ms ease,translate 180ms ease; }
.case-panel:hover .card-open-hint { opacity:1; translate:0 0; }
.project-card > .project-thumbnail { height:auto; min-height:330px; }
.project-thumbnail .portfolio-composition .capture-stage { padding:0; aspect-ratio:1.6; min-height:0; height:auto; flex:initial; }
.project-thumbnail .portfolio-composition { justify-content:center; background:transparent; }
.project-thumbnail .portfolio-composition img { height:auto; }
.project-card { overflow:hidden; }
.project-card-body > p:not(.eyebrow) { margin-top:22px; color:#fffefbcb; font-size:16px; line-height:1.75; }
.work-project-link { display:inline-flex; margin-top:27px; padding-bottom:6px; border-bottom:1px solid #fffefb70; color:#fffefb; font-size:13px; }
.project-showcase { border:0; background:var(--project-tone,var(--forest-dark)); }
.project-showcase .portfolio-composition .capture-stage { padding:0; background:transparent; min-height:0; }
.project-showcase .portfolio-composition .capture-stage img { max-height:none; width:100%; height:auto; }
.capability-intro { max-width:355px; }
.capability-intro p { color:var(--muted); font-size:16px; line-height:1.8; }
.capability-intro .text-link { display:inline-flex; margin-top:17px; font-size:13px; }
.capability-tabs { flex-wrap:wrap; }
.capability-item[hidden] { display:none; }
.milestones-section { overflow:hidden; padding-block:90px 96px; background:#e8e6dc; color:var(--forest); }
.milestones-section .section-heading h2 { font-size:clamp(42px,5.5vw,72px); letter-spacing:-.05em; line-height:1.03; }
.milestone-controls { display:flex; align-items:flex-start; flex-direction:column; gap:18px; max-width:310px; }
.milestone-controls p { color:var(--muted); font-size:16px; line-height:1.7; }
.milestone-window { margin-top:42px; }
.milestone-track { align-items:stretch; animation-duration:65s; }
.milestone-track .marquee-group { align-items:stretch; }
.milestone-card { position:relative; display:flex; flex:0 0 330px; width:330px; flex-direction:column; align-items:flex-start; min-height:232px; padding:27px 30px; margin-right:18px; border:1px solid #183c342a; border-radius:17px; background:#f7f5ee; color:var(--forest); }
.milestone-year { font-size:12px; letter-spacing:.02em; color:#865438; }
.milestone-card strong { margin-top:21px; max-width:255px; font-size:25px; line-height:1.15; font-weight:500; letter-spacing:-.03em; }
.milestone-card > span:last-of-type { margin-top:14px; color:var(--muted); font-size:13px; line-height:1.7; }
.milestone-card > i { position:absolute; top:25px; right:25px; font-size:22px; font-style:normal; }
.milestone-card:hover { background:#fffefb; border-color:#183c345c; }
.technology-intro { padding-bottom:56px; }
.technology-intro h1 { font-size:clamp(55px,6.6vw,89px); }
.technology-navigation { display:flex; flex-wrap:wrap; gap:10px; padding-bottom:52px; }
.technology-anchor { display:flex; align-items:center; gap:17px; padding:12px 18px; border:1px solid var(--line); border-radius:999px; font-size:13px; }
.technology-anchor:hover { background:var(--forest); color:var(--paper); }
.technical-areas { border-top:1px solid var(--line); }
.technical-area { display:grid; grid-template-columns:.6fr 1.4fr; gap:70px; padding-block:70px; border-bottom:1px solid var(--line); scroll-margin-top:calc(var(--header-height) + 20px); }
.technical-label > span { display:block; margin-bottom:25px; color:#a37150; font-size:44px; line-height:1; font-weight:350; }
.technical-label .eyebrow { font-size:11px; }
.technical-main h2 { max-width:640px; font-size:clamp(30px,3.3vw,44px); line-height:1.15; letter-spacing:-.035em; font-weight:500; }
.technical-main > p { max-width:670px; margin-top:22px; color:var(--muted); font-size:17px; line-height:1.85; }
.technical-tools { display:flex; flex-wrap:wrap; gap:9px; margin-top:27px; list-style:none; padding:0; }
.technical-tools li { padding:9px 13px; border:1px solid var(--line); border-radius:6px; color:var(--forest); font-size:12px; }
.technical-examples { display:flex; flex-wrap:wrap; gap:14px 27px; margin-top:29px; font-size:13px; }
.infrastructure-band { padding-block:85px; background:#152e2b; color:#fffefb; }
.infrastructure-layout { display:grid; grid-template-columns:1fr 1fr; gap:85px; }
.infrastructure-band .eyebrow { color:#bad1bd; }
.infrastructure-band h2 { margin-top:20px; font-size:clamp(49px,6.3vw,82px); line-height:1.02; letter-spacing:-.05em; font-weight:500; }
.infrastructure-lead { font-size:21px; line-height:1.65; color:#e2e9df; }
.infrastructure-band dl { margin-block:28px; }
.infrastructure-band dl > div { display:grid; grid-template-columns:90px 1fr; gap:12px; padding-block:19px; border-bottom:1px solid #fffefb24; }
.infrastructure-band dt { font-size:15px; color:#e3c2a2; }
.infrastructure-band dd { margin:0; font-size:14px; line-height:1.65; color:#d2ddd1; }
.about-expertise-link { margin-top:-32px; padding-bottom:80px; }
.project-engineering { padding-block:85px 92px; margin-block:40px 72px; background:var(--project-tone); color:#fffefb; }
.project-engineering .eyebrow { color:var(--project-accent); }
.project-engineering .section-heading h2 { font-size:clamp(41px,5vw,65px); line-height:1.05; letter-spacing:-.045em; font-weight:500; }
.project-engineering .section-heading > p { max-width:340px; color:#fffefbc4; font-size:16px; line-height:1.8; }
.architecture-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; margin-top:46px; }
.architecture-notes article { padding-top:20px; border-top:1px solid #fffefb42; }
.architecture-notes article > span { color:var(--project-accent); font-size:12px; }
.architecture-notes h3 { margin-top:17px; font-size:23px; font-weight:450; line-height:1.25; letter-spacing:-.025em; }
.architecture-notes p { margin-top:15px; color:#fffefbc7; font-size:14px; line-height:1.85; }
.project-delivery { margin-top:48px; padding-top:30px; border-top:1px solid #fffefb42; scroll-margin-top:120px; }
.delivery-intro { display:grid; grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:36px; align-items:start; }
.delivery-intro h3 { font-size:28px; line-height:1.2; font-weight:450; letter-spacing:-.025em; }
.delivery-intro > p { color:#fffefbd4; font-size:15px; line-height:1.8; }
.delivery-examples { margin-top:22px; border-top:1px solid #fffefb30; border-bottom:1px solid #fffefb30; }
.delivery-examples summary { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:52px; padding-block:13px; cursor:pointer; list-style:none; font-size:13px; color:var(--project-accent); }
.delivery-examples summary::-webkit-details-marker { display:none; }
.delivery-examples summary > span { font-size:22px; line-height:1; transition:transform .2s ease; }
.delivery-examples[open] summary > span { transform:rotate(45deg); }
.delivery-examples summary:focus-visible { outline:2px solid var(--project-accent); outline-offset:5px; }
.delivery-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px; padding-block:9px 28px; }
.delivery-checks h4 { font-size:18px; line-height:1.35; font-weight:450; }
.delivery-checks p { margin-top:11px; color:#fffefbc7; font-size:14px; line-height:1.8; }
.analysis-overview { padding:34px; }
.analysis-overview h3 { margin-top:10px; font-size:29px; line-height:1.2; letter-spacing:-.025em; font-weight:500; }
.indicator-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:27px; row-gap:23px; margin:27px 0; }
.indicator-grid > div { padding-top:15px; border-top:2px solid #cbded9; }
.indicator-grid dt { font-size:16px; font-weight:500; line-height:1.35; }
.indicator-grid dd { margin:9px 0 0; color:#607580; font-size:12px; line-height:1.7; }
.analysis-reading { padding-top:19px; border-top:1px solid #d8e1e8; font-size:13px; color:#526d77; line-height:1.8; }
.connection-demo { padding:34px; }
.connection-demo-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:36px; margin-bottom:28px; }
.connection-demo-intro h3 { font-size:29px; line-height:1.2; font-weight:500; letter-spacing:-.03em; max-width:420px; }
.connection-demo-intro p { font-size:14px; line-height:1.8; color:#526d77; }
.connection-figure { margin:0; overflow:hidden; border:1px solid #d8e1e8; border-radius:11px; background:#fff; }
.connection-figure img { display:block; width:100%; height:auto; }
.connection-figure figcaption { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:9px 18px; padding:12px 17px; font-size:11px; line-height:1.5; color:#617183; }
.connection-figure figcaption a { white-space:nowrap; color:#294f5b; text-decoration:underline; text-underline-offset:4px; }
.connection-benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:27px; margin-top:29px; }
.connection-benefits h4 { font-size:17px; line-height:1.35; font-weight:500; }
.connection-benefits p { margin-top:10px; color:#617183; font-size:13px; line-height:1.8; }
.project-demo { margin-top:60px; scroll-margin-top:110px; }
.demo-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:19px; }
.demo-heading > p { font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:#fffefbba; }
.demo-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.demo-tabs button { border:1px solid #fffefb50; border-radius:999px; padding:11px 18px; min-height:43px; background:transparent; color:#fffefb; font:inherit; font-size:12px; cursor:pointer; }
.demo-tabs button[aria-selected='true'] { border-color:#fffefb; background:#fffefb; color:var(--project-tone); }
.demo-panel[hidden] { display:none; }
.demo-panel { outline-offset:6px; }
.demo-surface { overflow:hidden; min-height:340px; border:1px solid #fffefb38; border-radius:19px; background:#f8fafc; color:#172638; }
.demo-topbar { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px 24px; border-bottom:1px solid #dbe2e8; background:#edf1f5; color:#5e7183; font-size:11px; }
.demo-topbar > span:last-child { font-size:10px; }
.demo-dots { font-size:9px; color:#a4b0bc; letter-spacing:4px; }
.engineering-flow { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; list-style:none; padding:37px; margin:0; }
.engineering-flow li { position:relative; min-height:190px; padding:24px 19px 21px; border:1px solid #d8e1e8; border-radius:12px; background:white; }
.engineering-flow li::before { content:''; position:absolute; top:0; left:18px; right:18px; height:3px; border-radius:4px; background:var(--project-tone); opacity:.65; transform-origin:0 50%; animation:flow-progress 6s ease-in-out infinite; animation-delay:calc(var(--step) * 1.2s); }
.flow-step { display:block; margin-bottom:24px; color:#748698; font-size:11px; }
.engineering-flow strong { display:block; font-size:20px; line-height:1.2; font-weight:500; letter-spacing:-.02em; }
.engineering-flow p { margin-top:13px; color:#617183; font-size:12px; line-height:1.75; }
.stack .stack-note { max-width:620px; margin-top:17px; color:var(--muted); font-size:14px; line-height:1.8; }
.documented-workflow .engineering-flow p { font-size:14px; }
.flow-note { padding:0 37px 29px; color:#617183; font-size:12px; line-height:1.7; }
.demo-retail { display:grid; grid-template-columns:1.2fr .8fr; gap:45px; padding:38px; }
.demo-eyebrow { color:#64798b; font-size:11px; text-transform:uppercase; letter-spacing:.1em; }
.demo-retail h3 { margin-top:12px; max-width:440px; font-size:29px; line-height:1.2; font-weight:550; letter-spacing:-.035em; }
.receipt-lines { margin-top:23px; border-top:1px solid #dce3ec; }
.receipt-lines > div { display:flex; justify-content:space-between; gap:20px; padding-block:14px; border-bottom:1px solid #dce3ec; font-size:13px; }
.receipt-lines b { font-weight:550; }
.receipt-total { color:#1c53db; }
.demo-status { display:inline-flex; margin-top:20px; padding:7px 11px; border-radius:5px; background:#e5edfe; color:#1c53db; font-size:11px; }
.demo-side-note { border-left:1px solid #dce3ec; padding-left:34px; }
.large-outline-number { color:#d5e2fc; font-size:75px; font-weight:600; line-height:1; letter-spacing:-.07em; }
.demo-side-note h4 { margin-top:20px; font-size:22px; font-weight:500; }
.demo-side-note p { margin-top:13px; font-size:14px; line-height:1.8; color:#617183; }
.demo-chat { max-width:820px; margin:auto; padding:36px; }
.chat-bubble { max-width:620px; margin-bottom:24px; font-size:14px; line-height:1.75; }
.user-bubble { margin-left:auto; padding:18px 22px; border-radius:17px 17px 3px 17px; background:#245fef; color:white; }
.assistant-bubble > span { color:#265fee; font-weight:600; }
.assistant-bubble > p { margin-top:9px; }
.chat-draft { display:grid; grid-template-columns:1fr auto; gap:8px 24px; margin-top:19px; padding:22px; border:1px solid #dbe4f4; border-radius:11px; background:white; }
.chat-draft strong { grid-column:1/-1; font-size:17px; }
.chat-draft span { color:#617183; font-size:12px; }
.chat-draft b { font-size:14px; color:#2459e0; }
.chat-draft em { grid-column:1/-1; font-size:11px; color:#8a6a26; font-style:normal; }
.demo-footnote { padding:0 30px 27px; font-size:12px; line-height:1.7; color:#647485; }
.demo-chat .demo-footnote { padding:0; }
.demo-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:30px; }
.demo-metric { display:flex; flex-direction:column; gap:13px; padding:22px; border:1px solid #dce3eb; border-radius:10px; background:white; }
.demo-metric span { color:#738496; font-size:12px; }
.demo-metric strong { font-size:23px; font-weight:550; line-height:1.2; letter-spacing:-.03em; }
.booking-journal { display:grid; gap:20px; padding:0 30px 30px; }
.booking-journal > div { display:grid; grid-template-columns:12px 1fr 1fr; align-items:center; gap:16px; font-size:13px; }
.journal-dot { width:9px; height:9px; border-radius:50%; background:#1b986e; }
.booking-journal strong { font-weight:500; }
.booking-journal > div > span:last-child { color:#738496; font-size:12px; }
.monitor-chart { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; height:150px; margin:0 30px 17px; padding:0 12px; border-bottom:1px solid #cdd7e0; }
.monitor-chart i { height:var(--bar); width:100%; border-radius:4px 4px 0 0; background:#41aaba; animation:signal-breathe 5s ease-in-out infinite; animation-delay:calc(var(--step) * .18s); }
.monitor-chart i:nth-child(3n) { background:#315fc9; }
.monitor-legend { display:flex; gap:24px; padding:0 30px 23px; color:#647485; font-size:11px; }
.reporting-levels { padding:30px; }
.reporting-levels > div { display:grid; grid-template-columns:30px 1fr 1fr; gap:20px; margin-left:calc(var(--level)*30px); margin-bottom:10px; padding:17px 20px; border:1px solid #d3e5e2; border-left:4px solid #0c837d; border-radius:8px; background:white; }
.reporting-levels strong { font-size:16px; font-weight:500; }
.reporting-levels span { color:#708f8a; font-size:12px; }
.sports-workspace { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:32px; }
.sports-wallet { display:flex; flex-direction:column; gap:16px; padding:28px; border:1px solid #d9e0eb; border-radius:14px; background:white; }
.sports-wallet > span { color:#647485; font-size:13px; }
.sports-wallet strong { font-size:31px; font-weight:550; letter-spacing:-.04em; }
.sports-wallet small { font-size:18px; }
.sports-wallet em { color:#728297; font-size:11px; font-style:normal; }
.sports-modules { display:flex; flex-wrap:wrap; gap:10px; padding:0 32px 26px; }
.sports-modules span { padding:9px 16px; border-radius:8px; background:#e6edfb; color:#2959c6; font-size:12px; }
.ussd-experience { display:grid; grid-template-columns:.85fr 1.15fr; align-items:center; gap:50px; padding:42px; border:1px solid #ffffff30; border-radius:20px; background:#f2eee5; color:#253b35; }
.feature-phone { width:230px; justify-self:center; padding:20px 18px 22px; border:7px solid #313c37; border-radius:28px; background:#19251f; box-shadow:12px 20px 25px #19251f20; }
.phone-speaker { width:42px; height:5px; margin:0 auto 17px; border-radius:8px; background:#758276; }
.ussd-display { padding:15px; background:#e1edce; border-radius:4px; color:#273c26; font-family:monospace; }
.ussd-display > span { font-size:9px; opacity:.7; }
.ussd-display strong { display:block; margin-top:14px; font-size:13px; }
.ussd-display p { margin-top:13px; font-size:11px; line-height:1.8; }
.ussd-display > div { display:flex; justify-content:space-between; border-top:1px solid #b8c9aa; padding-top:12px; margin-top:13px; font-size:10px; }
.phone-keypad { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:16px; }
.phone-keypad i { padding:7px; border:1px solid #59665b; border-radius:5px; color:#dce4d8; text-align:center; font-size:13px; font-style:normal; }
.ussd-copy h3 { font-size:clamp(29px,3vw,41px); line-height:1.1; font-weight:500; letter-spacing:-.03em; }
.ussd-copy .eyebrow { color:#798265; margin-bottom:20px; }
.ussd-copy > p:not(.eyebrow) { margin-top:23px; max-width:460px; color:#657263; font-size:15px; line-height:1.8; }
.ussd-copy .demo-footnote { padding:0; font-size:11px!important; }
.ussd-signal { display:flex; align-items:flex-end; gap:4px; height:29px; margin-top:24px; }
.ussd-signal i { display:block; width:6px; height:30%; border-radius:2px; background:#67804f; animation:signal-breathe 3s ease-in-out infinite; }
.ussd-signal i:nth-child(2) { height:55%; animation-delay:.2s; }
.ussd-signal i:nth-child(3) { height:75%; animation-delay:.4s; }
.ussd-signal i:nth-child(4) { height:100%; animation-delay:.6s; }
@keyframes flow-progress { 0%,100%{transform:scaleX(.15);opacity:.3}45%,65%{transform:scaleX(1);opacity:.8} }
@keyframes signal-breathe { 0%,100%{opacity:.45}50%{opacity:1} }
html[data-motion-paused='true'] *, html[data-motion-paused='true'] *::before, html[data-motion-paused='true'] *::after { animation-play-state:paused!important; }
html[data-motion-paused='true'] { scroll-behavior:auto; }
html[data-motion-paused='true'] .hero-portrait { translate:none; }
html[data-motion-paused='true'] .reveal-ready { transition:none; }
html[data-motion-paused='true'] .selected-work { transition:none; }

@media (max-width:1100px) {
 .header-inner { gap:18px; }
 .desktop-nav { gap:20px; font-size:14px; }
 .desktop-nav .nav-external { display:none; }
 .case-stage.shell { grid-template-columns:1fr; }
 .case-navigation { position:relative; top:auto; display:flex; flex-direction:row; flex-wrap:wrap; max-height:none; overflow:visible; }
 .case-grid { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); gap:24px; }
 .case-copy h3 { font-size:34px; }
 .technical-area { gap:45px; }
 .architecture-notes { gap:23px; }
 .engineering-flow { gap:10px; padding:25px; }
 .engineering-flow li { padding:21px 15px; }
 .infrastructure-layout { gap:50px; }
}
@media (max-width:760px) {
 .header-inner { gap:12px; }
 .header-motion { margin-left:auto; padding:10px 12px; min-height:44px; font-size:11px; gap:6px; }
 .header-motion .motion-symbol { font-size:10px; }
 .menu-open .header-motion { color:var(--ivory); border-color:#fffefb40; }
 .marquee-heading { align-items:center; font-size:9px; letter-spacing:.06em; gap:13px; margin-bottom:20px; }
 .marquee-heading .motion-button { font-size:10px; padding:9px 11px; min-height:36px; }
 .case-stage.shell { grid-template-columns:minmax(0,1fr); }
 .case-navigation { flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; }
 .case-panel { padding:21px; }
 .case-grid { grid-template-columns:minmax(0,1fr); gap:26px; margin-top:22px; }
 .case-copy { gap:19px; }
 .case-copy h3 { font-size:35px; }
 .case-description .case-summary { max-width:100%; font-size:15px; }
 .case-panel .portfolio-composition .capture-stage { height:auto; aspect-ratio:1.6; padding:0; }
 .case-panel .project-capture figcaption { font-size:9px; padding:8px 10px; }
 .card-open-hint { display:none; }
 .project-card > .project-thumbnail,.project-card:nth-child(even) > .project-thumbnail { height:auto; min-height:0; margin:0 17px 17px; }
 .project-thumbnail .portfolio-composition .capture-stage { height:auto; }
 .project-thumbnail .portfolio-composition { height:auto; }
 .project-card .project-card-body { padding:25px; }
 .project-card-body > p:not(.eyebrow) { font-size:15px; }
 .project-showcase { padding:10px; }
 .project-showcase .project-capture figcaption { padding:12px; font-size:10px; gap:10px; }
 .capability-intro { max-width:none; }
 .capability-tabs button { font-size:11px; padding:10px 13px; }
 .milestones-section { padding-block:59px 64px; }
 .milestones-section .section-heading { flex-direction:column; align-items:flex-start; gap:23px; }
 .milestones-section .section-heading h2 { font-size:44px; }
 .milestone-controls { max-width:440px; }
 .milestone-controls p { font-size:15px; }
 .milestone-window { margin-top:30px; }
 .milestone-card { flex-basis:285px; width:285px; min-height:235px; padding:25px; margin-right:14px; }
 .milestone-card strong { font-size:23px; }
 .technology-intro h1 { font-size:clamp(43px,11vw,62px); }
 .technology-navigation { gap:8px; padding-bottom:35px; }
 .technology-anchor { padding:10px 13px; font-size:11px; gap:12px; }
 .technical-area { grid-template-columns:minmax(0,1fr); gap:26px; padding-block:43px; }
 .technical-label { display:flex; align-items:center; gap:19px; }
 .technical-label > span { margin:0; font-size:29px; }
 .technical-label .eyebrow { margin:0; font-size:10px; }
 .technical-main h2 { font-size:32px; }
 .technical-main > p { font-size:16px; }
 .technical-tools li { font-size:11px; padding:8px 11px; }
 .technical-examples { font-size:12px; }
 .infrastructure-band { padding-block:57px; }
 .infrastructure-layout { grid-template-columns:minmax(0,1fr); gap:33px; }
 .infrastructure-band h2 { font-size:55px; }
 .infrastructure-lead { font-size:19px; }
 .infrastructure-band dl > div { grid-template-columns:75px 1fr; }
 .project-engineering { padding-block:56px 60px; margin-block:20px 48px; }
 .project-engineering .section-heading { flex-direction:column; align-items:flex-start; gap:22px; }
 .project-engineering .section-heading h2 { font-size:43px; }
 .project-engineering .section-heading > p { font-size:15px; max-width:none; }
 .architecture-notes { grid-template-columns:minmax(0,1fr); gap:28px; margin-top:30px; }
 .architecture-notes h3 { font-size:23px; margin-top:12px; }
 .architecture-notes p { margin-top:12px; font-size:14px; }
 .project-delivery { margin-top:33px; padding-top:25px; scroll-margin-top:100px; }
 .delivery-intro { grid-template-columns:minmax(0,1fr); gap:16px; }
 .delivery-intro h3 { font-size:25px; }
 .delivery-intro > p { font-size:14px; }
 .delivery-checks { grid-template-columns:minmax(0,1fr); gap:25px; }
 .delivery-checks h4 { font-size:18px; }
 .delivery-checks p { font-size:13px; }
 .analysis-overview { padding:23px 19px; }
 .analysis-overview h3 { font-size:25px; }
 .indicator-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-block:23px; }
 .indicator-grid dt { font-size:15px; }
 .indicator-grid dd { font-size:12px; }
 .analysis-reading { font-size:12px; }
 .connection-demo { padding:21px 17px; }
 .connection-demo-intro { grid-template-columns:minmax(0,1fr); gap:15px; margin-bottom:23px; }
 .connection-demo-intro h3 { font-size:25px; }
 .connection-demo-intro p { font-size:13px; }
 .connection-benefits { grid-template-columns:minmax(0,1fr); gap:22px; margin-top:25px; }
 .connection-benefits h4 { font-size:17px; }
 .connection-benefits p { margin-top:8px; font-size:13px; }
 .connection-figure figcaption { padding:10px 12px; font-size:10px; }
 .project-demo { margin-top:37px; }
 .demo-heading { gap:15px; }
 .demo-tabs button { padding:10px 14px; font-size:11px; }
 .demo-topbar { padding:13px 15px; font-size:10px; gap:10px; }
 .demo-dots { display:none; }
 .demo-topbar > span:last-child { font-size:8px; }
 .demo-surface { min-height:0; border-radius:12px; }
 .engineering-flow { grid-template-columns:1fr 1fr; padding:17px; gap:11px; }
 .engineering-flow li { min-height:175px; padding:19px 14px; }
 .flow-step { margin-bottom:19px; font-size:10px; }
 .engineering-flow strong { font-size:18px; }
 .engineering-flow p { font-size:11px; line-height:1.7; margin-top:11px; }
 .documented-workflow .engineering-flow { grid-template-columns:minmax(0,1fr); padding:20px; gap:14px; }
 .documented-workflow .engineering-flow li { min-height:0; padding:20px; }
 .documented-workflow .flow-step { margin-bottom:12px; }
 .documented-workflow .engineering-flow strong { font-size:21px; }
 .documented-workflow .engineering-flow p { margin-top:9px; font-size:14px; }
 .flow-note { padding:0 18px 23px; font-size:11px; }
 .demo-retail { grid-template-columns:minmax(0,1fr); padding:22px; gap:28px; }
 .demo-retail h3 { font-size:25px; }
 .receipt-lines > div { font-size:11px; gap:13px; }
 .demo-side-note { padding:22px 0 0; border-left:0; border-top:1px solid #dce3ec; }
 .large-outline-number { display:none; }
 .demo-side-note h4 { margin:0; font-size:21px; }
 .demo-side-note p { font-size:13px; }
 .demo-chat { padding:22px 18px; }
 .chat-bubble { font-size:12px; }
 .user-bubble { padding:15px; }
 .chat-draft { grid-template-columns:1fr; padding:17px; gap:9px; }
 .chat-draft strong,.chat-draft em { grid-column:auto; }
 .demo-metrics { padding:17px; gap:9px; }
 .demo-metric { padding:13px 10px; gap:9px; }
 .demo-metric strong { font-size:16px; }
 .demo-metric span { font-size:10px; }
 .booking-journal { padding:4px 18px 23px; gap:21px; }
 .booking-journal > div { grid-template-columns:9px 1fr; gap:5px 10px; font-size:12px; }
 .booking-journal > div > span:last-child { grid-column:2; font-size:11px; }
 .monitor-chart { gap:6px; margin-inline:18px; height:125px; }
 .monitor-legend { gap:12px; padding-inline:18px; font-size:9px; }
 .demo-footnote { padding:0 18px 22px; font-size:11px; }
 .reporting-levels { padding:18px; }
 .reporting-levels > div { grid-template-columns:19px 1fr; gap:5px 10px; margin-left:calc(var(--level)*10px); padding:13px; }
 .reporting-levels strong { font-size:14px; }
 .reporting-levels > div > span:last-child { grid-column:2; font-size:10px; }
 .sports-workspace { padding:18px; grid-template-columns:minmax(0,1fr); gap:13px; }
 .sports-wallet { padding:22px; gap:13px; }
 .sports-wallet strong { font-size:28px; }
 .sports-modules { padding:0 18px 23px; gap:7px; }
 .sports-modules span { font-size:10px; padding:8px 11px; }
 .ussd-experience { grid-template-columns:minmax(0,1fr); padding:28px 23px; gap:33px; }
 .feature-phone { width:220px; }
 .ussd-copy h3 { font-size:32px; }
 .ussd-copy > p:not(.eyebrow) { font-size:14px; }
 .about-expertise-link { padding-bottom:55px; }
}
@media (max-width:380px) {
 .header-motion { gap:5px; padding:10px 9px; font-size:10px; }
 .header-inner { gap:8px; }
 .case-panel { padding:18px; }
 .case-copy h3 { font-size:32px; }
 .engineering-flow { padding:12px; gap:8px; }
 .engineering-flow li { padding:17px 11px; }
 .engineering-flow strong { font-size:16px; }
 .demo-metrics { padding:13px; gap:6px; }
 .demo-metric strong { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
 .engineering-flow li::before,.monitor-chart i,.ussd-signal i { animation:none; }
 .marquee-window { overflow-x:auto; }
 .marquee-track { transform:none; }
 .marquee-group[aria-hidden='true'] { display:none; }
 .card-open-hint { transition:none; }
}

/* Public education and CV access; imported by the portfolio stylesheet build. */
.profile-education{padding:90px 0;background:var(--paper,#fffefb)}
.profile-section-heading{margin-bottom:36px}
.profile-section-heading h2,.profile-education-compact h2{max-width:650px;margin:0;font-size:clamp(30px,3.7vw,46px);font-weight:500;line-height:1.12;letter-spacing:-.035em;color:var(--forest,#183c34)}
.profile-degree{display:grid;grid-template-columns:220px 1fr 110px;gap:35px;align-items:center;padding:33px 0;border-top:1px solid var(--line,#dce2d9);border-bottom:1px solid var(--line,#dce2d9)}
.profile-degree-mark{display:flex;align-items:center;gap:20px;color:var(--forest,#183c34)}
.profile-degree-mark svg{width:48px;height:48px;flex:none}
.profile-degree-mark span{font-size:13px;line-height:1.5;color:var(--muted,#646c64)}
.profile-degree-main>p,.profile-degree-compact>p{margin:0 0 9px;color:var(--muted,#646c64);font-size:15px}
.profile-degree-main h3,.profile-degree-compact h3{margin:0;color:var(--forest,#183c34);font-size:25px;line-height:1.25;font-weight:500;letter-spacing:-.02em}
.profile-degree-result{border-left:1px solid var(--line,#dce2d9);padding-left:28px;display:flex;flex-direction:column;gap:3px}
.profile-degree-result>span{font-size:11px;letter-spacing:.12em;color:var(--muted,#646c64)}
.profile-degree-result>strong{font-size:39px;font-weight:400;line-height:1.1;color:var(--forest,#183c34)}
.profile-education-compact{display:grid;grid-template-columns:1fr 1fr;gap:72px;padding-top:80px;padding-bottom:80px}
.profile-education-compact h2{max-width:470px;font-size:clamp(29px,3vw,39px)}
.profile-degree-compact{border-left:1px solid var(--line,#dce2d9);padding-left:44px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.profile-degree-compact>span{font-size:14px;color:var(--muted,#646c64);margin:12px 0 18px}
.profile-degree-compact .text-link{font-size:14px}
.profile-downloads{background:var(--forest,#183c34);color:var(--ivory,#f6f3ec);padding:68px 0}
.profile-downloads-inner{display:flex;align-items:center;justify-content:space-between;gap:54px}
.profile-download-copy{max-width:650px}
.profile-downloads .eyebrow{color:#ccd8cd;margin-bottom:16px}
.profile-download-copy h2{font-size:clamp(32px,3.7vw,46px);font-weight:500;line-height:1.12;letter-spacing:-.035em;color:inherit;margin:0 0 16px}
.profile-download-copy>p:not(.eyebrow){margin:0 0 17px;color:#e1e6db;font-size:16px;line-height:1.7;max-width:510px}
.profile-file-meta{color:#bfcec1;font-size:12px;letter-spacing:.02em}
.profile-download-actions{display:flex;flex-direction:column;align-items:center;gap:20px;flex-shrink:0}
.profile-cv-download{background:var(--ivory,#f6f3ec);color:var(--forest,#183c34);border:1px solid transparent;gap:12px;min-width:205px}
.profile-cv-download:hover{background:#fff;color:var(--forest,#183c34);transform:translateY(-2px)}
.profile-cv-download svg{width:20px;height:20px;flex:none}
.profile-cv-view{color:#e1e6db;font-size:14px;display:inline-flex;align-items:center;gap:11px;text-decoration:none;border-bottom:1px solid #84988b;padding-bottom:4px}
.profile-cv-view:hover{color:#fff;border-color:#fff}
.profile-downloads-compact{padding-top:52px;padding-bottom:52px}
.profile-downloads :focus-visible{outline:3px solid #edbd9b;outline-offset:5px}
.profile-downloads .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.profile-degree{grid-template-columns:160px 1fr 85px;gap:22px}.profile-degree-mark{gap:12px}.profile-degree-mark svg{width:36px}.profile-degree-main h3{font-size:23px}.profile-degree-result{padding-left:20px}.profile-education-compact{gap:35px}.profile-degree-compact{padding-left:30px}}
@media(max-width:640px){.profile-education{padding:60px 0}.profile-section-heading{margin-bottom:25px}.profile-degree{grid-template-columns:1fr auto;gap:21px;padding:26px 0}.profile-degree-mark{grid-column:1/-1}.profile-degree-mark svg{width:33px;height:33px}.profile-degree-main h3{font-size:23px}.profile-degree-main>p{font-size:14px}.profile-degree-result{padding-left:17px}.profile-degree-result>strong{font-size:34px}.profile-education-compact{grid-template-columns:1fr;gap:28px;padding-top:58px;padding-bottom:58px}.profile-degree-compact{padding:26px 0 0;border-left:0;border-top:1px solid var(--line,#dce2d9)}.profile-downloads{padding:53px 0}.profile-downloads-inner{flex-direction:column;align-items:flex-start;gap:30px}.profile-download-actions{align-items:flex-start;gap:19px}.profile-download-copy>p:not(.eyebrow){font-size:15px}.profile-download-actions .button{min-width:205px}.profile-download-copy h2{font-size:35px}}
@media(prefers-reduced-motion:reduce){.profile-cv-download:hover{transform:none}}

.contact-service-note{margin:-9px 0 26px;padding:13px 15px;border-left:3px solid #b38c6a;background:#f0ede5;color:#49594f;font-size:13px;line-height:1.65}
.contact-service-note[data-ready='true']{border-color:#64836b;background:#edf1e9}
.contact-conversation{margin:25px 0;padding:21px;border:1px solid #ccd5c7;border-radius:13px;background:#f1f3ed}
.contact-conversation[hidden],.contact-receipt[hidden],.contact-followup[hidden],.contact-saved-file[hidden]{display:none}
.contact-conversation h3{font-size:20px;letter-spacing:-.02em;font-weight:500;color:var(--forest)}
.contact-conversation>p{font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0 15px}
.contact-conversation details{margin-bottom:17px}
.contact-conversation summary{cursor:pointer;font-size:13px;color:var(--forest);font-weight:500;padding:7px 0}
.contact-transcript{max-height:300px;overflow:auto;overscroll-behavior:contain;margin-top:14px;padding:0 12px 0 0;list-style:none}
.contact-transcript li{padding:13px 0;border-top:1px solid #d5dcd0}
.contact-transcript strong{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--forest)}
.contact-transcript p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px}
.contact-consent{display:flex!important;align-items:flex-start;gap:12px;font-size:14px!important;line-height:1.6;cursor:pointer}
.contact-consent input{width:18px!important;height:18px!important;min-height:18px!important;margin:3px 0 0!important;padding:0!important;flex:none;accent-color:var(--forest)}
.contact-conversation-actions{display:flex;gap:18px;flex-wrap:wrap;margin-top:15px}
.contact-conversation-actions button,.contact-saved-file button{border:0;background:transparent;padding:3px 0;text-decoration:underline;text-underline-offset:4px;cursor:pointer;color:var(--forest);font:inherit;font-size:12px}
.contact-saved-file{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:10px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;font-size:12px;overflow-wrap:anywhere}
.contact-saved-file>span{min-width:0;overflow-wrap:anywhere}
.contact-saved-file button{flex-shrink:0}
.contact-receipt{margin-bottom:22px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.contact-receipt strong{color:var(--forest);font-weight:500}
.contact-followup{display:flex;gap:19px;flex-wrap:wrap;margin-top:17px}
.contact-followup button{font:inherit;font-size:13px;background:transparent;border:0;border-bottom:1px solid #99aa97;padding:5px 0;color:var(--forest);cursor:pointer}
#form-feedback[data-state='saved']{border-color:#d8c6ac;background:#f3eee2;color:#5b4935}
.contact-form .contact-honey{display:none}
.contact-pending-handoff{margin:20px 0;padding:17px;border:1px solid #d9c4a7;border-radius:12px;background:#f4efe5;font-size:13px;line-height:1.7}
.contact-pending-handoff[hidden]{display:none}
.contact-pending-handoff button{border:0;border-bottom:1px solid #a7b399;background:transparent;color:var(--forest);font:inherit;cursor:pointer;margin-top:9px;padding:3px 0}
@media(max-width:760px){
 .contact-conversation{padding:17px}
 .contact-service-note{font-size:13px}
 .contact-conversation>p,.contact-transcript p{font-size:14px}
 .contact-conversation summary{min-height:44px;padding-block:10px;font-size:14px}
 .contact-consent{min-height:44px;padding-block:8px}
 .contact-saved-file{align-items:flex-start;gap:8px;padding:10px 12px}
 .contact-conversation-actions,.contact-followup{column-gap:18px;row-gap:4px}
 .contact-conversation-actions button,.contact-saved-file button,.contact-followup button,.contact-pending-handoff button,.contact-copy-row .copy-email,.contact-other a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding-block:10px;text-align:left;line-height:1.5}
 .contact-followup button,.contact-pending-handoff button{white-space:normal;overflow-wrap:anywhere}
 .contact-transcript{max-height:240px}
 #contact-submit{width:100%;min-height:52px}
 #form-feedback,.contact-service-note,.field-error,.form-note{overflow-wrap:anywhere}
 .contact-form :is(input,select,textarea,button),#form-feedback{scroll-margin-block:calc(var(--header-height) + 20px) 24px}
}

/* Content refinements for phones and tablets. Keep the desktop compositions intact. */
@media (max-width: 1050px) {
  /* Let the final footer actions scroll clear of the floating assistant. */
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  /* Paint the full-width background without adding the scrollbar width to the page. */
  .about-intro::before {
    left: 0;
    width: 100%;
    transform: none;
    box-shadow: 0 0 0 100vmax var(--ivory);
    clip-path: inset(0 -100vmax);
  }

  .technical-main,
  .infrastructure-layout > div,
  .profile-degree-main,
  .profile-download-copy,
  .project-card-body,
  .case-description {
    min-width: 0;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  /* At small tablet widths, give project evidence the full reading width. */
  .project-card { grid-template-columns: minmax(0, 1fr); }
  .project-card > .project-card-body,
  .project-card:nth-child(even) > .project-card-body {
    order: 1;
    padding: 30px;
  }
  .project-card > .project-thumbnail,
  .project-card:nth-child(even) > .project-thumbnail {
    order: 2;
    height: auto;
    min-height: 0;
    margin: 0 24px 24px;
  }
  .project-thumbnail .portfolio-composition { height: auto; }
  .project-gallery { grid-template-columns: minmax(0, 1fr); }
  .engineering-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-actions { gap: 12px 22px; }

  .contact-invitation .contact-large-link {
    max-width: 100%;
    min-height: 58px;
    gap: 18px;
    padding: 15px 20px;
    font-size: clamp(19px, 5.3vw, 27px);
    letter-spacing: -.025em;
    text-align: left;
  }

  .project-title-row h1,
  .project-card h2,
  .case-copy h3,
  .next-project-link,
  .technology-intro h1,
  .technical-main h2,
  .profile-degree-main h3 {
    overflow-wrap: anywhere;
  }

  .case-navigation { scroll-padding-inline: 4px; }
  .case-navigation a,
  .filters button,
  .capability-tabs button,
  .technology-anchor,
  .demo-tabs button,
  .project-marquee .motion-button,
  .milestone-controls .motion-button {
    min-height: 44px;
  }
  .case-navigation a { display: inline-flex; align-items: center; }

  /* These links are actions, so the entire tap area remains easy to reach. */
  .hero-actions .text-link,
  .section-heading > .text-link,
  .capability-intro .text-link,
  .technical-examples .text-link,
  .experience-list .text-link,
  .about-summary > .text-link,
  .profile-degree-compact .text-link,
  .profile-cv-view,
  .back-link,
  .back-top {
    min-height: 44px;
    align-items: center;
  }

  .project-capture figcaption,
  .project-gallery figcaption,
  .connection-figure figcaption {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .case-panel .project-capture figcaption,
  .project-thumbnail .project-capture figcaption,
  .project-showcase .project-capture figcaption {
    font-size: 11px;
    line-height: 1.6;
  }
  .project-capture figcaption > span,
  .project-gallery figcaption > span,
  .connection-figure figcaption > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .project-capture figcaption > a,
  .project-gallery figcaption > a,
  .connection-figure figcaption > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .project-gallery figure { padding: 12px; }
  .project-gallery figure > img { max-height: none; }
  .demo-topbar { flex-wrap: wrap; row-gap: 5px; }
  .monitor-legend { flex-wrap: wrap; row-gap: 8px; }
  .feature-phone { max-width: 100%; }
  .engineering-flow li,
  .demo-metric { min-width: 0; }

  .footer-inner { align-items: flex-start; gap: 15px; }
  .footer-inner > div { column-gap: 24px; row-gap: 4px; }
  .footer-inner > div > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 540px) {
  /* Workflow explanations need readable text, rather than miniature desktop cards. */
  .engineering-flow {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 12px;
  }
  .engineering-flow li { min-height: 0; padding: 20px; }
  .engineering-flow .flow-step { margin-bottom: 12px; }
  .engineering-flow strong { font-size: 20px; }
  .engineering-flow p { margin-top: 9px; font-size: 13px; }

  .demo-metrics { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 9px; }
  .demo-metric { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 13px 15px; }
  .demo-metric span { font-size: 12px; }
  .demo-metric strong { font-size: 18px; overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .indicator-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-degree { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
  .profile-degree-main h3 { font-size: 21px; }
  .profile-download-copy h2 { font-size: 32px; }
}

.desktop-nav .nav-signin{padding:8px 12px;border:1px solid #b5c3ac;border-radius:7px;font-size:12px;color:#183c34}.desktop-nav .nav-signin:hover{background:#e9eee5}.mobile-signin{border-top:1px solid #cbd4c9;margin-top:12px;padding-top:18px!important}

.header-signin{display:none}@media(max-width:760px){.header-signin{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 11px;border:1px solid #b5c3ac;border-radius:7px;font-size:12px;color:#183c34;margin-left:auto}.header-inner .header-motion{margin-left:0}}

@media(max-width:600px){.header-motion [data-motion-label]{display:none}.header-motion{width:40px;padding:10px!important;justify-content:center}.header-signin{padding:7px 9px;min-height:40px;font-size:11px}}.menu-open .header-signin{color:#fffefb;border-color:#fffefb55}

/* Editorial engineering notes extend the existing portfolio palette. */
.technical-editorial { background:var(--ivory); color:var(--ink); margin-block:40px 72px; padding-block:78px 82px; border-block:1px solid #e4e1d8; }
.technical-header { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr); align-items:end; gap:70px; padding-bottom:46px; }
.technical-header .eyebrow { color:var(--forest); }
.technical-header h2 { max-width:660px; margin-top:18px; font-size:clamp(38px,4.8vw,62px); line-height:1.07; letter-spacing:-.045em; font-weight:500; text-wrap:balance; }
.technical-intro > p { font-size:18px; line-height:1.7; color:#535c53; max-width:470px; }
.technical-intro nav { display:flex; flex-wrap:wrap; gap:8px 24px; margin-top:22px; }
.technical-intro nav a { font-size:12px; color:var(--forest); text-decoration:underline; text-decoration-color:#a9b3a7; text-underline-offset:6px; min-height:32px; display:inline-flex; align-items:center; }
.technical-intro nav a:hover { text-decoration-color:var(--forest); }
.technical-decisions { border-top:1px solid #7c897a; scroll-margin-top:120px; }
.technical-decisions article { display:grid; grid-template-columns:48px minmax(0,.85fr) minmax(0,1.2fr); gap:28px; padding-block:30px 32px; border-bottom:1px solid #d2d7cd; align-items:start; }
.technical-index { font-size:12px; line-height:2; font-variant-numeric:tabular-nums; color:var(--clay); padding-top:3px; }
.technical-decisions h3 { font-size:25px; line-height:1.25; font-weight:500; letter-spacing:-.025em; max-width:350px; }
.technical-decisions p { color:#535c53; font-size:16px; line-height:1.8; max-width:590px; }
.technical-workflow { margin-top:54px; padding:34px 36px 28px; background:var(--forest); color:var(--paper); scroll-margin-top:116px; }
.technical-label { font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:.14em; line-height:1.5; }
.technical-workflow .technical-label { color:#b7c6b9; }
.technical-workflow h3 { margin-top:9px; font-size:29px; font-weight:450; line-height:1.25; letter-spacing:-.025em; }
.technical-tabs { display:flex; flex-wrap:wrap; gap:0 28px; border-bottom:1px solid #fffefb30; margin-top:22px; }
.technical-tabs button { appearance:none; border:0; border-bottom:2px solid transparent; background:none; color:#b8c9bd; padding:12px 0; min-height:48px; font:inherit; font-size:14px; text-align:left; }
.technical-tabs button[aria-selected='true'] { color:#fffefb; border-bottom-color:#d8b28e; }
.technical-tabs button:hover { color:white; }
.technical-tabs button:focus-visible,.technical-panel:focus-visible { outline-color:#d8b28e; outline-offset:4px; }
.technical-flow { display:grid; grid-template-columns:repeat(var(--flow-count,4),minmax(0,1fr)); gap:30px; list-style:none; margin:35px 0 0; padding:0; }
.technical-flow li { min-width:0; }
.technical-step { display:flex; align-items:center; justify-content:space-between; color:#c4d3c8; border-top:1px solid #fffefb52; padding-top:12px; font-size:11px; font-variant-numeric:tabular-nums; }
.technical-step i { font-family:Arial,sans-serif; font-size:17px; line-height:1; font-style:normal; color:#d8b28e; }
.technical-flow h4 { font-size:20px; line-height:1.3; font-weight:450; letter-spacing:-.015em; margin:20px 0 10px; }
.technical-flow p { color:#d2ded4; font-size:14px; line-height:1.8; margin:0; }
.technical-caption { margin-top:27px; padding-top:18px; border-top:1px solid #fffefb24; font-size:12px; line-height:1.8; color:#bdcec2; max-width:900px; }
.technical-verification { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:64px; margin-top:48px; padding-top:30px; border-top:1px solid #c5cec1; scroll-margin-top:120px; }
.technical-verification .technical-label { color:#717b6d; }
.technical-verification h3 { margin-top:10px; font-size:27px; font-weight:500; }
.technical-verification > div > p:not(.technical-label) { font-size:15px; line-height:1.8; color:#535c53; }
.technical-verification details { margin-top:22px; border-block:1px solid #cdd4c9; }
.technical-verification summary,.technical-connection > summary { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:56px; padding-block:14px; cursor:pointer; list-style:none; color:var(--forest); font-size:14px; }
.technical-verification summary::-webkit-details-marker,.technical-connection summary::-webkit-details-marker { display:none; }
.technical-verification summary > span,.technical-connection summary > span:last-child { font-size:21px; line-height:1; }
.technical-verification details[open] summary > span,.technical-connection[open] summary > span:last-child { transform:rotate(45deg); }
.technical-verification dl > div { padding:16px 0 20px; border-top:1px solid #d6dcd1; }
.technical-verification dt { font-size:17px; font-weight:500; }
.technical-verification dd { margin-top:7px; font-size:14px; line-height:1.8; color:#535c53; }
.technical-connection { margin-top:30px; border-block:1px solid #cdd4c9; }
.technical-connection > div { padding:12px 0 28px; }
.technical-connection h3 { font-size:25px; font-weight:500; }
.technical-connection p { max-width:720px; color:#535c53; margin:14px 0 25px; font-size:15px; line-height:1.8; }
.technical-connection img { width:100%; height:auto; }
.technical-connection figcaption { font-size:12px; color:#535c53; margin-top:12px; }
.technical-connection figcaption a { text-decoration:underline; text-underline-offset:4px; }
.project-brief { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:80px; padding-block:15px 65px; }
.project-brief h2 { margin-top:15px; font-size:44px; font-weight:500; }
.project-brief > div > p:last-child { margin-top:22px; color:var(--muted); font-size:17px; line-height:1.8; }
.project-brief dl > div { padding:23px 0; border-top:1px solid var(--line); }
.project-brief dt { font-size:22px; font-weight:500; line-height:1.3; }
.project-brief dd { margin-top:12px; font-size:15px; line-height:1.8; color:var(--muted); }
@media(max-width:900px) {
 .technical-header { gap:35px; grid-template-columns:1fr 1fr; }
 .technical-header h2 { font-size:46px; }
 .technical-decisions article { grid-template-columns:30px minmax(0,.8fr) minmax(0,1.2fr); gap:20px; }
 .technical-decisions h3 { font-size:22px; }
 .technical-workflow { padding:28px; }
 .technical-flow { gap:22px; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .technical-verification,.project-brief { gap:35px; }
}
@media(max-width:620px) {
 .technical-editorial { padding-block:46px 48px; margin-block:20px 45px; }
 .technical-header { grid-template-columns:minmax(0,1fr); gap:24px; padding-bottom:30px; }
 .technical-header h2 { font-size:40px; margin-top:14px; max-width:400px; text-wrap:initial; }
 .technical-intro > p { font-size:16px; }
 .technical-intro nav { margin-top:16px; gap:8px 20px; }
 .technical-intro nav a { min-height:44px; }
 .technical-decisions article { grid-template-columns:26px minmax(0,1fr); gap:9px 16px; padding-block:24px; }
 .technical-decisions h3 { font-size:23px; max-width:none; }
 .technical-decisions p { grid-column:2; font-size:15px; line-height:1.8; }
 .technical-workflow { margin-top:32px; padding:26px 22px; }
 .technical-workflow h3 { font-size:27px; }
 .technical-tabs { gap:0 20px; }
 .technical-tabs button { font-size:13px; }
 .technical-flow { display:block; margin-top:27px; }
 .technical-flow li { position:relative; padding:0 0 26px 35px; border-left:1px solid #fffefb45; margin-left:8px; }
 .technical-flow li:last-child { padding-bottom:0; border-left-color:transparent; }
 .technical-step { position:absolute; left:-9px; top:0; padding:0 0 8px; width:18px; border:0; background:var(--forest); justify-content:center; color:#d8b28e; }
 .technical-step i { display:none; }
 .technical-flow h4 { margin:0 0 7px; font-size:20px; }
 .technical-flow p { font-size:14px; line-height:1.7; }
 .technical-caption { margin-top:25px; }
 .technical-verification { grid-template-columns:minmax(0,1fr); gap:18px; margin-top:32px; padding-top:26px; }
 .technical-verification h3 { font-size:25px; }
 .project-brief { grid-template-columns:minmax(0,1fr); gap:28px; padding-block:0 42px; }
 .project-brief h2 { font-size:36px; }
 .project-brief > div > p:last-child { font-size:16px; margin-top:16px; }
}
