:root {
  --background: #071012;
  --foreground: #f1f6f3;
  --card: #0d191b;
  --card-foreground: #f1f6f3;
  --popover: #0d191b;
  --popover-foreground: #f1f6f3;
  --primary: #61e6bd;
  --primary-foreground: #05100d;
  --secondary: #132326;
  --secondary-foreground: #e6efeb;
  --muted: #132326;
  --muted-foreground: #9baba6;
  --accent: #61e6bd;
  --accent-foreground: #05100d;
  --destructive: #ff6b6b;
  --border: #203235;
  --input: #203235;
  --ring: #61e6bd;
  --radius: 0.75rem;
  --shell: 1180px;
  --cyan: #6edcff;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(97, 230, 189, 0.1), transparent 26rem),
    radial-gradient(circle at 10% 48%, rgba(110, 220, 255, 0.05), transparent 28rem),
    var(--background);
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 16, 18, 0.8);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(97, 230, 189, 0.42);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(97, 230, 189, 0.15), rgba(110, 220, 255, 0.04));
  color: var(--primary);
  font: 700 0.82rem/1 var(--font-mono);
  letter-spacing: -0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--muted-foreground);
  font: 0.72rem/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: #bcc8c4;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switch {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.language-switch button {
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8f9e99;
  font: 700 0.68rem/1 var(--font-mono);
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.language-switch > span {
  color: #52635e;
  font: 0.65rem/1 var(--font-mono);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #c5d1cd;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle .icon {
  width: 17px;
  height: 17px;
}

.theme-icon-moon {
  display: none;
}

.header-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #2f4649;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.header-cta:hover {
  border-color: var(--primary);
  background: rgba(97, 230, 189, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: 2rem;
  width: 24rem;
  height: 24rem;
  opacity: 0.14;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to top left, black, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  padding-block: 90px 74px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--primary);
  font: 700 0.76rem/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(97, 230, 189, 0.1), 0 0 16px rgba(97, 230, 189, 0.9);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.7rem, 6.4vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: 0.13em;
  color: transparent;
  background: linear-gradient(95deg, var(--primary), var(--cyan) 75%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 680px;
  margin: 34px 0 0;
  color: #aebbb7;
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 14px 42px rgba(97, 230, 189, 0.15);
}

.button-primary:hover {
  background: #7cf0ca;
}

.button-quiet {
  border: 1px solid var(--border);
  color: #dae4e0;
  background: rgba(255, 255, 255, 0.025);
}

.button-quiet:hover {
  border-color: #3b565a;
  background: rgba(255, 255, 255, 0.05);
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 20px -16px -16px 20px;
  border: 1px solid rgba(97, 230, 189, 0.18);
  border-radius: 20px;
  background: rgba(97, 230, 189, 0.025);
}

.portrait-glow {
  position: absolute;
  inset: 15% 5% 8% 8%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.2;
  filter: blur(65px);
}

.portrait-frame {
  position: relative;
  z-index: 1;
  height: 520px;
  overflow: hidden;
  border: 1px solid #2c4245;
  border-radius: 20px;
  background: #e7e8e8;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.76) contrast(1.02);
}

.portrait-trigger {
  height: 100%;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(4, 13, 14, 0.82), transparent 42%);
  pointer-events: none;
}

.portrait-card {
  position: absolute;
  right: -18px;
  bottom: 34px;
  z-index: 4;
  width: 242px;
  padding: 16px 18px;
  border: 1px solid rgba(97, 230, 189, 0.28);
  border-radius: 13px;
  background: rgba(9, 22, 23, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

.portrait-card span,
.portrait-card strong {
  display: block;
}

.portrait-card span {
  color: var(--primary);
  font: 0.68rem/1.5 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-card strong {
  margin-top: 5px;
  font-size: 0.9rem;
}

.proof-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.case-proof {
  overflow: hidden;
  margin: -12px 0 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(13, 25, 27, 0.72);
}

.proof-kicker {
  margin: 0;
  padding: 13px 30px;
  border-bottom: 1px solid var(--border);
  color: #71827c;
  font: 0.68rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-item {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 32px;
  border-right: 1px solid var(--border);
}

.proof-item:first-child {
  padding-left: 32px;
}

.proof-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-item strong {
  color: var(--primary);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.proof-item span {
  color: #95a49f;
  font-size: 0.85rem;
  line-height: 1.45;
}

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

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

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-heading > p:not(.eyebrow),
.case-heading > p,
.skills-heading > p {
  color: #9dacaa;
  font-size: 1.03rem;
  line-height: 1.75;
}

.case-section {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.018), transparent 28%);
}

.case-heading,
.skills-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.case-heading > p,
.skills-heading > p {
  margin: 0 0 6px;
}

.case-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.25);
}

.image-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}

