:root {
  --paper: #f3f0e8;
  --surface: #e6e1d7;
  --ink: #171714;
  --muted: #5d5b54;
  --accent: #e44b2f;
  --accent-text: #a93220;
  --focus: #a93220;
  --white: #fffdf8;
  --line: rgba(23, 23, 20, 0.22);
  --gutter: clamp(24px, 6.6667vw, 96px);
  --font-body: 'Schibsted Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Schibsted Grotesk', 'Songti SC', 'STSong', 'Noto Serif CJK SC', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body *::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.wrap { margin-inline: var(--gutter); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 13px; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(243, 240, 232, 0.94); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { color: inherit; text-decoration: none; font: 700 23px/1 var(--font-body); letter-spacing: -0.055em; }
.brand span { color: var(--accent); }
.desktop-nav { display: flex; gap: 36px; margin-left: auto; }
.desktop-nav a, .header-contact { position: relative; color: inherit; text-decoration: none; font-size: 13px; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--accent); transition: right 0.25s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-contact { margin-left: 28px; padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.header-contact span, .button span, .plain-link span { margin-left: 12px; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 10px 7px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { width: 25px; height: 1px; background: var(--ink); transition: transform 0.25s ease; }

.kicker { margin: 0 0 26px; color: var(--muted); font: 500 10px/1.4 var(--font-mono); letter-spacing: 0.08em; }

.hero { min-height: calc(100svh - 76px); }
.hero-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-content: center; padding-top: 72px; padding-bottom: 56px; }
.hero-main { grid-column: 1 / 9; }
.hero-title.hero-title { max-width: none; margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(62px, 6.8vw, 98px); font-weight: 600; line-height: 1.08; letter-spacing: -0.065em; }
.hero-title > span { color: var(--accent); font-family: 'Schibsted Grotesk', sans-serif; font-weight: 500; letter-spacing: -0.08em; }
.hero-intro { max-width: 570px; margin: 34px 0 0; color: #494840; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 14px 19px; border: 1px solid var(--ink); color: inherit; text-decoration: none; font-size: 13px; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--accent); color: var(--ink); }
.plain-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); color: inherit; text-decoration: none; font-size: 13px; }
.plain-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-note { grid-column: 10 / 13; align-self: end; margin-bottom: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.hero-note > span { color: var(--muted); font: 9px var(--font-mono); }
.hero-note p { margin: 18px 0 0; font-family: var(--font-display); font-size: 20px; line-height: 1.7; }
.hero-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 74px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.hero-index > div { display: grid; grid-template-columns: 34px 1fr; padding: 20px 22px 20px 0; }
.hero-index > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-index span { grid-row: span 2; color: var(--accent-text); font: 10px var(--font-mono); }
.hero-index strong { font-size: 14px; }
.hero-index p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.js .hero-main, .js .hero-note, .js .hero-index { opacity: 0; animation: heroEnter 0.75s ease forwards; }
.js .hero-note { animation-delay: 0.14s; }
.js .hero-index { animation-delay: 0.25s; }
@keyframes heroEnter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.capabilities { padding: 130px 0 140px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: end; }
.section-heading .kicker { grid-column: 1 / -1; }
.section-heading h2, .method-heading h2, .contact h2 { margin: 0; font-family: var(--font-display); font-size: clamp(42px, 4.8vw, 68px); font-weight: 600; line-height: 1.16; letter-spacing: -0.055em; }
.section-heading > p:last-child { max-width: 390px; margin: 0 0 7px auto; color: var(--muted); font-size: 14px; line-height: 1.9; }
.capability-list { margin-top: 82px; border-top: 1px solid var(--ink); }
.capability-row { display: grid; grid-template-columns: 54px 1.05fr 1.5fr 0.9fr; gap: 24px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.row-number { padding-top: 4px; color: var(--accent-text); font: 10px var(--font-mono); }
.row-title > p { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.row-title h3, .project-notes h3, .method-list h3 { margin: 0; font-size: 20px; line-height: 1.45; }
.row-description { margin: 0; color: #494840; font-size: 14px; line-height: 1.9; }
.row-scenarios { margin: 0; color: #494840; font-size: 12px; line-height: 1.8; }
.row-scenarios > span { display: block; margin-bottom: 8px; color: var(--muted); font: 9px var(--font-mono); }

.project { padding: 130px 0 0; background: var(--ink); color: var(--paper); }
.project-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(50px, 7vw, 100px); align-items: start; padding-bottom: 90px; }
.project .kicker { color: #a9a69c; }
.project-copy h2 { margin: 0; font-family: var(--font-display); font-size: clamp(50px, 5.7vw, 82px); font-weight: 600; line-height: 1.1; letter-spacing: -0.065em; }
.project-lead { margin: 34px 0 0; color: #e2ded3; font-size: 16px; line-height: 1.9; }
.project-detail { margin: 22px 0 0; color: #a9a69c; font-size: 13px; line-height: 1.9; }
.project-facts { margin: 38px 0 0; border-top: 1px solid #48473f; }
.project-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid #48473f; font-size: 12px; }
.project-facts dt { color: #a9a69c; }
.project-facts dd { margin: 0; }
.project-artifact { padding: 24px clamp(20px, 3.2vw, 46px) 34px; background: var(--white); color: #20211e; box-shadow: 12px 12px 0 var(--accent); }
.artifact-top { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #c8c5bc; color: #66645d; font: 8px var(--font-mono); }
.banen-header { display: flex; justify-content: center; align-items: flex-start; gap: 20px; margin: 30px 0; }
.banen-logo { color: #d71920; font: 700 clamp(26px, 3vw, 40px)/1 var(--font-body); letter-spacing: -0.08em; }
.banen-logo small { margin-left: 6px; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 16px; font-weight: 700; }
.banen-slogan { display: flex; flex-direction: column; padding-top: 3px; }
.banen-slogan strong { font-size: 13px; }
.banen-slogan span { font: 8px var(--font-mono); }
.artifact-block-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.artifact-block-title::before { content: ''; width: 4px; height: 18px; background: var(--ink); }
.banen-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 50px; max-width: 450px; margin-inline: auto; }
.banen-specs > div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 5px; border-bottom: 1px solid #e3e0d8; font-size: 11px; }
.banen-specs span { color: #66645d; }
.banen-specs b { color: #c9232c; font-weight: 500; }
.artifact-section { max-width: 480px; margin: 28px auto 0; padding-top: 21px; border-top: 1px solid #c8c5bc; text-align: center; }
.artifact-section h3 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: #c9232c; font-size: 20px; }
.artifact-section h3 i { width: 26px; height: 1px; background: #c9232c; }
.artifact-section p { margin: 6px 0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.artifact-section p span { color: #c9232c; }
.trace-section { margin-top: 20px; }
.project-notes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #48473f; }
.project-notes > div { padding: 34px 32px 40px 0; }
.project-notes > div + div { padding-left: 32px; border-left: 1px solid #48473f; }
.project-notes span { color: var(--accent); font: 9px var(--font-mono); }
.project-notes h3 { margin-top: 14px; }
.project-notes p { margin: 10px 0 0; color: #a9a69c; font-size: 12px; line-height: 1.8; }

.method { padding: 130px 0 140px; }
.method-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(60px, 8vw, 120px); }
.method-heading > p:last-child { max-width: 400px; margin: 28px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.method-list { border-top: 1px solid var(--ink); }
.method-list article { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.method-list article > span { padding-top: 5px; color: var(--accent-text); font: 10px var(--font-mono); }
.method-list p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.contact { --focus: #171714; padding: 90px 0; background: var(--accent); }
.contact .kicker { color: var(--ink); }
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(50px, 7vw, 100px); align-items: start; }
.contact-side > p { max-width: 390px; margin: 0 0 28px; color: var(--ink); font-size: 14px; line-height: 1.9; }
.contact-side .button { margin-top: 4px; }

.site-footer { padding: 54px 0 28px; background: var(--ink); color: var(--paper); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; }
.footer-main > div:first-child > p { margin: 15px 0 0; color: #b4b0a6; font-size: 12px; }
.footer-links { display: flex; align-items: start; gap: 28px; }
.footer-links a { color: #d5d0c5; text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 18px; border-top: 1px solid #48473f; color: #aaa69c; font: 9px var(--font-mono); }
.footer-records { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 20px; color: #aaa69c; font-size: 11px; }
.footer-records a { color: inherit; text-decoration: none; }
.footer-records img { margin-right: 5px; vertical-align: -3px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 100; width: max-content; max-width: calc(100% - 40px); padding: 12px 18px; transform: translate(-50%, 18px); background: var(--ink); color: var(--paper); border: 1px solid #48473f; font-size: 12px; opacity: 0; pointer-events: none; transition: 0.25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .hero-main { grid-column: 1 / 9; }
  .hero-note { grid-column: 9 / 13; }
  .capability-row { grid-template-columns: 44px 1fr 1.35fr; }
  .row-scenarios { grid-column: 2 / -1; padding-left: 0; }
  .row-scenarios > span { display: inline; margin-right: 12px; }
  .project-layout { grid-template-columns: 0.75fr 1.25fr; gap: 45px; }
}

@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: 80px; }
  .hero-main { grid-column: 1 / -1; }
  .hero-title.hero-title { font-size: clamp(58px, 11vw, 88px); }
  .hero-note { grid-column: 1 / -1; max-width: 440px; margin-top: 60px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin: 26px 0 0; }
  .project-layout, .method-layout, .contact-layout { grid-template-columns: 1fr; }
  .project-copy { max-width: 620px; }
  .project-artifact { margin-top: 20px; }
  .method-list { margin-top: 20px; }
  .contact-side > p { max-width: 560px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 68px; }
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; }
  .site-header.nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.nav-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-header.nav-open .desktop-nav { position: absolute; top: 68px; left: 0; right: 0; display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 26px var(--gutter); border-bottom: 1px solid var(--ink); background: var(--paper); }
  html { scroll-padding-top: 78px; }
  .hero-inner { padding-top: 58px; padding-bottom: 44px; }
  .hero-title.hero-title { max-width: none; font-size: clamp(40px, 10.8vw, 58px); line-height: 1.12; }
  .hero-intro { font-size: 14px; }
  .hero-note { margin-top: 50px; }
  .hero-index { grid-template-columns: 1fr; margin-top: 48px; }
  .hero-index > div, .hero-index > div + div { padding: 16px 0; border-left: 0; }
  .hero-index > div + div { border-top: 1px solid var(--line); }
  .capabilities, .method { padding: 90px 0; }
  .section-heading h2, .method-heading h2, .contact h2 { font-size: clamp(38px, 10.5vw, 52px); }
  .capability-list { margin-top: 50px; }
  .capability-row { grid-template-columns: 34px 1fr; gap: 14px; padding: 26px 0; }
  .row-description, .row-scenarios { grid-column: 2; }
  .row-scenarios > span { display: block; margin: 4px 0 8px; }
  .project { padding-top: 90px; }
  .project-layout { padding-bottom: 60px; }
  .project-copy h2 { font-size: clamp(30px, 10vw, 48px); }
  .project-artifact { padding: 18px 16px 28px; box-shadow: 7px 7px 0 var(--accent); }
  .artifact-top { font-size: 6px; }
  .banen-header { gap: 14px; }
  .banen-logo small { font-size: 13px; }
  .banen-slogan strong { font-size: 11px; }
  .banen-slogan span { font-size: 6px; }
  .banen-specs { gap: 11px 18px; }
  .banen-specs > div { font-size: 10px; }
  .project-notes { grid-template-columns: 1fr; }
  .project-notes > div, .project-notes > div + div { padding: 25px 0; border-left: 0; }
  .project-notes > div + div { border-top: 1px solid #48473f; }
  .contact { padding: 70px 0; }
  .footer-main, .footer-bottom { flex-direction: column; }
  .footer-links { flex-wrap: wrap; margin-top: 32px; }
  .footer-records { justify-content: flex-start; gap: 10px 18px; line-height: 1.7; }
}

@media (max-width: 380px) {
  .hero-title.hero-title { font-size: 10.8vw; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .button { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .hero-main, .js .hero-note, .js .hero-index { opacity: 1; transform: none; }
}
