@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --ink: #26344d;
  --ink-deep: #17233a;
  --muted: #617087;
  --accent: #d4125c;
  --accent-deep: #aa0b49;
  --accent-soft: #f9e8ef;
  --green: #7fbf36;
  --paper: #ffffff;
  --paper-soft: #f5f7fa;
  --line: #dfe4eb;
  --shadow: 0 20px 60px rgba(31, 46, 71, 0.12);
  --radius: 20px;
  --shell: min(1180px, calc(100% - 48px));
  --header-height: 86px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  scrollbar-color: var(--accent) var(--ink-deep);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

::view-transition-old(root) {
  animation: .32s var(--ease) both theme-fade-out;
}

::view-transition-new(root) {
  animation: .42s var(--ease) both theme-fade-in;
}

@keyframes theme-fade-out {
  to {
    opacity: 0;
    transform: scale(.992);
  }
}

@keyframes theme-fade-in {
  from {
    opacity: 0;
    transform: scale(1.008);
  }
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink-deep);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}

h3 {
  font-size: 1.35rem;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink-deep);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--ink-deep);
  border-radius: 999px;
  background: linear-gradient(var(--accent), #ff4f90);
}

.scroll-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #18d7f2, var(--green));
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-deep);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, .96);
  transition: height .3s var(--ease), border-color .3s, box-shadow .3s, background .3s;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(24, 35, 58, .09);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 255px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 35px);
}

.site-nav a {
  position: relative;
  color: var(--ink-deep);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform .25s var(--ease);
  transform-origin: right;
}

.site-nav a:is(:hover, :focus-visible, .is-active)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-cta {
  padding: 12px 17px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  transition: background .2s, color .2s, transform .2s;
}

.site-nav .nav-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.language-switcher {
  position: relative;
  color: var(--ink-deep);
  font-size: .76rem;
  font-weight: 800;
}

.language-switcher summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-soft);
  cursor: pointer;
  list-style: none;
  letter-spacing: .05em;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  margin-left: 2px;
  content: "▾";
  font-size: .6rem;
  transition: transform .2s;
}

.language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.language-switcher > div {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  min-width: 160px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-nav .language-switcher a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-size: .76rem;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.site-nav .language-switcher a::after {
  display: none;
}

.site-nav .language-switcher a:is(:hover, .is-current) {
  background: var(--accent-soft);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink-deep);
  transition: transform .25s, opacity .2s;
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  padding: calc(var(--header-height) + 90px) 0 150px;
  overflow: hidden;
  background: #310a28;
  color: #fff;
  isolation: isolate;
}

.hero::after,
.section-angle::after {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: -1px;
  left: -3%;
  height: 7vw;
  max-height: 100px;
  background: var(--paper);
  content: "";
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: url("../images/classic-hero.webp") center/cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 10, 34, .94) 0%, rgba(41, 9, 37, .84) 47%, rgba(69, 0, 45, .18) 100%),
    linear-gradient(180deg, rgba(17, 19, 35, .08), rgba(26, 5, 27, .4));
}

.hero-grid {
  display: grid;
  align-items: center;
  min-height: 620px;
}

.hero-copy {
  width: min(820px, 74%);
}

.eyebrow {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .74);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent);
}

.hero h1 {
  margin-bottom: 28px;
  color: #fff;
}

.hero h1 em {
  color: #ff4f90;
  font-style: normal;
}

.hero-lead {
  max-width: 730px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.06rem, 1.55vw, 1.28rem);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(212, 18, 92, .25);
}

.button-primary:hover {
  background: #ec1a6d;
}

.button-ghost {
  border-color: rgba(255, 255, 255, .52);
  color: #fff;
}

.button-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

.hero-proof {
  display: flex;
  gap: 0;
  margin: 66px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  min-width: 170px;
  padding-right: 27px;
}

.hero-proof li + li {
  padding-left: 27px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: #fff;
  font-size: .9rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
}

.section {
  position: relative;
  padding: clamp(100px, 12vw, 170px) 0;
}

.section-about {
  overflow: hidden;
}

.raspberry-watermark {
  position: absolute;
  top: 4%;
  right: -120px;
  width: 460px;
  height: 640px;
  opacity: .09;
  background: url("../images/raspberry-corner-color.webp") center/contain no-repeat;
  transform: rotate(-10deg);
}

.split-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 120px);
}

.section-intro h2 {
  position: relative;
  margin-bottom: 0;
}

