:root {
  color-scheme: dark;
  --ink: #080808;
  --paper: #f2f0eb;
  --muted: #c0b7b4;
  --red: #e44b55;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  --header-height: 6rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
::selection { background: #a91928; color: #fff; }
.landing { width: 100%; position: relative; }
main { display: block; min-width: 0; }
.masthead { position: fixed; inset: 0 0 auto; z-index: 10; min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: max(1rem, env(safe-area-inset-top)) var(--gutter); background: linear-gradient(#080808 25%, rgb(8 8 8 / 88%) 75%, transparent); }
.home-link { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; }
.wordmark { display: block; width: clamp(150px, 17vw, 220px); max-width: 100%; height: auto; }
.language-switch { display: flex; align-items: center; gap: .25rem; padding: .25rem; border: 1px solid #827674; border-radius: 3px; background: rgb(8 8 8 / 90%); }
.language-switch button { min-height: 36px; min-width: 44px; padding: .35rem .6rem; border: 0; background: transparent; color: var(--muted); font-size: .875rem; }
.language-switch button[aria-pressed="true"] { background: #9c1424; color: #fff; }
button:focus-visible, a:focus-visible, .country-picker:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.stage { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-height) + 2rem) var(--gutter) max(4rem, env(safe-area-inset-bottom)); }
.hero-stage { overflow: hidden; }
.background { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgb(8 8 8 / 94%), rgb(8 8 8 / 45%) 52%, rgb(8 8 8 / 15%)), linear-gradient(0deg, #080808, transparent 35%, transparent 72%, rgb(8 8 8 / 55%)); }
#motion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; mask-image: linear-gradient(90deg, transparent 4%, rgb(0 0 0 / 35%) 34%, #000 60%); }
body[data-motion="servers"] .background { opacity: .3; }
body[data-motion="code"] .background { opacity: .22; }
body[data-motion="tunnel"] .background { opacity: .22; }
body[data-motion="circuit"] .background { opacity: .32; }
body[data-motion="vortex"] .background { opacity: .25; }
.hero-copy { width: 100%; min-width: 0; max-width: 100%; padding-block: 1rem; }
.hero-actions { display: flex; align-items: stretch; gap: 1rem; margin-top: 2.5rem; }
h1 { margin: 0; font-size: clamp(3.25rem, 7.5vw, 7.5rem); font-weight: 400; letter-spacing: -.06em; line-height: 1.04; }
h1 span, h1 em { display: block; width: fit-content; background: var(--ink); box-shadow: 0 0 0 .3rem var(--ink); }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 3rem; min-height: 52px; max-width: 100%; padding: .9rem 1.2rem; color: #fff; border: 1px solid; border-radius: 2px; font-size: 1rem; text-decoration: none; transition: background .2s, transform .2s; }
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta > span:last-child { font-size: 1.4rem; }
.contact-cta { color: var(--paper); background: rgb(242 240 235 / 6%); border-color: #746568; }
.contact-cta:hover { background: rgb(242 240 235 / 12%); }
.services-cta { background: #b81a2c; border-color: #f16972; }
.services-cta:hover { background: #cf2335; }
.services-actions { margin-top: 2.5rem; }
.section-content { width: 100%; max-width: 76rem; margin-inline: auto; }

h2 { margin: 0 0 2.5rem; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; }
.services { background: #0c0b0c; border-block: 1px solid #2d181d; }
/* All service choices stay visible; enhancement adds a single shared diagram. */
.service-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.5rem; }
.service-tabs[hidden], .service-panel[hidden], .service-visual[hidden] { display: none; }
.service-tabs button { min-width: 0; min-height: 64px; justify-content: flex-start; gap: 0; padding: .85rem 1rem; text-align: left; color: #d8cecf; border: 1px solid #49333a; background: #141013; font-size: .875rem; line-height: 1.4; transition: background .2s, border-color .2s; }
.service-tabs button, .service-panel { scroll-margin-top: calc(var(--header-height) + 1rem); scroll-margin-bottom: 1rem; }
.service-tabs button:hover { background: #2b1720; border-color: #ad5369; }
.service-tabs button[aria-selected="true"] { background: #ad1830; border-color: #f3798e; color: #fff; }
.service-showcase { min-width: 0; }
.services-enhanced .service-showcase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); border: 1px solid #49303a; border-radius: 4px; overflow: clip; background: radial-gradient(ellipse at 80% 70%, #231019, #100d10 70%); }
.service-details { min-width: 0; }
.services-enhanced .service-details { padding: clamp(1.25rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.service-panel { margin-bottom: 1.5rem; }
.services-enhanced .service-panel { margin-bottom: 0; }
.service-panel:focus-visible { outline: 2px solid var(--red); outline-offset: 8px; }
.service-panel h3 { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; }
.service-panel p:not(.sr-only) { margin: 1.25rem 0 0; color: #d0bfc4; font-size: 1rem; line-height: 1.65; }
.service-details .hero-cta { gap: 1.5rem; }
.service-visual { min-width: 0; border-left: 1px solid #49303a; background: radial-gradient(ellipse at 50% 48%, #2b102033, transparent 68%); }
.service-visual-bar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1.25rem; border-bottom: 1px solid #38212a; }
#service-tag { color: #e6b6c6; font-size: .6875rem; line-height: 1.5; letter-spacing: .10em; }
#service-canvas { display: block; width: 100%; height: 410px; }
#service-caption { margin: 0; min-height: 64px; padding: 1rem 1.25rem; border-top: 1px solid #38212a; color: #dbc4cc; font-size: .8125rem; line-height: 1.5; }
.contact-stage { background: radial-gradient(ellipse at 90% 80%, #210c13, transparent 55%), var(--ink); }
.contact-stage:focus { outline: none; }
.contact-stage .section-content { max-width: 48rem; }
.contact { width: 100%; min-width: 0; margin: 0; }
.contact fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { position: relative; display: block; min-width: 0; }
.field-wide, .phone-group { grid-column: 1 / -1; }
.phone-group { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: .75rem; min-width: 0; align-items: start; }
.country-control { position: relative; min-width: 0; height: 56px; }
.country-control::after { content: "⌄"; position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.country-picker { width: 100%; height: 100%; min-height: 56px; padding: .5rem; border: 1px solid rgb(192 183 180 / 60%); border-radius: 2px; background: var(--ink); color: transparent; font: inherit; font-size: 1rem; cursor: pointer; }
.country-picker option { color: var(--paper); background: var(--ink); }
#country-display { position: absolute; inset: 0; display: flex; align-items: center; padding-inline: .75rem; pointer-events: none; font-size: 1rem; }
.field-error { display: block; margin-top: .5rem; color: #ffacb3; font-size: .8125rem; line-height: 1.4; }
.field-error[hidden] { display: none; }
.phone-label-short, .email-label-short { display: none; }
.field input, .field textarea { display: block; width: 100%; min-width: 0; height: 3.5rem; margin: 0; padding: 1.5rem .9rem .4rem; border: 1px solid rgb(192 183 180 / 60%); border-radius: 2px; outline: none; background: var(--ink); color: var(--paper); font: inherit; font-size: 1rem; line-height: 1.35; caret-color: var(--red); }
.field textarea { height: 9rem; min-height: 7rem; resize: vertical; }
.field span { position: absolute; top: 1.1rem; inset-inline-start: .9rem; inset-inline-end: .5rem; color: var(--muted); font-size: 1rem; line-height: 1.2; pointer-events: none; }
.field input:focus, .field textarea:focus, .field [aria-invalid="true"] { border-color: var(--red); outline: 1px solid var(--red); outline-offset: 1px; }
.field input:focus ~ span, .field textarea:focus ~ span, .field input:not(:placeholder-shown) ~ span, .field textarea:not(:placeholder-shown) ~ span { top: .35rem; font-size: .75rem; }
.form-actions { min-height: 52px; display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .8rem 1.2rem; border: 1px solid var(--red); border-radius: 2px; background: #9c1424; color: #fff; font: inherit; font-size: 1rem; cursor: pointer; }
button:hover { background: #b81a2c; }
button:disabled { opacity: .6; cursor: wait; }
#form-status { margin: 0; font-size: .875rem; line-height: 1.4; color: var(--muted); }
#form-status[data-state="error"] { color: #ffacb3; }
#form-status a { color: inherit; }
noscript { display: block; margin-top: .5rem; font-size: .875rem; }
html[dir="rtl"] .shade { transform: scaleX(-1); }
html[dir="rtl"] h1, html[dir="rtl"] h1 em { font-family: Tahoma, Arial, sans-serif; font-style: normal; letter-spacing: 0; }
@media (max-width: 900px) {
  .services-enhanced .service-showcase { grid-template-columns: minmax(0, 1fr); }
  .service-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-tabs button { min-height: 56px; }
  .service-visual { border-left: 0; border-top: 1px solid #49303a; }
  .service-panel h3 { font-size: 2rem; }
  #service-canvas { height: 430px; }
}
@media (max-width: 600px) {
  :root { --header-height: 5rem; }
  .masthead { padding-block: max(.85rem, env(safe-area-inset-top)); }
  .wordmark { width: 144px; }
  .stage { padding-top: calc(var(--header-height) + 1.5rem); padding-bottom: max(3rem, env(safe-area-inset-bottom)); }
  .background { object-position: 63% center; }
  #motion-canvas { mask-image: linear-gradient(90deg, transparent, #000 90%); }
  h1 { font-size: clamp(3rem, 13.5vw, 4.5rem); }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin-top: 2rem; }
  .hero-actions .hero-cta { min-width: 0; gap: .5rem; padding: .75rem .625rem; font-size: .875rem; }
  .hero-actions .hero-cta > span:last-child { font-size: 1.125rem; }
  .services-actions { margin-top: 1.5rem; }
  .service-tabs { gap: .375rem; margin-bottom: 1rem; }
  .service-tabs button { padding: .625rem .65rem; font-size: .8125rem; min-height: 66px; }
  .service-panel h3 { font-size: 1.875rem; }
  .service-panel p:not(.sr-only) { font-size: .9375rem; margin-top: .875rem; }
  .service-visual-bar { padding-inline: .75rem; }
  #service-tag { font-size: .625rem; letter-spacing: .06em; }
  #service-caption { padding-inline: .875rem; }
  #service-canvas { height: 420px; }
  h2 { font-size: 2rem; margin-bottom: 1.75rem; }
  .contact-fields { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .field textarea { height: 8rem; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 359px) {
  .hero-actions .hero-cta { gap: .25rem; padding-inline: .5rem; font-size: .8125rem; }
  .phone-label-full { display: none; }
  .phone-label-short { display: block; }
  .email-label-full { display: none; }
  .email-label-short { display: block; }
}
@media (max-height: 540px) and (min-width: 601px) {
  :root { --header-height: 4.5rem; }
  .stage { padding-top: 6rem; padding-bottom: 4rem; }
  .hero-stage { min-height: 34rem; }
  h1 { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta, .service-tabs button { transition: none; }
  .hero-cta:hover { transform: none; }
}
