@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --canvas: #fbfaf8;
  --ink: #061c31;
  --ink-soft: #2d3f52;
  --muted: #f1eeea;
  --muted-foreground: #485460;
  --border: rgba(6, 28, 49, 0.1);
  --brand-blue: #0b68a6;
  --brand-orange: #e25d00;
  --shadow: 0 24px 70px rgba(6, 28, 49, 0.14);
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.brand img {
  height: 1.6em;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav a,
.eyebrow,
.eyebrow-num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--canvas);
}

.mobile-nav a {
  display: block;
  padding: 16px 24px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(251, 250, 248, 0.97) 0%, rgba(251, 250, 248, 0.86) 52%, rgba(251, 250, 248, 0.36) 100%),
    radial-gradient(circle at 78% 34%, rgba(226, 93, 0, 0.18), transparent 30%),
    radial-gradient(circle at 86% 78%, rgba(0, 81, 134, 0.18), transparent 32%);
}

.deco {
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.deco-shape {
  position: absolute;
  width: 24vw;
  aspect-ratio: 1;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.deco-one {
  right: 9vw;
  top: 12vh;
  background: rgba(226, 93, 0, 0.16);
}

.deco-two {
  right: -5vw;
  bottom: 12vh;
  background: var(--brand-blue);
  opacity: 0.18;
}

.deco-three {
  right: 25vw;
  bottom: -8vh;
  background: #a9aaad;
  opacity: 0.22;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.65fr;
  gap: 48px;
  align-items: center;
  padding-block: 80px;
}

.hero-copy {
  max-width: 710px;
  animation: fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.96;
  font-weight: 800;
}

.hero-copy p:not(.hero-kicker) {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted-foreground);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand-orange);
  color: var(--canvas);
  box-shadow: 0 14px 34px rgba(204, 64, 7, 0.22);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--ink);
}

.hero-logo-wrap {
  justify-self: center;
  animation: fade-up 900ms 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-logo {
  width: min(34vw, 320px);
  min-width: 200px;
  filter: drop-shadow(0 32px 45px rgba(7, 52, 93, 0.22));
  animation: float-logo 7s ease-in-out infinite;
}

.section {
  padding: 112px 0;
}

.section-muted {
  background: color-mix(in srgb, var(--muted) 62%, transparent);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas);
}

.split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 40px;
  border-top: 2px solid color-mix(in srgb, var(--brand-orange) 70%, transparent);
  padding-top: 48px;
}

.serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

.section h2,
.legal h1 {
  margin: 16px 0 0;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.08;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.service {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.service h3 {
  margin: 16px 0;
  font-size: 1.5rem;
}

.service p,
.projects-note,
.feature p,
.footer p,
.legal-content {
  color: var(--muted-foreground);
}

.service p,
.feature p,
.footer p {
  font-size: 0.875rem;
  line-height: 1.65;
}

.eyebrow {
  color: var(--muted-foreground);
}

.eyebrow-num,
.brand-orange {
  color: var(--brand-orange);
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}

.projects-note {
  max-width: 40ch;
  font-size: 0.75rem;
  line-height: 1.55;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

.project-media {
  overflow: hidden;
  background: var(--muted);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms ease;
}

figure {
  margin: 0;
}

figure:hover .project-media img {
  transform: scale(1.02);
}

.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-1-1 { aspect-ratio: 1; }
.aspect-5-4 { aspect-ratio: 5 / 4; }

figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

figcaption span:last-child {
  color: var(--muted-foreground);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 640px;
  width: auto;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.values-grid,
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px;
}

.values-intro {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.values-intro .brand {
  font-size: 1.5rem;
}

.values-intro p {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.15;
}

.short-line {
  width: 64px;
  height: 1px;
  background: var(--brand-orange);
}

.features {
  grid-column: span 6;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  border-left: 1px solid rgba(251, 250, 248, 0.15);
  padding-left: 48px;
}

.feature span {
  color: rgba(251, 250, 248, 0.6);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature p {
  color: rgba(251, 250, 248, 0.85);
  margin: 8px 0 0;
}

.contact-copy,
.contact-form {
  grid-column: span 6;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-copy h2 {
  max-width: 16ch;
  margin-top: 0;
}

.contact-copy p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.contact-copy a {
  color: var(--brand-blue);
  text-underline-offset: 4px;
}

.contact-copy a:hover,
.footer a:hover,
.legal-content a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.field label,
.privacy-check {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
  outline: 0;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.privacy-note {
  margin: 0 0 14px;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.6;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.privacy-check input {
  margin-top: 2px;
  accent-color: var(--ink);
}

.form-error {
  display: none;
  margin: 0 0 16px;
  color: #b42318;
  font-size: 0.875rem;
}

.form-success {
  display: none;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 48%, transparent);
  padding: 32px;
}

.form-success h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--canvas);
}

.footer {
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 48px;
}

.footer .brand {
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
}

.footer-links button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.footer-links button:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

.footer-small {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-small p {
  max-width: 80ch;
  margin: 0 0 16px;
  font-size: 11px;
}

.cookie-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 60;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-panel {
  width: min(100%, 768px);
  background: var(--ink);
  color: var(--canvas);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.cookie-inner {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
  padding: 24px;
}

.cookie-inner p {
  margin: 4px 0 0;
  color: rgba(251, 250, 248, 0.75);
  font-size: 0.875rem;
  line-height: 1.6;
}

.cookie-inner button {
  min-width: 120px;
  border: 0;
  background: var(--canvas);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.legal {
  padding: 112px 0;
}

.legal .section-inner {
  width: min(100% - 48px, 768px);
}

.legal h1 {
  margin-bottom: 48px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.legal-content h2 {
  margin: 28px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav[data-open="true"] {
    display: block;
  }

  .hero-grid,
  .split,
  .values-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero h1 {
    max-width: 11ch;
  }

  .hero-logo-wrap {
    justify-self: start;
  }

  .hero-logo {
    width: min(58vw, 260px);
  }

  .services-grid,
  .features,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .projects-head {
    align-items: start;
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .span-5,
  .span-7,
  .span-12,
  .values-intro,
  .features,
  .contact-copy,
  .contact-form {
    grid-column: auto;
  }

  .features {
    border-left: 0;
    padding-left: 0;
  }

  .watermark {
    right: -48px;
    height: 420px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .legal .section-inner {
    width: min(100% - 32px, 1280px);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section,
  .legal {
    padding-block: 80px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .deco-shape {
    width: 44vw;
  }

  .cookie-inner {
    flex-direction: column;
  }

  .cookie-inner button {
    width: 100%;
  }
}