.section-intro h2::after {
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 34px;
  background: var(--accent);
  content: "";
}

.prose {
  color: var(--muted);
  font-size: 1.03rem;
}

.prose .lead {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 550;
  line-height: 1.65;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.principles span,
.stack-line span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.section-expertise {
  overflow: hidden;
  background: var(--ink-deep);
  color: #fff;
}

.section-expertise::before {
  position: absolute;
  z-index: 0;
  right: -35px;
  bottom: 30px;
  width: 250px;
  height: 340px;
  background: url("../images/raspberry-corner-white.webp") center/contain no-repeat;
  content: "";
  opacity: .075;
  pointer-events: none;
  transform: rotate(-4deg);
}

.section-expertise .shell {
  position: relative;
  z-index: 1;
}

.section-expertise::after {
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-heading h2 {
  color: #fff;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 1.05rem;
}

.section-heading.dark h2 {
  color: var(--ink-deep);
}

.section-heading.dark > p:last-child {
  color: var(--muted);
}

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

.expertise-card {
  position: relative;
  min-height: 310px;
  padding: 42px 34px;
  border-right: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
  transition: background .3s, transform .3s;
}

.expertise-card::before {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform .35s var(--ease);
  transform-origin: left;
}

.expertise-card:hover {
  background: rgba(255, 255, 255, .045);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.card-index {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255, 255, 255, .32);
  font-family: ui-monospace, monospace;
  font-size: .72rem;
}

.card-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #ff4f90;
  font-size: 1.25rem;
}

.expertise-card h3 {
  margin-bottom: 15px;
  color: #fff;
}

.expertise-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .61);
  font-size: .91rem;
  line-height: 1.7;
}

.section-tech {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212, 18, 92, .025) 25%, transparent 25%) 0 0/28px 28px,
    var(--paper);
}

.section-tech::before {
  position: absolute;
  top: 80px;
  right: -60px;
  width: 290px;
  height: 410px;
  background: url("../images/raspberry-corner-color.webp") center/contain no-repeat;
  content: "";
  opacity: .07;
  pointer-events: none;
  transform: rotate(7deg);
}

.section-tech .shell {
  position: relative;
  z-index: 1;
}

.tech-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -18px 0 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tech-proof article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 25px 30px;
}

.tech-proof article + article {
  border-left: 1px solid var(--line);
}

.tech-proof strong {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
  white-space: nowrap;
}

.tech-proof span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.45;
}

.tech-hint {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.tech-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink-deep);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}

.tech-card::after {
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
  opacity: 0;
  transition: opacity .25s, transform .35s var(--ease);
}

.tech-card img {
  position: relative;
  z-index: 1;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  object-fit: contain;
  filter: grayscale(1) brightness(.46);
  opacity: .72;
  transition: filter .3s, opacity .3s, transform .3s var(--ease);
}

.tech-card span {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tech-card:is(:hover, :focus-visible, .is-active) {
  z-index: 2;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--paper);
  box-shadow: 0 14px 35px rgba(31, 46, 71, .14);
  transform: translateY(-4px);
}

.tech-card:is(:hover, :focus-visible, .is-active)::after {
  opacity: 1;
  transform: scale(1.8);
}

.tech-card:is(:hover, :focus-visible, .is-active) img {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

.tech-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 35px;
  min-height: 126px;
  align-items: center;
  padding: 26px 32px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-deep);
  box-shadow: var(--shadow);
  color: #fff;
}

.tech-detail > span {
  color: #ff5c98;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tech-detail h3 {
  margin-bottom: 6px;
  color: #fff;
}

.tech-detail p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .68);
  font-size: .88rem;
}

.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 38px;
}

.section-projects {
  overflow: hidden;
  padding-top: clamp(110px, 12vw, 170px);
  background: var(--paper-soft);
}

.section-projects::after {
  background: var(--paper);
}

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.slider-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 64px;
}

.slider-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink-deep);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.slider-controls button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: scale(1.06);
}

.slider-controls span {
  min-width: 48px;
  text-align: center;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: .78rem;
}

.project-slider {
  display: grid;
  grid-auto-columns: minmax(720px, 78%);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 24px;
  padding: 6px max(0px, calc((100vw - min(1180px, calc(100vw - 48px))) / 2)) 35px;
  margin-inline: calc(50% - 50vw);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.project-slider::-webkit-scrollbar {
  display: none;
}

.project-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.project-slider.is-dragging .project-card {
  pointer-events: none;
}

.project-card {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  height: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(36, 51, 77, .08);
  overflow: hidden;
  scroll-snap-align: center;
}

.project-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #081426;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.045);
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 70px);
}

