:root {
  color-scheme: dark;
  --background: #0b1019;
  --ink: #f1f5f8;
  --muted: #afbdcc;
  --accent: #d9f982;
  --line: #2b384a;
  --mono: "DM Mono", ui-monospace, monospace;
  font-family: Manrope, system-ui, sans-serif;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse 54rem 47rem at 80% -8%, #182b43 0%, transparent 100%), var(--background);
  line-height: 1.65;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--background); }

.wrap { width: min(100% - clamp(2.25rem, 9vw, 9rem), 76rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 2; padding: .6rem 1rem; background: var(--accent); color: var(--background); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header {
  min-height: 5.25rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
}

.signature, nav { display: flex; align-items: center; }
.signature { gap: .75rem; text-decoration: none; font-weight: 800; white-space: nowrap; }
.signature img {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .3rem;
}

nav { gap: clamp(.9rem, 3vw, 2.1rem); }
nav a, .site-footer a { font-size: .9rem; font-weight: 700; color: var(--muted); text-underline-offset: .28em; text-decoration: none; }
nav a { display: flex; align-items: center; min-height: 2.75rem; }
nav a:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; }
nav .nav-contact { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 6.2vw, 6rem);
  padding-block: clamp(3.4rem, 6.6vw, 6rem);
}

.eyebrow, .topic {
  color: var(--accent);
  font: 500 .875rem/1.5 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
}
.hero-eyebrow { display: flex; gap: .45rem .85rem; flex-wrap: wrap; }
.hero-eyebrow span { opacity: .65; }

h1 {
  margin-top: 1.4rem;
  font-size: clamp(3.2rem, 6.75vw, 7.25rem);
  font-weight: 800;
  line-height: .99;
  letter-spacing: -.045em;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-lead { max-width: 28rem; color: var(--muted); margin-top: 1.75rem; font-size: clamp(1.08rem, 1.6vw, 1.33rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  padding: .7rem 1.12rem;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.button-primary { background: var(--accent); color: #11190b; }
.button-primary:hover { background: #ecffb5; }
.button-quiet { border-color: #40516a; }
.button-quiet:hover { border-color: var(--accent); color: var(--accent); }

.hero-image { position: relative; border: 1px solid #38516b; background: #132c40; }
.hero-image::after { position: absolute; inset: .75rem; border: 1px solid rgb(222 243 255 / 24%); content: ""; pointer-events: none; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1 / 1.045; object-fit: cover; object-position: center 55%; }

.section { border-top: 1px solid var(--line); padding-block: clamp(3.3rem, 6vw, 6rem); scroll-margin-top: 1rem; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 1.2rem 2rem; margin-bottom: 2.1rem; }
h2 { margin-top: .5rem; font-size: clamp(2.65rem, 5vw, 4.65rem); line-height: 1.04; font-weight: 800; letter-spacing: -.05em; }
.section-intro > p { color: var(--muted); max-width: 32rem; font-size: 1.075rem; }
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.expertise article { padding-block: 1.65rem; }
.expertise article:not(:first-child) { border-inline-start: 1px solid var(--line); padding-inline-start: 1.5rem; }
.expertise article:not(:last-child) { padding-inline-end: 1.5rem; }
.expertise h3 { margin: .6rem 0 .35rem; font-size: 1.25rem; letter-spacing: -.035em; }
.expertise p, .project-copy p:not(.topic), .contact-panel p:not(.eyebrow) { color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 3.2vw, 3rem); }
.project { border: 1px solid var(--line); background: #101924; }
.project-visual { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.dzinger-visual {
  background: radial-gradient(ellipse at 52% 50%, #edf6ff, transparent 76%), repeating-linear-gradient(0deg, transparent 0 29px, #20518d20 29px 30px), repeating-linear-gradient(90deg, transparent 0 29px, #20518d20 29px 30px), #bed5ed;
}
.dzinger-visual img { width: 60%; height: auto; filter: drop-shadow(0 10px 15px #12335428); }
.app-visual { background: radial-gradient(ellipse at 52% 107%, #2c6573, #1b334d 57%, #121f32); }
.app-visual img { position: absolute; top: 12%; width: 39%; border-radius: 1.15rem; border: .28rem solid #1b1e27; box-shadow: 0 12px 34px #050b18cc; }
.project-copy { padding: clamp(1.25rem, 3vw, 2rem); }
.project-copy h3 { margin: .4rem 0 .65rem; font-size: clamp(1.9rem, 3.15vw, 2.8rem); line-height: 1.15; letter-spacing: -.035em; }
.text-link { display: inline-flex; min-height: 2.75rem; gap: .55rem; align-items: center; color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: .24em; }
.text-link:hover { color: #efffc7; }
.project-copy > .text-link, .project-copy details { margin-top: .7rem; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.disclosure { position: relative; width: .7rem; height: .7rem; }
.disclosure::before, .disclosure::after { position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor; content: ""; }
.disclosure::after { transform: rotate(90deg); }
details[open] .disclosure::after { display: none; }
details > p { margin-top: .35rem; }

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.4rem 2rem;
  padding: clamp(1.5rem, 4vw, 3.65rem);
  border: 1px solid #3b513f;
  background: radial-gradient(ellipse at 85% 95%, #263c32, transparent 75%), #132022;
}
.contact-panel p:not(.eyebrow) { max-width: 34rem; margin-top: .9rem; }
.contact-panel a { flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.55rem 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .9rem; }
.site-footer span { margin-inline: .25rem; }

@media (max-width: 58rem) {
  .hero { column-gap: 1.7rem; }
  h1 { font-size: clamp(3.2rem, 7.6vw, 5.4rem); }
  .hero-image img { aspect-ratio: 4 / 5; }
}

@media (max-width: 43rem) {
  .hero, .section-intro { grid-template-columns: 1fr; }
  .hero { row-gap: 2.15rem; }
  h1 { font-size: clamp(2.65rem, 12.5vw, 5.2rem); }
  .hero-image img { aspect-ratio: 4 / 3; }
  .expertise { grid-template-columns: 1fr; }
  .expertise article:not(:first-child) { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .expertise article:not(:last-child) { padding-inline-end: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