.image-trigger img {
  transition: transform 240ms ease, filter 240ms ease;
}

.image-trigger:hover img {
  transform: scale(1.015);
}

.image-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(4, 12, 13, 0.78);
  color: #d9e3df;
  font: 0.68rem/1.2 var(--font-mono);
  backdrop-filter: blur(10px);
}

.image-dialog[data-slot="dialog-content"] {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: 12px;
  border-color: #2a4043;
  border-radius: 16px;
  background: #03090a;
}

.image-dialog > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(94vh - 78px);
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
}

.image-dialog button[data-slot="dialog-close"] {
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(3, 9, 10, 0.82);
  color: #fff;
  opacity: 1;
}

.image-dialog-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 13px 4px 2px;
  color: #a7b5b0;
  font-size: 0.86rem;
  text-align: center;
}

.image-dialog-caption > span {
  flex: 0 0 auto;
  color: var(--primary);
  font: 0.7rem/1.3 var(--font-mono);
}

.image-dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(3, 9, 10, 0.82);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.image-dialog-nav:hover {
  border-color: var(--primary);
  background: rgba(9, 25, 23, 0.94);
  color: var(--primary);
}

.image-dialog-nav[hidden],
.image-dialog-caption > span[hidden] {
  display: none;
}

.image-dialog-prev {
  left: 24px;
}

.image-dialog-next {
  right: 24px;
}

.case-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 62%, rgba(13, 25, 27, 0.68));
  pointer-events: none;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.75) contrast(1.07) brightness(0.78);
}

.image-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(4, 12, 13, 0.75);
  color: #c7d2ce;
  font: 0.72rem/1.2 var(--font-mono);
  backdrop-filter: blur(10px);
}

.image-label .live-dot {
  width: 6px;
  height: 6px;
  margin-right: 9px;
  box-shadow: 0 0 10px var(--primary);
}

.case-copy {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 5vw, 66px) clamp(30px, 4.5vw, 58px);
  background: var(--card);
}

.case-copy h3 {
  margin: 0 0 26px;
  font-size: clamp(1.8rem, 3.1vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.case-copy > p {
  color: #a7b4b0;
  line-height: 1.72;
}

.case-points {
  display: grid;
  gap: 13px;
  margin: 28px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.case-points li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 11px;
  color: #d3ded9;
  font-size: 0.92rem;
}

.case-points svg {
  margin-top: 3px;
  color: var(--primary);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin: 82px 0 26px;
}

.gallery-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.gallery-heading h3 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.gallery-heading > p:last-child {
  margin: 0 0 5px;
  color: #8f9e99;
  font-size: 0.86rem;
}

.gallery-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.gallery-card .image-trigger {
  aspect-ratio: 4 / 3;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.82);
}

.gallery-card figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: #ced9d5;
  font-size: 0.91rem;
}

.gallery-card figcaption span {
  flex: 0 0 auto;
  color: var(--primary);
  font: 0.68rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-carousel {
  position: relative;
  width: min(100%, 790px);
  margin: 0 auto 18px;
  padding-bottom: 56px;
}

.mini-carousel [data-slot="carousel-content"] {
  border-radius: 18px;
}

.mini-carousel-card .image-trigger {
  aspect-ratio: 16 / 9;
}

.mini-carousel-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-carousel-controls > span {
  min-width: 58px;
  color: #91a09b;
  font: 0.72rem/1 var(--font-mono);
  text-align: center;
}

.mini-carousel-controls [data-slot="carousel-previous"],
.mini-carousel-controls [data-slot="carousel-next"] {
  position: static;
  width: 38px;
  height: 38px;
  transform: none;
  border-color: #31484b;
  background: #0d191b;
  color: #dbe5e1;
}

.mini-carousel-controls [data-slot="carousel-previous"]:hover,
.mini-carousel-controls [data-slot="carousel-next"]:hover {
  border-color: var(--primary);
  background: rgba(97, 230, 189, 0.08);
  color: var(--primary);
}

.case-details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.architecture-card,
.outcome-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.architecture-card {
  overflow: hidden;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--border);
  color: #92a19c;
  font: 0.68rem/1.4 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-topline span:first-child {
  color: var(--primary);
}

.architecture-image-wrap {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(97, 230, 189, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 230, 189, 0.035) 1px, transparent 1px),
    #091315;
  background-size: 28px 28px;
}

