:root {
  --paper: #f1f5f7;
  --ink: #172b36;
  --blue: #164d70;
  --blue-deep: #0d354f;
  --water: #8ee0ce;
  --muted: #526772;
  --line: #d4dfe5;
  --display: "Trebuchet MS", "Avenir Next", sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #bd6200; outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.02em; }
img { display: block; max-width: 100%; }
::selection { background: var(--water); color: var(--ink); }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; background: white; padding: 12px; }
.skip-link: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; }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }

.site-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { flex: 0 0 auto; text-decoration: none; font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.brand span { display: block; margin-top: 6px; font-family: var(--body); font-size: .76rem; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(24px, 4vw, 58px); }
nav { display: flex; gap: 25px; flex-wrap: wrap; }
nav a { font-size: .86rem; text-decoration: none; }
.main-navigation a { position: relative; padding-block: 8px; }
.main-navigation a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-navigation a:hover::after { transform: scaleX(1); transform-origin: left; }
.language-selector { gap: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.language-selector a { padding: 4px 10px; border-radius: 999px; font-size: .75rem; line-height: 1.5; }
.language-selector a[aria-current="page"] { background: var(--blue); color: white; font-weight: 700; }
.language-selector a:hover { text-decoration: none; background: #e3edf1; }
.language-selector a[aria-current="page"]:hover { background: var(--blue); }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 45%, #1e5c7d 0, transparent 38%), linear-gradient(125deg, var(--blue-deep), var(--blue)); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .85fr; align-items: center; gap: 20px; min-height: 610px; padding-block: 76px; }
.hero h1 { max-width: 740px; margin-bottom: 28px; font-size: clamp(3rem, 5.6vw, 5.15rem); letter-spacing: -.055em; line-height: 1.02; }
.hero h1.hero-title-en { font-size: clamp(2.35rem, 4.2vw, 3.8rem); letter-spacing: -.045em; }
.hero-copy p { max-width: 510px; margin-bottom: 31px; color: #e0edf2; font-size: 1.08rem; line-height: 1.7; }
.hero-copy .hero-tagline { margin-bottom: 22px; color: var(--water); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 12px 22px; border-radius: 5px; background: var(--water); color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.button::after { content: "→"; font-size: 1.2em; }
.button:hover { background: #b4eee1; transform: translateY(-2px); }
.hero-visual { width: 100%; max-width: 430px; justify-self: end; }
.hero-visual img { width: 100%; height: auto; }
.hero a:focus-visible, .project-hero a:focus-visible, .contact-section a:focus-visible { outline-color: var(--paper); }

.work-section { padding-block: 104px 96px; }
.section-intro { display: grid; grid-template-columns: 1.1fr .8fr; gap: 80px; align-items: end; margin-bottom: 44px; }
.section-intro h2 { max-width: 570px; margin-bottom: 0; }
.section-intro p { max-width: 390px; margin-bottom: 3px; color: var(--muted); }
.work-list { margin-bottom: 30px; border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 65px 1fr 100px 24px; gap: 22px; align-items: center; margin-inline: -20px; padding: 28px 20px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease; }
.work-row:hover { background: #e3edf1; }
.work-row h3 { margin-bottom: 8px; transition: color .2s ease; }
.work-row:hover h3 { color: var(--blue); }
.work-row p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.year { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.work-type { color: var(--muted); font-size: .8rem; text-align: right; }
.work-arrow { color: var(--blue); font-size: 1.35rem; transition: transform .2s ease; }
.work-row:hover .work-arrow { transform: translateX(4px); }
.text-link { color: var(--blue); font-size: .9rem; font-weight: 700; }

.about-section { background: #e3edf1; }
.about-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; padding-block: 94px; }
.about-location { margin-top: 30px; color: var(--muted); font-size: .88rem; }
.about-copy p { max-width: 640px; margin-bottom: 22px; line-height: 1.85; }
.practice-list { display: grid; gap: 10px; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid #c4d4dc; list-style: none; font-size: .9rem; }
.practice-list li { padding-left: 18px; border-left: 3px solid var(--blue); }

.research-section { padding-block: 96px; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 42px; }
.research-card { padding: 34px; border-top: 3px solid var(--blue); background: white; }
.research-card h3 { margin-bottom: 14px; font-size: 1.65rem; }
.research-card p { margin-bottom: 0; color: var(--muted); font-size: .94rem; line-height: 1.8; }

.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 55px; margin-bottom: 70px; padding: 54px 58px; border-radius: 10px; background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: var(--paper); }
.contact-section h2 { max-width: 540px; margin-bottom: 16px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.contact-section p { max-width: 460px; margin: 0; color: #d7e7ed; font-size: .94rem; }
.contact-email { color: var(--water); font-family: var(--display); font-size: clamp(1.2rem, 2.3vw, 1.75rem); letter-spacing: -.035em; white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 0 34px; }
.site-footer p { margin-bottom: 3px; font-size: .8rem; }
.footer-note { color: var(--muted); }
.site-footer nav { gap: 20px; }
.site-footer nav a { font-size: .8rem; }

.project-hero { background: radial-gradient(circle at 84% 45%, #1e5c7d 0, transparent 34%), linear-gradient(125deg, var(--blue-deep), var(--blue)); color: var(--paper); }
.project-hero-inner { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 50px; min-height: 510px; padding-block: 56px 70px; }
.back-link { display: inline-block; margin-bottom: 54px; color: var(--water); font-size: .84rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.project-kicker { margin-bottom: 18px; color: var(--water); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.project-hero h1 { max-width: 790px; margin-bottom: 24px; font-size: clamp(2.8rem, 5vw, 4.8rem); letter-spacing: -.05em; }
.project-role { max-width: 650px; margin-bottom: 0; color: #e0edf2; font-size: 1.12rem; }
.project-wave { width: 100%; max-width: 330px; justify-self: end; opacity: .85; }
.project-details { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; padding-block: 90px; }
.project-details h2 { max-width: 400px; margin-bottom: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.credit-list { margin: 0; }
.credit-list div { display: flex; justify-content: space-between; gap: 30px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.credit-list div:first-child { border-top: 1px solid var(--line); }
.credit-list dt { color: var(--muted); font-size: .86rem; }
.credit-list dd { max-width: 65%; margin: 0; font-weight: 650; text-align: right; }
.project-imdb { grid-column: 2; margin-top: -62px; align-self: end; justify-self: start; }
.project-contact { margin-bottom: 70px; }

.error-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 80% 20%, #1e5c7d 0, transparent 36%), var(--blue-deep); color: var(--paper); }
.error-copy { max-width: 760px; padding-block: 70px; }
.error-copy .brand { display: inline-block; margin-bottom: 80px; }
.error-copy .brand span { color: #d7e7ed; }
.error-code { color: var(--water); font-size: .8rem; font-weight: 750; letter-spacing: .14em; }
.error-copy h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -.05em; }
.error-copy p { max-width: 590px; color: #d7e7ed; }
.error-copy .button { margin-top: 18px; }

@media (max-width: 1000px) {
  .site-header { gap: 24px; }
  .header-actions { gap: 24px; }
  nav { gap: 18px; }
  .hero-inner { grid-template-columns: 1.3fr .7fr; min-height: 560px; }
  .section-intro { gap: 40px; }
  .about-inner, .project-details { gap: 50px; }
  .contact-section { gap: 30px; padding: 42px; }
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; padding-block: 26px; }
  .header-actions { width: 100%; align-items: flex-start; flex-direction: column; gap: 16px; }
  .main-navigation { width: 100%; justify-content: space-between; gap: 12px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 54px 24px; }
  .hero-visual { width: 100%; max-width: 260px; height: 130px; justify-self: center; overflow: hidden; margin-top: 12px; opacity: .75; }
  .hero-visual img { transform: translateY(-58px); }
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .work-row { grid-template-columns: 48px 1fr 22px; gap: 14px; margin-inline: -12px; padding: 24px 12px; }
  .work-type { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-location { margin-top: 0; }
  .research-grid { grid-template-columns: 1fr; }
  .contact-section { align-items: flex-start; flex-direction: column; }
  .project-hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .project-wave { display: none; }
  .back-link { margin-bottom: 38px; }
  .project-details { grid-template-columns: 1fr; gap: 38px; }
  .project-imdb { grid-column: 1; margin-top: -16px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .brand { font-size: 1.35rem; }
  nav a { font-size: .82rem; }
  .hero h1 { max-width: 480px; font-size: clamp(2.8rem, 10.5vw, 4rem); }
  .hero h1.hero-title-en { font-size: clamp(2.25rem, 9.3vw, 3rem); }
  .hero-copy p { max-width: 420px; font-size: 1rem; }
  .work-section, .research-section { padding-block: 64px; }
  .work-row h3 { font-size: 1.14rem; line-height: 1.25; }
  .work-row p { font-size: .83rem; line-height: 1.6; }
  .year { font-size: .78rem; }
  .about-inner { padding-block: 60px; }
  .about-copy p { line-height: 1.8; }
  .research-grid { margin-top: 28px; }
  .research-card { padding: 26px; }
  .contact-section { gap: 25px; margin-bottom: 50px; padding: 32px 26px; border-radius: 7px; }
  .contact-email { font-size: 1.35rem; white-space: normal; overflow-wrap: anywhere; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 28px; }
  .project-hero-inner { padding-block: 38px 54px; }
  .project-hero h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .project-details { padding-block: 60px; }
  .credit-list div { gap: 20px; }
  .credit-list dd { max-width: 62%; }
  .error-copy .brand { margin-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
