@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b1020;
  --surface: #111a30;
  --surface-hover: #15203a;
  --text: #f5f7ff;
  --muted: #abb7d0;
  --subtle: #8b9bb9;
  --border: #28334b;
  --accent: #86a5ff;
  --blue: #315ee5;
  --panel: #121f40;
  --grid: #829dff0b;
}

:root[data-theme='light'] {
  color-scheme: light;
  --background: #f5f7fc;
  --surface: #eaf0fc;
  --surface-hover: #e3ebff;
  --text: #0c1836;
  --muted: #475879;
  --subtle: #556688;
  --border: #ced7e9;
  --accent: #2b51ca;
  --blue: #315ee5;
  --panel: #e5ecff;
  --grid: #315ee508;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--blue); color: white; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong { font-weight: 500; }
img { display: block; max-width: 100%; }
.container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; vertical-align: middle; }
.icon-small { width: 15px; height: 15px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.accent { color: var(--accent); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; background: var(--blue); color: white; padding: 10px 18px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 100px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--border); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; }
.monogram { display: grid; place-items: center; width: 39px; height: 39px; background: var(--blue); color: #fff; border-radius: 4px; font-size: 15px; font-weight: 500; letter-spacing: -1px; }
.wordmark-name { font-family: monospace; font-size: 13px; letter-spacing: -.3px; }
.site-header nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 13px; }
.site-header nav a { padding-block: 10px; }
.site-header nav a:hover, .text-link:hover, .back-top:hover { color: var(--accent); }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon { width: 18px; height: 18px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 100px; padding-top: 78px; }
.hero-copy { align-self: center; }
.eyebrow { font-family: monospace; font-size: 12px; line-height: 1.6; letter-spacing: 1.3px; color: var(--accent); }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.label-line { width: 25px; height: 2px; background: var(--accent); }
h1 { margin-top: 24px; font-size: clamp(78px, 8.5vw, 122px); line-height: .97; letter-spacing: -7px; }
.hero-description { max-width: 510px; margin-top: 29px; font-size: 16px; line-height: 1.9; color: var(--muted); }
.hero-description strong { color: var(--text); }
.hero-actions { display: flex; gap: 29px; align-items: center; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 50px; padding: 14px 21px; border-radius: 4px; font-size: 13px; font-weight: 500; transition: background .2s, transform .2s; }
.button-primary { background: var(--blue); color: #fff; }
.button:hover { background: #254dcc; transform: translateY(-2px); }
.button .icon { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.portrait { align-self: center; position: relative; padding-top: 22px; }
.portrait::before { content: ''; position: absolute; top: 0; right: -22px; width: 72%; height: 83%; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid var(--border); z-index: -1; }
.portrait-frame { border: 1px solid var(--border); padding: 8px; background: var(--background); }
.portrait img { width: 100%; height: auto; aspect-ratio: .96; object-fit: cover; object-position: center; }
.portrait figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-family: monospace; font-size: 12px; letter-spacing: .4px; color: var(--subtle); }
.portrait-handle { color: var(--accent); }
.hero-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 74px; padding-block: 20px; border-block: 1px solid var(--border); font-family: monospace; font-size: 12px; letter-spacing: 1.1px; color: var(--subtle); }
.hero-meta > span:nth-child(2) { margin-left: auto; }
.hero-meta a { color: var(--accent); margin-left: 35px; }
.hero-meta a > span { margin-left: 10px; }
.projects-section { padding-top: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 35px; }
.section-heading .eyebrow, .connect-section .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -1.8px; line-height: 1.18; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-list { border-top: 1px solid var(--border); }
.project-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px 46px; align-items: center; column-gap: 28px; min-height: 164px; padding: 28px 18px; border-bottom: 1px solid var(--border); transition: background .2s; }
.project-card:hover { background: var(--surface-hover); }
.project-number { color: var(--subtle); font-family: monospace; font-size: 13px; align-self: start; padding-top: 6px; }
.project-category { display: block; font-family: monospace; font-size: 12px; letter-spacing: 1.3px; color: var(--accent); margin-bottom: 5px; }
.project-content h3 { font-size: 27px; letter-spacing: -.8px; line-height: 1.4; }
.project-content p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 6px; }
.project-domain { color: var(--subtle); font-family: monospace; font-size: 12px; justify-self: end; }
.project-arrow { display: grid; place-items: center; height: 42px; width: 42px; border: 1px solid var(--border); color: var(--accent); transition: color .2s, background .2s; }
.project-card:hover .project-arrow { color: #fff; background: var(--blue); border-color: var(--blue); }
.connect-section { display: flex; justify-content: space-between; align-items: center; gap: 35px; background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--blue); margin-top: 78px; padding: 42px 46px; }
.connect-section h2 { font-size: 36px; letter-spacing: -1.3px; }
.connect-section p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-top: 15px; }
.connect-section .button { flex-shrink: 0; gap: 13px; }
.site-footer { display: flex; gap: 28px; justify-content: space-between; align-items: center; min-height: 118px; color: var(--subtle); font-size: 12px; }
.local-time { font-family: monospace; font-size: 12px; letter-spacing: .5px; margin-left: auto; }
.back-top { margin-left: 25px; }
.back-top > span { margin-left: 8px; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .hero { column-gap: 56px; padding-top: 65px; }
  h1 { font-size: 96px; letter-spacing: -6px; }
  .hero-description { font-size: 14px; }
  .portrait figcaption { font-size: 12px; }
  .project-card { column-gap: 18px; grid-template-columns: 32px minmax(0, 1fr) 135px 42px; }
  .project-content p { max-width: 450px; }
}

