/*
 * @Date: 2026-08-07
 * @Author: Ayal Othman / Codex
 * @Discription: Editorial tech portfolio design system for ayalothman.de
 */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/poppins-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/poppins-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/poppins-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/poppins-v20-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --orange: #f36e24;
  --orange-strong: #c94b08;
  --orange-soft: #fff0e7;
  --indigo: #4555a5;
  --indigo-strong: #303f8e;
  --indigo-soft: #eef0ff;
  --canvas: #f7f6f2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #ecebe6;
  --ink: #15151a;
  --ink-soft: #4f505b;
  --line: rgba(21, 21, 26, 0.14);
  --line-strong: rgba(21, 21, 26, 0.28);
  --focus: #4555a5;
  --success: #176b48;
  --danger: #a62b2b;
  --header-bg: rgba(247, 246, 242, 0.88);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 30px rgba(32, 31, 40, 0.08);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 28px 80px rgba(32, 31, 40, 0.13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: min(1180px, calc(100% - 40px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section: clamp(80px, 11vw, 152px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --orange-strong: #ff9a61;
  --orange-soft: #2c1b13;
  --indigo-strong: #aeb8ff;
  --indigo-soft: #1c2141;
  --canvas: #0c0d12;
  --surface: #14151d;
  --surface-raised: #191b25;
  --surface-muted: #20222c;
  --ink: #f5f3ed;
  --ink-soft: #b4b5c0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --focus: #f36e24;
  --success: #6ed1a2;
  --danger: #ff9b9b;
  --header-bg: rgba(12, 13, 18, 0.86);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 36px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 32px 88px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.site-body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.site-body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

button,
select {
  cursor: pointer;
}

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

::selection {
  background: var(--orange);
  color: #15151a;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

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

.narrow {
  width: min(780px, 100%);
}

.mt-56 {
  margin-top: 56px;
}

.section {
  position: relative;
  padding-block: var(--section);
}

.section--compact {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--surface {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section--indigo {
  background: var(--indigo);
  color: #fff;
}

.stack > * {
  margin-block: 0;
}

.stack > * + * {
  margin-top: var(--stack-space, 24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--indigo-strong);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.section--indigo .eyebrow {
  color: #fff;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 1100px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 8.4vw, 7.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h2 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.16rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.lede {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.65;
}

.section--indigo .lede,
.section--indigo p {
  color: rgba(255, 255, 255, 0.82);
}

.accent-text {
  color: var(--orange);
}

.gradient-text {
  color: var(--ink);
  background: linear-gradient(110deg, var(--indigo-strong) 10%, var(--orange) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

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

.button--primary {
  background: var(--orange);
  color: #18120e;
  box-shadow: 0 12px 30px rgba(243, 110, 36, 0.22);
}

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

.button--secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo-strong);
}

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

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.nav-shell {
  display: grid;
  width: var(--container);
  min-height: 78px;
  margin-inline: auto;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0 48%, var(--indigo) 48% 100%);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: -0.04em;
  place-items: center;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  justify-self: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  place-items: center;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.menu-toggle:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.icon-button svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

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

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

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 78px);
  align-items: center;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 132px);
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(70px);
}

.hero::before {
  top: -18vw;
  right: -8vw;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--indigo) 28%, transparent);
  animation: hero-drift-a 16s ease-in-out infinite alternate;
}

.hero::after {
  bottom: -26vw;
  left: -16vw;
  width: min(52vw, 680px);
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--orange) 24%, transparent);
  animation: hero-drift-b 19s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.58fr);
  align-items: end;
  gap: clamp(38px, 7vw, 108px);
}

.hero-copy h1 {
  animation: hero-enter 1s var(--ease) both;
}

.hero-copy .lede,
.hero-copy .button-row {
  animation: hero-enter 1s 120ms var(--ease) both;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-lg);
  animation: hero-panel-enter 1.1s 180ms var(--ease) both;
  backdrop-filter: blur(16px);
}

.hero-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--indigo));
  content: "";
}

.hero-panel-label {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.signal-list span:last-child {
  color: var(--indigo-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 16%, transparent);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(92px, 13vw, 172px) clamp(72px, 10vw, 132px);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  top: -30%;
  right: -16%;
  width: 60vw;
  max-width: 740px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--indigo) 24%, transparent), transparent 65%);
  content: "";
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(42px, 8vw, 118px);
}

.card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, color-mix(in srgb, var(--surface-raised) 96%, var(--indigo) 4%), var(--surface-raised));
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--indigo) 55%, var(--line));
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.card-number,
.meta-label {
  margin-bottom: 36px;
  color: var(--orange-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  color: var(--ink-soft);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--indigo-strong);
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: "→";
  transition: transform 180ms var(--ease);
}

.card-link:hover::after {
  transform: translateX(6px);
}

.service-card {
  min-height: 340px;
}

.service-card:nth-child(even) {
  margin-top: 34px;
}

.process-list {
  display: grid;
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.process-list .step {
  color: var(--orange-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.process-list p {
  margin: 0;
  color: var(--ink-soft);
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: #fff;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(6, 7, 11, 0.9));
  content: "";
}

.project-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.045);
}

.project-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 28px;
}

