@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --paper: #f6f1e8;
  --paper-strong: #fffdf8;
  --night: #071019;
  --night-soft: #0d1824;
  --ink: #13202b;
  --ink-soft: #445564;
  --ink-muted: #6e7f8d;
  --mist: #bcc8d1;
  --sand: #f0c88d;
  --accent: #db5e2f;
  --accent-strong: #f0703c;
  --signal: #63b7b8;
  --line: rgba(19, 32, 43, 0.12);
  --line-bright: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(219, 94, 47, 0.22);
}

.site-wrap {
  overflow-x: hidden;
}

.container {
  margin: 0 auto;
  max-width: 88rem;
  padding: 0 1.5rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 200, 141, 0.2), transparent 28%),
    radial-gradient(circle at 85% 16%, rgba(99, 183, 184, 0.18), transparent 24%),
    linear-gradient(180deg, #09131d 0%, #0d1824 55%, #132130 100%);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(28px);
  opacity: 0.75;
}

.orb-left {
  left: -6rem;
  top: 4rem;
  height: 15rem;
  width: 15rem;
  background: rgba(219, 94, 47, 0.2);
}

.orb-right {
  right: -3rem;
  top: 6rem;
  height: 12rem;
  width: 12rem;
  background: rgba(99, 183, 184, 0.18);
}

.top-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .contact-pill {
  border: 1px solid var(--line-bright);
  border-radius: 9999px;
  padding: 0.55rem 1rem;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2.5rem;
  padding: 1.25rem 0 5rem;
}

.tag {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid var(--line-bright);
  padding: 0.5rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.06);
}

.hero-title {
  margin: 1rem 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #fff;
  max-width: 16ch;
}

.hero-copy {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--mist);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--paper-strong);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  border: 1px solid var(--line-bright);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.75rem;
}

.stat-card {
  border-radius: 1.4rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  padding: 1rem;
}

