:root {
  color-scheme: dark;
  --landing-bg: #0a0a0a;
  --landing-surface: #121212;
  --landing-soft: #181818;
  --landing-text: #f5f5f3;
  --landing-muted: #909090;
  --landing-stroke: #252525;
  --landing-stroke-strong: #3c3c3c;
  --landing-inverse: #090909;
  --landing-glass: rgba(12, 12, 12, 0.76);
  --landing-veil-top: rgba(5, 5, 5, 0.35);
  --landing-veil-mid: rgba(5, 5, 5, 0.48);
  --landing-veil-bottom: #0a0a0a;
  --landing-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --landing-accent-a: #89aacc;
  --landing-accent-b: #4e85bf;
  --landing-accent: linear-gradient(100deg, var(--landing-accent-a), var(--landing-accent-b));
  --landing-body-font: Inter, Arial, sans-serif;
  --landing-display-font: "Instrument Serif", Georgia, serif;
  --landing-max: 1440px;
}

body[data-theme="light"] {
  color-scheme: light;
  --landing-bg: #f7f9fb;
  --landing-surface: #ffffff;
  --landing-soft: #eef3f7;
  --landing-text: #121923;
  --landing-muted: #5d6876;
  --landing-stroke: #dce4ec;
  --landing-stroke-strong: #b8c6d4;
  --landing-inverse: #ffffff;
  --landing-glass: rgba(255, 255, 255, 0.88);
  --landing-veil-top: rgba(245, 249, 252, 0.56);
  --landing-veil-mid: rgba(245, 249, 252, 0.68);
  --landing-veil-bottom: #f7f9fb;
  --landing-shadow: 0 28px 80px rgba(55, 86, 120, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--landing-bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: var(--landing-body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease, color .45s ease;
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.portfolio-shell { width: min(calc(100% - 72px), var(--landing-max)); margin-inline: auto; }
.portfolio-section { position: relative; padding: clamp(96px, 10vw, 168px) 0; }
.portfolio-kicker {
  margin: 0 0 24px;
  color: var(--landing-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.portfolio-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  background: var(--landing-bg);
  color: var(--landing-text);
  transition: opacity .7s ease, visibility .7s ease;
}
.portfolio-loader.finished { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { display: grid; justify-items: center; gap: 18px; margin-bottom: 58px; }
.loader-logo svg {
  width: 62px; height: 62px; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round;
}
.loader-logo svg circle { fill: currentColor; stroke: none; }
.loader-logo span { color: var(--landing-muted); font-size: 11px; letter-spacing: .32em; }
.loader-logo b { color: var(--landing-text); }
.loader-readout { display: flex; justify-content: space-between; width: 280px; margin-bottom: 10px; }
.loader-readout span { color: var(--landing-muted); font-size: 9px; font-weight: 700; letter-spacing: .26em; }
.loader-readout b { font: 500 12px/1 monospace; }
.loader-track { width: 280px; height: 2px; overflow: hidden; background: var(--landing-stroke); }
.loader-track i { display: block; width: 0; height: 100%; background: var(--landing-accent); transition: width .08s linear; }

.portfolio-nav {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 68px);
  width: min(calc(100% - 56px), 1120px);
  min-height: 62px;
  padding: 9px 10px 9px 18px;
  border: 1px solid var(--landing-stroke);
  border-radius: 999px;
  background: var(--landing-glass);
  box-shadow: var(--landing-shadow);
  backdrop-filter: blur(22px) saturate(130%);
  transform: translateX(-50%);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.portfolio-brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.portfolio-brand b { font-weight: 700; }
.brand-crown, .contact-crown {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--landing-surface);
  color: var(--landing-text);
}
.brand-crown::before, .contact-crown::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: var(--landing-accent);
  opacity: .92;
}
.brand-crown svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-crown svg circle, .contact-crown svg circle { fill: currentColor; stroke: none; }
.portfolio-nav nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 38px); margin-left: auto; }
.portfolio-nav nav a { position: relative; color: var(--landing-muted); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; transition: color .2s ease; }
.portfolio-nav nav a::after { content: ""; position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; background: var(--landing-accent); transform: scaleX(0); transition: transform .25s ease; }
.portfolio-nav nav a:hover { color: var(--landing-text); }
.portfolio-nav nav a:hover::after { transform: scaleX(1); }
.portfolio-nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-switcher { display: flex; padding: 3px; border: 1px solid var(--landing-stroke); border-radius: 999px; background: var(--landing-soft); }
.theme-switcher button { min-width: 66px; padding: 7px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--landing-muted); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.theme-switcher button[aria-pressed="true"] { background: var(--landing-text); color: var(--landing-inverse); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.language-button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--landing-muted); font-size: 9px; font-weight: 800; cursor: pointer; }
.language-button:hover { color: var(--landing-text); }
.signin-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 19px; border: 1px solid var(--landing-text); border-radius: 999px; background: var(--landing-text); color: var(--landing-inverse); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: transform .2s ease, opacity .2s ease; }
.signin-button:hover { transform: translateY(-1px); opacity: .86; }
.signin-button span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--landing-inverse); color: var(--landing-text); }
.mobile-menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--landing-stroke); border-radius: 50%; background: var(--landing-soft); cursor: pointer; }
.mobile-menu-button span { display: block; width: 16px; height: 1px; margin: 4px auto; background: var(--landing-text); }