.architecture-image-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 8px;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.architecture-trigger {
  height: auto;
}

.outcome-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 18px;
}

.outcome-card {
  position: relative;
  overflow: hidden;
  padding: 26px 30px;
}

.outcome-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(97, 230, 189, 0.08);
  border-radius: 50%;
}

.accent-card {
  border-color: rgba(97, 230, 189, 0.27);
  background: linear-gradient(145deg, rgba(97, 230, 189, 0.09), var(--card) 68%);
}

.outcome-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.outcome-card p {
  margin: 0;
  color: #95a49f;
  font-size: 0.89rem;
  line-height: 1.62;
}

.technical-walkthrough {
  margin-top: clamp(82px, 10vw, 128px);
  padding-top: clamp(62px, 7vw, 88px);
  border-top: 1px solid var(--border);
}

.technical-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 34px;
}

.technical-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.technical-heading h3 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.technical-heading > p:last-child {
  margin: 0 0 6px;
  color: #98a7a2;
  line-height: 1.7;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.system-card {
  min-height: 300px;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(97, 230, 189, 0.045), transparent 56%),
    var(--card);
}

.system-card > span,
.technical-summary > div > span {
  color: var(--primary);
  font: 700 0.69rem/1.4 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.system-card h4 {
  margin: 42px 0 20px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.system-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  color: #99a8a3;
  list-style: none;
}

.system-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.58;
}

.system-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--primary);
}

.technical-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.technical-summary > div {
  padding: 30px 34px;
  border: 1px solid rgba(97, 230, 189, 0.2);
  border-radius: 18px;
  background: rgba(97, 230, 189, 0.035);
}

.technical-summary strong {
  display: block;
  margin-top: 9px;
  font-size: 1.08rem;
}

.technical-summary p {
  margin: 12px 0 0;
  color: #92a19c;
  font-size: 0.9rem;
  line-height: 1.68;
}

.experience-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #091416;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 120px;
  margin: 0;
}

.sticky-heading h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
}

.sticky-heading > p:not(.eyebrow) {
  margin-top: 26px;
}

.timeline {
  border-top: 1px solid var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  padding-top: 6px;
  color: var(--primary);
  font: 700 0.78rem/1.3 var(--font-mono);
}

.timeline-company {
  margin: 0 0 8px;
  color: #92a09c;
  font: 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.timeline-content > p:not(.timeline-company) {
  margin: 0;
  color: #a6b3af;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.tag-row span {
  padding: 5px 10px;
  border: 1px solid #294044;
  border-radius: 999px;
  color: #b7c3bf;
  font: 0.7rem/1.3 var(--font-mono);
}

.skills-heading {
  margin-bottom: 52px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.skill-card {
  min-height: 370px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 60%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(97, 230, 189, 0.35);
  background: linear-gradient(155deg, rgba(97, 230, 189, 0.08), transparent 62%);
}

.skill-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--primary);
}

.skill-card h3 {
  margin: 72px 0 22px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.skill-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #9eada8;
  list-style: none;
}

.skill-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
}

.skill-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 1px;
  background: var(--primary);
}

.education-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 80px;
}

