/* Developer: svg360 */
:root {
  color-scheme: light;
  --ink: #171717;
  --charcoal: #272b2d;
  --paper: #fff;
  --mist: #f3f2ef;
  --line: rgba(23, 23, 23, .18);
  --muted: rgba(23, 23, 23, .68);
  --purple: #6541a5;
  --max: 1480px;
  --pad: clamp(22px, 4.2vw, 72px);
  --space-section: clamp(64px, 7vw, 104px);
  --font: "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-weight: 300; -webkit-font-smoothing: antialiased; }
body.dialog-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; border-radius: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.025em; }
p { line-height: 1.65; }
::selection { background: #6541a5; color: white; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }
.hero a:focus-visible, .hero button:focus-visible, .site-footer a:focus-visible { outline-color: #e4d6ff; }
.skip-link { position: fixed; top: -80px; left: 22px; z-index: 100; padding: 14px 20px; color: var(--ink); background: white; }
.skip-link:focus { top: 20px; }

/* Navigation follows the reference's single, non-sticky header. */
.site-header { width: 100%; height: 108px; padding: 0 var(--pad); position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.site-header--inverse { color: white; background: transparent; border-color: rgba(255, 255, 255, .32); }
.brand { display: flex; align-items: center; justify-content: center; width: auto; height: 88px; flex: 0 0 auto; }
.brand img { width: 142px; height: auto; object-fit: contain; flex: 0 0 auto; }
.footer-brand img, .site-header--inverse .brand img { filter: brightness(0) invert(1); }
.language-link { min-width: 44px; justify-content: center; }
.brand-name { display: block; font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: .08em; white-space: nowrap; }
.brand-en { display: block; margin-top: 7px; font-size: 10px; line-height: 1.3; font-weight: 400; letter-spacing: .17em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2vw, 38px); font-size: 14px; }
.nav > a { position: relative; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: currentColor; transition: right .25s ease; }
.nav > a:hover::after, .nav > a[aria-current]::after, .nav > a.is-active::after { right: 0; }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid currentColor; font-size: 14px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.site-header--inverse .nav-cta:hover { background: white; color: var(--ink); border-color: white; }
.menu-button { display: none; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-button span { display: block; height: 1px; margin: 7px 0; background: currentColor; transition: transform .2s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100svh - 88px); overflow-y: auto; padding: 16px var(--pad) 24px; color: white; background: #271d37; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: 24px; line-height: 1.4; }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a span { font-size: 11px; opacity: .6; }

/* Full-width atmospheric purple hero, with CSS color fallback. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100vh, 900px); min-height: min(100svh, 900px); color: white; background-color: #362747; background-image: url("assets/hero-purple.webp"), radial-gradient(ellipse at 84% 18%, rgba(142, 91, 194, .96), transparent 42%), radial-gradient(ellipse at 62% 87%, rgba(82, 43, 125, .95), transparent 47%), radial-gradient(ellipse at 34% 65%, rgba(174, 151, 190, .75), transparent 39%), linear-gradient(128deg, #26292f 4%, #56505e 27%, #aa94b9 50%, #633b8e 73%, #2c173f); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(17, 16, 24, .62), rgba(23, 18, 32, .37) 42%, rgba(27, 18, 39, .15) 75%, rgba(22, 16, 30, .12)); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: var(--max); min-height: min(calc(100vh - 108px), 792px); min-height: min(calc(100svh - 108px), 792px); margin: 0 auto; padding: clamp(48px, 7vh, 82px) var(--pad); }
.hero-prompt, .kicker { font-size: 12px; line-height: 1.5; letter-spacing: .16em; font-weight: 500; text-transform: uppercase; }
.hero h1 { max-width: 1280px; margin: 22px 0 30px; font-size: clamp(64px, 8vw, 120px); line-height: 1.01; letter-spacing: -.035em; overflow-wrap: normal; }
.hero h1 > span, .hero-title-tail { display: block; }
.hero-title-phrase { display: inline-block; }
.hero-deck { max-width: 920px; margin-bottom: 0; font-size: clamp(17px, 1.65vw, 24px); line-height: 1.6; text-wrap: pretty; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 32px; margin-top: 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 0 24px; border: 1px solid; background: transparent; font-size: 16px; line-height: 1.4; cursor: pointer; transition: color .2s ease, background .2s ease, transform .12s ease; }
.button--light { color: var(--ink); background: white; border-color: white; }
.button--light:hover { color: #573485; background: #f1ebf7; border-color: #f1ebf7; }
.button--dark { color: white; background: var(--ink); border-color: var(--ink); }
.button--dark:hover { background: #56367a; border-color: #56367a; }
.button:active, .nav-cta:active, .work-open:active { transform: scale(.985); }
.hero-secondary { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding-block: 5px; border-bottom: 1px solid rgba(255, 255, 255, .68); font-size: 15px; }
.hero-secondary:hover { border-color: white; }

/* Editorial white content and generous, square image grids. */
.section { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--space-section) var(--pad); }
.home-main > .section { padding-top: clamp(56px, 5.5vw, 80px); padding-bottom: clamp(64px, 6vw, 88px); }
.section-heading { margin-bottom: clamp(36px, 4vw, 56px); }
.section-heading .kicker { margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(40px, 4.2vw, 56px); line-height: 1.08; }
.home-main > .section .section-heading--compact { margin-bottom: clamp(24px, 2.5vw, 38px); }
.section-heading--compact .kicker { margin: 0 0 12px; }
.section-heading--compact h2 { font-size: clamp(30px, 3.5vw, 46px); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 24px; }
.work-card { min-width: 0; }
.work-open { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; transition: transform .12s ease; }
.work-image { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-open:hover .work-image img, .work-open:focus-visible .work-image img { transform: scale(1.025); }
.work-arrow { position: absolute; right: 22px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; color: white; font-size: 34px; font-weight: 300; text-shadow: 0 1px 14px rgba(0, 0, 0, .2); transition: transform .25s ease; }
.work-open:hover .work-arrow { transform: translate(3px, -3px); }
.work-meta { margin: 22px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.work-card h3 { margin: 0 0 10px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.14; }
.work-client { display: block; color: var(--muted); font-size: 14px; line-height: 1.65; }
.work-note { max-width: 700px; margin: 30px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.section--mist { max-width: none; background: var(--mist); }
.section--mist > * { max-width: calc(var(--max) - 2 * var(--pad)); margin-left: auto; margin-right: auto; }
.section--mist.insight-preview { background: linear-gradient(115deg, #f3f2ef, #ece9e9 58%, #f7f5f2); }
.insight-preview, .insight-grid { border-top: 1px solid var(--line); }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insight-card { min-width: 0; min-height: 355px; display: flex; flex-direction: column; padding: 26px 28px 24px 0; border-right: 1px solid var(--line); }
.insight-card + .insight-card { padding-left: 28px; }
.insight-card:last-child { border-right: 0; }
.service-index { margin-bottom: 0; font-size: 12px; line-height: 1.5; letter-spacing: .08em; color: var(--muted); }
.insight-card h3 { margin: 30px 0 18px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.14; }
.insight-card .service-summary { margin-bottom: 24px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: auto 0 0; padding: 14px 0 0; list-style: none; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-tags li { padding: 0; }
.service-tags li + li::before { content: "/"; margin-right: 18px; opacity: .5; }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.role-card { min-width: 0; padding: 32px 0 22px; border-top: 1px solid var(--ink); }
.role-en { font-size: 12px; line-height: 1.5; letter-spacing: .08em; }
.role-card h3 { margin: 32px 0 18px; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.3; }
.role-description { max-width: 350px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.about-preview { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 130px); }
.about-grid .kicker { margin-bottom: 20px; }
.about-grid h2 { margin: 0; font-size: clamp(40px, 4.2vw, 56px); line-height: 1.15; }
.about-description { margin-bottom: 28px; color: var(--ink); font-size: 19px; line-height: 1.85; }
.about-clients { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(55px, 7vw, 95px); }
.process-grid > div { min-width: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
.process-grid > div > span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.process-grid h3 { margin: 27px 0 14px; font-size: 26px; line-height: 1.3; }
.process-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* Quiet dark footer, retaining the reference's fine divider system. */
.site-footer { padding: clamp(56px, 6vw, 80px) var(--pad) 28px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; align-items: start; gap: 40px; max-width: calc(var(--max) - 2 * var(--pad)); min-height: 240px; margin: 0 auto; padding: 36px 0; border-top: 1px solid rgba(255, 255, 255, .3); }
.footer-brand { width: 156px; height: 86px; align-self: center; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand .brand-name { font-size: 32px; }
.footer-brand .brand-en { margin-top: 9px; font-size: 10px; opacity: .76; }
.footer-label { display: block; color: rgba(255, 255, 255, .68); font-size: 12px; line-height: 1.5; }
.footer-grid p { margin: 10px 0; font-size: 14px; line-height: 1.8; }
.footer-grid a { display: inline-block; font-size: 14px; line-height: 1.8; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-pending { color: rgba(255, 255, 255, .7); }
.brief-download { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 7px; padding: 0 0 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .55); color: white; background: transparent; font-size: 14px; text-align: left; }
.brief-download:hover { border-color: white; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; max-width: calc(var(--max) - 2 * var(--pad)); margin: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .68); font-size: 12px; line-height: 1.7; }
.footer-legal p { margin: 0; }
.footer-legal { flex-wrap: wrap; }
.footer-legal .icp-registration { white-space: nowrap; }
.footer-legal .icp-registration:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-page-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-page-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Native project dialog, with a permanently accessible close control. */
.project-dialog { position: fixed; width: min(1100px, calc(100vw - 56px)); max-width: none; max-height: calc(100svh - 56px); margin: auto; padding: 0; border: 0; overflow: auto; color: var(--ink); background: var(--paper); }
.project-dialog::backdrop { background: rgba(17, 15, 22, .7); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(23, 23, 23, .24); background: white; color: var(--ink); font-size: 28px; line-height: 1; }
.dialog-close:hover { background: #eee9f3; }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; }
#project-image { width: 100%; height: 100%; min-height: 510px; object-fit: cover; background: var(--mist); }
.dialog-copy { min-width: 0; padding: 76px 44px 45px; }
.dialog-copy .kicker { color: var(--muted); }
.dialog-copy h2 { margin: 24px 0; font-size: clamp(30px, 3vw, 46px); line-height: 1.15; }
.dialog-copy > p:not(.kicker) { font-size: 16px; line-height: 1.8; }
#project-features { margin: 26px 0; padding-left: 19px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.dialog-copy .dialog-note { margin: 25px 0; color: var(--muted); font-size: 13px; }
.dialog-copy .button { margin-top: 10px; }

@media (min-width: 1481px) {
  .site-header { padding-inline: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
}

@media (max-width: 1100px) {
  .site-header { gap: 20px; }
  .nav { gap: 20px; font-size: 13px; }
  .nav-cta { padding-inline: 14px; font-size: 13px; }
  .brand-name { font-size: 26px; }
  .brand-en { font-size: 8px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 30px; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

@media (max-width: 900px) {
  .brand { height: 72px; }
  .brand img { width: 120px; }
  .mobile-nav .language-link { justify-content: flex-start; }
  .site-header { height: 88px; }
  .nav--desktop { display: none; }
  .site-header > .nav-cta { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .hero { min-height: 100svh; }
  .hero-content { min-height: calc(100svh - 88px); padding-top: 54px; padding-bottom: 62px; }
  .hero h1 { font-size: clamp(54px, 8vw, 68px); line-height: 1.08; }
  .hero-deck { font-size: 18px; }
  .work-grid { gap: 46px; grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-card, .insight-card + .insight-card { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .insight-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .insight-card h3 { margin-top: 24px; }
  .insight-card .service-summary { max-width: 650px; }
  .service-tags { padding-top: 8px; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid h2 { max-width: 660px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid > :last-child { grid-column: auto; }
  .dialog-layout { grid-template-columns: 1fr; }
  #project-image { height: auto; min-height: 0; max-height: 48svh; aspect-ratio: 16 / 10; }
  .dialog-copy { padding: 35px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 25px; }
  .brand-en { font-size: 8px; margin-top: 6px; }
  .hero { background-position: 58% center; }
  .hero-content { padding-top: 45px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); line-height: 1.04; margin: 22px 0 26px; }
  .hero-deck { width: 100%; max-width: 100%; font-size: 17px; line-height: 1.65; }
  .hero-prompt, .kicker { font-size: 11px; letter-spacing: .12em; }
  .button-row { gap: 20px 24px; margin-top: 34px; }
  .button { min-height: 50px; padding-inline: 20px; font-size: 14px; }
  .hero-secondary { font-size: 14px; gap: 13px; }
  .section-heading h2, .section-heading--compact h2 { font-size: clamp(30px, 9vw, 40px); line-height: 1.15; }
  .work-image { aspect-ratio: 4 / 3; }
  .work-card h3 { font-size: 28px; }
  .work-meta { margin-top: 18px; font-size: 11px; }
  .work-arrow { right: 13px; bottom: 10px; font-size: 29px; }
  .people-grid { grid-template-columns: 1fr; gap: 0; }
  .role-card { padding: 26px 0; }
  .role-card h3 { margin-top: 24px; }
  .role-description { max-width: 100%; }
  .about-grid h2 { font-size: clamp(32px, 9vw, 42px); }
  .about-description { font-size: 18px; line-height: 1.85; }
  .process-grid { gap: 30px 20px; }
  .process-grid h3 { font-size: 23px; margin-top: 24px; }
  .process-grid p { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 32px; }
  .footer-brand { margin-bottom: 10px; }
  .footer-legal { flex-direction: column; gap: 10px; }
  .project-dialog { width: calc(100vw - 28px); max-height: calc(100svh - 28px); }
  .dialog-copy { padding: 29px 24px 34px; }
  .dialog-copy h2 { font-size: 32px; }
  .dialog-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
