:root {
  color-scheme: dark;
  --background: #080b14;
  --surface: #0e1321;
  --surface-raised: #151b2e;
  --line: #242c41;
  --text: #f3f5fc;
  --muted: #aeb8cc;
  --accent: #42edd1;
  --accent-strong: #11dabb;
  --violet: #a093ff;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1, h2 { letter-spacing: -.049em; }
h2 { font-size: clamp(2rem, 4vw, 3.68rem); font-weight: 720; text-wrap: balance; }
p { color: var(--muted); }

.wrap { width: min(100% - clamp(2.5rem, 9vw, 10rem), 1220px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .75rem; left: .75rem; background: var(--accent); color: #061017; padding: .65rem 1rem; border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #22283b;
  background: #080b14f2;
  backdrop-filter: blur(16px);
}
.header-inner { min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; width: 174px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.primary-nav, .header-actions, .site-footer nav { display: flex; gap: clamp(.75rem, 2vw, 2rem); align-items: center; }
.primary-nav a, .site-footer nav a { color: var(--muted); font-size: .925rem; font-weight: 560; white-space: nowrap; transition: color .16s; }
.primary-nav a:hover, .site-footer nav a:hover { color: var(--accent); }
.header-actions { gap: 1rem; }
.language-nav { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0b101c; }
.language-nav a { padding: .27rem .5rem; color: var(--muted); border-radius: 5px; font-size: .875rem; font-weight: 650; }
.language-nav a:hover { color: var(--text); }
.language-nav a[aria-current] { color: var(--accent); background: #10312f; }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .71rem 1.18rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: .94rem;
  font-weight: 680;
  line-height: 1.35;
  text-align: center;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { border-color: #53637d; background-color: #162137; }
.button-small { min-height: 39px; padding: .5rem .8rem; font-size: .875rem; }
.button-primary { color: #051a18; background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 5px 29px #07d5b328; }
.button-primary:hover { color: #051a18; background: #69f8e0; border-color: #69f8e0; box-shadow: 0 6px 32px #07d5b340; }
.button-secondary { background: #0e1421; border-color: #343e55; }

.hero { position: relative; isolation: isolate; overflow: clip; border-bottom: 1px solid #1b2337; background: radial-gradient(ellipse at 74% 54%, #11162f 0%, #0a0e1a 50%, #080b14 80%); }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#454d761e 1px, transparent 1px), linear-gradient(90deg, #454d761e 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 74% 48%, #000 10%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr .95fr; align-items: center; min-height: 560px; padding-block: clamp(2.75rem, 4vw, 4rem); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--accent);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: .875rem;
  font-weight: 570;
  line-height: 1.5;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.18rem; height: 1px; background: currentColor; flex: 0 0 auto; }
.hero h1 { margin: 1.2rem 0 1.45rem; font-weight: 770; font-size: clamp(2.9rem, 4.95vw, 4.65rem); line-height: 1.01; }
.hero h1 span { color: var(--accent); }
.hero-summary { max-width: 35rem; font-size: clamp(1.04rem, 1.4vw, 1.18rem); line-height: 1.68; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-art { display: grid; place-items: center; position: relative; width: 100%; min-width: 0; }
.hero-art img { width: 122%; max-width: none; height: auto; opacity: .97; mask-image: radial-gradient(ellipse 66% 68% at 50% 49%, #000 48%, transparent 77%); }

.section { padding-block: clamp(4rem, 7.6vw, 7rem); }
.services { padding-top: clamp(3.6rem, 6vw, 5.5rem); }
.section-heading { margin-bottom: 2.35rem; }
.section-heading h2, .about h2, .approach h2 { margin-top: .65rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(165deg, #101526, #0c111e 63%);
  transition: border-color .2s ease;
}
.service-card:hover, .service-card:focus-within { border-color: #417170; }
.service-card:nth-child(2):hover, .service-card:nth-child(2):focus-within { border-color: #6754a7; }
.service-image { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; background: #090c16; border-bottom: 1px solid #21283a; }
.service-content { display: flex; flex-direction: column; flex: 1; gap: .85rem; padding: 1.4rem 1.45rem 1.1rem; }
.service-content h3 { font-size: clamp(1.18rem, 1.72vw, 1.5rem); letter-spacing: -.026em; line-height: 1.22; font-weight: 720; }
.service-content > p { margin-bottom: .48rem; }
.examples { margin-top: auto; border-top: 1px solid var(--line); }
.examples summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 1rem; font-size: .9rem; font-weight: 670; color: var(--accent); }
.examples summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.examples summary:hover { color: var(--text); }
.disclosure { display: grid; position: relative; place-items: center; width: 1.4rem; height: 1.4rem; border: 1px solid #34485b; border-radius: 6px; flex: 0 0 auto; }
.disclosure::before, .disclosure::after { content: ''; width: .55rem; height: 1px; background: currentColor; position: absolute; }
.disclosure::after { transform: rotate(90deg); }
.examples[open] .disclosure::after { visibility: hidden; }
.examples ul { display: grid; gap: .35rem; margin: .25rem 0 .6rem; padding-left: 1.12rem; color: var(--muted); }
.examples li::marker { color: var(--accent); }

.about {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-block: 1px solid #242b42;
  background: radial-gradient(ellipse at 16% 110%, #163040 0%, transparent 58%), linear-gradient(112deg, #0e1626, #11132a 84%);
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(132deg, #92abff17 0 1px, transparent 1px 28px);
  mask-image: linear-gradient(80deg, #0003, transparent 45%);
}
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.about h2, .approach h2 { text-wrap: initial; }
.about-copy { display: grid; gap: 1.05rem; }
.about-copy p { font-size: 1.06rem; }

.approach-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6.5vw, 8rem); align-items: start; }
.approach-heading > p:last-child { max-width: 24rem; margin-top: 1rem; }
.reasons { margin: 0; padding: 0; list-style-type: none; border-top: 1px solid var(--line); }
.reasons li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.reason-marker { position: relative; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; background: #10302f; color: var(--accent); border: 1px solid #245150; border-radius: 8px; }
.reason-marker::before { content: ''; width: .5rem; height: .5rem; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.reasons li:nth-child(2) .reason-marker { background: #251e45; color: var(--violet); border-color: #423771; }
.reasons h3 { margin: .1rem 0 .48rem; font-size: 1.23rem; letter-spacing: -.02em; }

.project { margin-block: 0 clamp(4rem, 7.6vw, 7rem); }
.project-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr .45fr;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4.2rem);
  border: 1px solid #35465e;
  border-radius: 20px;
  background: radial-gradient(ellipse at 84% 75%, #292452, transparent 48%), radial-gradient(ellipse at 65% 160%, #16423d, transparent 66%), #101827;
}
.project-panel h2 { font-size: clamp(1.95rem, 3.6vw, 3.2rem); text-wrap: initial; }
.project-panel p { max-width: 35rem; margin-top: .85rem; }
.project-panel button { margin-top: 1.35rem; }
.project-art { display: grid; place-items: center; align-self: stretch; position: relative; isolation: isolate; }
.project-art::before, .project-art::after { content: ''; position: absolute; width: 95%; aspect-ratio: 1; max-width: 225px; border: 1px solid #788abb29; border-radius: 50%; z-index: -1; }
.project-art::after { width: 81%; max-width: 190px; }
.project-art img { width: min(57%, 150px); height: auto; filter: drop-shadow(0 0 20px #3fead134); }

.brief-dialog { width: min(calc(100% - 2rem), 35rem); max-height: calc(100% - 2rem); padding: clamp(1rem, 5vw, 2rem); border-radius: 15px; border: 1px solid #465472; background: var(--surface); color: var(--text); }
.brief-dialog::backdrop { background: #030509bc; backdrop-filter: blur(4px); }
.brief-dialog form { display: grid; gap: .65rem; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.dialog-heading h2 { font-size: 1.72rem; }
.brief-dialog label { font-weight: 650; }
.brief-dialog :is(select, input, textarea) { display: block; width: 100%; min-width: 0; padding: .58rem .7rem; border: 1px solid #3c4762; border-radius: 7px; background-color: #090e19; color: var(--text); }
.brief-dialog select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.brief-dialog textarea { resize: vertical; }
.brief-dialog ::placeholder { color: #a5adc3; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .5rem; }
.brief-status { color: var(--accent); font-size: .92rem; }
.brief-status:empty { display: none; }

.site-footer { border-top: 1px solid var(--line); background: #090d18; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.2rem 1.8rem; }
.footer-brand p { font-size: .92rem; margin-top: .5rem; }
.footer-end { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-top: 1px solid var(--line); padding-block: 1rem; font-size: .875rem; }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .hero-inner { min-height: 500px; }
  .service-content { padding-inline: 1.15rem; }
}

@media (max-width: 730px) {
  :root { --header-height: 65px; }
  .header-inner { gap: .65rem; }
  .brand { width: clamp(118px, 31vw, 154px); }
  .header-actions { gap: .55rem; }
  .primary-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; gap: .38rem; min-height: 39px; list-style: none; padding-inline: .49rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: .875rem; font-weight: 650; }
  .mobile-menu summary span { width: .74rem; height: .51rem; border-block: 1px solid currentColor; }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; display: grid; padding: .3rem 1.25rem .65rem; background: #0d1220; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px #0005; }
  .mobile-menu nav a { padding: .65rem .2rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .mobile-menu nav a:last-child { color: var(--accent); border: 0; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-block: 3.6rem 0; }
  .hero h1 { margin-top: .95rem; font-size: clamp(2.45rem, 10.2vw, 4.35rem); }
  .hero-art { width: min(100%, 520px); margin-inline: auto; }
  .hero-art img { width: 111%; }
  .hero-actions { margin-top: 1.45rem; }
  .hero-actions .button-secondary { padding-inline: .35rem; border-color: transparent; background: transparent; }
  .hero-actions .button-secondary:hover { color: var(--accent); }
  .about-inner, .approach-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-heading { margin-bottom: 1.65rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-content { padding: 1.2rem 1.25rem .9rem; }
  .service-content h3 { font-size: 1.38rem; }
  .project-panel { grid-template-columns: 1fr; }
  .project-art { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .site-footer nav { gap: .95rem; flex-wrap: wrap; }
}

@media (min-width: 520px) and (max-width: 730px) {
  .service-card { display: grid; grid-template-columns: .82fr 1.18fr; }
  .service-image { height: 100%; border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; }
  .hero-inner { padding-top: 4rem; }
}

@media (max-width: 365px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner, .header-actions { gap: .4rem; }
  .brand { width: 106px; }
  .language-nav a { padding-inline: .33rem; }
  .hero h1 { font-size: 2.25rem; }
  .footer-end { flex-wrap: wrap; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