.project-card-content p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.project-grid .project-card:nth-child(3n + 2) {
  transform: translateY(42px);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.tag-list li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.feature-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
}

.feature-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.callout {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 86px);
  border-radius: var(--radius-lg);
  background: var(--indigo);
  color: #fff;
}

.callout::after {
  position: absolute;
  right: -12%;
  bottom: -70%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  content: "";
  opacity: 0.38;
  filter: blur(60px);
}

.callout > * {
  position: relative;
  z-index: 1;
}

.callout h2 {
  max-width: 760px;
}

.callout p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-intro {
  max-width: 760px;
  margin-bottom: clamp(56px, 9vw, 104px);
}

.faq-groups {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}

.faq-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  column-gap: clamp(32px, 8vw, 120px);
  align-items: start;
}

.faq-group > .eyebrow,
.faq-group > h2 {
  grid-column: 1;
}

.faq-group > .eyebrow {
  margin-bottom: 12px;
}

.faq-group > .faq-list {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 26px 56px 26px 0;
  font-size: clamp(1.03rem, 1.6vw, 1.25rem);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 18px;
  height: 2px;
  background: var(--orange);
  content: "";
  transition: transform 200ms var(--ease);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0);
}

.faq-answer {
  max-width: 800px;
  padding: 0 56px 26px 0;
  color: var(--ink-soft);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .faq-group {
    grid-template-columns: 1fr;
  }

  .faq-group > .faq-list {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
  }
}

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

.field {
  display: grid;
  gap: 9px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: 0.84rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--focus);
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 16%, transparent);
}

.checkbox-field {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--indigo);
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: color-mix(in srgb, var(--success) 13%, transparent);
  color: var(--success);
}

.form-status.is-error {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.contact-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.contact-aside {
  position: sticky;
  top: 112px;
}

.contact-aside a {
  color: var(--indigo-strong);
  font-weight: 600;
}

.project-hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  align-items: end;
  overflow: hidden;
  padding-block: 120px 64px;
  background: #090a0e;
  color: #fff;
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.project-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.14), rgba(7, 8, 12, 0.9));
  content: "";
}

.project-hero .container {
  position: relative;
  z-index: 1;
}

.project-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
}

.project-hero .eyebrow {
  color: #fff;
}

.project-intro {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(36px, 8vw, 112px);
}

.project-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-meta li {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.project-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.media-grid a,
.media-grid figure {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 360px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.media-grid a:nth-child(3n + 1) {
  grid-column: 1 / -1;
  min-height: 620px;
}

.media-grid img,
.media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.media-grid a:hover img {
  transform: scale(1.03);
}

.lightbox {
  width: min(1200px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #090a0e;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.lightbox::backdrop {
  background: rgba(3, 4, 7, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 32px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(9, 10, 14, 0.72);
  color: #fff;
  font-size: 1.4rem;
}

.site-footer {
  padding-block: 72px 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr 0.55fr;
  gap: 48px;
}

.footer-title {
  max-width: 570px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

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

.footer-nav li + li {
  margin-top: 10px;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--indigo-strong);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.powered-footer {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.powered-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.powered-footer img {
  width: 106px;
  height: 42px;
  object-fit: contain;
}

.powered-logo--dark,
html[data-theme="dark"] .powered-logo--light {
  display: none;
}

html[data-theme="dark"] .powered-logo--dark {
  display: block;
}

.breadcrumbs {
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: inherit;
}

.article-content {
  width: min(780px, 100%);
  margin-inline: auto;
}

.article-content h2 {
  margin-top: 72px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.article-content h3 {
  margin-top: 42px;
}

.article-content p,
.article-content li {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.article-content a {
  color: var(--indigo-strong);
}

.legal-note {
  padding: 16px 18px;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
}

.legacy-page .powered-footer {
  position: relative;
  z-index: 4;
  font-family: "Poppins", sans-serif;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-panel-enter {
  from {
    opacity: 0;
    transform: translateY(34px) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes hero-drift-a {
  to {
    transform: translate(-10vw, 11vh) scale(1.08);
  }
}

@keyframes hero-drift-b {
  to {
    transform: translate(12vw, -8vh) scale(0.92);
  }
}

@media (max-width: 1020px) {
  .site-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 26px 20px 34px;
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    width: min(100%, 620px);
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

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

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-actions {
    grid-column: 2;
  }

  .hero-grid,
  .split,
  .project-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 620px;
  }

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

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

  .process-list li {
    grid-template-columns: 64px 0.75fr 1.25fr;
  }

  .contact-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1180px);
    --section: 76px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

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

  .brand-copy small {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .form-grid,
  .footer-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(even),
  .project-grid .project-card:nth-child(3n + 2) {
    margin-top: 0;
    transform: none;
  }

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

  .process-list li {
    grid-template-columns: 46px 1fr;
  }

  .process-list li p {
    grid-column: 2;
  }

  .portrait-frame {
    min-height: 430px;
  }

  .media-grid a,
  .media-grid a:nth-child(3n + 1),
  .media-grid figure {
    grid-column: auto;
    min-height: 320px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .contact-card {
    padding: 24px 18px;
  }
}

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

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

@media (forced-colors: active) {
  .brand-mark,
  .button,
  .card {
    border: 1px solid CanvasText;
  }
}
