:root {
  --ink: #102322;
  --ink-soft: #415451;
  --night: #081918;
  --night-soft: #102a28;
  --paper: #f4f2e9;
  --paper-bright: #fbfaf5;
  --line: #cfcec4;
  --mint: #62e6b2;
  --mint-dark: #167d5a;
  --blue: #8bbcff;
  --gold: #f2c66d;
  --max-width: 1180px;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(8, 25, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--paper-bright);
  color: var(--night);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: #fff;
}

nav .nav-contact {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 0;
  background: var(--night);
  color: #fff;
}

.hero::before {
  position: absolute;
  top: 72px;
  right: -210px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(98, 230, 178, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(98, 230, 178, 0.025), 0 0 0 180px rgba(139, 188, 255, 0.018);
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 83%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  padding-bottom: 90px;
}

.hero-copy,
.profile-card,
.section-heading > *,
.project-showcase,
.project-showcase-details,
.about > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--mint-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow,
.approach .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 810px;
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.hero-lead {
  max-width: 680px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.62;
}

.hero-actions,
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--mint);
  color: var(--night);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.button-ink {
  background: var(--night);
  color: #fff;
}

.profile-card {
  position: relative;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(14, 42, 39, 0.8);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.profile-topline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-topline img {
  border: 2px solid rgba(98, 230, 178, 0.52);
  border-radius: 50%;
}

.profile-name,
.profile-role {
  margin: 0;
}

.profile-name {
  font-size: 1rem;
  font-weight: 800;
}

.profile-role {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.signal-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.signal-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(98, 230, 178, 0.12);
}

.focus-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.focus-list span,
.project-index,
.approach-grid article > span {
  color: var(--mint-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.focus-list span {
  color: var(--mint);
}

.proof-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-strip div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.proof-strip div:first-child {
  padding-left: 0;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  color: var(--mint);
  font-size: 1.15rem;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.section {
  padding-block: clamp(88px, 12vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  column-gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.about h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-showcase {
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.project-showcase-visual {
  display: block;
  padding: clamp(16px, 2.4vw, 30px);
  background: var(--night-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-showcase-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

.project-showcase-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 26px clamp(24px, 4vw, 42px) 28px;
}

.project-showcase-details > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.project-showcase-details .project-links {
  justify-content: flex-end;
  margin-top: 0;
}

.project-index {
  margin: 0 0 16px;
  text-transform: uppercase;
}

.project-card h3,
.approach-grid h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.project-card > p:not(.project-index) {
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.project-links,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.project-links a,
.card-link {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.project-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e5d6;
}

.project-card .tag-list {
  margin-top: auto;
  padding-top: 26px;
}

.project-card > .card-link,
.project-card > .card-actions {
  margin-top: 26px;
}

.project-card-dark {
  border-color: var(--night);
  background: var(--night);
  color: #fff;
}

.project-card-dark > p:not(.project-index) {
  color: rgba(255, 255, 255, 0.66);
}

.project-card-dark .project-index {
  color: var(--mint);
}

.project-card-dark .tag-list li {
  border-color: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.72);
}

.project-card-dark .card-link {
  color: #fff;
}

.approach {
  background: var(--night-soft);
  color: #fff;
}

.section-heading-light {
  display: block;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.approach-grid article {
  min-height: 300px;
  padding: 42px 38px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.approach-grid article:not(:first-child) {
  padding-left: 38px;
}

.approach-grid article:last-child {
  border-right: 0;
}

.approach-grid article > span {
  color: var(--mint);
}

.approach-grid h3 {
  margin-top: 54px;
  font-size: 1.45rem;
}

.approach-grid p {
  color: rgba(255, 255, 255, 0.62);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(330px, 0.75fr);
  gap: clamp(50px, 10vw, 130px);
  align-items: start;
}

.about-copy {
  padding-top: 34px;
}

.about-copy p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

footer {
  padding: 42px 0;
  background: var(--night);
  color: rgba(255, 255, 255, 0.67);
}

.footer-wrap {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-wrap strong {
  color: #fff;
  font-size: 0.98rem;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background: var(--night);
  color: #fff;
  text-align: center;
}

.error-card {
  width: min(100%, 620px);
  padding: clamp(40px, 8vw, 80px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: var(--night-soft);
}

.error-code {
  margin: 0;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
}

.error-card h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 9vw, 6rem);
}

.error-card > p:not(.error-code) {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
  .hero-layout,
  .section-heading,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 54px;
  }

  .profile-card {
    max-width: 560px;
  }

  .section-heading {
    gap: 26px;
  }

  .project-showcase-details {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-showcase-details .project-links {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    position: absolute;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand > span:last-child,
  nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    padding-top: 126px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .hero-layout {
    padding-bottom: 64px;
  }

  .proof-strip,
  .project-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip div,
  .proof-strip div:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 84px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .project-showcase-visual {
    padding: 10px;
  }

  .project-showcase-visual img {
    border-radius: 12px;
  }

  .project-showcase-details {
    padding: 24px;
  }

  .project-card {
    padding: 30px 24px;
  }

  .project-card {
    min-height: 350px;
  }

  .approach-grid article,
  .approach-grid article:not(:first-child) {
    min-height: auto;
    padding: 34px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .approach-grid article:last-child {
    border-bottom: 0;
  }

  .approach-grid h3 {
    margin-top: 24px;
  }

  .about-copy {
    padding-top: 0;
  }

  .footer-wrap {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