.portfolio-hero { position: relative; display: flex; min-height: 100svh; align-items: flex-end; overflow: hidden; padding: 150px 0 clamp(86px, 9vw, 138px); }
.hero-media, .hero-media img, .hero-media video, .hero-veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img, .hero-media video { object-fit: cover; object-position: center; filter: brightness(.54) saturate(.88) contrast(1.06); transform: scale(1.025); animation: heroDrift 14s ease-out both; }
body[data-theme="light"] .hero-media img, body[data-theme="light"] .hero-media video { filter: brightness(.93) saturate(.62) contrast(.86); }
.hero-veil { background: linear-gradient(180deg, var(--landing-veil-top) 0%, var(--landing-veil-mid) 48%, var(--landing-veil-bottom) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: end; gap: 48px; }
.hero-copy { max-width: 1050px; }
.hero-eyebrow { margin: 0 0 30px; color: var(--landing-text); font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; max-width: 1030px; font: 400 clamp(64px, 8.3vw, 140px)/.83 var(--landing-display-font); letter-spacing: -.052em; text-wrap: balance; }
.hero-copy h1 em { color: var(--landing-text); font-weight: 400; }
.hero-intro { max-width: 590px; margin: 34px 0 0; color: var(--landing-text); font-size: clamp(14px, 1.3vw, 18px); font-weight: 300; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.portfolio-button { display: inline-flex; align-items: center; justify-content: center; gap: 36px; min-height: 54px; padding: 0 24px; border: 1px solid var(--landing-stroke-strong); border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease; }
.portfolio-button span { font-size: 15px; }
.portfolio-button:hover { transform: translateY(-2px); }
.portfolio-button.primary { border-color: var(--landing-text); background: var(--landing-text); color: var(--landing-inverse); }
.portfolio-button.primary:hover { background: var(--landing-accent-b); border-color: var(--landing-accent-b); color: #fff; }
.portfolio-button.glass { background: color-mix(in srgb, var(--landing-surface) 45%, transparent); color: var(--landing-text); backdrop-filter: blur(18px); }
.portfolio-button.glass:hover { border-color: var(--landing-accent-a); background: var(--landing-surface); }
.hero-side-note { justify-self: end; padding: 22px; border-top: 1px solid var(--landing-stroke-strong); color: var(--landing-text); }
.hero-side-note span { color: var(--landing-muted); font: 500 10px/1 monospace; }
.hero-side-note p { margin: 22px 0 0; font: italic 400 25px/1.05 var(--landing-display-font); }
.scroll-cue { position: absolute; right: 32px; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 16px; color: var(--landing-muted); font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-cue i { display: block; width: 44px; height: 1px; overflow: hidden; background: var(--landing-stroke-strong); }
.scroll-cue i::after { content: ""; display: block; width: 18px; height: 1px; background: var(--landing-text); animation: scrollLine 1.8s ease-in-out infinite; }

.systems-section { background: var(--landing-bg); border-top: 1px solid var(--landing-stroke); }
.portfolio-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 460px); gap: 56px; align-items: end; margin-bottom: clamp(54px, 6vw, 88px); }
.portfolio-heading h2, .story-copy h2, .contact-panel h2 { margin: 0; font: 400 clamp(48px, 6vw, 92px)/.94 var(--landing-display-font); letter-spacing: -.04em; }
.portfolio-heading h2 em { font-weight: 400; }
.portfolio-heading > p { margin: 0 0 8px; color: var(--landing-muted); font-size: 15px; line-height: 1.75; }
.portfolio-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.portfolio-card { position: relative; grid-column: span 4; min-height: 500px; overflow: hidden; border: 1px solid var(--landing-stroke); border-radius: 4px; background: var(--landing-surface); box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .42s cubic-bezier(.2,.75,.2,1), border-color .3s ease, box-shadow .3s ease; }
.portfolio-card.card-wide { grid-column: span 8; }
.portfolio-card.card-tall { min-height: 680px; }
.portfolio-card:hover { z-index: 3; border-color: var(--landing-accent-a); box-shadow: var(--landing-shadow); transform: scale(1.012); }
.portfolio-card-media { position: absolute; inset: 0; overflow: hidden; }
.portfolio-card-media img, .portfolio-card-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--card-media-position, center); opacity: var(--card-media-opacity, 1); filter: blur(var(--card-media-blur, 0px)) saturate(.72) brightness(.6); transition: transform .8s cubic-bezier(.2,.75,.2,1), filter .4s ease, opacity .3s ease; }
body[data-theme="light"] .portfolio-card-media img, body[data-theme="light"] .portfolio-card-media video { filter: blur(var(--card-media-blur, 0px)) saturate(.6) brightness(.8); }
.portfolio-card:hover .portfolio-card-media img, .portfolio-card:hover .portfolio-card-media video { transform: scale(1.055); filter: blur(var(--card-media-blur, 0px)) saturate(.95) brightness(.64); }
body[data-theme="light"] .portfolio-card:hover .portfolio-card-media img, body[data-theme="light"] .portfolio-card:hover .portfolio-card-media video { filter: blur(var(--card-media-blur, 0px)) saturate(.75) brightness(.84); }
.portfolio-card-media::after { content: ""; position: absolute; inset: 0; opacity: var(--card-overlay-opacity, 1); background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(5,5,5,.88)); }
body[data-theme="light"] .portfolio-card-media::after { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(238,243,247,.94)); }
.portfolio-card-no-media { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(78,133,191,.22), transparent 40%), linear-gradient(145deg, var(--landing-surface), var(--landing-soft)); }
.portfolio-card-no-media::before { content: "Q"; position: absolute; right: 7%; bottom: -14%; color: color-mix(in srgb, var(--landing-text) 5%, transparent); font: italic 400 410px/1 var(--landing-display-font); }
.portfolio-card-content { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: inherit; padding: clamp(26px, 3vw, 42px); }
.portfolio-card-top { display: flex; justify-content: space-between; gap: 20px; color: var(--card-text-color, var(--landing-text)); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
body[data-theme="light"] .portfolio-card-top { color: var(--landing-text); }
.portfolio-card-number { font: 500 10px/1 monospace; }
.portfolio-card-copy { max-width: 660px; margin-top: auto; }
.portfolio-card h3 { max-width: 780px; margin: 0 0 18px; color: var(--card-text-color, var(--landing-text)); font: 400 clamp(34px, 4.2vw, 64px)/.98 var(--landing-display-font); letter-spacing: -.035em; }
.portfolio-card p { max-width: 560px; margin: 0; color: var(--card-text-color, color-mix(in srgb, var(--landing-text) 72%, var(--landing-muted))); font-size: 13px; line-height: 1.7; }
.portfolio-card-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 26px; color: var(--card-text-color, var(--landing-text)); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.portfolio-card-link span { transition: transform .2s ease; }
.portfolio-card:hover .portfolio-card-link span { transform: translate(3px, -3px); }
.portfolio-block-items { display: grid; gap: 8px; max-height: 230px; margin-top: 18px; overflow: auto; scrollbar-width: thin; }
.portfolio-block-items > span, .portfolio-block-items > a, .portfolio-block-items > div, .portfolio-block-items > details { min-width: 0; padding: 10px 11px; color: var(--card-text-color, var(--landing-text)); background: color-mix(in srgb, var(--landing-surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--card-text-color, var(--landing-text)) 18%, transparent); border-radius: 8px; text-decoration: none; }
.portfolio-block-items b, .portfolio-block-items small, .portfolio-block-items em { display: block; }
.portfolio-block-items b { font-size: 12px; }
.portfolio-block-items small { margin-top: 3px; color: color-mix(in srgb, var(--card-text-color, var(--landing-text)) 72%, transparent); font-size: 9px; line-height: 1.45; }
.portfolio-block-statistics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-block-statistics b { font-family: var(--landing-display-font); font-size: clamp(22px, 3vw, 38px); font-weight: 400; }
.portfolio-block-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-block-gallery > a, .portfolio-block-gallery > span { padding: 0; overflow: hidden; }
.portfolio-block-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-block-gallery small { padding: 7px 9px; }
.portfolio-block-timeline > div { display: grid; grid-template-columns: 28px 1fr; gap: 3px 9px; align-items: center; }
.portfolio-block-timeline i { grid-row: span 2; color: var(--landing-accent-b); font-size: 9px; font-style: normal; font-weight: 800; }
.portfolio-block-faq details { cursor: pointer; }
.portfolio-block-faq summary { font-size: 11px; font-weight: 750; }
.portfolio-block-faq p { margin: 8px 0 0; font-size: 10px; }
.portfolio-block-team, .portfolio-block-product { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portfolio-block-team img, .portfolio-block-product img, .portfolio-block-testimonial img { width: 38px; height: 38px; margin-bottom: 7px; object-fit: cover; border-radius: 50%; }
.portfolio-block-product img { border-radius: 6px; }
.portfolio-block-testimonial em { margin-bottom: 8px; font-family: var(--landing-display-font); font-size: 17px; line-height: 1.2; }
.portfolio-download-item::after { content: "↓"; float: right; color: var(--landing-accent-b); }
.portfolio-card.align-center .portfolio-card-copy { margin-inline: auto; text-align: center; }
.portfolio-card.align-center .portfolio-card-link { justify-content: center; }
.portfolio-card.align-right .portfolio-card-copy { margin-left: auto; text-align: right; }
.portfolio-card.align-right .portfolio-card-link { justify-content: flex-end; }
.portfolio-card.title-compact h3 { font-size: clamp(25px, 3vw, 44px); }
.portfolio-card.title-large h3 { font-size: clamp(42px, 5.4vw, 78px); }
.portfolio-card.title-font-body h3 { font-family: var(--landing-body-font); font-weight: 600; letter-spacing: -.045em; }
.portfolio-card.title-font-serif h3 { font-family: Georgia, "Times New Roman", serif; }
.portfolio-card.effect-none:hover { border-color: var(--landing-stroke); box-shadow: none; transform: none; }
.portfolio-card.effect-none:hover .portfolio-card-media img, .portfolio-card.effect-none:hover .portfolio-card-media video { transform: none; }
.portfolio-card.effect-lift:hover { transform: translateY(-10px); }
.portfolio-card.effect-glow:hover { box-shadow: 0 0 0 1px var(--landing-accent-b), 0 24px 90px color-mix(in srgb, var(--landing-accent-b) 34%, transparent); transform: none; }
.portfolio-empty { grid-column: 1 / -1; padding: 70px; border: 1px dashed var(--landing-stroke-strong); color: var(--landing-muted); text-align: center; }

.story-section { overflow: hidden; background: var(--landing-surface); border-block: 1px solid var(--landing-stroke); }
.story-section::before { content: "QUEEN"; position: absolute; top: -40px; left: 50%; color: color-mix(in srgb, var(--landing-text) 2.5%, transparent); font: italic 400 min(30vw, 430px)/.8 var(--landing-display-font); letter-spacing: -.05em; transform: translateX(-50%); pointer-events: none; }
.story-grid { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr); gap: clamp(64px, 9vw, 150px); align-items: center; }
.story-copy h2 { max-width: 660px; }
.story-copy > p:last-child { max-width: 640px; margin: 36px 0 0; color: var(--landing-muted); font-size: 15px; line-height: 1.85; }
.control-path { display: grid; grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr) 22px minmax(0,1fr); gap: 12px; padding: 20px; border: 1px solid var(--landing-stroke); border-radius: 5px; background: var(--landing-bg); box-shadow: var(--landing-shadow); }
.control-path > div { min-height: 142px; padding: 22px; border: 1px solid var(--landing-stroke); background: var(--landing-surface); }
.control-path > div.path-owner { border-color: var(--landing-accent-b); background: linear-gradient(145deg, color-mix(in srgb, var(--landing-accent-a) 12%, var(--landing-surface)), var(--landing-surface)); }
.control-path > div span { display: block; color: var(--landing-muted); font: 500 9px/1 monospace; }
.control-path > div b { display: block; margin-top: 32px; font: 400 21px/1.1 var(--landing-display-font); }
.control-path > div small { display: block; margin-top: 8px; color: var(--landing-muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.control-path > i { align-self: center; color: var(--landing-muted); font-style: normal; text-align: center; }
.control-path > p { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 14px 18px; border: 1px solid var(--landing-stroke); background: var(--landing-soft); color: var(--landing-muted); font-size: 10px; }
.control-path > p span { color: var(--landing-accent-b); font-size: 18px; }

.capabilities-section { background: var(--landing-bg); }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--landing-stroke); border-left: 1px solid var(--landing-stroke); }
.capability-grid article { position: relative; min-height: 430px; padding: 38px; border-right: 1px solid var(--landing-stroke); border-bottom: 1px solid var(--landing-stroke); background: var(--landing-bg); transition: background .3s ease, transform .3s ease; }
.capability-grid article:hover { z-index: 1; background: var(--landing-surface); transform: translateY(-8px); }
.capability-grid article > span { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--landing-stroke-strong); border-radius: 50%; color: var(--landing-text); font: 400 18px/1 var(--landing-display-font); }
.capability-grid article > small { display: block; margin-top: 64px; color: var(--landing-muted); font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.capability-grid h3 { margin: 15px 0 16px; font: 400 35px/1 var(--landing-display-font); }
.capability-grid p { margin: 0; color: var(--landing-muted); font-size: 12px; line-height: 1.75; }
.capability-grid a { position: absolute; right: 38px; bottom: 34px; left: 38px; padding-top: 16px; border-top: 1px solid var(--landing-stroke); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.portfolio-contact { padding-top: 40px; background: var(--landing-bg); }
.contact-panel { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 52px; align-items: center; min-height: 370px; padding: clamp(42px, 6vw, 82px); overflow: hidden; border: 1px solid var(--landing-stroke); background: var(--landing-surface); }
.contact-panel::after { content: ""; position: absolute; top: -200px; right: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(78,133,191,.18), transparent 65%); pointer-events: none; }
.contact-crown { width: 88px; height: 88px; }
.contact-crown svg { width: 47px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-panel h2 { max-width: 700px; font-size: clamp(46px, 5.2vw, 76px); }
.contact-panel h2 + p { margin: 18px 0 0; color: var(--landing-muted); }
.contact-panel > div:last-child { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.contact-panel > div:last-child > a:last-child { color: var(--landing-muted); font-size: 10px; }

.portfolio-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 160px; border-top: 1px solid var(--landing-stroke); color: var(--landing-muted); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.portfolio-footer .portfolio-brand { color: var(--landing-text); }
.portfolio-footer a:hover { color: var(--landing-text); }
.landing-toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; max-width: min(420px, calc(100% - 48px)); padding: 14px 18px; border: 1px solid var(--landing-stroke-strong); border-radius: 3px; background: var(--landing-surface); color: var(--landing-text); box-shadow: var(--landing-shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease; }
.landing-toast.visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; filter: blur(8px); transform: translateY(25px); }
body.ready .reveal { animation: revealIn .9s cubic-bezier(.2,.75,.2,1) forwards; }
body.ready .hero-copy h1 { animation-delay: .1s; }
body.ready .hero-intro { animation-delay: .25s; }
body.ready .hero-actions { animation-delay: .4s; }
body.ready .hero-side-note { animation-delay: .5s; }
.enter-view { opacity: 0; filter: blur(6px); transform: translateY(28px); transition: opacity .8s ease, filter .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.enter-view.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

html[dir="rtl"] .portfolio-nav, html[dir="rtl"] .portfolio-heading, html[dir="rtl"] .story-copy, html[dir="rtl"] .capability-grid, html[dir="rtl"] .contact-panel { direction: rtl; }
html[dir="rtl"] .portfolio-nav nav { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .portfolio-card-copy, html[dir="rtl"] .portfolio-heading, html[dir="rtl"] .story-copy { text-align: right; }

@keyframes revealIn { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1.025); } }
@keyframes scrollLine { 0% { transform: translateX(-20px); } 50% { transform: translateX(28px); } 100% { transform: translateX(55px); } }

@media (max-width: 1160px) {
  .portfolio-nav { gap: 24px; }
  .portfolio-nav nav { gap: 18px; }
  .portfolio-nav .portfolio-brand > span:last-child { display: none; }
  .theme-switcher button { min-width: 58px; padding-inline: 8px; }
  .story-grid { grid-template-columns: 1fr; }
  .control-path { max-width: 800px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { grid-template-columns: 88px minmax(0, 1fr); }
  .contact-panel > div:last-child { grid-column: 2; align-items: flex-start; }
}

@media (max-width: 820px) {
  .portfolio-shell { width: min(calc(100% - 36px), var(--landing-max)); }
  .portfolio-nav { top: 14px; width: calc(100% - 28px); min-height: 58px; padding-left: 12px; }
  .portfolio-nav nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid var(--landing-stroke); border-radius: 20px; background: var(--landing-surface); box-shadow: var(--landing-shadow); }
  .portfolio-nav.menu-open nav { display: flex; }
  .portfolio-nav nav a { padding: 10px; font-size: 11px; }
  .mobile-menu-button { display: block; }
  .language-button { display: none; }
  .theme-switcher button { min-width: auto; padding-inline: 9px; }
  .signin-button { padding-inline: 14px; }
  .signin-button b { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side-note { display: none; }
  .hero-copy h1 { font-size: clamp(56px, 15vw, 94px); }
  .portfolio-heading { grid-template-columns: 1fr; gap: 24px; }
  .portfolio-card, .portfolio-card.card-wide { grid-column: span 6; min-height: 470px; }
  .control-path { display: flex; flex-direction: column; }
  .control-path > i { transform: rotate(90deg); }
  .contact-panel { grid-template-columns: 1fr; gap: 30px; }
  .contact-panel > div:last-child { grid-column: 1; }
  .contact-crown { width: 70px; height: 70px; }
  .portfolio-footer { flex-wrap: wrap; padding: 38px 0; }
}

@media (max-width: 560px) {
  .portfolio-section { padding: 88px 0; }
  .portfolio-nav { gap: 8px; }
  .portfolio-nav-actions { margin-left: auto; }
  .theme-switcher button { font-size: 7px; }
  .theme-switcher button[data-theme-choice="original"] { width: 64px; }
  .signin-button { display: none; }
  .portfolio-hero { padding-bottom: 84px; }
  .hero-eyebrow { margin-bottom: 22px; font-size: 8px; }
  .hero-copy h1 { font-size: clamp(51px, 16.5vw, 77px); line-height: .88; }
  .hero-copy h1 br { display: none; }
  .hero-intro { margin-top: 26px; font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .portfolio-button { justify-content: space-between; }
  .scroll-cue { display: none; }
  .portfolio-heading h2, .story-copy h2 { font-size: 48px; }
  .portfolio-bento { display: block; }
  .portfolio-card, .portfolio-card.card-wide, .portfolio-card.card-tall { min-height: 480px; margin-bottom: 14px; }
  .portfolio-card-content { padding: 26px; }
  .portfolio-card h3 { font-size: 39px; }
  .control-path { display: flex; flex-direction: column; }
  .control-path > i { transform: rotate(90deg); }
  .control-path > div { min-height: 120px; }
  .control-path > div b { margin-top: 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 380px; }
  .contact-panel { width: 100%; padding: 36px 22px; border-inline: 0; }
  .contact-panel h2 { font-size: 48px; }
  .portfolio-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .enter-view { opacity: 1; filter: none; transform: none; }
}

/* Content Studio blocks. Defaults intentionally match the approved landing. */
.hero-media img, .hero-media video { object-position: var(--hero-focal-x, 50%) var(--hero-focal-y, 50%); filter: blur(var(--hero-media-blur, 0)); transform: scale(calc(1 + (var(--hero-media-blur, 0px) / 240))); }
.hero-veil { opacity: var(--hero-overlay-opacity, 1); }
.portfolio-card-badge { display: inline-flex; align-self: flex-start; margin-bottom: 10px; padding: 5px 9px; color: var(--landing-accent-b); border: 1px solid color-mix(in srgb, var(--landing-accent-b) 42%, transparent); border-radius: 999px; font: 650 .62rem/1 var(--landing-body-font); letter-spacing: .04em; }
.portfolio-data-table-wrap { width: 100%; overflow-x: auto; margin: 18px 0; }
.portfolio-table-search { width: 100%; min-height: 42px; margin-bottom: 10px; padding: 0 13px; color: var(--landing-text); background: color-mix(in srgb, var(--landing-surface) 82%, transparent); border: 1px solid var(--landing-line); border-radius: 10px; font: inherit; }
.portfolio-data-table { width: 100%; min-width: 520px; border-collapse: collapse; color: var(--landing-text); font: 500 .72rem/1.45 var(--landing-body-font); }
.portfolio-data-table th, .portfolio-data-table td { padding: 12px 13px; border: 1px solid var(--landing-line); text-align: start; }
.portfolio-data-table th { color: var(--landing-accent-b); background: color-mix(in srgb, var(--landing-surface) 88%, transparent); font-weight: 700; }
.portfolio-data-table th[role="button"] { cursor: pointer; }
.portfolio-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.portfolio-contact-form label { display: grid; gap: 7px; color: var(--landing-muted); font: 650 .63rem/1.3 var(--landing-body-font); }
.portfolio-contact-form label:last-of-type { grid-column: 1 / -1; }
.portfolio-contact-form input, .portfolio-contact-form textarea { min-height: 43px; padding: 10px 12px; color: var(--landing-text); background: color-mix(in srgb, var(--landing-surface) 88%, transparent); border: 1px solid var(--landing-line); border-radius: 10px; font: inherit; }
.portfolio-contact-form textarea { min-height: 110px; resize: vertical; }
.portfolio-contact-form .portfolio-button, .portfolio-form-status { grid-column: 1 / -1; }
.portfolio-form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.portfolio-form-status { min-height: 20px; color: var(--landing-muted); font-size: .68rem; }
.portfolio-not-found { min-height: 72vh; display: grid; align-items: center; }
.portfolio-not-found[hidden] { display: none; }
.entrance-blur { filter: blur(10px); }
.entrance-blur.visible { filter: blur(0); }
.entrance-scale { transform: scale(.96); }
.entrance-scale.visible { transform: scale(1); }
.entrance-none { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-landing-radius="square"] .portfolio-card, html[data-landing-radius="square"] .portfolio-button { border-radius: 0; }
html[data-landing-radius="rounded"] .portfolio-card { border-radius: 30px; }
html[data-landing-button="rounded"] .portfolio-button { border-radius: 12px; }
html[data-landing-button="square"] .portfolio-button { border-radius: 0; }
html[data-landing-shadow="none"] .portfolio-card { box-shadow: none; }
html[data-landing-shadow="strong"] .portfolio-card { box-shadow: 0 28px 70px rgba(0,0,0,.35); }
html[data-landing-spacing="compact"] .portfolio-section { padding-block: clamp(60px, 7vw, 100px); }
html[data-landing-spacing="relaxed"] .portfolio-section { padding-block: clamp(110px, 13vw, 190px); }

@media (min-width: 1025px) { .portfolio-card.hide-desktop { display: none; } }
@media (min-width: 641px) and (max-width: 1024px) { .portfolio-card.hide-tablet { display: none; } }
@media (max-width: 640px) {
  .portfolio-card.hide-mobile { display: none; }
  .portfolio-contact-form { grid-template-columns: 1fr; }
  .portfolio-contact-form label { grid-column: 1; }
  .portfolio-data-table-wrap.mobile-cards { overflow: visible; }
  .portfolio-data-table-wrap.mobile-cards table, .portfolio-data-table-wrap.mobile-cards tbody, .portfolio-data-table-wrap.mobile-cards tr, .portfolio-data-table-wrap.mobile-cards td { display: block; width: 100%; }
  .portfolio-data-table-wrap.mobile-cards thead { display: none; }
  .portfolio-data-table-wrap.mobile-cards tr { margin-bottom: 10px; padding: 10px; border: 1px solid var(--landing-line); border-radius: 12px; }
  .portfolio-data-table-wrap.mobile-cards td { display: grid; grid-template-columns: minmax(90px, .7fr) 1fr; gap: 10px; padding: 7px; border: 0; }
  .portfolio-data-table-wrap.mobile-cards td::before { content: attr(data-label); color: var(--landing-muted); font-weight: 700; }
}
