:root {
    --bg: #dbe3ea;
    --bg-soft: #cfd8e1;
    --panel: rgba(245, 248, 251, 0.88);
    --panel-strong: rgba(242, 246, 250, 0.94);
    --line: rgba(96, 116, 136, 0.18);
    --text: #243241;
    --muted: #627385;
    --blue: #6f8398;
    --blue-2: #5e7287;
    --cyan: #879bad;
    --accent: #73879a;
    --accent-soft: rgba(115, 135, 154, 0.10);
    --glow: rgba(111, 131, 152, 0.08);
    --shadow: 0 14px 32px rgba(35, 49, 62, 0.10);
    --radius: 22px;
    --container: 1180px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
    background:
      radial-gradient(circle at top left, rgba(111, 131, 152, 0.08), transparent 32%),
      radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
      linear-gradient(180deg, #dbe3ea 0%, #d4dde5 45%, #cfd8e1 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
  }
  
  a {
    color: #5d7388;
    text-decoration: none;
  }
  
  a:hover {
    color: #394a5c;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .site-shell {
    position: relative;
    isolation: isolate;
  }
  
  .container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
  }
  
  .bg-grid {
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(96, 116, 136, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(96, 116, 136, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.10));
    pointer-events: none;
    z-index: -3;
  }
  
  .bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.20;
    pointer-events: none;
    z-index: -2;
  }
  
  .orb-1 {
    width: 420px;
    height: 420px;
    background: rgba(111, 131, 152, 0.10);
    top: 100px;
    left: -120px;
  }
  
  .orb-2 {
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.16);
    top: 460px;
    right: -120px;
  }
  
  .orb-3 {
    width: 280px;
    height: 280px;
    background: rgba(96, 116, 136, 0.08);
    bottom: 40px;
    left: 42%;
  }
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(226, 233, 240, 0.82);
    border-bottom: 1px solid rgba(96, 116, 136, 0.14);
  }
  
  .nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    min-width: 0;
  }
  
  .brand:hover {
    color: var(--text);
  }
  
  .brand-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.10));
  }
  
  .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
  }
  
  .brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
  }
  
  .brand-sub {
    padding-top: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
  }
  
  .site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
  }
  
  .site-nav a {
    color: var(--muted);
    font-weight: 600;
  }
  
  .site-nav a:hover {
    color: var(--text);
  }
  
  .theme-control {
    margin-left: 16px;
    display: flex;
    align-items: center;
  }
  
  .theme-selector {
    min-height: 34px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(248, 250, 252, 0.88);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
  }
  
  .theme-selector:hover {
    border-color: var(--accent);
  }
  
  .menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
  }
  
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 2px;
  }
  
  .hero {
    padding: 82px 0 46px;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: start;
  }
  
  .hero-copy {
    min-width: 0;
  }
  
  .hero-visual {
    display: flex;
    align-items: flex-start;
  }
  
  .eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding-bottom: 10px;
  }
  
  .hero h1 {
    margin: 0 0 18px;
    font-size: clamp(1.8rem, 3.5vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 14ch;
    color: var(--text);
  }
  
  .hero-text {
    margin: 0;
    max-width: 64ch;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1.75;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 15px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  
  .btn:hover {
    transform: translateY(-1px);
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #6f8398, #5f7387);
    color: white;
    box-shadow: 0 8px 18px rgba(69, 87, 105, 0.14);
  }
  
  .btn-primary:hover {
    color: white;
    background: linear-gradient(135deg, #667b90, #55687b);
  }
  
  .btn-secondary {
    color: var(--text);
    border: 1px solid rgba(96, 116, 136, 0.20);
    background: rgba(255, 255, 255, 0.55);
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
  }
  
  .stat-card {
    padding: 18px;
    border: 1px solid rgba(96, 116, 136, 0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.42));
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  
  .stat-number {
    display: block;
    margin-bottom: 6px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
  }
  
  .stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
  }
  
  .hero-visual-frame {
    position: relative;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(96, 116, 136, 0.14);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.40)),
      rgba(247,249,251,0.82);
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.24),
      0 16px 34px rgba(35, 48, 61, 0.08);
  }
  
  .logo-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
      135deg,
      rgba(115, 135, 154, 0.14),
      rgba(255, 255, 255, 0.24),
      rgba(115, 135, 154, 0.10)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  
  .hero-logo {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.10));
  }
  
  .section {
    padding: 56px 0 30px;
  }
  
  .section-heading {
    
    margin-bottom: 28px;
  }
  
  .section-heading h2,
  .portfolio-copy h2,
  .contact-copy h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    padding-bottom: 15px;
  }
  
  .section-intro {
    margin-top: 12px;
    font-size: 1.1rem;
    
    color: var(--muted);
    line-height: 1.7;
  }
  
  .about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .panel,
  .portfolio-card,
  .contact-card,
  .contact-mini-card,
  .patent-table-wrap {
    border: 1px solid rgba(96, 116, 136, 0.16);
    background: var(--panel);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
  }
  
  .panel {
    padding: 24px;
    border-radius: var(--radius);
  }
  
  .panel h3 {
    margin: 0 0 10px;
    font-size: 1.16rem;
    color: var(--text);
  }
  
  .panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
  }
  
  .feature-band {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  
  .feature-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.48);
    border: 1px solid rgba(96, 116, 136, 0.14);
  }
  
  .feature-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
  }
  
  .feature-item strong {
    font-size: 1rem;
    color: var(--text);
  }
  
  .portfolio-layout {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 24px;
    align-items: start;
  }
  
  .portfolio-copy p,
  .contact-copy p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.0rem;
  }
  
  .text-link {
    font-weight: 700;
    text-decoration: underline;
  }
  
  .note {
    font-size: 0.95rem;
  }
  
  .portfolio-card {
    padding: 24px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(115,135,154,0.04), rgba(255,255,255,0.50)),
      var(--panel-strong);
  }
  
  .portfolio-card-top {
    margin-bottom: 18px;
  }
  
  .chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(115, 135, 154, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
  }
  
  .portfolio-card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
  }
  
  .portfolio-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.85;
  }
  
  .contact-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(115,135,154,0.03), rgba(255,255,255,0.50)),
      var(--panel-strong);
  }
  
  .contact-line {
    margin: 18px 0 0;
  }
  
  .contact-side {
    display: grid;
    gap: 14px;
    align-content: start;
  }
  
  .contact-mini-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.50);
  }
  
  .contact-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
  }
  
  .contact-logo {
    max-width: 100%;
    width: 220px;
    height: auto;
  }
  
  .mini-label {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
  }
  
  .section-patent-table {
    padding-top: 56px;
    padding-bottom: 48px;
  }
  
  .patent-table-wrap {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(248,250,252,0.92);
  }
  
  .patent-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(96, 116, 136, 0.14);
    background: rgba(255,255,255,0.55);
  }
  
  .patent-search {
    width: 100%;
    max-width: 420px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(96, 116, 136, 0.18);
    background: rgba(255,255,255,0.68);
    color: var(--text);
    outline: none;
  }
  
  .patent-search::placeholder {
    color: var(--muted);
  }
  
  .patent-search:focus {
    border-color: rgba(115, 135, 154, 0.35);
    box-shadow: 0 0 0 3px rgba(115, 135, 154, 0.08);
  }
  
  .patent-count {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  .patent-table-scroll {
    overflow-x: auto;
  }
  
  .patent-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
  }
  
  .patent-table thead th {
    text-align: left;
    padding: 16px 18px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(238, 242, 246, 0.92);
    border-bottom: 1px solid rgba(96, 116, 136, 0.14);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  
  .patent-table tbody td {
    padding: 16px 18px;
    vertical-align: top;
    border-bottom: 1px solid rgba(96, 116, 136, 0.10);
    color: var(--text);
    line-height: 1.55;
  }
  
  .patent-table tbody tr:hover {
    background: rgba(238, 242, 246, 0.72);
  }
  
  .patent-table tbody td:nth-child(1) {
    width: 80px;
    color: var(--muted);
    font-weight: 700;
  }
  
  .patent-table tbody td:nth-child(2),
  .patent-table tbody td:nth-child(3) {
    width: 190px;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.94rem;
  }
  
  .patent-empty {
    padding: 24px 18px;
    color: var(--muted);
  }
  
  .site-footer {
    padding-bottom: 20px;
    border-top: 1px solid rgba(96, 116, 136, 0.14);
    background: rgba(220, 227, 234, 0.72);
  }
  
  .footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(96, 116, 136, 0.10);
  }
  
  .footer-brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .footer-logo {
    width: 90px;
    height: auto;
    opacity: 0.92;
  }
  
  .footer-brand {
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
  }
  
  .footer-copy,
  .back-to-top {
    color: var(--muted);
  }
  
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .delay-1 {
    transition-delay: 0.12s;
  }
  
  .delay-2 {
    transition-delay: 0.24s;
  }
  
  @media (max-width: 1050px) {
    .hero-grid,
    .portfolio-layout,
    .contact-card,
    .about-grid,
    .feature-band {
      grid-template-columns: 1fr;
    }
  
    .hero h1 {
      max-width: none;
    }
  
    .hero-stats {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 820px) {
    .menu-toggle {
      display: inline-block;
    }
  
    .site-nav {
      position: absolute;
      top: 78px;
      left: 16px;
      right: 16px;
      display: none;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      padding: 18px;
      border-radius: 18px;
      border: 1px solid rgba(96, 116, 136, 0.16);
      background: rgba(240, 244, 248, 0.96);
      box-shadow: var(--shadow);
    }
  
    .site-nav.open {
      display: flex;
    }
  
    .hero {
      padding-top: 38px;
    }
  
    .nav-wrap {
      position: relative;
    }
  
    .patent-toolbar {
      flex-direction: column;
      align-items: stretch;
    }
  
    .patent-count {
      white-space: normal;
    }
  }
  
  @media (max-width: 640px) {
    .container {
      width: min(var(--container), calc(100% - 24px));
    }
  
    .brand-logo {
      width: 115px;
    }
  
    .brand-name {
      font-size: 1.05rem;
    }
  
    .brand-sub {
      font-size: 0.62rem;
      letter-spacing: 0.08em;
    }
  
    .btn {
      width: 100%;
    }
  
    .hero-actions {
      flex-direction: column;
    }
  
    .contact-card,
    .portfolio-card,
    .panel {
      padding: 20px;
    }
  
    .footer-wrap {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .footer-brand-wrap {
      align-items: flex-start;
    }
  }