/* Local design tokens: neutral surfaces with purple accents. */
:root {
  color-scheme: light;
  --canvas: #f4f4f5;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #62626b;
  --line: #d4d4d8;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-soft: #ede9fe;
  --radius: 36px;
  --max-width: 1200px;
  --font: "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 6px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.container { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.section { margin-top: 112px; }
.skip-link { position: fixed; left: 20px; top: 12px; transform: translateY(-160%); z-index: 10; padding: 14px 20px; background: var(--ink); color: white; border-radius: 12px; }
.skip-link:focus { transform: translateY(0); }
.header { min-height: 116px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; width: 72px; height: 72px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
nav .nav-contact { border: 1px solid var(--line); padding: 12px 20px; border-radius: 100px; gap: 28px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 25vw, 320px); column-gap: 56px; padding: 64px 0 0; }
.eyebrow, .section-label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.small-star { color: var(--accent-strong); font-size: 28px; line-height: 1; }
h1 { font-size: clamp(64px, 8.5vw, 112px); font-weight: 650; letter-spacing: -0.065em; line-height: 1.04; margin-top: 32px; }
.hero .hero-identity { grid-column: 1; grid-row: 1; align-items: start; letter-spacing: normal; }
.hero-name { font-size: 18px; }
.hero-role { font-size: 14px; font-weight: 400; margin-top: 4px; }
.hero-specialization { display: inline-block; color: var(--muted); }
.hero h1 { grid-column: 1; grid-row: 2; min-width: 0; font-size: clamp(48px, 5.6vw, 80px); }
.hero-accent { color: var(--muted); }
.hero-portrait { grid-column: 2; grid-row: 1 / 3; align-self: center; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #100d0e; }
.hero-bottom { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; margin-top: 42px; gap: 28px; }
.hero-description { font-size: 18px; line-height: 1.65; max-width: 600px; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 48px; min-height: 60px; padding: 18px 24px; border-radius: 14px; background: var(--accent); color: var(--surface); font-size: 14px; transition: background .2s, transform .2s; }
.button:hover { background: var(--accent-strong); transform: translateY(-2px); }
.button span { font-size: 22px; }
.hero-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 52px; padding-top: 18px; color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.count { font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 400; vertical-align: middle; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 28px; }
.project { min-width: 0; }
.project-wide { grid-column: 1 / -1; }
.project-art { position: relative; border-radius: var(--radius); height: 440px; overflow: hidden; isolation: isolate; }
.art-label { position: absolute; top: 28px; left: 32px; font-size: 10px; letter-spacing: 2px; font-weight: 600; }
.art-number { position: absolute; bottom: 24px; left: 32px; font-size: 10px; letter-spacing: 1.8px; }
.art-dashboard { background: #e4e4e7; display: grid; place-items: center; height: 520px; }
.dashboard { width: 76%; height: 375px; display: flex; background: #fafafa; border: 1px solid #d4d4d8; border-radius: 16px; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 24px 60px #18181b12; }
.dashboard-sidebar { width: 23%; padding: 24px 18px; border-right: 1px solid #e4e4e7; display: flex; flex-direction: column; gap: 8px; position: relative; background: #f4f4f5; font-size: 10px; }
.mock-logo { font-size: 38px; line-height: 1; margin-bottom: 30px; letter-spacing: -5px; }
.mock-logo span { color: var(--accent); font-size: 22px; padding-left: 3px; }
.dashboard-sidebar > span { padding: 10px; }
.sidebar-active { background: white; border-radius: 7px; }
.sidebar-bottom { position: absolute; bottom: 22px; left: 25px; font-size: 8px; color: var(--muted); }
.dashboard-main { flex: 1; padding: 22px 30px; min-width: 0; }
.mock-header { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: var(--muted); }
.mock-avatar { background: #e4e4e7; color: var(--ink); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.dashboard-main h3 { font-size: 25px; line-height: 1.12; letter-spacing: -1px; margin-top: 12px; }
.mock-stats { display: flex; gap: 12px; margin-top: 18px; }
.mock-stats > div { flex: 1; padding: 12px 16px; border: 1px solid #e4e4e7; border-radius: 10px; background: white; }
.mock-stats span { font-size: 8px; display: block; color: var(--muted); }
.mock-stats strong { font-size: 25px; font-weight: 500; }
.mock-stats small { font-size: 8px; font-weight: 400; color: var(--muted); }
.mock-chart { padding: 15px 16px 0; background: white; border-radius: 10px; border: 1px solid #e4e4e7; margin-top: 12px; }
.chart-title { display: flex; justify-content: space-between; font-size: 8px; }
.chart-title span { color: var(--muted); }
.chart-bars { height: 63px; display: flex; align-items: end; gap: 10px; margin-top: 12px; }
.chart-bars i { flex: 1; height: 45%; border-radius: 3px 3px 0 0; background: #d4d4d8; }
.chart-bars i:nth-child(3n) { height: 75%; }
.chart-bars i:nth-child(3n + 1) { height: 58%; }
.chart-bars i:nth-child(5n) { height: 92%; background: var(--accent); }
.project-info { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { border: 1px solid var(--line); border-radius: 100px; padding: 5px 10px; font-size: 11px; }
.project-info h3 { font-size: 24px; letter-spacing: -.7px; font-weight: 600; margin-top: 14px; }
.project-info p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-top: 8px; max-width: 590px; }
.project-index { font-size: 13px; color: var(--muted); padding-top: 8px; }
.case-details { margin-top: 16px; border-bottom: 1px solid var(--line); }
.case-details summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 13px; list-style: none; }
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary [aria-hidden="true"] { font-size: 22px; transition: transform .2s; }
.case-details[open] summary [aria-hidden="true"] { transform: rotate(45deg); }
.case-details > div { padding: 8px 0 22px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 700px; }
.case-details p + p { margin-top: 10px; }
/* Case 01: reuse the existing palette, cover and native details interaction. */
.case-dns .case-dns-cover { height: auto; aspect-ratio: 16 / 9; background: #d8d4e4; }
.case-dns-cover img { display: block; width: 100%; height: auto; }
.case-dns .project-info p { max-width: 700px; }
.case-dns .project-info strong, .case-dns-story strong { color: var(--ink); font-weight: 600; }
.case-dns .case-details { margin-top: 24px; }
.case-dns .case-toggle { display: inline-flex; width: fit-content; max-width: 100%; min-height: 60px; padding: 18px 24px; gap: 32px; border-radius: 14px; background: var(--accent); color: var(--surface); font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .2s, transform .2s; }
.case-dns .case-toggle:hover { background: var(--accent-strong); transform: translateY(-2px); }
.case-dns .case-toggle:active { transform: translateY(0); }
.case-dns .case-toggle [aria-hidden="true"] { flex-shrink: 0; line-height: 1; }
.case-toggle-open, .case-details[open] .case-toggle-closed { display: none; }
.case-details[open] .case-toggle-open { display: inline; }
.case-dns .case-dns-story { font-size: 16px; line-height: 1.75; padding-block: 16px 32px; }
.case-dns-section + .case-dns-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-dns-section h4 { margin: 0 0 14px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; color: var(--ink); }
.case-dns-section ul, .case-dns-section ol { padding-left: 24px; margin-block: 16px; }
.case-dns-section li + li { margin-top: 16px; }
.art-mobile { background: #e8e5df; display: flex; justify-content: center; padding-top: 62px; }
.mobile-orbit { position: absolute; width: 440px; height: 440px; border: 1px solid #ccc7be; border-radius: 50%; top: 86px; }
.mobile-orbit::before { content: ""; position: absolute; inset: 40px; border: 1px solid #ccc7be; border-radius: 50%; }
.phone { width: 210px; height: 390px; background: #f6f5f0; border: 6px solid #27272a; border-radius: 32px; padding: 12px 14px; transform: rotate(8deg); position: relative; }
.phone-island { position: absolute; width: 58px; height: 14px; background: #27272a; border-radius: 20px; top: 5px; left: calc(50% - 29px); }
.phone-top { display: flex; justify-content: space-between; font-size: 7px; margin-bottom: 26px; }
.phone-greeting { color: var(--muted); font-size: 9px; }
.phone h3 { font-size: 29px; line-height: 1.1; margin-top: 6px; letter-spacing: -1px; }
.phone-flower { font-size: 104px; line-height: 1.1; text-align: center; color: #857962; font-family: Arial, sans-serif; }
.phone-card { border-radius: 15px; background: #e4e0d5; padding: 13px; display: flex; flex-direction: column; gap: 6px; }
.phone-card > span { font-size: 7px; }
.phone-card strong { font-size: 13px; font-weight: 500; }
.phone-card > div { display: flex; align-items: center; justify-content: space-between; font-size: 7px; }
.phone-play { background: var(--ink); color: white; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; }
.phone-nav { display: flex; justify-content: space-around; margin-top: 14px; font-size: 16px; }
.art-system { background: #27272a; color: #f4f4f5; display: grid; place-items: center; }
.system-board { width: 75%; transform: rotate(-8deg); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.system-board > div { border-radius: 18px; }
.type-tile { background: #fafafa; color: var(--ink); font-size: 70px; line-height: 1; padding: 24px; letter-spacing: -5px; }
.type-tile span { display: block; font-size: 8px; letter-spacing: 1px; margin-top: 8px; }
.symbol-tile { background: var(--accent); color: var(--surface); display: grid; place-items: center; font-size: 116px; font-family: Arial, sans-serif; line-height: 1; }
.palette-tile { display: flex; overflow: hidden; grid-column: 1 / -1; height: 44px; }
.palette-tile i { flex: 1; background: #fafafa; }
.palette-tile i:nth-child(2) { background: #d4d4d8; }
.palette-tile i:nth-child(3) { background: #71717a; }
.palette-tile i:nth-child(4) { background: #09090b; }
.controls-tile { grid-column: 1 / -1; padding: 18px; background: #3f3f46; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sample-button { background: #fafafa; color: var(--ink); padding: 12px; border-radius: 8px; font-size: 10px; }
.controls-tile > div { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.sample-tag { font-size: 8px; border: 1px solid #a1a1aa; border-radius: 20px; padding: 4px 8px; }
.sample-toggle { width: 30px; height: 17px; border-radius: 20px; background: var(--accent); position: relative; }
.sample-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); }
.spacing-tile { grid-column: 1 / -1; display: flex; justify-content: space-around; font-size: 10px; color: #d4d4d8; padding: 8px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-top: 80px; border-top: 1px solid var(--line); }
.about-system { padding: 40px; border-radius: var(--radius); background: #e3ddec; }
.about-system > .section-label { color: #59446f; }
.system-scope { margin: 28px 0 0; }
.system-scope > div { padding-block: 24px; border-top: 1px solid #c5b9d5; }
.system-scope > div:last-child { padding-bottom: 0; }
.system-scope dt { font-size: 24px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; }
.system-scope dd { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #59446f; }
.about-copy h2 { margin: 22px 0; font-size: clamp(34px, 4vw, 50px); }
.about-copy p { font-size: 16px; line-height: 1.75; }
.about-copy p + p { margin-top: 16px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.approach-grid article { border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.step-number { color: var(--muted); font-size: 12px; }
.approach-grid h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.7px; font-weight: 600; margin-top: 36px; }
.approach-grid p { font-size: 14px; line-height: 1.75; color: var(--muted); margin-top: 14px; }
.contact { background: #18181b; color: #fafafa; border-radius: var(--radius); padding: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 64px; }
.contact .section-label { color: #d4d4d8; }
.contact h2 { font-size: clamp(36px, 4.8vw, 62px); margin-top: 28px; }
.contact-description { max-width: 450px; margin-top: 24px; font-size: 16px; line-height: 1.7; color: #d4d4d8; }
.contact-button { margin-top: 28px; gap: 28px; font-weight: 600; }
.contact-button:focus-visible { outline-color: #c4b5fd; }
.contact-handle { margin-top: 12px; font-size: 13px; color: #a1a1aa; overflow-wrap: anywhere; }
.accent-period { color: var(--accent); }
.contact-portrait { display: block; width: 100%; height: auto; border-radius: 24px; background: #8b4d32; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 34px; font-size: 12px; color: var(--muted); }
.footer-brand { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.6px; }
.footer-logo { display: block; width: 48px; height: 48px; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 16px; }
@media (min-width: 1500px) { .hero { padding-top: 80px; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 32px; }
  .dashboard { width: 87%; }
  .about { gap: 36px; }
  .system-board { width: 83%; }
  .type-tile { font-size: 52px; padding: 20px; }
  .symbol-tile { font-size: 88px; }
  .controls-tile { padding: 12px; }
  .contact { padding: 44px; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header { min-height: 96px; gap: 20px; }
  .brand-logo { width: 64px; height: 64px; }
  nav { gap: 16px; font-size: 12px; }
  nav .nav-contact { border: 0; padding: 0; gap: 6px; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; column-gap: 20px; padding-top: 36px; }
  .hero .hero-identity { align-self: center; }
  .hero-portrait { grid-row: 1; border-radius: 24px; }
  h1 { font-size: clamp(56px, 11vw, 84px); }
  .hero h1 { grid-column: 1 / -1; font-size: clamp(36px, 7.4vw, 56px); }
  .hero-description { font-size: 16px; }
  .hero-bottom { align-items: start; flex-direction: column; margin-top: 28px; }
  .hero-footer { margin-top: 36px; font-size: 10px; }
  .hero-footer > span:last-child { display: none; }
  .section { margin-top: 72px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-label { font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-wide { grid-column: auto; }
  .project-art { border-radius: 24px; }
  .art-dashboard { height: 360px; }
  .art-label { left: 22px; top: 22px; font-size: 8px; }
  .art-number { left: 22px; bottom: 20px; font-size: 8px; }
  .dashboard { width: 88%; height: 245px; transform: rotate(-3deg); }
  .dashboard-sidebar { padding: 16px 8px; font-size: 7px; width: 23%; gap: 2px; }
  .mock-logo { font-size: 25px; margin-bottom: 10px; }
  .mock-logo span { font-size: 15px; }
  .dashboard-sidebar > span { padding: 7px 4px; }
  .sidebar-bottom { display: none; }
  .dashboard-main { padding: 12px; }
  .mock-header { font-size: 6px; }
  .mock-avatar { height: 16px; width: 16px; }
  .dashboard-main h3 { font-size: 18px; margin-top: 8px; }
  .mock-stats { margin-top: 10px; gap: 6px; }
  .mock-stats > div { padding: 8px; }
  .mock-stats span, .mock-stats small { font-size: 6px; }
  .mock-stats strong { font-size: 20px; }
  .mock-chart { margin-top: 6px; padding: 9px 8px 0; }
  .chart-title { font-size: 6px; }
  .chart-bars { height: 30px; margin-top: 8px; gap: 5px; }
  .project-info h3 { font-size: 22px; }
  .art-mobile, .art-system { height: 420px; }
  .system-board { width: min(75%, 350px); }
  .type-tile { font-size: 64px; }
  .symbol-tile { font-size: 100px; }
  .controls-tile { padding: 16px; }
  .about { grid-template-columns: 1fr; padding-top: 56px; }
  .about-copy { grid-row: 1; }
  .about-system { padding: 28px; border-radius: 24px; }
  .system-scope > div { padding-block: 20px; }
  .about-copy h2 { font-size: clamp(32px, 8vw, 40px); }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid h3 { margin-top: 22px; }
  .contact { padding: 32px 24px; border-radius: 24px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact h2 { font-size: clamp(32px, 7vw, 46px); }
  .contact-button { width: 100%; max-width: 310px; padding-inline: 20px; gap: 12px; }
  .contact-portrait { width: min(100%, 300px); justify-self: center; border-radius: 18px; }
  .footer { flex-wrap: wrap; gap: 8px 16px; padding-block: 20px; }
  .footer > span { order: 3; width: 100%; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .hero { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 16px; }
  nav { gap: 10px; font-size: 11px; }
  nav .nav-contact span { display: none; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  h1 { font-size: 52px; }
  .system-board { width: 82%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}