.stat-card strong {
  color: #fff;
  font-size: 1.25rem;
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero-panel {
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2rem;
  padding: 1rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 90px rgba(5, 8, 14, 0.28);
}

.portfolio-map {
  display: grid;
  gap: 0.75rem;
}

.map-card {
  border-radius: 1.3rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.map-card h4 {
  margin: 0;
  color: var(--sand);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.map-card p {
  margin: 0.6rem 0 0;
  color: var(--mist);
  font-size: 0.94rem;
  line-height: 1.6;
}

.lens-box {
  margin-top: 0.8rem;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(99, 183, 184, 0.12), rgba(233, 110, 48, 0.08));
  padding: 1.1rem;
}

.lens-box h4 {
  margin: 0;
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.lens-box p {
  margin: 0.65rem 0 0;
  color: var(--mist);
  line-height: 1.7;
  font-size: 0.9rem;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.65rem 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 18ch;
}

.section-copy {
  margin: 1rem 0 0;
  max-width: 60ch;
  color: var(--ink-soft);
  line-height: 1.9;
}

.bg-paper {
  background: var(--paper);
}

.bg-white {
  background: #fff;
}

.bg-night {
  background: linear-gradient(180deg, #08111a 0%, #0c1822 100%);
  color: #fff;
}

.bg-soft {
  background: linear-gradient(180deg, #f5efe7 0%, #ffffff 100%);
}

.bg-contact {
  background: linear-gradient(180deg, #f4ece2 0%, #fbf8f2 100%);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.service-card,
.video-card,
.faq-card,
.contact-shell,
.light-card {
  border-radius: 1.7rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 22, 31, 0.08);
}

.service-card {
  padding: 1.5rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.service-card p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  border-radius: 1.7rem;
  border: 1px solid var(--line-bright);
  background: rgba(11, 17, 25, 0.78);
  box-shadow: 0 24px 80px rgba(5, 8, 14, 0.18);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card .eyebrow-muted {
  margin: 0;
  color: var(--sand);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.project-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.45rem;
}

.project-card .summary {
  color: var(--mist);
  line-height: 1.7;
  font-size: 0.93rem;
}

.dot-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.dot-list li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: var(--mist);
  line-height: 1.65;
  font-size: 0.9rem;
}

.dot-list li::before {
  content: "";
  margin-top: 0.55rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 9999px;
  background: var(--signal);
  flex: 0 0 auto;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack-chip {
  border-radius: 9999px;
  border: 1px solid var(--line-bright);
  padding: 0.38rem 0.7rem;
  color: var(--mist);
  font-size: 0.74rem;
}

.link-arrow {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sand);
  font-weight: 600;
  font-size: 0.9rem;
}

.flow-layout {
  display: grid;
  gap: 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-chip {
  border-radius: 9999px;
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.diagram-strip {
  display: grid;
  gap: 0.85rem;
}

.step-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--line-bright);
  background: rgba(10, 16, 24, 0.72);
  box-shadow: 0 18px 60px rgba(6, 10, 18, 0.18);
  padding: 1rem;
}

.step-card .step-row {
  display: flex;
  gap: 0.75rem;
}

.step-index {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--sand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.step-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.03rem;
}

.step-card p {
  margin: 0.4rem 0 0;
  color: var(--mist);
  line-height: 1.7;
  font-size: 0.9rem;
}

.video-card {
  overflow: hidden;
}

.video-cover {
  background: linear-gradient(135deg, #0e1822, #1f3140);
  padding: 1rem;
  color: #fff;
}

.video-cover h3 {
  margin: 0.7rem 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.video-runtime {
  margin-top: 0.9rem;
  display: inline-block;
  border: 1px solid var(--line-bright);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.video-body {
  padding: 1.2rem;
}

.video-body p {
  margin: 0.3rem 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.process-shell {
  background: var(--night);
  color: #fff;
}

.process-layout {
  display: grid;
  gap: 1.2rem;
}

.process-step {
  border-radius: 1.4rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem;
}

.process-step h4 {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--sand);
}

.process-step p {
  margin: 0.6rem 0 0;
  color: var(--mist);
  line-height: 1.7;
  font-size: 0.9rem;
}

.ask-grid {
  border-radius: 1.7rem;
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 1.3rem;
}

.ask-item {
  border-radius: 1.2rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
  margin-top: 0.6rem;
  color: var(--mist);
  line-height: 1.6;
  font-size: 0.87rem;
}

.faq-card {
  padding: 1.2rem;
  background: var(--paper);
}

.faq-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.faq-card p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  gap: 1rem;
}

.contact-shell {
  padding: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.two-col {
  display: grid;
  gap: 0.75rem;
}

.field-wrap label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus {
  border-color: rgba(219, 94, 47, 0.42);
  box-shadow: 0 0 0 4px rgba(219, 94, 47, 0.12);
}

textarea.field {
  min-height: 9rem;
  resize: vertical;
}

.form-meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.status-box {
  border-radius: 0.9rem;
  border: 1px solid transparent;
  padding: 0.7rem;
  font-size: 0.85rem;
  display: none;
}

.status-box.show {
  display: block;
}

.status-box.success {
  border-color: #8fceba;
  background: #e6faf2;
  color: #125541;
}

.status-box.error {
  border-color: #e6a3a5;
  background: #fff0f0;
  color: #781a20;
}

.privacy-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(30rem, calc(100vw - 2rem));
  border: 1px solid rgba(240, 200, 141, 0.28);
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(7, 16, 25, 0.96);
  color: var(--paper-strong);
  box-shadow: 0 18px 50px rgba(7, 16, 25, 0.28);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner p {
  margin: 0;
  color: var(--mist);
  line-height: 1.7;
  font-size: 0.92rem;
}

.privacy-banner strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1rem;
}

.privacy-banner a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.privacy-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.privacy-btn:hover {
  transform: translateY(-1px);
}

.privacy-btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--paper-strong);
}

.privacy-btn-primary:hover {
  background: var(--accent-strong);
}

.privacy-btn-secondary {
  background: transparent;
  color: var(--mist);
}

.privacy-settings-btn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 45;
  border: 1px solid rgba(19, 32, 43, 0.16);
  border-radius: 9999px;
  padding: 0.7rem 1rem;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(19, 32, 43, 0.12);
}

.privacy-settings-btn[hidden] {
  display: none;
}

.footer {
  background: #060d14;
  color: var(--mist);
  padding: 1.15rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
}

.footer-link {
  color: var(--sand);
  font-weight: 700;
}

.footer-link:hover {
  color: #fff;
}

.project-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: var(--night);
  color: #fff;
}

.project-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24rem;
  background:
    radial-gradient(circle at top left, rgba(233, 110, 48, 0.24), transparent 40%),
    radial-gradient(circle at top right, rgba(99, 183, 184, 0.22), transparent 38%);
}

.project-content {
  position: relative;
  z-index: 2;
  padding: 2.2rem 0 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sand);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-hero {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
}

.project-hero h1 {
  margin: 0.65rem 0 0;
  max-width: 17ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.3rem, 7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-hero p {
  margin: 0.65rem 0 0;
  color: var(--mist);
  line-height: 1.8;
}

.why-card,
.dark-card {
  border-radius: 1.6rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
}

.dark-card h3,
.why-card h3 {
  margin: 0;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.dark-card p,
.why-card p {
  margin: 0.65rem 0 0;
  color: var(--mist);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}

.video-story {
  border-radius: 1.6rem;
  border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, rgba(233, 110, 48, 0.12), rgba(6, 10, 18, 0.28));
  padding: 1.2rem;
}

.video-story h2 {
  margin: 0.65rem 0 0;
  font-size: 1.6rem;
}

.video-story .meta {
  margin-top: 0.55rem;
  color: var(--mist);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.architecture-diagram {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.arch-node {
  border-radius: 0.9rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  color: #e7edf2;
  padding: 0.7rem;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.35;
}

.arch-arrow {
  color: var(--sand);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}

.arch-loop {
  grid-column: 1 / -1;
  border: 1px dashed rgba(240, 200, 141, 0.5);
  border-radius: 9999px;
  padding: 0.45rem 0.7rem;
  text-align: center;
  color: var(--sand);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-placeholder {
  margin-top: 0.9rem;
  border-radius: 1rem;
  border: 1px dashed rgba(240, 200, 141, 0.55);
  background:
    linear-gradient(135deg, rgba(240, 200, 141, 0.08), rgba(99, 183, 184, 0.08)),
    rgba(6, 10, 18, 0.34);
  min-height: 11rem;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
}

.video-play {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  border: 1px solid var(--line-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  font-size: 0.9rem;
}

.video-placeholder-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.video-placeholder-copy {
  margin: 0.3rem 0 0;
  color: var(--mist);
  font-size: 0.82rem;
}

.video-embed-shell {
  margin-top: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(240, 200, 141, 0.4);
  overflow: hidden;
  background: rgba(6, 10, 18, 0.34);
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.list-numbered {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--mist);
  line-height: 1.7;
}

.list-basic {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--mist);
  line-height: 1.7;
}

.not-found {
  border-radius: 1.6rem;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.2rem;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }

  .nav-links {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-card:first-child {
    grid-column: span 2;
  }

  .card-grid.two,
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three,
  .portfolio-grid,
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-layout,
  .flow-layout,
  .process-layout,
  .project-hero,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .architecture-diagram {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
}

@media (max-width: 767px) {
  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .arch-arrow {
    transform: rotate(90deg);
    line-height: 1;
  }

  .privacy-banner,
  .privacy-settings-btn {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
    padding-bottom: 7rem;
  }

  .contact-layout {
    grid-template-columns: 0.84fr 1.16fr;
  }

  .flow-layout {
    grid-template-columns: 0.88fr 1.12fr;
  }

  .process-layout {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .project-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}
