/* ─── Tokens ─── */
:root {
  --navy: #0f1923;
  --white: #f8f6f2;
  --red: #d93829;
  --yellow: #e8b83e;
  --blue: #1f6e8c;
  --ink: #0f1923;
  --muted: #6b7280;
  --rule: #d4d0c8;
  --radius: 0;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --space: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0b1117;
    --white: #e8e4dc;
    --red: #e84a3a;
    --yellow: #f0c84e;
    --blue: #2a8aaa;
    --ink: #e8e4dc;
    --muted: #8a9098;
    --rule: #2a2e34;
  }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ─── Layout ─── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Header / Nav ─── */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .nav-links a::after { transition: none; }
  .nav-links a:hover::after { width: 0; }
}

/* ─── Hero ─── */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5rem 0 4rem;
  gap: 3rem;
  min-height: 70vh;
}
.hero-text { flex: 1; max-width: 580px; }
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 45ch;
  line-height: 1.5;
}

/* ─── Hero shapes ─── */
.hero-shape {
  flex-shrink: 0;
  position: relative;
  width: 300px;
  height: 300px;
}
.circle {
  border-radius: 50%;
  position: absolute;
}
.circle-1 {
  width: 180px;
  height: 180px;
  background: var(--red);
  top: 0;
  right: 0;
}
.circle-2 {
  width: 100px;
  height: 100px;
  background: var(--yellow);
  bottom: 20px;
  left: 0;
}
.rect {
  position: absolute;
}
.rect-1 {
  width: 80px;
  height: 80px;
  background: var(--blue);
  bottom: 40px;
  right: 40px;
}

/* ─── Section label ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2rem;
}
.label-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  display: block;
}

/* ─── Work Grid ─── */
.work {
  padding: 5rem 0;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.work-card {
  border: 2px solid var(--ink);
  transition: transform 0.15s ease;
}
.work-card:hover { transform: translate(-3px, -3px); }
@media (prefers-reduced-motion: reduce) {
  .work-card:hover { transform: none; }
}
.work-visual { position: relative; }
.shape-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.rect-card { background: var(--blue); }
.circle-card {
  background: var(--yellow);
  border-radius: 50%;
  width: 70%;
  aspect-ratio: 1 / 1;
  margin: 1.5rem auto;
}
.work-info {
  padding: 1.25rem;
  border-top: 2px solid var(--ink);
}
.work-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.work-info h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
}
.work-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Services ─── */
.services {
  padding: 5rem 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-item {
  border-top: 2px solid var(--rule);
  padding-top: 1.5rem;
}
.service-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.service-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.service-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 40ch;
}

/* ─── About ─── */
.about {
  padding: 5rem 0;
}
.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.about-text {
  flex: 1;
  max-width: 600px;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-shapes {
  flex-shrink: 0;
  position: relative;
  width: 160px;
  height: 160px;
}
.circle-sm {
  width: 80px;
  height: 80px;
  background: var(--red);
  top: 0;
  right: 0;
}
.circle-xs {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  bottom: 0;
  left: 0;
}
.rect-sm {
  width: 60px;
  height: 60px;
  background: var(--blue);
  bottom: 10px;
  right: 0;
}

/* ─── Contact ─── */
.contact {
  padding: 5rem 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-cta {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-email a {
  color: var(--blue);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}
.contact-email a:hover { text-decoration: underline; }

/* ─── Form ─── */
.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}
.contact-form label span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ─── Button ─── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-submit { margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; }
}

/* ─── Footer ─── */
footer {
  border-top: 2px solid var(--rule);
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-shapes {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.dot-yellow { background: var(--yellow); }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.footer-text {
  font-size: 0.85rem;
  color: var(--muted);
}
footer .attribution {
  font-size: 0.75rem;
  opacity: 0.7;
}
footer .attribution a { color: var(--muted); text-decoration: none; }
footer .attribution a:hover { color: var(--ink); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
  main { padding: 0 1.25rem; }
  header { padding: 1rem 1.25rem; }
  .hero {
    flex-direction: column;
    padding: 3rem 0 2rem;
    min-height: auto;
  }
  .hero-shape {
    width: 200px;
    height: 200px;
    margin-top: 2rem;
  }
  .circle-1 { width: 120px; height: 120px; }
  .circle-2 { width: 70px; height: 70px; }
  .rect-1 { width: 55px; height: 55px; }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    flex-direction: column;
  }
  .about-shapes {
    width: 120px;
    height: 120px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  nav { flex-direction: column; gap: 0.75rem; }
  .hero h1 { font-size: 2rem; }
  .hero-shape { width: 150px; height: 150px; }
  .circle-1 { width: 90px; height: 90px; }
  .circle-2 { width: 50px; height: 50px; }
  .rect-1 { width: 40px; height: 40px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
