:root {
  color-scheme: light;
  --font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
  --bg: #f8f5f1;
  --bg-elevated: rgba(250, 247, 243, 0.88);
  --bg-strong: #ffffff;
  --bg-muted: #f2ede7;
  --line: rgba(35, 39, 44, 0.1);
  --line-strong: rgba(35, 39, 44, 0.16);
  --text: #1f252b;
  --text-soft: #58626d;
  --text-faint: #7b8691;
  --accent: #5d738a;
  --accent-strong: #43586e;
  --shadow-soft: 0 18px 48px rgba(28, 35, 42, 0.08);
  --shadow-card: 0 12px 30px rgba(28, 35, 42, 0.06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 4.25rem;
  --container: 72rem;
}

:root.dark {
  color-scheme: dark;
  --bg: #121619;
  --bg-elevated: rgba(19, 24, 28, 0.84);
  --bg-strong: #171d22;
  --bg-muted: #1d252b;
  --line: rgba(230, 236, 240, 0.08);
  --line-strong: rgba(230, 236, 240, 0.14);
  --text: #eef2f5;
  --text-soft: #b4c0ca;
  --text-faint: #8895a1;
  --accent: #8ca3b8;
  --accent-strong: #a8bbcb;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top, rgba(93, 115, 138, 0.08), transparent 38%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--bg-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 245, 241, 0.72);
  border-bottom: 1px solid transparent;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

:root.dark .site-header {
  background: rgba(18, 22, 25, 0.62);
}

.site-header.is-scrolled {
  background: var(--bg-elevated);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(20, 26, 31, 0.05);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.brand-short {
  display: none;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.95rem;
}

.desktop-nav a,
.mobile-nav a,
.text-link,
.footer-links a {
  color: var(--text-soft);
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--text);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-toggle,
.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

:root.dark .language-toggle,
:root.dark .theme-toggle,
:root.dark .menu-toggle {
  background: rgba(255, 255, 255, 0.02);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem;
  border-radius: 999px;
}

.toggle-chip,
.theme-toggle,
.menu-toggle {
  border-radius: 999px;
  color: var(--text-soft);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.toggle-chip {
  padding: 0.38rem 0.68rem;
  min-width: 2.65rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.toggle-chip.is-active {
  background: var(--text);
  color: var(--bg);
}

.theme-toggle,
.menu-toggle {
  padding: 0.62rem 0.9rem;
  cursor: pointer;
}

.theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-toggle-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
}

.theme-toggle:hover,
.menu-toggle:hover,
.toggle-chip:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  padding: 0 1rem 1rem;
}

.mobile-nav {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-strong);
  box-shadow: var(--shadow-card);
}

.mobile-nav a {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: var(--bg-muted);
}

.hero {
  padding-top: calc(var(--header-height) + clamp(5rem, 12vw, 8rem));
}

.hero-inner {
  display: grid;
  max-width: 44rem;
  gap: 0;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero .eyebrow {
  margin-bottom: 0.95rem;
}

h1,
h2,
h3,
p,
ul,
dl {
  margin: 0;
}

dt,
dd {
  margin: 0;
}

h1,
h2 {
  max-width: 15ch;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  font-weight: 650;
  max-width: 11.5ch;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 620;
}

.hero-copy,
.section-copy,
.featured-summary,
.case-study-note {
  max-width: 42rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-copy {
  margin-top: 1.35rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-copy-wide {
  max-width: 46rem;
}

.hero-actions,
.button-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-actions {
  margin-top: 1.75rem;
}

.hero .stack-line {
  margin-top: 1rem;
}

[data-case-study-slot] {
  display: contents;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button {
  padding: 0.72rem 1.18rem;
  border: 1px solid var(--line);
  font-weight: 560;
}

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

.button-primary {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-card);
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

:root.dark .button-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.text-link {
  min-height: auto;
  padding: 0.2rem 0;
  font-weight: 560;
}

.stack-line {
  color: var(--text-faint);
  font-size: 0.97rem;
}

.section-heading,
.section-block {
  display: grid;
  gap: 1rem;
}

.section-heading-compact h2 {
  max-width: none;
}

.featured-grid {
  margin-top: 2.3rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "copy preview"
    "meta preview";
  align-items: start;
}

.featured-copy {
  grid-area: copy;
  display: grid;
  gap: 1rem;
}

.featured-summary {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 520;
}

.featured-meta {
  grid-area: meta;
  display: grid;
  gap: 1.4rem;
}

.feature-list,
.training-list {
  padding: 0;
  list-style: none;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--accent);
}

.project-preview-link {
  grid-area: preview;
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
}

.project-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    var(--bg-strong);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

:root.dark .project-preview {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-strong);
}

.project-preview-link:hover .project-preview {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 48px rgba(28, 35, 42, 0.14);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

:root.dark .preview-toolbar {
  background: rgba(255, 255, 255, 0.02);
}

.preview-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(93, 115, 138, 0.22);
}

.preview-title {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 560;
}

.preview-body {
  position: relative;
  min-height: 29rem;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(93, 115, 138, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.22);
}

.preview-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--bg-strong);
  box-shadow: 0 14px 34px rgba(28, 35, 42, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

:root.dark .preview-media {
  background: rgba(255, 255, 255, 0.03);
}

.preview-media-main {
  width: calc(100% - 5.5rem);
}

.preview-media-alt {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  width: 38%;
  min-width: 12rem;
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-preview-link:hover .preview-media-main {
  transform: translateY(-2px);
}

.project-preview-link:hover .preview-media-alt {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(28, 35, 42, 0.14);
}

.preview-overlay {
  position: absolute;
  inset: auto auto 1rem 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 37, 43, 0.9);
  color: #f6f3ee;
  font-size: 0.9rem;
  font-weight: 560;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.is-link-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.58;
}

.project-preview-link:hover .preview-overlay,
.project-preview-link:focus-visible .preview-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-card);
}

:root.dark .info-card {
  background: rgba(255, 255, 255, 0.02);
}

.info-card {
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.info-card h3 {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.info-card p,
.training-list li,
.stack-item-value,
.contact-list a,
.contact-list span {
  color: var(--text-soft);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.stack-card {
  position: relative;
  overflow: hidden;
  min-height: 6.4rem;
  padding: 1.05rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.54);
  box-shadow:
    0 14px 28px rgba(28, 35, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

:root.dark .stack-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.stack-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow:
    0 18px 34px rgba(28, 35, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stack-card-icon {
  width: 3.15rem;
  height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.stack-card-title {
  font-size: 1.08rem;
  font-weight: 610;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.training-list {
  display: grid;
  gap: 0.95rem;
}

.training-list li {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.training-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-link {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid rgba(31, 37, 43, 0.1);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(28, 35, 42, 0.08);
  color: var(--text-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

:root.dark .contact-link {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-card);
}

.contact-link:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(28, 35, 42, 0.1);
  color: var(--text);
}

.contact-link-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer {
  padding: 0.8rem 0 0.68rem;
  border-top: 1px solid var(--line);
  background: #dedad5;
}

:root.dark .site-footer {
  background: #171d22;
}

.footer-shell {
  display: grid;
  gap: 0.5rem;
}

.footer-shell > p {
  display: none;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-identity {
  display: grid;
  gap: 0.08rem;
}

.footer-name {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.footer-role {
  color: rgba(31, 37, 43, 0.72);
  font-size: 0.86rem;
}

:root.dark .footer-role {
  color: var(--text-soft);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.footer-meta p {
  color: rgba(31, 37, 43, 0.56);
  font-size: 0.82rem;
}

:root.dark .footer-meta p {
  color: var(--text-faint);
}

.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 64rem) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 56rem) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu[data-open="true"] {
    display: block;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "preview"
      "meta";
  }

  .preview-body {
    min-height: 24rem;
  }

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

  .footer-contact {
    justify-content: flex-start;
  }
}

@media (max-width: 42rem) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .header-controls {
    margin-left: auto;
    gap: 0.55rem;
  }

  .theme-toggle,
  .menu-toggle {
    padding-inline: 0.8rem;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .text-link {
    width: fit-content;
  }

  .preview-body {
    min-height: auto;
    display: grid;
    gap: 0.9rem;
  }

  .preview-media-main {
    width: 100%;
  }

  .preview-media-alt {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(72%, 18rem);
    margin-left: auto;
  }

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

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

  .stack-card {
    min-height: 6rem;
  }

  .site-footer {
    padding-bottom: 0.68rem;
  }
}