.education-main,
.education-list {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.education-main {
  padding: clamp(32px, 5vw, 58px);
  background: linear-gradient(135deg, rgba(110, 220, 255, 0.06), var(--card) 65%);
}

.education-main .eyebrow {
  margin-bottom: 34px;
}

.education-main h3 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.education-meta {
  margin: 16px 0 28px;
  color: var(--primary);
  font: 0.76rem/1.4 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.education-main > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: #9caaa6;
  line-height: 1.75;
}

.education-list {
  padding: 12px 34px;
}

.education-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 5px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.education-list > div:last-child {
  border-bottom: 0;
}

.education-list span {
  grid-row: 1 / span 2;
  padding-top: 3px;
  color: var(--primary);
  font: 0.72rem/1.4 var(--font-mono);
}

.education-list strong {
  font-size: 1rem;
}

.education-list p {
  margin: 0;
  color: #8f9e99;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ongoing-projects {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 30px 34px;
  border: 1px solid rgba(97, 230, 189, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(97, 230, 189, 0.08), transparent 42%),
    var(--card);
}

.ongoing-projects > span {
  padding-top: 4px;
  color: var(--primary);
  font: 0.72rem/1.4 var(--font-mono);
  text-transform: uppercase;
}

.ongoing-projects h3 {
  margin: 0 0 7px;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.ongoing-projects p {
  margin: 0;
  color: #93a29d;
  font-size: 0.9rem;
}

.personal-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #091416;
}

.personal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.personal-heading > p {
  margin: 0 0 6px;
  color: #9dacaa;
  font-size: 1.03rem;
  line-height: 1.75;
}

.project-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 70px;
}

.project-notes article {
  padding: 30px;
  border-top: 1px solid #314548;
}

.project-notes .eyebrow {
  margin-bottom: 28px;
}

.project-notes h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.project-notes > article > p:last-child {
  margin: 0;
  color: #91a09b;
  font-size: 0.9rem;
  line-height: 1.67;
}

.hobby-section {
  margin-top: 84px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.hobby-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.hobby-heading .eyebrow {
  margin: 0 0 8px;
}

.hobby-heading h3 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hobby-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(125deg, rgba(110, 220, 255, 0.055), transparent 48%),
    var(--card);
}

.hobby-card > span {
  padding-top: 4px;
  color: var(--primary);
  font: 0.7rem/1.4 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hobby-card strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.hobby-card p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #93a29d;
  font-size: 0.92rem;
  line-height: 1.68;
}

.contact-section {
  padding-block: 28px 0;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(56px, 8vw, 110px);
  overflow: hidden;
  padding: clamp(48px, 8vw, 92px);
  border: 1px solid rgba(97, 230, 189, 0.3);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(97, 230, 189, 0.12), transparent 38%),
    #0c191b;
}

.contact-copy,
.contact-links {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  max-width: 690px;
  font-size: clamp(2.8rem, 5.2vw, 5.1rem);
}

.contact-copy > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: #a7b5b0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-links {
  display: grid;
  align-content: center;
}

.contact-links > a,
.location-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid #263a3d;
  color: #dce5e1;
  text-decoration: none;
}

.location-row {
  grid-template-columns: 24px minmax(0, 1fr);
  border-bottom: 0;
}

.contact-links > a > svg:first-child,
.location-row > svg {
  color: var(--primary);
}

.contact-links > a > svg:last-child {
  color: #6e807a;
  transition: transform 180ms ease, color 180ms ease;
}

.contact-links > a:hover > svg:last-child {
  color: var(--primary);
  transform: translate(2px, -2px);
}

.contact-links span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.contact-links strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.contact-links small {
  display: block;
  margin-bottom: 3px;
  color: #71827c;
  font: 0.65rem/1.3 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer {
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #70807b;
  font: 0.72rem/1.4 var(--font-mono);
}

.footer-inner a {
  color: #aebbb7;
  text-decoration: none;
}

/* Framework-free carousel and lightbox */
.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  margin-left: -16px;
  transition: transform 260ms ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 0;
  flex: 0 0 100%;
  padding-left: 16px;
}

.mini-carousel-controls button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #31484b;
  border-radius: 50%;
  cursor: pointer;
}

.mini-carousel-controls button .icon {
  width: 17px;
  height: 17px;
}

.static-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 3vh 2vw;
  background: rgba(0, 5, 6, 0.88);
  backdrop-filter: blur(12px);
}

.static-lightbox[hidden] {
  display: none;
}

.static-lightbox .image-dialog[data-slot="dialog-content"] {
  position: relative;
  display: grid;
}

.static-lightbox-close {
  position: absolute;
  z-index: 6;
  padding: 0;
  cursor: pointer;
}

.static-lightbox-close .icon {
  width: 19px;
  height: 19px;
}