.project-type,
.mini-label {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.project-copy p {
  color: var(--muted);
}

.project-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.project-copy li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 7px;
  border-radius: 6px;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
}

.project-copy li img {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  padding: 3px;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.project-copy li::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #07111f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
  color: #fff;
  content: attr(data-tooltip);
  font-size: .65rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
  transition: opacity .18s, transform .18s;
}

.project-copy li:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.section-method {
  background: var(--paper);
}

.section-method .section-heading h2 {
  color: var(--ink-deep);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 42px 40px 42px 0;
  border-bottom: 1px solid var(--line);
}

.method-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.method-list li:nth-child(even) {
  padding-left: 40px;
}

.method-list > li > span {
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: .75rem;
  font-weight: 800;
}

.method-list h3 {
  margin-bottom: 10px;
}

.method-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .91rem;
}

.contact-section {
  position: relative;
  padding: clamp(100px, 12vw, 160px) 0 clamp(140px, 14vw, 190px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .13), transparent 28%),
    linear-gradient(135deg, #b30b4c 0%, #d4125c 52%, #ee357b 100%);
  color: #fff;
}

.contact-section::after {
  background: var(--ink-deep);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(50px, 10vw, 140px);
}

.contact-copy h2 {
  margin-bottom: 25px;
  color: #fff;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .8);
  font-size: 1.08rem;
}

.button-light {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 15px 34px rgba(73, 0, 29, .2);
  text-transform: none;
}

.contact-card {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(62, 0, 29, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-card .mini-label {
  color: rgba(255, 255, 255, .65);
}

.contact-card h3 {
  color: #fff;
}

.contact-card dl {
  margin-bottom: 0;
}

.contact-card dl > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.contact-card dt {
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0;
  font-size: .9rem;
}

.site-footer {
  position: relative;
  padding: 110px 0 28px;
  overflow: hidden;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .64);
}

.footer-berry {
  position: absolute;
  z-index: 0;
  right: 12px;
  bottom: -8px;
  width: 300px;
  height: 390px;
  opacity: .4;
  background: url("../images/raspberry-corner-color.webp") center/contain no-repeat;
  transform: rotate(-10deg);
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 60px;
}

.footer-brand img {
  width: 240px;
  height: auto;
  margin-bottom: 27px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 340px;
}

.footer-brand a,
.site-footer a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 4px;
}

.footer-grid h2 {
  margin-bottom: 22px;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 9px;
  font-size: .84rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: #ff5c98;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 35px;
  margin-top: 75px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .74rem;
}

.footer-bottom p {
  margin: 0;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 13px;
}

.theme-switcher > span {
  color: rgba(255, 255, 255, .5);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.theme-switcher > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}

.theme-switcher button {
  min-width: 74px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .58);
  cursor: pointer;
  font-size: .67rem;
  font-weight: 750;
  text-align: center;
  transition: background .2s, color .2s, box-shadow .2s;
}

.theme-switcher button.is-active {
  background: var(--accent);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
  color: #fff;
}

.theme-switcher button:not(.is-active):hover {
  color: #fff;
}

.js .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Modern edition */
.theme-modern {
  --ink: #d9e7f3;
  --ink-deep: #f7fbff;
  --muted: #aac0d2;
  --accent: #18d7f2;
  --accent-deep: #00a9c6;
  --accent-soft: rgba(24, 215, 242, .14);
  --green: #9ee632;
  --paper: #13283b;
  --paper-soft: #1a354b;
  --line: rgba(181, 214, 238, .23);
  --shadow: 0 24px 70px rgba(2, 16, 29, .28);
  color-scheme: dark;
  background: var(--paper);
}

.theme-modern ::selection {
  background: var(--accent);
  color: #02131a;
}

.theme-modern .site-header {
  border-color: rgba(24, 215, 242, .16);
  background: linear-gradient(100deg, rgba(14, 44, 66, .98), rgba(17, 58, 83, .98));
  box-shadow: 0 8px 30px rgba(3, 20, 33, .22);
}

.theme-modern .site-header.is-scrolled {
  border-color: rgba(24, 215, 242, .2);
  background: rgba(9, 30, 47, .9);
  box-shadow: 0 12px 35px rgba(3, 20, 33, .3);
}

.theme-modern .brand img {
  filter: brightness(0) invert(1);
}

.theme-modern .site-nav a {
  color: #dceafb;
}

