@font-face { font-family: "Lexend"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/lexend-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/lexend-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #171E36;
  --navy-deep: #10162A;
  --navy-soft: #2A3456;
  --orange: #FC6207;
  --orange-hover: #FF7A2B;
  --jade: #2BB596;
  --mist: #F1F3F8;
  --white: #FFFFFF;
  --slate: #586180;
  --line: #DCE0EA;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 500 1rem/1 var(--font);
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-small { min-height: 40px; padding: 0 20px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; align-items: center; gap: 28px; }
.brand { grid-area: brand; }
.nav { grid-area: nav; justify-content: flex-end; }
.header-cta { grid-area: cta; }
.brand img { width: 200px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 400; font-size: .9875rem; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--orange); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,22,42,.85) 0%, rgba(16,22,42,.55) 40%, rgba(16,22,42,0) 70%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 11ch;
  line-height: 1.02;
}
.hero .lead { margin-top: 24px; max-width: 34rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Values */
.values { background: var(--navy); color: var(--white); padding: 56px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values-grid > div { border-top: 3px solid var(--orange); padding-top: 20px; }
.values h2 { font-size: 1.25rem; margin-bottom: 10px; }
.values p { color: rgba(255,255,255,.78); font-size: 1rem; }

/* Section titles */
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.02em; }

/* Services */
.services { padding: 96px 0 72px; }
.services-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 40px; row-gap: 56px;
}
.service img { width: 100%; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.service h3 { margin-top: 8px; font-size: 1.25rem; }
.service p { margin-top: 8px; color: var(--slate); max-width: 32ch; }

/* Process */
.process { background: var(--mist); padding: 88px 0; }
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: var(--line);
}
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 1.0625rem;
  position: relative; margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--mist);
}
.steps li:first-child::before { background: var(--orange); color: var(--navy); }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 1rem; }

