*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:           #EEF8FD;
      --bg-card:      #FFFFFF;
      --bg-elevated:  #E2F2FA;
      --text:         #2E4E65;
      --text-muted:   #7FA8C4;   /* logo tagline colour */
      --text-dim:     #4A7090;
      --accent:       #1E96CF;
      --accent-bright:#5BC8E8;
      --accent-soft:  rgba(30, 150, 207, 0.08);
      --accent-mid:   rgba(30, 150, 207, 0.16);
      --border:       rgba(14, 61, 99, 0.11);
      --border-soft:  rgba(14, 61, 99, 0.06);
      --white:        #0D2A3F;   /* headings — darkest in light mode */
      --navy:         #14324F;
      --freeze-grad:  linear-gradient(140deg, #2EA6DF 0%, #67CFEF 100%);
      --radius:       12px;
      --radius-sm:    8px;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Space Grotesk', system-ui, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    h1, h2, h3, h4 {
      font-weight: 400;
      line-height: 1.12;
      color: var(--white);
    }

    .container {
      max-width: 1160px;
      margin: 0 auto;
      padding: 0 36px;
    }
    @media (max-width: 640px) { .container { padding: 0 20px; } }

    .section-label {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .section-label::before {
      content: '';
      width: 18px; height: 1px;
      background: var(--accent);
    }

    /* ─── Nav ─── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      height: 66px;
      display: flex;
      align-items: center;
      background: rgba(238, 248, 253, 0.92);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-soft);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }
    .nav-logo {
      font-size: 1rem;
      color: var(--white);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 9px;
      letter-spacing: -0.01em;
    }
    .logo-icon {
      display: block;
      width: 28px; height: 28px;
      flex-shrink: 0;
    }
    .logo-code  { font-weight: 500; color: var(--white); }
    .logo-freeze {
      font-weight: 800;
      background: var(--freeze-grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.9rem;
      color: var(--text-dim);
      text-decoration: none;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--white); }
    .nav-cta {
      font-size: 0.9rem;
      color: var(--accent);
      text-decoration: none;
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: 7px 16px;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
    @media (max-width: 768px) { .nav-links { display: none; } }

    /* ─── Hero ─── */
    #hero {
      padding: 180px 0 140px;
      position: relative;
      overflow: hidden;
      background: linear-gradient(to bottom, #D8EEF9, #EEF8FD);
    }
    #hero-canvas {
      position: absolute;
      inset: 0;
      width: 100%; height: 100%;
      opacity: 0.7;
    }
    .hero-fade {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 120px;
      background: linear-gradient(to bottom, transparent, #EEF8FD);
      pointer-events: none;
    }
    .hero-content { position: relative; z-index: 1; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 44px;
      padding: 7px 14px 7px 7px;
      border-radius: 100px;
      backdrop-filter: blur(6px);
    }
    .hero-badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--accent);
      animation: blink 2.6s ease-in-out infinite;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }
    .hero-badge span {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--navy);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .hero-name {
      font-size: clamp(3rem, 7vw, 5.6rem);
      font-weight: 400;
      letter-spacing: -0.04em;
      line-height: 1.0;
      margin-bottom: 12px;
    }
    .hero-code  { color: var(--white); font-weight: 400; }
    .hero-freeze {
      font-weight: 600;
      background: var(--freeze-grad);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .hero-tagline {
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(14,61,99,0.45);
      margin-bottom: 20px;
      margin-top: 4px;
    }
    .hero-founder-row {
      font-size: 1rem;
      color: var(--text-muted);
      font-weight: 300;
      margin-bottom: 16px;
      letter-spacing: 0.01em;
    }
    .hero-founder-link {
      color: var(--text-dim);
      text-decoration: none;
      border-bottom: 1px solid var(--border-soft);
      padding-bottom: 1px;
      transition: color 0.2s, border-color 0.2s;
    }
    .hero-founder-link:hover {
      color: var(--white);
      border-color: var(--border);
    }
    .hero-title-row {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 36px;
      flex-wrap: wrap;
    }
    .hero-role {
      font-size: 0.9rem;
      color: var(--text-dim);
      font-weight: 300;
      letter-spacing: 0.01em;
    }
    .hero-divider {
      width: 1px; height: 14px;
      background: var(--border-soft);
    }
    .hero-statement {
      font-size: clamp(1.2rem, 2.6vw, 1.75rem);
      font-weight: 400;
      color: var(--text-dim);
      max-width: 680px;
      line-height: 1.4;
      letter-spacing: -0.02em;
      margin-bottom: 20px;
    }
    .hero-statement strong {
      color: var(--white);
    }
    .hero-sub {
      font-size: 1rem;
      color: var(--text-muted);
      max-width: 520px;
      line-height: 1.7;
      margin-bottom: 48px;
      font-weight: 300;
    }
    .hero-quote {
      font-size: 0.9rem;
      font-weight: 400;
      font-style: italic;
      color: rgba(14,61,99,0.5);
      border-left: 2px solid rgba(14,61,99,0.18);
      padding-left: 16px;
      margin-bottom: 44px;
      line-height: 1.6;
      max-width: 460px;
    }
    .hero-actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }
    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--navy);
      color: var(--bg);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 12px 24px;
      border-radius: 100px;
      text-decoration: none;
      transition: background 0.2s, transform 0.2s;
    }
    .btn-primary:hover { background: var(--white); transform: translateY(-1px); }
    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      color: var(--text);
      font-size: 0.9rem;
      padding: 12px 24px;
      border-radius: 100px;
      border: 1px solid var(--border);
      text-decoration: none;
      transition: color 0.2s, border-color 0.2s;
    }
    .btn-secondary:hover {
      color: var(--white);
      border-color: var(--accent);
    }

    /* ─── Dual Role ─── */
    #roles {
      padding: 80px 0;
      border-top: none;
    }
    .roles-tabs {
      display: flex;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--bg-card);
    }
    .roles-nav {
      width: 220px;
      flex-shrink: 0;
      border-right: 1px solid var(--border-soft);
      display: flex;
      flex-direction: column;
      padding: 8px 0;
    }
    .roles-nav-item {
      display: flex;
      flex-direction: column;
      gap: 3px;
      text-align: left;
      background: none;
      border: none;
      border-left: 2px solid transparent;
      cursor: pointer;
      padding: 20px 24px;
      transition: background 0.15s, border-color 0.15s;
    }
    .roles-nav-item:hover { background: var(--bg-elevated); }
    .roles-nav-item.active {
      border-left-color: var(--accent);
      background: var(--bg-elevated);
    }
    .roles-nav-tag {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
    }
    .roles-nav-company {
      font-size: 1rem;
      font-weight: 500;
      color: var(--text-dim);
      letter-spacing: -0.01em;
      transition: color 0.15s;
    }
    .roles-nav-item.active .roles-nav-company,
    .roles-nav-item:hover .roles-nav-company { color: var(--white); }
    .roles-nav-pos {
      font-size: 0.75rem;
      color: var(--text-muted);
    }
    .roles-panel {
      flex: 1;
      display: none;
      padding: 44px 48px;
      animation: roleFadeIn 0.2s ease;
    }
    .roles-panel.active { display: block; }
    @keyframes roleFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: none; }
    }
    @media (max-width: 860px) {
      .roles-tabs { flex-direction: column; }
      .roles-nav {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        overflow-x: auto;
        padding: 0;
        scrollbar-width: none;
      }
      .roles-nav::-webkit-scrollbar { display: none; }
      .roles-nav-item {
        flex-direction: column;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 14px 20px;
        white-space: nowrap;
      }
      .roles-nav-item.active { border-bottom-color: var(--accent); }
      .roles-nav-tag { display: none; }
      .roles-nav-pos { display: none; }
      .roles-panel { padding: 32px 28px; }
    }
    .role-tag {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 4px;
      margin-bottom: 28px;
      display: inline-block;
    }
    .role-tag.bl { background: rgba(30,150,207,0.1); color: var(--accent); border: 1px solid rgba(30,150,207,0.2); }
    .role-tag.cf { background: rgba(14,61,99,0.05); color: var(--text-dim); border: 1px solid var(--border-soft); }
    .role-company {
      font-size: 1.5rem;
      font-weight: 500;
      color: var(--white);
      margin-bottom: 6px;
      letter-spacing: -0.02em;
    }
    .role-position {
      font-size: 0.9rem;
      color: var(--text-dim);
      margin-bottom: 24px;
    }
    .role-desc {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.7;
    }
    .role-stats {
      display: flex;
      gap: 36px;
      margin-top: 32px;
      padding-top: 28px;
      border-top: none;
    }
    .role-stat-val {
      font-size: 1.5rem;
      font-weight: 500;
      color: var(--white);
      letter-spacing: -0.03em;
    }
    .role-stat-lbl {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 2px;
    }

    /* ─── About / Journey ─── */
    #about { padding: 100px 0 0; border-top: none; }
    .about-layout {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 80px;
      align-items: start;
    }
    @media (max-width: 840px) {
      .about-layout { grid-template-columns: 1fr; gap: 48px; }
    }
    .about-portrait {
      width: 100%; max-width: 280px;
      aspect-ratio: 1 / 1;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--bg-card);
    }
    .about-photo {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
    }
    .contact-layout { display: flex; align-items: center; gap: 80px; }
    .contact-globe { flex-shrink: 0; width: 300px; height: 300px; position: relative; }
    #globe-canvas { display: block; width: 100%; height: 100%; }
    .globe-placeholder {
      position: absolute;
      inset: 0;
      pointer-events: none;
      transition: opacity 0.6s ease;
    }
    .globe-placeholder.loaded { opacity: 0; }
    @media (max-width: 860px) {
      .contact-layout { flex-direction: column-reverse; gap: 48px; }
      .contact-globe { width: 220px; height: 220px; }
    }
    .about-name-block {
      margin-top: 18px;
    }
    .about-company-name {
      font-size: 1.5rem;
      font-weight: 500;
      color: var(--white);
      letter-spacing: -0.02em;
      margin-bottom: 2px;
    }
    .about-full-name {
      font-size: 0.9rem;
      font-weight: 400;
      color: var(--text-muted);
      letter-spacing: 0;
    }
    .about-location {
      font-size: 0.9rem;
      color: var(--text-muted);
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .about-location::before { content: '📍'; font-size: 0.75rem; }

    .about-text {
      font-size: 1rem;
      color: var(--text-dim);
      line-height: 1.82;
      margin-bottom: 18px;
      font-weight: 300;
    }
    .about-text strong { color: var(--white); font-weight: 500; }
    .about-text a { color: var(--accent); text-decoration: none; }
    .about-text a:hover { text-decoration: underline; }

    /* Career timeline */
    .timeline {
      margin-top: 48px;
      position: relative;
    }
    .timeline-title {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 28px;
    }
    .timeline-track {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .timeline-item {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 0 24px;
      position: relative;
    }
    .timeline-item + .timeline-item { margin-top: 0; }
    .timeline-left {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      padding-top: 3px;
    }
    .timeline-era {
      font-size: 0.75rem;
      color: var(--text-muted);
      letter-spacing: 0.06em;
      text-align: right;
    }
    .timeline-right {
      padding-bottom: 28px;
      border-left: 1px solid var(--border-soft);
      padding-left: 24px;
      position: relative;
    }
    .timeline-right::before {
      content: '';
      position: absolute;
      left: -4px;
      top: 7px;
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--bg-card);
      border: 1.5px solid var(--accent);
    }
    .timeline-item:last-child .timeline-right {
      border-left-color: transparent;
    }
    .timeline-role {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--white);
      margin-bottom: 2px;
    }
    .timeline-org {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    /* ─── Work ─── */
    #work { padding: 100px 0; border-top: none; }
    .work-header { margin-bottom: 52px; }
    .work-header-sub {
      font-size: 0.9rem;
      color: var(--text-muted);
      max-width: 480px;
      margin-top: 12px;
      line-height: 1.6;
    }
    .section-title {
      font-size: clamp(1.7rem, 3.2vw, 2.4rem);
      font-weight: 400;
      letter-spacing: -0.025em;
    }

    .work-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    @media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

    .project-card {
      background: var(--bg-card);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius);
      overflow: hidden;
      transition: border-color 0.25s, transform 0.25s;
    }
    .project-card:hover { border-color: var(--border); transform: translateY(-3px); }
    .project-thumb { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; }
    .project-body { padding: 20px 22px 22px; }
    .project-tags {
      display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px;
    }
    .tag {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border-soft);
      border-radius: 3px;
      padding: 2px 6px;
    }
    .project-name {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 7px;
      letter-spacing: -0.01em;
    }
    .project-desc {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.55;
    }

    /* ─── Expertise ─── */
    #expertise { padding: 100px 0; border-top: none; }
    .expertise-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2px;
      border-radius: var(--radius);
      overflow: hidden;
      margin-top: 52px;
    }
    @media (max-width: 900px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 500px) { .expertise-grid { grid-template-columns: 1fr; } }
    .expertise-card {
      background: var(--bg-card);
      padding: 36px 30px;
      transition: background 0.2s;
    }
    .expertise-card:hover { background: var(--bg-elevated); }
    .expertise-icon {
      width: 40px; height: 40px;
      margin-bottom: 22px;
      color: var(--accent);
    }
    .expertise-name {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 12px;
      letter-spacing: -0.01em;
    }
    .expertise-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .expertise-list li {
      font-size: 0.9rem;
      color: var(--text-dim);
      display: flex;
      align-items: flex-start;
      gap: 8px;
      line-height: 1.4;
    }
    .expertise-list li::before {
      content: '·';
      color: var(--accent);
      flex-shrink: 0;
      margin-top: 0px;
    }

    /* ─── Stack ─── */
    #stack {
      padding: 80px 0;
      border-top: none;
    }
    .stack-row {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      padding: 20px 0;
      border-bottom: 1px solid var(--border-soft);
    }
    .stack-row:first-child { border-top: none; }
    .stack-cat {
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      width: 110px;
      flex-shrink: 0;
    }
    .stack-badges { display: flex; gap: 8px; flex-wrap: wrap; }
    .badge {
      font-size: 0.9rem;
      color: var(--text-dim);
      background: var(--bg-card);
      border: 1px solid var(--border-soft);
      border-radius: 5px;
      padding: 5px 12px;
      transition: border-color 0.18s, color 0.18s, background 0.18s;
    }
    .badge:hover { border-color: var(--border); color: var(--white); background: var(--accent-soft); }
    .badge.hl { background: rgba(30,150,207,0.1); border-color: rgba(30,150,207,0.25); color: var(--accent); }

    /* ─── Community ─── */
    #community {
      padding: 80px 0;
      border-top: none;
    }
    .community-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 48px;
    }
    @media (max-width: 740px) { .community-grid { grid-template-columns: 1fr; gap: 12px; } }
    .community-card {
      background: var(--bg-card);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-sm);
      padding: 28px 28px;
      transition: border-color 0.2s;
    }
    .community-card:hover { border-color: var(--border); }
    .community-stat-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 14px;
    }
    .community-big {
      font-size: 2rem;
      font-weight: 500;
      color: var(--white);
      letter-spacing: -0.04em;
      line-height: 1;
    }
    .community-sub {
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-muted);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .community-link {
      display: inline-block;
      margin-top: 14px;
      font-size: 0.9rem;
      color: var(--accent);
      text-decoration: none;
      opacity: 0.7;
      transition: opacity 0.2s;
    }
    .community-link:hover { opacity: 1; }
    .community-icon {
      font-size: 1.5rem;
      margin-bottom: 14px;
    }
    .community-name {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }
    .community-desc {
      font-size: 0.9rem;
      color: var(--text-dim);
      line-height: 1.6;
    }

    /* ─── Contact ─── */
    /* ─── Glacier wave dividers ─── */
    .wave-canvas {
      display: block;
      width: 100%;
      height: 200px;
      margin-top: 0;
      transform: scale(1.68);
      transform-origin: center center;
      transition: transform 0.22s ease-out;
      -webkit-mask-image:
        linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%),
        linear-gradient(to right,  transparent 0%, black 6%,  black 94%, transparent 100%);
      -webkit-mask-composite: destination-in;
      mask-image:
        linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%),
        linear-gradient(to right,  transparent 0%, black 6%,  black 94%, transparent 100%);
      mask-composite: intersect;
      opacity: 0.85;
    }

    #contact { padding: 120px 0; border-top: none; }
    .contact-inner { flex: 1; max-width: 540px; }
    .contact-title {
      font-size: clamp(2rem, 4.5vw, 3.4rem);
      font-weight: 400;
      letter-spacing: -0.03em;
      margin-bottom: 18px;
    }
    .contact-sub {
      font-size: 1rem;
      color: var(--text-dim);
      line-height: 1.75;
      margin-bottom: 40px;
      font-weight: 300;
    }
    .contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
    .contact-note {
      margin-top: 24px;
      font-size: 0.9rem;
      color: var(--text-muted);
    }
    .contact-note a { color: var(--accent); text-decoration: none; }
    .contact-note a:hover { text-decoration: underline; }

    /* ─── Footer ─── */
    footer {
      padding: 28px 0;
      border-top: none;
    }
    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }
    .footer-brand {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .footer-logo { display: block; height: 22px; width: auto; }
    .footer-copy { font-size: 0.75rem; color: var(--text-muted); }
    .footer-links { display: flex; gap: 20px; }
    .footer-links a {
      font-size: 0.75rem;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--text-dim); }

    /* ─── Animations ─── */
    .fade-up {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .fade-up.visible { opacity: 1; transform: none; }