.theme-modern .language-switcher {
  color: #e7f5ff;
}

.theme-modern .language-switcher summary {
  border-color: rgba(24, 215, 242, .25);
  background: rgba(7, 17, 31, .35);
}

.theme-modern .language-switcher > div {
  border-color: rgba(24, 215, 242, .2);
  background: #13283b;
}

.theme-modern .site-nav .language-switcher a {
  color: #dceafb;
}

.theme-modern .site-header.is-scrolled .site-nav a {
  color: #e7f5ff;
}

.theme-modern .site-header.is-scrolled .site-nav .nav-cta {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-modern .site-header.is-scrolled .menu-toggle span:not(.sr-only) {
  background: #fff;
}

.theme-modern .menu-toggle span:not(.sr-only) {
  background: #fff;
}

.theme-modern .site-nav .nav-cta {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-modern .site-nav .nav-cta:hover {
  background: var(--accent);
  color: #02131a;
}

.theme-modern .hero {
  min-height: min(960px, 100svh);
  background: #17344a;
}

.theme-modern .hero-media {
  background-image: url("../images/modern-hero.webp");
  background-position: center right;
}

.theme-modern .hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 36, 54, .94) 0%, rgba(16, 42, 61, .84) 37%, rgba(12, 34, 51, .2) 73%, rgba(5, 23, 37, .03)),
    linear-gradient(180deg, rgba(20, 55, 76, .08) 55%, #13283b);
}

.theme-modern .hero::before {
  position: absolute;
  z-index: 0;
  inset: var(--header-height) 0 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(24, 215, 242, .3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 215, 242, .3) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.theme-modern .hero::after,
.theme-modern .section-angle::after {
  height: 5vw;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.theme-modern .hero-copy {
  width: min(770px, 66%);
}

.theme-modern .hero h1 em {
  color: var(--accent);
  text-shadow: 0 0 35px rgba(24, 215, 242, .25);
}

.theme-modern .button-primary {
  background: var(--accent);
  color: #02131a;
  box-shadow: 0 0 30px rgba(24, 215, 242, .2);
}

.theme-modern .button-primary:hover {
  background: #72edff;
}

.theme-modern .raspberry-watermark {
  right: -65px;
  opacity: .14;
}

.theme-modern .section-tech::before {
  background-image: url("../images/raspberry-corner-white.webp");
  opacity: .065;
}

.theme-modern .section-expertise {
  background:
    radial-gradient(circle at 90% 20%, rgba(24, 215, 242, .13), transparent 30%),
    #1a354b;
}

.theme-modern .expertise-grid {
  gap: 14px;
  border: 0;
}

.theme-modern .expertise-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
}

.theme-modern .expertise-card::before {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.theme-modern .card-icon {
  border-radius: 10px;
  color: var(--accent);
  box-shadow: inset 0 0 20px rgba(24, 215, 242, .08);
}

.theme-modern .section-tech {
  background:
    radial-gradient(circle at 0 100%, rgba(24, 215, 242, .07), transparent 28%),
    var(--paper);
}

.theme-modern .tech-card {
  background: rgba(26, 53, 75, .88);
}

.theme-modern .tech-card img {
  filter: grayscale(1) brightness(2.6);
  opacity: .78;
}

.theme-modern .tech-card:is(:hover, :focus-visible, .is-active) img {
  filter: none;
  opacity: 1;
}

.theme-modern .tech-detail {
  border-color: rgba(24, 215, 242, .25);
  background: #0d2234;
}

.theme-modern .tech-card:is(:hover, :focus-visible) {
  border-color: var(--accent);
}

.theme-modern .tech-card::after {
  background: rgba(24, 215, 242, .09);
}

.theme-modern .principles span,
.theme-modern .stack-line span,
.theme-modern .project-copy li {
  background: #1a354b;
}

.theme-modern .section-projects {
  background: #1a354b;
}

.theme-modern .project-card {
  border-color: rgba(24, 215, 242, .28);
  background: #13283b;
}

.theme-modern .slider-controls button {
  background: #13283b;
  color: #fff;
}

.theme-modern .slider-controls button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #02131a;
}

.theme-modern .section-method {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(24, 215, 242, .03) 50%, transparent 50.1%),
    var(--paper);
}

.theme-modern .contact-section {
  background:
    radial-gradient(circle at 15% 40%, rgba(24, 215, 242, .22), transparent 30%),
    radial-gradient(circle at 85% 30%, rgba(158, 230, 50, .15), transparent 26%),
    #20506b;
}