@media (max-width: 780px) {
  .container { width: calc(100% - 48px); }
  .site-header { height: 84px; gap: 22px; }
  .site-header nav { gap: 23px; }
  .wordmark-name { display: none; }
  .hero { column-gap: 32px; padding-top: 50px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: .7px; gap: 8px; }
  .label-line { width: 16px; }
  h1 { font-size: 82px; letter-spacing: -5px; }
  .hero-description { font-size: 13px; line-height: 1.85; }
  .hero-actions { gap: 21px; flex-wrap: wrap; }
  .hero-actions .button { padding-inline: 16px; font-size: 12px; gap: 12px; }
  .hero-actions .text-link { font-size: 12px; }
  .portrait::before { right: -10px; }
  .portrait img { aspect-ratio: .77; }
  .portrait figcaption { flex-wrap: wrap; gap: 3px; }
  .hero-meta { margin-top: 55px; font-size: 12px; gap: 10px; }
  .hero-meta a { margin-left: 12px; }
  .projects-section { padding-top: 60px; }
  .project-card { grid-template-columns: 24px minmax(0, 1fr) 36px; column-gap: 17px; padding-inline: 10px; }
  .project-content h3 { font-size: 24px; }
  .project-domain { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 12px; font-size: 12px; }
  .project-arrow { grid-column: 3; grid-row: 1 / 3; width: 36px; height: 36px; }
  .connect-section { padding: 30px; margin-top: 60px; }
  .connect-section h2 { font-size: 30px; }
  .connect-section .button { padding-inline: 16px; font-size: 12px; gap: 10px; }
}

@media (max-width: 580px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: 78px; gap: 20px; }
  .site-header nav { font-size: 12px; gap: 22px; }
  .nav-connect { display: none; }
  .theme-toggle { width: 36px; height: 36px; }
  .hero { grid-template-columns: 1fr; padding-top: 41px; }
  .hero .eyebrow { font-size: 12px; letter-spacing: 1px; }
  h1 { font-size: clamp(80px, 21vw, 108px); letter-spacing: -5px; margin-top: 22px; }
  .hero-description { font-size: 15px; margin-top: 25px; }
  .hero-actions { margin-top: 26px; gap: 25px; }
  .hero-actions .button { font-size: 12px; padding-inline: 18px; }
  .portrait { width: calc(100% - 12px); max-width: 390px; margin: 42px auto 0; padding-top: 13px; }
  .portrait img { aspect-ratio: 1.15; object-position: center 35%; }
  .portrait figcaption { font-size: 12px; }
  .hero-meta { margin-top: 36px; padding-block: 16px; font-size: 12px; justify-content: space-between; }
  .hero-meta > span:nth-child(2) { display: none; }
  .hero-meta a { margin-left: 0; }
  .projects-section { padding-top: 45px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .eyebrow { font-size: 12px; }
  h2 { font-size: 34px; letter-spacing: -1.5px; }
  .section-heading > p { font-size: 12px; }
  .section-heading > p br { display: none; }
  .project-card { padding: 25px 0; column-gap: 13px; grid-template-columns: 23px minmax(0, 1fr) 30px; }
  .project-number { font-size: 12px; }
  .project-category { font-size: 12px; letter-spacing: .9px; }
  .project-content h3 { font-size: 23px; }
  .project-content p { font-size: 12px; line-height: 1.8; }
  .project-arrow { width: 30px; height: 34px; }
  .project-arrow .icon { width: 16px; height: 16px; }
  .connect-section { margin-top: 44px; padding: 27px 23px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .connect-section h2 { font-size: 29px; }
  .connect-section p:not(.eyebrow) { font-size: 12px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 17px; padding-block: 26px; min-height: 0; font-size: 12px; }
  .local-time { margin-left: 0; grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .back-top { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