/* About */
.about { background: var(--navy); color: var(--white); padding: 96px 0; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
.about p { font-size: 1.1875rem; color: rgba(255,255,255,.82); max-width: 38rem; }

/* Contact */
.contact { padding: 96px 0; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.contact-grid > div p { margin-top: 16px; color: var(--slate); font-size: 1.125rem; }
.form { display: grid; gap: 6px; }
.form label { font-weight: 500; font-size: .9375rem; margin-top: 12px; }
.form label:first-child { margin-top: 0; }
.form input, .form textarea {
  font: 300 1rem/1.5 var(--font); color: var(--navy);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(252,98,7,.35); }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { margin-top: 20px; justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9375rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .brand img { width: 160px; }
  :root { --header-h: 108px; }
  .header-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; row-gap: 6px; column-gap: 12px; padding-top: 10px; padding-bottom: 8px; }
  .nav { justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav a:not(.btn) { font-size: .9375rem; padding: 6px 0; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero-img { object-position: 78% center; }
  .hero::before { background: linear-gradient(0deg, rgba(16,22,42,.92) 0%, rgba(16,22,42,.7) 45%, rgba(16,22,42,.1) 80%); }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .services { padding: 72px 0 56px; }
  .services-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .service img { max-width: 360px; }
  .steps { grid-template-columns: 1fr; }
  .process, .about, .contact { padding: 72px 0; }
}

/* ---------- Inner pages ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--orange); }

.page-hero {
  position: relative; min-height: 420px; display: flex; align-items: center;
  background: var(--navy); color: var(--white); overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,22,42,.9) 0%, rgba(16,22,42,.6) 40%, rgba(16,22,42,0) 72%);
}
.page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; max-width: 14ch; }
.page-hero p { margin-top: 18px; max-width: 32rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.88); }
.page-hero.plain { min-height: 0; }
.page-hero.plain::before { display: none; }

.block { padding: 88px 0; }
.block.mist { background: var(--mist); }
.block.dark { background: var(--navy); color: var(--white); }
.block .section-title + p, .block .intro { margin-top: 16px; color: var(--slate); font-size: 1.125rem; max-width: 40rem; }
.block.dark .section-title + p { color: rgba(255,255,255,.8); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.cols-3 h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cols-3 p { color: var(--slate); font-size: 1rem; }
.cols-3.ruled > div { border-top: 3px solid var(--orange); padding-top: 20px; }
.cols-3 .icon { width: 120px; mix-blend-mode: multiply; margin-bottom: 16px; }

/* Service detail rows */
.service-row {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-row:nth-of-type(even) .service-media { order: 2; }
.service-media img { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.service-row h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.015em; }
.service-row .desc { margin-top: 12px; font-size: 1.125rem; color: var(--slate); max-width: 36rem; }
.facts { margin: 24px 0 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; }
.facts dt { font-weight: 500; font-size: .9375rem; }
.facts dd { margin: 0; color: var(--slate); font-size: 1rem; }

.progression { margin-top: 40px; width: 100%; background: var(--white); border-radius: 20px; padding: 24px; }
.note { margin-top: 32px; color: var(--slate); max-width: 44rem; }

.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.015em; margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; font-size: 1.125rem; color: var(--slate); }
.block.dark .prose p { color: rgba(255,255,255,.82); }

.split { display: grid; grid-template-columns: 1fr 160px; gap: 48px; align-items: center; max-width: 52rem; }
.split img { width: 160px; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; }
.cta p { margin: 14px auto 0; color: rgba(255,255,255,.8); font-size: 1.125rem; max-width: 34rem; }
.cta .btn { margin-top: 28px; }

/* Contact page */
.form select {
  font: 300 1rem/1.5 var(--font); color: var(--navy);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); width: 100%;
}
.form select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(252,98,7,.35); }
.form .small { margin-top: 12px; font-size: .875rem; color: var(--slate); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(43,181,150,.12); color: #146b57; }
.form-status.err { background: rgba(252,98,7,.12); color: #8a3502; }
.aside h2 { font-size: 1.25rem; }
.aside ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--slate); }
.aside li { margin-top: 6px; }
.aside .contact-line { margin-top: 32px; }
.aside .contact-line p { color: var(--slate); margin-top: 4px; }
.aside .contact-line a { color: var(--navy); font-weight: 500; }

/* FAQ */
.faq { max-width: 48rem; margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 500; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--slate); max-width: 42rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Legal */
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal p { margin-top: 10px; color: var(--slate); }
.legal .updated { margin-top: 40px; font-size: .9375rem; }

/* Footer extras */
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-inner.two { align-items: flex-start; }
.footer-inner .col { display: grid; gap: 10px; }

@media (max-width: 960px) {
  .cols-3 { grid-template-columns: 1fr; gap: 28px; }
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .service-row:nth-of-type(even) .service-media { order: 0; }
  .service-media img { max-width: 320px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { min-height: 360px; align-items: flex-end; }
  .page-hero::before { background: linear-gradient(0deg, rgba(16,22,42,.92) 0%, rgba(16,22,42,.7) 50%, rgba(16,22,42,.15) 85%); }
  .block { padding: 64px 0; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* Email call to action */
.email-cta { display: grid; gap: 20px; justify-items: start; }
.email-big { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.015em; }
.email-big a { text-decoration: none; color: var(--navy); border-bottom: 3px solid var(--orange); padding-bottom: 2px; }
.email-big a:hover { color: var(--orange); }
.contact-grid .email-cta { align-self: center; }
.contact-grid .email-big { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 0; color: var(--navy); }

/* ---------- Work ---------- */
.project { --bg: #121a35; --ink: #fff; background: var(--bg); color: var(--ink); padding: 72px 0; }
.project + .project { border-top: 1px solid rgba(255,255,255,.08); }
.theme-egypt { --bg: #0f1838; --accent: #E2B44B; }
.theme-moon  { --bg: #1b1430; --accent: #F28A2E; }
.theme-inari { --bg: #111a36; --accent: #E0453A; }
.project-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "key bonus side" "sym sym text";
}
.project figure { margin: 0; }
.project figure a { display: block; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); }
.project figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.project figure a:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .project figure img { transition: none; } .project figure a:hover img { transform: none; } }
.project figcaption { margin-top: 8px; font-size: .875rem; color: rgba(255,255,255,.62); }
.p-key { grid-area: key; } .p-bonus { grid-area: bonus; }
.p-key a, .p-bonus a { aspect-ratio: 9 / 16; }
.p-side { grid-area: side; display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.p-feature a { aspect-ratio: 1; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.14), rgba(255,255,255,.02) 70%); }
.p-feature img { object-fit: contain; padding: 6%; }
.p-banner { display: flex; flex-direction: column; min-height: 0; }
.p-banner a { flex: 1; min-height: 120px; position: relative; }
.p-banner img { position: absolute; inset: 0; }
.p-symbols { grid-area: sym; }
.p-symbols a { aspect-ratio: 3 / 2; }
.p-text { grid-area: text; align-self: center; padding: 8px 8px 8px 16px; border-left: 3px solid var(--accent); }
.p-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.p-text p { margin-top: 10px; color: rgba(255,255,255,.8); }
.p-text h3 { margin-top: 22px; font-size: .9375rem; font-weight: 500; color: var(--accent); }
.p-text h3 + p { margin-top: 4px; font-size: .9375rem; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10,14,28,.88); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 10px; }
.lb-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--orange); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

@media (max-width: 960px) {
  .project-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "text text" "key bonus" "side side" "sym sym"; }
  .p-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; align-items: start; }
  .p-banner a { flex: none; aspect-ratio: 6 / 5; }
  .p-banner img { position: static; }
  .p-text { padding: 0 0 8px 16px; }
}
@media (max-width: 720px) {
  .project { padding: 56px 0; }
  .project-grid { gap: 12px; }
}
.p-banner img { object-position: center 25%; }
