/* Shared portfolio styles. Legal pages and the game keep styles.css. */
:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --ink: #253d36;
  --muted: #65716a;
  --line: #d7dcd1;
  --accent: #315c48;
  --card: #fafaf5;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.home { min-height: 100svh; display: flex; flex-direction: column; }
.home main { flex: 1; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #b27335; outline-offset: 5px; }
a:hover { color: var(--accent); }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.narrow { max-width: 900px; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--ink); color: white; padding: 14px 20px; z-index: 30; }
.skip:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.identity { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.identity small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.monogram { font-family: Georgia, serif; font-size: 38px; font-weight: 400; line-height: 1; letter-spacing: -4px; padding-right: 4px; }
.monogram span { color: #ba794e; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-header nav a { padding: 7px 0; }
.site-header nav a:last-child { border: 1px solid #a5b4a6; border-radius: 30px; padding: 8px 18px; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.header-tools { display: flex; align-items: center; gap: 26px; }
.site-header .language-switch { gap: 2px; border-left: 1px solid var(--line); padding-left: 18px; }
.site-header .language-switch a,
.site-header .language-switch a:last-child { border: 0; border-radius: 5px; padding: 7px 8px; font-size: 11px; }
.site-header .language-switch a[aria-current] { background: #e1e8da; text-decoration: none; font-weight: 700; }
.eyebrow { margin: 0 0 20px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 1.6px; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.15; font-weight: 500; }
h1 { font-size: clamp(44px, 5.7vw, 76px); letter-spacing: -3px; margin: 0 0 26px; max-width: 950px; }
h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1.3px; margin: 0 0 20px; }
h3 { font-size: 24px; letter-spacing: -.5px; margin: 0 0 16px; }
p { color: var(--muted); margin: 0 0 20px; }
.welcome { padding-top: clamp(44px, 7vh, 82px); padding-bottom: 36px; }
.welcome > .eyebrow, .welcome > h1, .welcome-intro { text-align: center; }
.welcome > h1 { font-size: clamp(56px, 6.5vw, 88px); max-width: none; margin: 0 0 16px; letter-spacing: -4px; }
h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.welcome-intro { font-size: 16px; margin-bottom: 38px; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.route { display: flex; flex-direction: column; min-height: 300px; padding: 26px 28px 22px; border: 1px solid #d9ded2; border-radius: var(--radius); background: #e9eee2; transition: transform .2s, box-shadow .2s; }
.route:hover { transform: translateY(-5px); box-shadow: 0 14px 30px #253d3610; color: var(--ink); }
.route-visual { background: #e7ecee; border-color: #d5dfe1; }
.route-games { background: #ede8de; border-color: #dfd6c7; }
.route-icon { font: 29px/1 Georgia, serif; display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid #8f9e8e70; border-radius: 50%; margin-bottom: 26px; }
.route h2 { font-size: clamp(23px, 2.25vw, 30px); letter-spacing: -.8px; margin-bottom: 16px; }
.route p { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.route-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid #7e8c7738; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; }
.route-bottom b { font-size: 21px; font-weight: 400; line-height: 1; }
.welcome-note { display: flex; gap: 16px; justify-content: center; margin-top: 28px; font-size: 13px; flex-wrap: wrap; }
.welcome-note p { margin: 0; }
.text-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #95a895; font-weight: 500; }
.text-link:hover { text-decoration-color: currentColor; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.footer-brand { color: #727d74; }
.solution-ad { max-width: 970px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.ad-label { margin: 0 0 12px; font-size: 11px; color: var(--muted); text-align: center; }
.footer-game { display: inline-flex; align-items: center; gap: 12px; line-height: 1.3; }
.footer-game img { display: block; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; clip-path: inset(0 round 9px); object-fit: cover; }
.legal { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 11px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); padding-top: 24px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.page-intro { padding-top: 64px; padding-bottom: 50px; }
.lede { max-width: 690px; font-size: 19px; line-height: 1.65; }
.section-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 13px; margin-top: 32px; }
.section-nav a { border-bottom: 1px solid #aab8a5; padding-bottom: 5px; }
.engine-nav { display: flex; gap: 16px; align-items: center; margin-top: 24px; font-size: 13px; flex-wrap: wrap; }
.engine-nav span { color: var(--muted); }
.engine-nav a { border: 1px solid var(--line); padding: 6px 14px; border-radius: 24px; }
.section { border-top: 1px solid var(--line); padding-top: 52px; padding-bottom: 56px; }
.section-heading { margin-bottom: 32px; max-width: 720px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.offer-grid article { padding-right: 16px; }
.offer-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-grid .text-link { display: inline-block; margin-top: 14px; }
.offer-grid h3 { font-size: 23px; }
.step { font: italic 24px Georgia, serif; color: #7a8e78; display: block; margin-bottom: 20px; }
.offer-grid p { font-size: 15px; margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.project-preview { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #dfe5d9; }
.project-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.project-preview:hover img { transform: scale(1.04); }
.preview-label { position: absolute; bottom: 12px; left: 12px; border-radius: 20px; padding: 6px 12px; font-size: 11px; color: var(--ink); background: var(--paper); }
.card-copy { padding: 24px; }
.card-copy .eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 10px; }
.card-copy h3 { font-size: 24px; margin-bottom: 12px; }
.card-copy p:last-child { margin-bottom: 0; font-size: 14px; }
.abstract-art { height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; background: #e4ebdc; }
.abstract-art span { display: block; width: 20%; height: 35%; border: 1px solid #78936c; border-radius: 6px; }
.abstract-art span:nth-child(2) { height: 55%; background: #c4d4b6; }
.abstract-art span:nth-child(3) { height: 70%; }
.abstract-art b { position: absolute; right: 22px; top: 14px; font-size: 32px; font-weight: 400; }
.project-group + .project-group { margin-top: 48px; }
.group-title { display: flex; align-items: center; gap: 20px; margin: 0 0 24px; font-size: 26px; }
.group-title:after { content: ''; height: 1px; background: var(--line); flex: 1; }
.related-note { margin-top: 30px; font-size: 14px; }
.related-note a { text-decoration: underline; text-underline-offset: 4px; }
.experience-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; }
.experience-panel p { max-width: 600px; }
.experience-panel h3 { font-size: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 24px 0 0; }
.tags li { border: 1px solid #c8d1c1; border-radius: 6px; padding: 6px 12px; font-size: 12px; background: #eef1e7; }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 44px; padding-bottom: 44px; margin-bottom: 48px; border-top: 1px solid var(--line); }
.closing h2 { font-size: 30px; }
.closing p { margin-bottom: 0; }
.closing .eyebrow { margin-bottom: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; background: var(--ink); color: #fff; border: 1px solid var(--ink); padding: 12px 22px; border-radius: 30px; font-size: 13px; min-height: 48px; flex-shrink: 0; }
.button:hover { color: #fff; background: #3e6052; }
.button.secondary { background: transparent; color: var(--ink); border-color: #a8b7a2; }
.button.secondary:hover { background: #e4eadd; }
.resource-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.project-story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.project-story h2 { font-size: 28px; }
.feature-list { padding-left: 20px; color: var(--muted); font-size: 15px; }
.feature-list li { padding-left: 5px; margin-bottom: 10px; }
.video-block { margin: 0 0 36px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1d2923; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 12px; font-size: 13px; color: var(--muted); }
figcaption small { display: block; font-size: 11px; margin-top: 2px; }
figcaption a { white-space: nowrap; }
.project-return { padding-bottom: 40px; }
.ai-services { border-top: 1px solid var(--line); padding: 38px 0 42px; margin-top: 36px; }
.ai-services > p { max-width: 850px; }
.ai-services h4 { font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.6px; margin: 0 0 20px; }
.ai-offers { display: grid; gap: 10px; margin: 26px 0 22px; }
.ai-offer { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.ai-offer summary { display: grid; grid-template-columns: 166px 1fr auto; align-items: center; gap: 20px; padding: 20px 22px; cursor: pointer; list-style: none; }
.ai-offer summary::-webkit-details-marker { display: none; }
.ai-offer summary:hover { background: #eaf0e3; }
.ai-offer summary strong { font-size: 17px; font-weight: 500; line-height: 1.4; }
.offer-status { font-size: 10px; border-radius: 16px; padding: 5px 10px; width: fit-content; color: #62552f; background: #f0e9d4; }
.offer-status.applied { color: #31543c; background: #e2ebdb; }
.offer-expand { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ai-offer[open] summary { border-bottom: 1px solid var(--line); }
.ai-offer[open] .offer-expand { font-weight: 600; color: var(--ink); }
.offer-body { padding: 26px; }
.offer-body .eyebrow { margin-bottom: 10px; }
.offer-body > p { max-width: 900px; }
.offer-body dl { margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.offer-body dt { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.offer-body dd { margin: 0; font-size: 14px; color: var(--muted); }
.pilot-note { font-size: 12px; border-left: 2px solid #bca872; padding-left: 16px; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.capability { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.capability summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px; cursor: pointer; list-style: none; }
.capability summary::-webkit-details-marker { display: none; }
.capability summary:hover { background: #eaf0e3; }
.capability summary strong { font-size: 16px; font-weight: 500; }
.capability summary > span { font-size: 22px; font-weight: 400; color: var(--muted); }
.capability[open] summary > span { transform: rotate(45deg); }
.capability-body { padding: 0 22px 24px; }
.capability-body p { font-size: 14px; margin-bottom: 0; }
.capability-body .tags { margin-top: 18px; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.profile-meta { display: flex; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.timeline article { display: grid; grid-template-columns: 190px 1fr; gap: 48px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline article > span { font-size: 13px; color: var(--muted); padding-top: 5px; }
.timeline h3 { font-size: 24px; margin-bottom: 8px; }
.timeline .job-role { color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.timeline p:last-child { margin-bottom: 0; font-size: 14px; max-width: 750px; }
.contact-intro { max-width: 900px; padding-bottom: 64px; }
.contact-box { border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; margin-top: 36px; background: #e9eee2; }
.contact-email { display: block; font-size: clamp(18px, 3.5vw, 32px); letter-spacing: -.5px; overflow-wrap: anywhere; margin: 12px 0; }
.contact-box p { margin: 0; font-size: 13px; }
.contact-details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; margin-bottom: 48px; }
.contact-prompts { padding-left: 22px; color: var(--muted); }
.contact-prompts li { padding: 10px 0 10px 6px; }
.contact-details aside { padding-left: 32px; border-left: 1px solid var(--line); }
.contact-details aside .text-link { display: inline-block; margin-right: 16px; margin-bottom: 12px; }
.contact-details hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
@media (min-width: 1500px) { .welcome { padding-top: 88px; } }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .route { padding: 24px 22px; }
  .route h2 { font-size: 25px; }
  .route-bottom { font-size: 10px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-panel { gap: 40px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { align-items: flex-start; padding: 20px 0; gap: 14px; }
  .identity { font-size: 13px; gap: 10px; }
  .identity small { max-width: 140px; font-size: 10px; }
  .site-header nav { gap: 8px 14px; justify-content: flex-end; flex-wrap: wrap; font-size: 11px; }
  .site-header nav a:last-child { border: 0; border-radius: 0; padding: 7px 0; }
  .header-tools { align-items: flex-end; flex-direction: column; gap: 8px; }
  .site-header .language-switch { border-left: 0; padding-left: 0; gap: 2px; }
  .monogram { font-size: 34px; }
  .welcome { padding-top: 42px; }
  .welcome > .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .welcome > h1 { font-size: clamp(43px, 10.5vw, 66px); letter-spacing: -2.6px; }
  .welcome-intro { font-size: 14px; max-width: 300px; margin: 0 auto 28px; }
  .route-grid { grid-template-columns: 1fr; gap: 12px; }
  .route { min-height: 0; padding: 22px; display: grid; grid-template-columns: 42px 1fr; gap: 0 18px; }
  .route-icon { grid-row: 1 / 3; margin: 0; }
  .route h2 { font-size: 25px; margin-bottom: 10px; }
  .route h2 br, .route p br { display: none; }
  .route p { margin-bottom: 18px; font-size: 13px; }
  .route-bottom { grid-column: 2; font-size: 10px; }
  .welcome-note { gap: 4px 12px; text-align: center; font-size: 12px; }
  .legal { gap: 8px 14px; }
  .legal > span { width: 100%; }
  .page-intro { padding-top: 42px; padding-bottom: 38px; }
  h1 { font-size: 43px; letter-spacing: -1.8px; }
  .lede { font-size: 17px; }
  .section { padding-top: 36px; padding-bottom: 40px; }
  .offer-grid, .experience-panel, .project-story, .contact-details { grid-template-columns: 1fr; gap: 30px; }
  .offer-grid article { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
  .offer-grid article:last-child { border-bottom: 0; padding-bottom: 0; }
  .step { margin-bottom: 12px; }
  .section-nav { gap: 12px 20px; font-size: 12px; }
  .closing { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .contact-details aside { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .contact-box { padding: 24px; }
  .ai-services { padding-top: 28px; margin-top: 28px; }
  .ai-offer summary { grid-template-columns: 1fr auto; gap: 12px; padding: 18px; }
  .offer-status { grid-column: 1 / -1; }
  .ai-offer summary strong { font-size: 16px; }
  .offer-body { padding: 20px; }
  .offer-body dl { grid-template-columns: 1fr; gap: 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  figcaption { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) { .project-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
