/* One stylesheet for the homepage. Phosphor glyphs; native CSS materials. */
:root {
  color-scheme: light;
  --bg: #f8f9f8;
  --surface: #fff;
  --ink: #20221f;
  --muted: #62685f;
  --accent: #ad3729;
  --line: #d6dcd2;
  --soft: #edf0eb;
  --radius: 12px;
  --gutter: 48px;
  --section: 64px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --dark-control: radial-gradient(ellipse at 30% 0%, #ffffff30, transparent 65%), linear-gradient(150deg, #484947, #191a19 75%);
  --control-shadow: inset 0 1px 2px #ffffff60, inset 0 -1px 2px #ffffff20, 0 2px 5px #00000018;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.ph-icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; vertical-align: middle; }
.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1200px; margin-inline: auto; }
.accent { color: var(--accent); }
h1,h2,h3,p { margin: 0; }
h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.eyebrow, .intro { font-size: 12px; line-height: 1.5; color: var(--muted); }
.eyebrow { margin-bottom: var(--s2); }
.nav { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.identity { font-family: inherit; font-size: 20px; font-weight: 500; letter-spacing: -.045em; min-height: 44px; display: flex; align-items: center; }
.nav nav { display: flex; align-items: center; gap: var(--s4); }
.nav nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; }
.nav nav .ph-icon { width: 14px; height: 14px; flex-basis: 14px; }
.nav nav a { position: relative; }
.nav nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav nav a:hover::after, .nav nav a:focus-visible::after { transform: scaleX(1); }
footer a:hover { color: var(--accent); }
.assistant-trigger, .floating-assistant { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; border: 0; background: transparent; border-radius: 0; padding: 10px 0; font-size: 12px; transition: color .18s; }
.assistant-trigger:hover, .floating-assistant:hover { color: var(--accent); }
.floating-assistant { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: max(24px, env(safe-area-inset-right)); z-index: 5; display: grid; grid-template-columns: 24px auto; gap: 3px 10px; padding: 12px 16px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; box-shadow: 0 4px 18px #20221f12; transition: transform .2s, box-shadow .2s; }
.floating-assistant>.ph-icon { grid-row: 1 / 3; align-self: center; color: var(--accent); width: 22px; height: 22px; }
.launcher-hint { grid-column: 2; white-space: nowrap; font-size: 11px; color: var(--muted); }
.floating-assistant:hover, .floating-assistant:focus-visible { transform: translateY(-3px); box-shadow: 0 7px 22px #20221f20; }
.floating-assistant:active { transform: translateY(0); }
.bmo { transition: background .18s; }
.bmo:hover, .bmo:focus-visible { background: #edf0eb80; }
.project-image img { transition: transform .25s; }
.project:hover .project-image img { transform: translateY(-3px); }
.hero { display: grid; grid-template-columns: minmax(0,1fr) 280px; align-items: center; gap: 64px; padding: 40px 0 var(--section); }
.hero-main { min-width: 0; }
.intro { margin-bottom: var(--s4); }
h1 { font-size: clamp(48px, 6.2vw, 86px); font-weight: 500; line-height: 1.05; letter-spacing: -.065em; }
/* Keep the hero action in the text column, at every width. */
.hero-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-top: var(--s4); }
.hero-bottom p { max-width: 420px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--s1); min-height: 44px; font-size: 13px; font-weight: 550; }
.text-link:hover { color: var(--accent); }
.text-link .ph-icon, .card-action .ph-icon { transition: transform .18s; }
.text-link:hover .ph-icon { transform: translate(2px,-2px); }
.hero .text-link:hover .ph-icon { transform: translateY(2px); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.section-intro { padding-top: 40px; border-top: 1px solid var(--line); margin-bottom: var(--s4); }
.work-card { display: block; border: 0; border-radius: 0; background: transparent; transition: color .2s; }
.work-card:hover .card-action, .work-card:focus-visible .card-action { color: var(--accent); }
.work-card:hover .card-action .ph-icon { transform: translate(2px,-2px); }
.feature { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: var(--s6); }
.feature-visual { display: grid; place-items: center; padding: var(--s4); background: #eeefed; min-width: 0; border-radius: var(--radius); }
.feature-visual img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4/3; }
.feature-story { display: flex; flex-direction: column; align-items: flex-start; padding: 0; }
.feature h3 { font-size: clamp(28px,3.2vw,40px); font-weight: 500; line-height: 1.14; letter-spacing: -.045em; margin-bottom: var(--s3); }
.feature-intro, .project-outcome { font-size: 14px; line-height: 1.75; color: var(--muted); }
.project-outcome { margin-top: var(--s2); color: var(--ink); }
.card-action { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 550; }
.feature .card-action { margin-top: var(--s2); }
.supporting { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s4); margin-top: 64px; }
.project { display: flex; flex-direction: column; }
.project-image { position: relative; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/3; background: #eeefed; padding: var(--s3); display: grid; place-items: center; }
.project-image.bank { background: #e9eef3; }
.project-image img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: var(--s3) 0 0; }
.project-body .eyebrow { margin-bottom: var(--s1); }
.project h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; font-weight: 500; }
.project-body>p:not(.eyebrow) { margin: var(--s2) 0 var(--s3); font-size: 14px; line-height: 1.65; color: var(--muted); }
.project .card-action { align-self: flex-start; margin-top: auto; }
.bmo { border-block: 1px solid var(--line); display: grid; grid-template-columns: 80px minmax(0,1fr) auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; margin-top: var(--s4); }
.bmo-logo { width: 80px; height: auto; }
.bmo h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.02em; }
.bmo p { margin-top: var(--s1); color: var(--muted); font-size: 13px; line-height: 1.6; }
.approach { padding-top: var(--section); }
.approach h2 { margin-bottom: var(--s4); }
.approach-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--s4); }
.approach-points p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.approach-points strong { display: block; font-size: 15px; font-weight: 550; color: var(--ink); margin-bottom: var(--s1); }
.person { display: grid; grid-template-columns: minmax(0,440px) minmax(0,1fr); gap: clamp(32px,6vw,80px); align-items: start; padding-block: var(--section); }
.person-copy { padding-top: 16px; }
.personal-photos { display: grid; gap: 12px; margin: 0; }
.personal-photos img { display: block; width: 100%; height: auto; border-radius: 0; }
/* Columns follow the source aspect ratios so both portraits have equal height without cropping. */
.personal-details { display: grid; grid-template-columns: 1198fr 1350fr; gap: 12px; }
.personal-photos figcaption { font-size: 12px; line-height: 1.6; color: var(--muted); }
.personal-photos img, .portrait img { transition: transform .28s ease, box-shadow .28s ease; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .personal-photos img:hover { transform: translateY(-4px); box-shadow: 0 10px 24px #20221f18; }
  .portrait:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 12px 28px #20221f18; }
}
.portrait-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.story-stages { display: flex; align-items: center; gap: 24px; margin-top: 24px; border-bottom: 1px solid var(--line); width: 100%; }
.story-stages button { padding: 12px 0; min-height: 44px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 12px; white-space: nowrap; color: var(--muted); }
.story-stages button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.story-stages button:hover { color: var(--ink); }
.story-copy { min-height: 152px; padding-top: 24px; }
.story-copy h4 { font-size: 15px; font-weight: 550; line-height: 1.5; margin: 0 0 8px; }
.story-copy p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }
.person h2 { margin-bottom: var(--s3); }
.person-copy>p:not(.eyebrow) { color: var(--muted); max-width: 390px; font-size: 14px; line-height: 1.8; }
.person-copy .personal-aside { margin-top: var(--s2); }
.person .text-link { margin-top: var(--s3); }
.closing { border-top: 1px solid var(--line); padding-block: 64px; }
.closing>p { margin-bottom: var(--s3); font-size: 14px; color: var(--muted); line-height: 1.6; }
.closing h2 { font-size: clamp(36px,5vw,64px); margin-bottom: var(--s4); }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s3); }
.contact { display: inline-flex; align-items: center; gap: var(--s3); min-height: 48px; padding: 12px 20px; font-size: 13px; border: 1px solid #ffffff3b; border-radius: 999px; color: #fff; background: var(--dark-control); box-shadow: var(--control-shadow); }
.contact:hover { box-shadow: inset 0 1px 4px #ffffff88, 0 3px 12px #0002; }
#copy-email { width: 116px; display: inline-flex; align-items: center; gap: var(--s1); padding: 12px 0; border: 0; background: none; min-height: 48px; font-size: 12px; }
#copy-label { white-space: nowrap; }
#copy-error { margin-top: var(--s2); overflow-wrap: anywhere; }
#copy-error a { text-decoration: underline; }
footer { border-top: 1px solid var(--line); padding: var(--s3) 0 112px; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: 11px; color: var(--muted); }
footer div { display: flex; align-items: center; gap: var(--s3); }
footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
footer .ph-icon { width: 14px; height: 14px; flex-basis: 14px; }
/* Native modal keeps background interaction inert and keyboard focus contained. */
dialog { width: 460px; max-width: calc(100% - 32px); height: min(690px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; margin: auto 20px 20px auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 64px #0002; overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #20221f35; backdrop-filter: blur(3px); }
.assistant-header { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; padding: var(--s3); gap: var(--s2); border-bottom: 1px solid var(--line); }
.assistant-header h2 { font-size: 20px; letter-spacing: -.04em; }
.assistant-header p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.assistant-header button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); }
.assistant-header button:hover { background: #e0e5dc; }
.assistant-content { padding: var(--s3); flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.assistant-intro { margin-bottom: var(--s3); }
.assistant-intro p { font-size: 15px; line-height: 1.65; }
.questions { display: grid; gap: var(--s1); }
.questions button { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); text-align: left; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; line-height: 1.5; }
.questions button:hover { background: var(--soft); }
.questions .ph-icon { width: 16px; height: 16px; flex-basis: 16px; }
.questions.compact { display: flex; flex-wrap: wrap; }
.questions.compact button { font-size: 11px; padding: 8px 10px; }
.questions.compact .ph-icon { display: none; }
.message { font-size: 13px; line-height: 1.8; margin-bottom: var(--s3); }
.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user { margin-left: var(--s3); padding: 12px 14px; background: var(--soft); border-radius: 12px 12px 4px 12px; }
.message-label { display: block; color: var(--muted); font-size: 11px; font-weight: 550; margin-bottom: 6px; }
.message a { display: inline-block; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; padding-block: 4px; }
.composer { position: relative; flex-shrink: 0; margin: var(--s1) var(--s3) var(--s2); border: 1px solid #a4ae9b; border-radius: var(--radius); background: var(--bg); }
.composer:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.composer textarea { display: block; width: 100%; height: 96px; resize: none; border: 0; outline: none; padding: 14px 56px 14px 14px; background: transparent; font-size: 16px; line-height: 1.5; }
.composer textarea::placeholder { color: var(--muted); opacity: 1; }
.composer button { position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1px solid #ffffff3b; background: var(--dark-control); color: #fff; box-shadow: var(--control-shadow); }
.composer button:disabled { background: #e4e7e2; border-color: #d3d8d1; color: #62685f; box-shadow: none; }
.assistant-footer { flex-shrink: 0; padding: 0 var(--s3) var(--s2); font-size: 11px; line-height: 1.5; color: var(--muted); }
.skip { position: fixed; top: -100px; left: 16px; padding: 12px; background: white; z-index: 20; }
.skip:focus { top: 12px; }
.sr-only { 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:1024px) {
  :root { --gutter: 32px; --section: 56px; }
  .hero { grid-template-columns: minmax(0,1fr) 220px; gap: var(--s4); }
  .feature { gap: var(--s4); }
  .feature-visual { padding: var(--s3); }
  .person { gap: var(--s4); }
  .bmo { grid-template-columns: 72px minmax(0,1fr); }
  .bmo .card-action { grid-column: 2; justify-content: flex-start; margin-top: -8px; }

}
@media(max-width:700px) {
  :root { --gutter: 20px; --section: 48px; }
  .nav { gap: var(--s1); }
  .nav nav { gap: var(--s2); }
  .nav nav a { font-size: 11px; }
  .nav nav a[href="#person"] { display: none; }
  .nav nav .ph-icon { display: none; }
  .assistant-trigger { padding: 8px; font-size: 11px; gap: 6px; }
  .assistant-trigger .ph-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .hero { display: block; padding: var(--s4) 0 48px; }
  .intro { font-size: 11px; margin-bottom: var(--s3); }
  h1 { font-size: clamp(35px,9.9vw,66px); }
  .hero-bottom { margin-top: var(--s3); gap: var(--s2); }
  .hero-bottom p { max-width: 360px; font-size: 14px; }
  .portrait { display: block; width: 156px; margin-top: 32px; }
  .portrait-note { display: none; }
  .section-intro { padding-top: var(--s4); }
  .feature { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .story-copy { min-height: 160px; }
  .supporting { margin-top: 48px; }
  .feature-story { padding: 0; }
  .feature h3 { font-size: 32px; margin-bottom: var(--s2); }
  .feature .card-action { align-self: flex-start; }
  .supporting { grid-template-columns: minmax(0,1fr); }
  .project h3 { font-size: 23px; }
  .project-image { position: relative; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4/3; padding: var(--s2); }
  .bmo { padding: var(--s3) 0; grid-template-columns: 56px minmax(0,1fr); gap: var(--s2); }
  .bmo-logo { width: 56px; }
  .bmo h3 { font-size: 18px; }
  .bmo .card-action { justify-content: flex-start; margin-top: 0; }
  .approach-points { grid-template-columns: 1fr; gap: var(--s3); }
  .person { grid-template-columns: minmax(0,1fr); gap: var(--s4); }
  .person-copy { grid-row: 1; padding-top: 0; }

  .closing { padding-block: var(--s6); }
  .closing>p { font-size: 13px; }
  .closing h2 { font-size: clamp(34px,9.5vw,48px); }
  .contact-actions { gap: var(--s2); }
  .contact { padding: 12px 16px; gap: var(--s2); font-size: 12px; }
  footer { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .launcher-hint { color: var(--muted); }
  .floating-assistant { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); font-size: 11px; padding: 10px 12px; }
  dialog { margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .assistant-header, .assistant-content { padding: 20px; }
  .composer { margin-inline: 20px; }
  .assistant-footer { padding: 0 20px max(16px,env(safe-area-inset-bottom)); }
}
@media(max-width:359px) {
  :root { --gutter: 16px; }
  .nav nav { gap: 12px; }
  .nav { gap: 6px; }
  .identity { font-size: 16px; }

  .contact-actions { gap: 12px; }
  .contact { gap: 8px; padding-inline: 12px; }
  #copy-email { width: 104px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media(prefers-reduced-transparency:reduce) {
  dialog::backdrop { backdrop-filter: none; background: #20221f66; }
  .contact, .composer button:not(:disabled) { background: #292b28; }
}
