
    :root {
      --bg: #0d0e0c;
      --surface: #151713;
      --surface-2: #1d201a;
      --surface-glass: rgba(21, 23, 19, 0.82);
      --ink: #eef0e6;
      --ink-dim: #c2c7b6;
      --muted: #8d9382;
      --line: #2d3127;
      --line-bright: #454b3c;
      --accent: #e6ff79;
      --accent-dim: rgba(230, 255, 121, 0.14);
      --orange: #f58f59;
      --cyan: #6be5f2;
      --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
      --sans: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--sans);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; color: inherit; }
    a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    ::selection { background: var(--accent); color: var(--bg); }

    .wrap {
      width: min(1440px, calc(100% - 88px));
      margin-inline: auto;
    }
    .mono {
      font-family: var(--mono);
      font-size: 0.72rem;
      line-height: 1.5;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .muted { color: var(--muted); }

    /* Topbar */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 60;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      min-height: 82px;
      background: rgba(13, 14, 12, 0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--line);
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 800;
      font-size: 1.18rem;
      letter-spacing: -0.06em;
    }
    .brand-mark {
      display: grid;
      grid-template-columns: repeat(3, 4px);
      gap: 4px;
      height: 26px;
      align-items: end;
      margin-right: 0.25rem;
    }
    .brand-mark i {
      display: block;
      background: var(--accent);
      height: 100%;
      transform: skew(-20deg);
      transition: height 0.25s ease;
    }
    .brand:hover .brand-mark i:nth-child(1) { height: 55%; }
    .brand:hover .brand-mark i:nth-child(2) { height: 100%; }
    .brand:hover .brand-mark i:nth-child(3) { height: 75%; }
    .brand-mark i:nth-child(2) { height: 66%; }
    .brand-mark i:nth-child(3) { height: 35%; }
    .brand span { color: var(--muted); font-weight: 400; margin-inline: 0.1rem; }

    .nav {
      display: flex;
      gap: 2rem;
      color: var(--muted);
      font-size: 0.82rem;
    }
    .nav a {
      padding: 0.5rem 0;
      transition: color 0.2s;
    }
    .nav a:hover { color: var(--accent); }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .preview {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      color: var(--accent);
    }
    .status-dot {
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--accent);
      animation: blink 2s infinite;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    .btn-hud {
      padding: 8px 14px;
      background: var(--surface-2);
      border: 1px solid var(--line-bright);
      color: var(--ink);
      font-family: var(--mono);
      font-size: 0.68rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.18s;
    }
    .btn-hud:hover, .btn-hud.active {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent);
    }

    /* Hero & Interactive Viewport */
    .hero { padding-top: 38px; }
    .hero-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--line);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 0.92fr 1.18fr;
      gap: 3rem;
      align-items: stretch;
      padding-block: 42px 56px;
    }
    .hero-copy {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    h1 {
      font-size: clamp(3.8rem, 6.6vw, 6.8rem);
      font-weight: 550;
      line-height: 0.95;
      letter-spacing: -0.065em;
      margin: 0 0 26px;
    }
    h1 em {
      font-style: normal;
      color: var(--accent);
    }
    .hero-copy .kicker {
      font-size: 1.15rem;
      line-height: 1.6;
      letter-spacing: -0.03em;
      margin: 0 0 14px;
      color: var(--ink);
    }
    .intro {
      font-size: 0.92rem;
      line-height: 1.9;
      color: var(--muted);
      max-width: 410px;
      margin: 0;
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 32px;
      padding-top: 22px;
      border-top: 1px solid var(--line);
    }
    .stat-box span {
      display: block;
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--muted);
      text-transform: uppercase;
    }
    .stat-box strong {
      font-family: var(--mono);
      font-size: 1.1rem;
      color: var(--accent);
      font-weight: 600;
    }

    /* Interactive Simulation Viewport */
    .study {
      margin: 0;
      position: relative;
      min-height: 560px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--line-bright);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    }
    #simCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      cursor: crosshair;
      z-index: 1;
    }
    .study-top, .study-bottom {
      position: relative;
      z-index: 3;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      padding: 16px 20px;
      background: rgba(13, 14, 12, 0.72);
      backdrop-filter: blur(8px);
    }
    .study-top {
      border-bottom: 1px solid var(--line);
      flex-wrap: wrap;
    }
    .study-bottom {
      border-top: 1px solid var(--line);
      flex-wrap: wrap;
    }
    .mode-pills {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .mode-pill {
      padding: 5px 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--line);
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--ink-dim);
      cursor: pointer;
      transition: all 0.15s;
    }
    .mode-pill:hover { border-color: var(--accent); }
    .mode-pill.active {
      background: var(--accent);
      color: var(--bg);
      border-color: var(--accent);
      font-weight: 700;
    }

    .sim-controls {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .sim-ctrl-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--muted);
    }
    .sim-ctrl-item input[type="range"] {
      width: 78px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    /* Domains Banner */
    .domains {
      border-block: 1px solid var(--line);
      display: grid;
      grid-template-columns: 0.92fr 1.18fr;
      gap: 3rem;
      padding-block: 22px;
      align-items: center;
    }
    .domain-pair {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.8rem 1.5rem;
      font-family: var(--mono);
      font-size: 0.85rem;
    }
    .domain-pair b {
      font-weight: 600;
      color: var(--accent);
      padding: 4px 10px;
      background: var(--accent-dim);
      border: 1px solid rgba(230, 255, 121, 0.3);
    }
    .domain-pair span { color: var(--muted); font-size: 0.74rem; }

    /* Section Generic */
    .section { padding-block: 78px; border-bottom: 1px solid var(--line); }
    .section-heading {
      display: grid;
      grid-template-columns: 0.92fr 1.18fr;
      gap: 3rem;
      align-items: start;
      margin-bottom: 44px;
    }
    .section-number {
      color: var(--muted);
      display: flex;
      gap: 20px;
    }
    .section-number b { font-weight: 400; color: var(--accent); }
    h2 {
      font-size: clamp(1.85rem, 2.8vw, 2.75rem);
      font-weight: 450;
      line-height: 1.3;
      letter-spacing: -0.05em;
      margin: 0;
    }
    .section-note {
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.85;
      margin: 14px 0 0;
      max-width: 520px;
    }

    /* Interactive Procedural Node Pipeline & VEX Inspector */
    .pipeline-workspace {
      display: grid;
      grid-template-columns: 1fr 1.15fr;
      gap: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      padding: 26px;
    }
    .node-graph {
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
    }
    .node-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 18px;
      background: var(--bg);
      border: 1px solid var(--line);
      border-left: 3px solid var(--muted);
      cursor: pointer;
      transition: all 0.18s;
    }
    .node-item:hover {
      border-color: var(--accent);
      transform: translateX(4px);
    }
    .node-item.active {
      background: var(--surface-2);
      border-color: var(--accent);
      border-left: 4px solid var(--accent);
    }
    .node-title {
      font-family: var(--mono);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--ink);
    }
    .node-type {
      font-family: var(--mono);
      font-size: 0.65rem;
      color: var(--accent);
      padding: 2px 7px;
      background: var(--accent-dim);
    }
    .code-inspector {
      background: #080907;
      border: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .code-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid var(--line);
      background: var(--surface-2);
    }
    .code-body {
      padding: 18px;
      font-family: var(--mono);
      font-size: 0.78rem;
      line-height: 1.7;
      color: #d7e0c8;
      overflow-x: auto;
      white-space: pre;
      margin: 0;
    }
    .code-footer {
      padding: 12px 16px;
      border-top: 1px solid var(--line);
      font-size: 0.8rem;
      color: var(--muted);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* R&D Archive & Case Studies Grid */
    .filter-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 24px;
    }
    .filter-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .rd-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .rd-card {
      background: var(--surface);
      border: 1px solid var(--line);
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 20px;
      transition: border-color 0.2s, transform 0.2s;
    }
    .rd-card:hover {
      border-color: var(--accent);
      transform: translateY(-3px);
    }
    .rd-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--mono);
      font-size: 0.66rem;
      color: var(--muted);
    }
    .rd-tag {
      color: var(--accent);
      border: 1px solid rgba(230, 255, 121, 0.35);
      padding: 2px 8px;
    }
    .rd-card h3 {
      margin: 12px 0 8px;
      font-size: 1.3rem;
      font-weight: 500;
      letter-spacing: -0.03em;
    }
    .rd-card p {
      margin: 0;
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.75;
    }
    .rd-specs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
      font-family: var(--mono);
      font-size: 0.68rem;
    }
    .rd-specs span { color: var(--muted); display: block; font-size: 0.6rem; }

    /* Modal for New R&D Note */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(5, 6, 4, 0.78);
      backdrop-filter: blur(8px);
      z-index: 100;
      display: none;
      place-items: center;
      padding: 20px;
    }
    .modal-backdrop.open { display: grid; }
    .modal-card {
      width: min(620px, 100%);
      background: var(--surface);
      border: 1px solid var(--accent);
      padding: 28px;
    }
    .modal-card h3 { margin: 0 0 18px; font-size: 1.35rem; }
    .form-row { margin-bottom: 14px; }
    .form-row label {
      display: block;
      font-family: var(--mono);
      font-size: 0.68rem;
      color: var(--muted);
      margin-bottom: 6px;
      text-transform: uppercase;
    }
    .form-row input, .form-row select, .form-row textarea {
      width: 100%;
      padding: 10px 12px;
      background: var(--bg);
      border: 1px solid var(--line-bright);
      color: var(--ink);
      font-size: 0.88rem;
    }

    .footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 2rem;
      padding-block: 30px 40px;
      color: var(--muted);
    }

    @media (max-width: 1024px) {
      .wrap { width: calc(100% - 48px); }
      .hero-grid, .section-heading, .domains, .pipeline-workspace { grid-template-columns: 1fr; gap: 2rem; }
      .rd-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 680px) {
      .wrap { width: calc(100% - 32px); }
      .nav { display: none; }
      .rd-grid { grid-template-columns: 1fr; }
      .study { min-height: 460px; }
    }

    /* Portfolio layer: keep existing laboratory styling and selectors above. */
    .skip-link { position: fixed; left: 20px; top: -80px; z-index: 110; padding: 12px 18px; background: var(--accent); color: var(--bg); }
    .skip-link:focus { top: 12px; }
    input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .topbar { gap: 1.5rem; }
    .nav { gap: 1.5rem; }
    .topbar-right { gap: 12px; }
    .profile-hero { padding: 56px 0 0; }
    .profile-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .profile-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 5rem; padding: 46px 0 48px; align-items: end; }
    .profile-name { margin: 0; font-size: clamp(4.6rem, 9.6vw, 9.4rem); font-weight: 500; line-height: 0.88; letter-spacing: -0.075em; }
    .profile-name span { display: block; color: var(--accent); }
    .profile-role { margin: 28px 0 0; font-size: clamp(1.1rem, 2.2vw, 1.75rem); letter-spacing: -0.035em; color: var(--ink-dim); }
    .profile-summary { color: var(--muted); line-height: 1.9; font-size: 0.95rem; margin: 0 0 28px; max-width: 420px; }
    .profile-facts { margin: 0; }
    .profile-facts div { border-top: 1px solid var(--line); padding: 15px 0; }
    .profile-facts dt { margin-bottom: 8px; color: var(--muted); font: 0.65rem var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
    .profile-facts dd { margin: 0; font-size: 0.98rem; line-height: 1.5; }
    .profile-facts dd small { display: block; font: 0.72rem var(--mono); color: var(--muted); margin-top: 6px; }
    .profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }
    .profile-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 46px; border-bottom: 1px solid var(--line-bright); font-size: 0.85rem; padding: 8px 0; }
    .profile-link:hover { color: var(--accent); border-color: var(--accent); }
    .profile-link.primary { background: var(--accent); color: var(--bg); border: 1px solid var(--accent); padding: 10px 16px; font-weight: 650; }
    .profile-caption { color: var(--muted); margin: 0; font-size: 0.74rem; line-height: 1.7; }
    .project-strip { border-top: 1px solid var(--line-bright); padding: 30px 0 36px; }
    .project-strip-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
    .project-strip-heading h2 { margin: 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.03em; }
    .project-grid { display: grid; grid-template-columns: 1.55fr 1fr; border: 1px solid var(--line); background: var(--surface); }
    .project-item { padding: 26px 30px 30px; min-height: 175px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
    .project-item + .project-item { border-left: 1px solid var(--line); }
    .project-index { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
    .project-index b { color: var(--accent); font-weight: 400; }
    .project-item h3 { margin: 0; font-size: clamp(1.8rem, 3.3vw, 3rem); line-height: 1.06; letter-spacing: -0.055em; font-weight: 500; }
    .project-credit { margin: 15px 0 0; color: var(--muted); font-size: 0.74rem; line-height: 1.6; }
    .hero { padding-top: 38px; }
    #hero-title { font-size: clamp(3.2rem, 5.5vw, 5.8rem); line-height: 0.94; font-weight: 500; letter-spacing: -0.065em; margin: 0 0 26px; }
    #hero-title em { font-style: normal; color: var(--accent); }
    .hero-grid { grid-template-columns: 0.72fr 1.38fr; gap: 2.5rem; }
    .study { min-height: 590px; }
    .hero-stats { gap: 8px; }
    .stat-box strong { font-size: 0.95rem; }
    .lab-caption { color: var(--muted); font-size: 0.72rem; line-height: 1.7; margin: 16px 0 0; }
    .demo-notice { padding: 15px 18px; margin: 0 0 22px; border-left: 2px solid var(--accent); background: var(--accent-dim); color: var(--ink-dim); font-size: 0.8rem; line-height: 1.8; }
    .demo-notice strong { color: var(--accent); font-weight: 600; }
    .local-note-hint { margin: -4px 0 22px; color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
    .rd-card .rd-specs div:first-child > span::after { content: ' · SAMPLE'; color: var(--accent); }
    .footer .footer-person { color: var(--ink-dim); }
    @media (max-width: 1200px) {
      .topbar-right .preview { display: none; }
      .profile-grid { gap: 3rem; }
    }
    @media (max-width: 1024px) {
      .profile-grid { grid-template-columns: 1.3fr 0.9fr; gap: 3rem; }
      .profile-name { font-size: clamp(4.5rem, 10vw, 7rem); }
      .hero-grid { grid-template-columns: 1fr; gap: 28px; }
      .hero-copy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: end; }
      .hero-stats { margin: 0; }
      .lab-caption { grid-column: 1 / -1; margin-top: -12px; }
      .study { min-height: 560px; }
    }
    @media (max-width: 760px) {
      .nav { display: none; }
      .profile-hero { padding-top: 32px; }
      .profile-eyebrow { align-items: flex-start; font-size: 0.61rem; }
      .profile-eyebrow > span:last-child { max-width: 110px; text-align: right; }
      .profile-grid { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
      .profile-name { font-size: clamp(4.4rem, 17vw, 7rem); }
      .profile-summary { max-width: 100%; margin-bottom: 20px; }
      .profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
      .profile-facts dd { font-size: 0.86rem; }
      .profile-actions { margin-top: 28px; }
      .project-grid { grid-template-columns: 1fr; }
      .project-item { min-height: 155px; padding: 22px; }
      .project-item + .project-item { border-left: 0; border-top: 1px solid var(--line); }
      .project-item h3 { font-size: 2.1rem; }
      .hero-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
      .hero-copy { display: flex; gap: 0; }
      .hero-stats { width: 100%; margin-top: 28px; }
      .lab-caption { margin-top: 14px; }
      .study { min-height: 540px; }
      .topbar { min-height: 74px; }
      .topbar-right .btn-hud { font-size: 0.61rem; padding: 9px 10px; }
      .brand { font-size: 1rem; }
      .brand-mark { grid-template-columns: repeat(3, 3px); gap: 3px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .status-dot { animation: none; }
      *, *::before, *::after { transition-duration: 0.01ms !important; }
    }

    /* Pipeline intrinsic-width guard: scroll code inside its panel, never widen the page. */
    .pipeline-workspace > * { min-width: 0; }
    .node-item { min-width: 0; gap: 10px; }
    .node-item > div { min-width: 0; }
    .node-title { overflow-wrap: anywhere; }
    .node-type { flex-shrink: 0; }
    .code-inspector, .code-body { min-width: 0; max-width: 100%; }
    .code-header { flex-wrap: wrap; gap: 10px; }
    .code-header > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .code-header .btn-hud { flex-shrink: 0; max-width: 100%; }
    .code-footer { flex-wrap: wrap; gap: 10px; }
    .code-footer > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