.theme-modern .contact-section::before {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: radial-gradient(circle, #18d7f2 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
}

.theme-modern .button-light {
  background: var(--accent);
  color: #02131a;
}

.theme-modern .contact-card {
  border-color: rgba(24, 215, 242, .28);
  background: rgba(14, 47, 67, .62);
}

.theme-modern .site-footer {
  background: #0d2234;
}

.theme-modern .footer-brand img {
  filter: brightness(0) invert(1);
}

.theme-modern .footer-grid a:hover {
  color: var(--accent);
}

.error-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 28%, rgba(255, 255, 255, .82) 58%, rgba(255, 255, 255, .4)),
    url("../images/404-workspace.webp") center/cover no-repeat;
}

.error-page main {
  width: var(--shell);
  min-height: 100svh;
  padding: 38px 0 70px;
  margin-inline: auto;
}

.error-brand {
  display: block;
  width: 260px;
}

.error-page section {
  width: min(650px, 100%);
  padding-top: clamp(80px, 13vh, 150px);
}

.error-code {
  margin-bottom: -35px;
  color: var(--accent-soft);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .7;
}

.error-page h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.error-page section > p:not(.eyebrow, .error-code) {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.05rem;
}

.error-contact {
  border-color: var(--line);
  background: rgba(255, 255, 255, .8);
  color: var(--ink-deep);
}

.error-languages {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.error-languages a {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .tech-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .tech-card {
    min-height: 90px;
  }

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

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

  .footer-grid > div:last-child {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 74px;
    --shell: min(100% - 36px, 720px);
  }

  .brand {
    width: 220px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 42px var(--shell);
    background: var(--paper);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav a {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 24px;
    text-align: center;
  }

  .site-nav .language-switcher {
    margin-top: 18px;
  }

  .site-nav .language-switcher summary {
    justify-content: center;
  }

  .site-nav .language-switcher > div {
    position: static;
    margin-top: 7px;
  }

  .site-nav .language-switcher a {
    border-bottom: 0;
  }

  .theme-modern .site-nav {
    background: #13283b;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
  }

  .hero-grid {
    min-height: 660px;
  }

  .hero-copy,
  .theme-modern .hero-copy {
    width: 100%;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(27, 10, 34, .94), rgba(41, 9, 37, .67));
  }

  .theme-modern .hero-media {
    background-position: 65% center;
  }

  .theme-modern .hero-overlay {
    background: linear-gradient(90deg, rgba(15, 36, 54, .94), rgba(16, 42, 61, .68));
  }

  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    max-width: 650px;
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .tech-proof article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .projects-head {
    align-items: flex-start;
  }

  .project-slider {
    grid-auto-columns: min(680px, calc(100vw - 54px));
  }

  .project-card {
    height: 470px;
  }

  .project-copy {
    padding: 34px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .footer-grid > div:nth-last-child(-n+2) {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

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

  .hero {
    padding-bottom: 115px;
  }

  .hero-grid {
    min-height: 620px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 45px;
  }

  .hero-proof li {
    min-width: 0;
    padding-right: 10px;
  }

  .hero-proof li + li {
    padding-left: 10px;
  }

  .hero-proof strong {
    font-size: .7rem;
  }

  .hero-proof span {
    font-size: .65rem;
  }

  .section {
    padding: 90px 0;
  }

  .split-layout {
    gap: 42px;
  }

  .expertise-grid,
  .method-list {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: auto;
  }

  .tech-card {
    min-height: 82px;
    padding: 11px;
    gap: 9px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tech-card img {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .tech-detail {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 23px;
  }

  .projects-head {
    display: block;
  }

  .slider-controls {
    margin: -25px 0 38px;
  }

  .project-slider {
    grid-auto-columns: calc(100vw - 36px);
    gap: 14px;
  }

  .project-card {
    grid-template-columns: 1fr;
    height: 690px;
  }

  .project-image {
    min-height: 0;
    height: 300px;
    aspect-ratio: 4 / 3;
  }

  .project-copy {
    padding: 29px 24px 34px;
  }

  .method-list li,
  .method-list li:nth-child(even) {
    grid-template-columns: 42px 1fr;
    padding: 31px 0;
    border-right: 0;
  }

  .contact-card {
    padding: 28px 23px;
  }

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

  .footer-grid > div:nth-child(2) {
    display: none;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }

  .theme-switcher {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 20px;
  }
}

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

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

  .hero-media {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