body.lightbox-open {
  overflow: hidden;
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #eef4f1;
  --foreground: #14231f;
  --card: #f9fcfb;
  --card-foreground: #14231f;
  --popover: #f9fcfb;
  --popover-foreground: #14231f;
  --primary: #087c62;
  --primary-foreground: #ffffff;
  --secondary: #dfe9e5;
  --secondary-foreground: #1e302a;
  --muted: #e1eae7;
  --muted-foreground: #52655e;
  --accent: #087c62;
  --accent-foreground: #ffffff;
  --border: #c8d6d1;
  --input: #c8d6d1;
  --ring: #087c62;
  --cyan: #167d9c;
}

html[data-theme="light"] .site-header {
  background: rgba(238, 244, 241, 0.86);
}

html[data-theme="light"] .main-nav a,
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .proof-item span,
html[data-theme="light"] .section-heading > p:not(.eyebrow),
html[data-theme="light"] .case-heading > p,
html[data-theme="light"] .skills-heading > p,
html[data-theme="light"] .case-copy > p,
html[data-theme="light"] .gallery-heading > p:last-child,
html[data-theme="light"] .outcome-card p,
html[data-theme="light"] .technical-heading > p:last-child,
html[data-theme="light"] .system-card ul,
html[data-theme="light"] .technical-summary p,
html[data-theme="light"] .timeline-content > p:not(.timeline-company),
html[data-theme="light"] .skill-card ul,
html[data-theme="light"] .education-main > p:last-child,
html[data-theme="light"] .education-list p,
html[data-theme="light"] .ongoing-projects p,
html[data-theme="light"] .personal-heading > p,
html[data-theme="light"] .project-notes > article > p:last-child,
html[data-theme="light"] .hobby-card p,
html[data-theme="light"] .contact-copy > p:last-child {
  color: #52655e;
}

html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .button-quiet,
html[data-theme="light"] .case-points li,
html[data-theme="light"] .gallery-card figcaption,
html[data-theme="light"] .contact-links > a,
html[data-theme="light"] .location-row {
  color: #21342e;
}

html[data-theme="light"] .proof-kicker,
html[data-theme="light"] .card-topline,
html[data-theme="light"] .timeline-company,
html[data-theme="light"] .mini-carousel-controls > span,
html[data-theme="light"] .footer-inner {
  color: #64766f;
}

html[data-theme="light"] .case-proof {
  background: rgba(249, 252, 251, 0.84);
}

html[data-theme="light"] .case-section {
  background: linear-gradient(to bottom, rgba(10, 39, 31, 0.025), transparent 28%);
}

html[data-theme="light"] .case-visual::after {
  background: linear-gradient(90deg, transparent 62%, rgba(249, 252, 251, 0.7));
}

html[data-theme="light"] .mini-carousel-controls [data-slot="carousel-previous"],
html[data-theme="light"] .mini-carousel-controls [data-slot="carousel-next"] {
  border-color: #b8c9c3;
  background: var(--card);
  color: #263a33;
}

html[data-theme="light"] .accent-card {
  background: linear-gradient(145deg, rgba(8, 124, 98, 0.09), var(--card) 68%);
}

html[data-theme="light"] .system-card {
  background:
    linear-gradient(145deg, rgba(8, 124, 98, 0.045), transparent 56%),
    var(--card);
}

html[data-theme="light"] .technical-summary > div,
html[data-theme="light"] .ongoing-projects {
  background:
    linear-gradient(105deg, rgba(8, 124, 98, 0.065), transparent 48%),
    var(--card);
}

html[data-theme="light"] .experience-section,
html[data-theme="light"] .personal-section {
  background: #e7efec;
}

html[data-theme="light"] .timeline-company,
html[data-theme="light"] .education-list span,
html[data-theme="light"] .ongoing-projects > span {
  color: var(--primary);
}

html[data-theme="light"] .tag-row span {
  border-color: #b9cbc5;
  color: #435750;
}

