/* self-hosted fonts (latin + latin-ext) */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/hankengrotesk-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/spectral-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/spectral-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/spectral-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/spectral-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: oklch(0.974 0.006 72);
    --paper: oklch(0.992 0.004 72);
    --ink: oklch(0.245 0.012 60);
    --ink-soft: oklch(0.46 0.012 60);
    --ink-faint: oklch(0.62 0.012 60);
    --line: oklch(0.885 0.008 72);
    --line-soft: oklch(0.93 0.006 72);
    --accent: oklch(0.565 0.092 48);
    --accent-soft: oklch(0.93 0.03 60);
    --serif: "Spectral", Georgia, serif;
    --sans: "Hanken Grotesk", system-ui, sans-serif;
    --maxw: 1120px;
    --pad: clamp(20px, 5vw, 64px);
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  a { color: inherit; }

  .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  /* ---------- Header ---------- */
  header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    backdrop-filter: saturate(1.1) blur(10px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 70px;
  }
  .brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
  }
  .brand .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    transform: translateY(-2px);
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.18s ease;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--paper);
    background: var(--ink);
    padding: 10px 18px;
    border-radius: 999px;
    transition: background 0.18s ease;
    white-space: nowrap;
  }
  .nav-cta:hover { background: var(--accent); }
  .lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    background: var(--paper);
  }
  .lang-toggle a {
    text-decoration: none;
    padding: 7px 12px;
    color: var(--ink-faint);
    transition: background 0.18s ease, color 0.18s ease;
  }
  .lang-toggle a.active { background: var(--ink); color: var(--paper); }
  .lang-toggle a:not(.active):hover { color: var(--ink); }

  @media (max-width: 760px) {
    .nav-links { display: none; }
  }

  /* ---------- Section scaffolding ---------- */
  section { padding: clamp(64px, 9vw, 130px) 0; }
  .sec-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 28px;
  }
  .sec-label .num { color: var(--accent); font-variant-numeric: tabular-nums; }
  .sec-label .bar { flex: 0 0 36px; height: 1px; background: var(--line); }

  h2.sec-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
    max-width: 18ch;
  }
  .sec-intro {
    font-size: clamp(18px, 2vw, 20px);
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 0;
  }

  /* ---------- Hero ---------- */
  .hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  h1.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
  }
  h1.hero-title em {
    font-style: italic;
    color: var(--accent);
  }
  .hero-lead {
    font-size: clamp(18px, 2.1vw, 21px);
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 34px;
  }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 13px 24px;
    border-radius: 999px;
    transition: all 0.18s ease;
  }
  .btn-primary { background: var(--ink); color: var(--paper); }
  .btn-primary:hover { background: var(--accent); }
  .btn-ghost { color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { border-color: var(--ink); }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .hero-meta div { line-height: 1.3; }
  .hero-meta .k {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    display: block;
  }
  .hero-meta .v {
    font-size: 14px;
    color: var(--ink-faint);
  }

  /* portrait placeholder */
  .portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: oklch(0.93 0.008 72);
  }
  .portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    display: block;
  }

  @media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .portrait { max-width: 360px; }
  }

  /* ---------- Services ---------- */
  #services { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
  }
  .svc {
    background: var(--paper);
    padding: 30px 28px 34px;
  }
  .svc .svc-i {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
  }
  .svc h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 21px;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
  }
  .svc p {
    margin: 0;
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.55;
  }
  @media (max-width: 860px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .svc-grid { grid-template-columns: 1fr; } }

  /* ---------- Technology ---------- */
  .tech-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
    margin-top: 10px;
  }
  .tech-points { display: flex; flex-direction: column; gap: 26px; }
  .tp {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
  }
  .tp:last-child { border-bottom: none; padding-bottom: 0; }
  .tp .tp-mark {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    border-radius: 6px;
    padding: 6px 9px;
    background: color-mix(in oklab, var(--accent-soft) 35%, var(--paper));
    white-space: nowrap;
  }
  .tp h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 2px 0 6px; }
  .tp p { margin: 0; font-size: 16px; color: var(--ink-soft); }
  @media (max-width: 860px) { .tech-grid { grid-template-columns: 1fr; } }

  /* ---------- About ---------- */
  #about { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
  }
  .about-body p {
    font-size: 18.5px;
    color: var(--ink-soft);
    margin: 0 0 18px;
    max-width: 54ch;
  }
  .about-body p strong { color: var(--ink); font-weight: 600; }
  .ind-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ind-list li {
    font-size: 14px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 6px 13px;
    border-radius: 999px;
  }
  .pull {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.35;
    color: var(--ink);
    border-left: 2px solid var(--accent);
    padding-left: 26px;
    margin: 0;
  }
  @media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

  /* ---------- Contact ---------- */
  #contact { padding-bottom: clamp(56px, 7vw, 90px); }
  .contact-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: clamp(36px, 5vw, 64px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
  }
  .contact-card h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
  }
  .contact-card p { margin: 0; color: oklch(0.82 0.01 72); max-width: 44ch; font-size: 17px; }
  .contact-lines { display: flex; flex-direction: column; gap: 16px; min-width: 240px; }
  .cline { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
  .cline .lab {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: oklch(0.68 0.04 60);
  }
  .cline .val {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 500;
    color: var(--paper);
    transition: color 0.18s ease;
    word-break: break-word;
  }
  .cline:hover .val { color: var(--accent-soft); }
  @media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

  /* ---------- Footer ---------- */
  footer.site {
    border-top: 1px solid var(--line);
    padding: 30px 0 40px;
  }
  .foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: var(--ink-faint);
  }
  .foot .brand-sm { font-family: var(--serif); font-weight: 600; color: var(--ink-soft); font-size: 16px; }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.nav-right { display: flex; align-items: center; gap: 18px; }