html[data-theme="light"] .skill-card {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .skill-card:hover {
  background: linear-gradient(155deg, rgba(8, 124, 98, 0.08), rgba(255, 255, 255, 0.55) 62%);
}

html[data-theme="light"] .project-notes article {
  border-top-color: #b5c8c1;
}

html[data-theme="light"] .hobby-card {
  background:
    linear-gradient(125deg, rgba(22, 125, 156, 0.07), transparent 48%),
    var(--card);
}

html[data-theme="light"] .contact-card {
  background:
    linear-gradient(120deg, rgba(8, 124, 98, 0.11), transparent 38%),
    #f8fbfa;
}

html[data-theme="light"] .contact-links > a,
html[data-theme="light"] .location-row {
  border-bottom-color: #c4d3ce;
}

html[data-theme="light"] .footer-inner a {
  color: #3d524b;
}

html[data-theme="light"] .button-quiet,
html[data-theme="light"] .language-switch,
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .language-switch button {
  color: #52655e;
}

html[data-theme="light"] .language-switch button[aria-pressed="true"] {
  color: var(--primary-foreground);
}

html[data-theme="light"] .theme-toggle {
  color: #29413a;
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

html[data-theme="light"] .portrait-card {
  color: #ffffff;
}

html[data-theme="light"] .portrait-card span {
  color: #61e6bd;
}

@media (max-width: 560px) {
  .image-dialog-prev {
    left: 16px;
  }

  .image-dialog-next {
    right: 16px;
  }

  .image-dialog-nav {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    gap: 16px;
  }

  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    min-height: 630px;
    grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
    gap: 48px;
  }

  .portrait-frame {
    height: 480px;
  }

  .case-showcase {
    grid-template-columns: 1fr;
  }

  .case-visual {
    min-height: 470px;
  }

  .case-visual::after {
    background: linear-gradient(to bottom, transparent 60%, var(--card));
  }

  .case-details,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .architecture-image-wrap {
    min-height: 420px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    min-height: 330px;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .main-nav {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 72px 64px;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
  }

  .portrait-wrap {
    justify-self: center;
    width: min(86vw, 420px);
  }

  .portrait-frame {
    height: 490px;
  }

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

  .proof-item {
    min-height: 86px;
    padding: 20px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .proof-item:first-child {
    padding-left: 24px;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
  }

  .gallery-heading > p:last-child {
    margin-top: -8px;
  }

  .case-heading,
  .skills-heading,
  .technical-heading,
  .personal-heading,
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-heading > p,
  .skills-heading > p,
  .technical-heading > p:last-child,
  .personal-heading > p {
    max-width: 600px;
  }

  .system-grid,
  .technical-summary,
  .project-notes {
    grid-template-columns: 1fr;
  }

  .project-notes {
    gap: 0;
  }

  .hobby-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sticky-heading {
    position: static;
    margin-bottom: 32px;
  }

  .timeline-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, var(--shell));
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .brand-copy {
    display: none;
  }

  .header-cta {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 16vw, 5rem);
  }

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

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .portrait-wrap {
    width: calc(100% - 10px);
  }

  .portrait-frame {
    height: 420px;
    border-radius: 16px;
  }

  .portrait-wrap::before {
    inset: 14px -8px -10px 14px;
    border-radius: 16px;
  }

  .portrait-card {
    right: -4px;
    bottom: 26px;
    width: 225px;
  }

  .section {
    padding-block: 82px;
  }

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

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .case-showcase {
    border-radius: 16px;
  }

  .case-visual {
    min-height: 360px;
  }

  .case-copy {
    padding: 32px 22px 38px;
  }

  .case-copy h3 {
    font-size: 1.85rem;
  }

  .gallery-heading {
    margin-top: 64px;
  }

  .mini-carousel-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .architecture-image-wrap {
    min-height: 310px;
    padding: 12px;
  }

  .outcome-card {
    padding: 26px 22px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 34px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .system-card h4 {
    margin-top: 32px;
  }

  .technical-summary > div,
  .project-notes article,
  .ongoing-projects,
  .hobby-card {
    padding-inline: 24px;
  }

  .ongoing-projects,
  .hobby-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-card {
    min-height: 300px;
  }

  .education-list {
    padding-inline: 22px;
  }

  .education-list > div {
    grid-template-columns: 1fr;
  }

  .education-list span {
    grid-row: auto;
  }

  .contact-card {
    width: calc(100% - 16px);
    padding: 38px 22px;
    border-radius: 18px;
  }

  .contact-links > a,
  .location-row {
    gap: 11px;
  }

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

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

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