/* ================================================================
   SDK Infinity — Premium Software Engineering Studio
   Theme: Obsidian + Copper
   ================================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --obsidian-900: #0a0a0c;
  --obsidian-800: #111114;
  --obsidian-700: #18181d;
  --obsidian-600: #1f1f25;
  --obsidian-500: #2a2a32;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --copper-50: #fbe7d3;
  --copper-100: #f3c89a;
  --copper-300: #d99a5b;
  --copper-400: #c47b3d;
  --copper-500: #b06a30;
  --copper-600: #8a4f22;

  --ivory: #f5efe6;
  --ivory-soft: #ece4d6;
  --muted: #9a958c;
  --muted-2: #6e6a64;

  /* Typography */
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --container: 1240px;

  /* Radii / shadows */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-glow: 0 30px 80px -30px rgba(196, 123, 61, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--obsidian-900);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Subtle film-grain noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

::selection {
  background: var(--copper-400);
  color: var(--obsidian-900);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 400;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}

p {
  color: var(--ivory-soft);
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
}

p.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--ivory-soft);
  font-weight: 300;
  line-height: 1.6;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-300);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper-400);
}

.serif-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--copper-300);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.section--tight {
  padding-top: calc(var(--section-y) * 0.6);
  padding-bottom: calc(var(--section-y) * 0.6);
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 30%,
    var(--line-strong) 70%,
    transparent
  );
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--copper-400), var(--copper-500));
  color: var(--obsidian-900);
  border: 1px solid transparent;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -10px rgba(196, 123, 61, 0.55);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--copper-400);
  color: var(--copper-300);
  background: rgba(196, 123, 61, 0.05);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.text-link {
  color: var(--copper-300);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.25s var(--ease);
}

.text-link:hover {
  border-bottom-color: var(--copper-400);
}

.text-link .arrow {
  transition: transform 0.3s var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-400), var(--copper-600));
  color: var(--obsidian-900);
  flex-shrink: 0;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__name {
  font-style: italic;
  letter-spacing: 0.005em;
}

.brand__name b {
  font-weight: 500;
  font-style: normal;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ivory-soft);
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--copper-400);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--copper-300);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  transition: all 0.3s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 60;  /* sits above the menu panel */
  }

  /* Brand also needs to stay visible above the menu when open */
  .site-header .brand {
    position: relative;
    z-index: 60;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;  /* mobile-safe viewport height */
    background: var(--obsidian-900);  /* fully opaque */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 55;  /* below toggle/brand, above page content */
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* A subtle copper glow at the top of the open menu so it doesn't feel flat */
  .nav__links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: radial-gradient(
      circle at 50% 0%,
      rgba(196, 123, 61, 0.08),
      transparent 60%
    );
    pointer-events: none;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__links li {
    list-style: none;
    position: relative;
    z-index: 1;
  }

  .nav__links a {
    font-size: 1.7rem;
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--ivory);
  }

  .nav__cta .btn {
    display: none;
  }

  /* When the mobile menu is open, header should be flat & dark to match panel */
  body.menu-open .site-header {
    background: var(--obsidian-900) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--line);
  }

  /* Make sure brand is fully opaque & visible above the menu */
  body.menu-open .brand,
  body.menu-open .brand__name,
  body.menu-open .brand__mark {
    color: var(--ivory);
    opacity: 1;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg::before {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  top: -20vmax;
  right: -20vmax;
  background: radial-gradient(
    circle at center,
    rgba(196, 123, 61, 0.18),
    transparent 60%
  );
  filter: blur(40px);
}

.hero__bg::after {
  content: "";
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  bottom: -25vmax;
  left: -15vmax;
  background: radial-gradient(
    circle at center,
    rgba(138, 79, 34, 0.18),
    transparent 65%
  );
  filter: blur(50px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.2s; }

@keyframes rise {
  to { transform: translateY(0); }
}

.hero__sub {
  margin-top: 1.75rem;
  max-width: 52ch;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.5s forwards;
}

.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.7s forwards;
}

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

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  opacity: 0;
  animation: fade-up 1.1s var(--ease) 0.4s forwards;
}

.hero__orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit-ring--1 { width: 100%; height: 100%; }
.orbit-ring--2 { width: 75%; height: 75%; border-color: var(--line-strong); }
.orbit-ring--3 { width: 50%; height: 50%; }

.orbit-core {
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--copper-100),
    var(--copper-400) 45%,
    var(--copper-600) 100%
  );
  box-shadow:
    0 0 80px rgba(196, 123, 61, 0.4),
    inset -10px -10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 80px rgba(196, 123, 61, 0.4), inset -10px -10px 30px rgba(0, 0, 0, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 110px rgba(196, 123, 61, 0.55), inset -10px -10px 30px rgba(0, 0, 0, 0.4); }
}

.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--copper-300);
  box-shadow: 0 0 18px var(--copper-400);
}

.orbit-spin {
  position: absolute;
  inset: 0;
  animation: spin 28s linear infinite;
}
.orbit-spin--2 { animation-duration: 18s; animation-direction: reverse; }

.orbit-spin--1 .orbit-dot {
  top: 0; left: 50%; transform: translateX(-50%);
}
.orbit-spin--2 .orbit-dot {
  bottom: 12.5%; left: 12.5%;
  width: 10px; height: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  padding-top: 11rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  top: -30vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(196, 123, 61, 0.12), transparent 60%);
  filter: blur(50px);
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

/* ---------- Section heading ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

.section-head__title {
  max-width: 18ch;
}

.section-head__lede {
  max-width: 50ch;
  color: var(--ivory-soft);
}

@media (max-width: 800px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

/* ---------- Service grid (cards) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--copper-400),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(
    180deg,
    rgba(196, 123, 61, 0.04),
    rgba(255, 255, 255, 0)
  );
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(196, 123, 61, 0.08);
  color: var(--copper-300);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(196, 123, 61, 0.18);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: 0.85rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

.service-card__bullets {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.service-card__bullets li {
  font-size: 0.9rem;
  color: var(--ivory-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-left: 0;
}

.service-card__bullets li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper-400);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 721px) {
  .stat:nth-child(4n) { border-right: none; }
  .stat:nth-last-child(-n+0) { border-bottom: none; }
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(135deg, var(--copper-100), var(--copper-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.stat__num small {
  font-size: 0.55em;
  color: var(--copper-300);
  -webkit-text-fill-color: var(--copper-300);
  margin-left: 0.1em;
  font-weight: 400;
}

.stat__label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  gap: 0;
}

.process__step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.process__step:last-child {
  border-bottom: none;
}

@media (max-width: 800px) {
  .process__step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }
  .process__step p {
    grid-column: 2;
  }
}

.process__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--copper-300);
  font-style: italic;
  font-weight: 300;
}

.process__title {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.process__step p {
  color: var(--muted);
  max-width: 50ch;
}

/* ---------- Logos strip ---------- */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}

.logos__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
  align-items: center;
}

.logo-item {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
  opacity: 0.7;
}

.logo-item:hover {
  color: var(--copper-300);
  opacity: 1;
}

/* ---------- Featured work / Portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--obsidian-700);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: var(--copper-400);
  transform: translateY(-4px);
}

.work-card__visual {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--obsidian-600);
}

.work-card__visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.work-card__body {
  padding: 1.75rem 1.75rem 2rem;
}

.work-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-300);
  margin-bottom: 0.6rem;
  display: inline-block;
}

.work-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.work-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.work-card__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

/* ---------- Testimonials / quote ---------- */
.quote-block {
  padding: 4rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 123, 61, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  position: relative;
  text-align: center;
}

.quote-block::before {
  content: "";
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--copper-400);
  position: absolute;
  top: 1rem;
  left: 2rem;
  opacity: 0.15;
}

.quote-block__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 30ch;
  margin: 0 auto 1.75rem;
}

.quote-block__attr {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-block__attr b {
  color: var(--copper-300);
  font-weight: 500;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 5rem 3rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    var(--obsidian-700),
    var(--obsidian-800)
  );
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(196, 123, 61, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(138, 79, 34, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2rem;
  background: var(--obsidian-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

.footer-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 38ch;
  margin-top: 1rem;
}

.footer-col h5 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
  font-weight: 500;
  font-family: var(--font-sans);
  margin-bottom: 1.3rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--ivory-soft);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--copper-300);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted-2);
}

.footer-bottom .socials {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom .socials a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.footer-bottom .socials a:hover {
  color: var(--copper-300);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 0.95rem 1.1rem;
  color: var(--ivory);
  font-size: 0.97rem;
  transition: all 0.25s var(--ease);
  font-family: var(--font-sans);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--copper-400);
  background: rgba(196, 123, 61, 0.04);
}

/* ---------- Misc utilities ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ---------- About / Story layout ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .values {
    grid-template-columns: 1fr;
  }
}

.value-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--copper-300);
  font-style: italic;
}

.value-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Service detail blocks (Services page) ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail--reverse .service-detail__visual {
  order: 2;
}

@media (max-width: 900px) {
  .service-detail,
  .service-detail--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail--reverse .service-detail__visual {
    order: 0;
  }
}

.service-detail__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--copper-300);
  font-style: italic;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.service-detail__visual {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--obsidian-700), var(--obsidian-800));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.service-detail__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 123, 61, 0.14), transparent 50%);
}

.service-detail__visual svg {
  position: relative;
  z-index: 1;
  width: 70%;
  height: auto;
}

/* ---------- Blog / posts grid ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--obsidian-700);
  display: flex;
  flex-direction: column;
  transition: all 0.4s var(--ease);
}

.post-card:hover {
  border-color: var(--copper-400);
  transform: translateY(-4px);
}

.post-card__img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--obsidian-600), var(--obsidian-800));
  position: relative;
  overflow: hidden;
}

.post-card__img svg {
  width: 100%;
  height: 100%;
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
  margin-bottom: 0.6rem;
}

.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.post-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* Featured post (large) */
.post-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  transition: all 0.4s var(--ease);
}

.post-featured:hover {
  border-color: var(--copper-400);
}

@media (max-width: 800px) {
  .post-featured {
    grid-template-columns: 1fr;
  }
}

.post-featured__img {
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, var(--obsidian-600), var(--obsidian-800));
}

.post-featured__body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-featured h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin: 0.85rem 0 1rem;
}

@media (max-width: 800px) {
  .post-featured__body {
    padding: 2rem;
  }
}

/* ---------- Contact layout ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-info__item h5 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-300);
  margin-bottom: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.contact-info__item p,
.contact-info__item a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.contact-info__item a:hover {
  color: var(--copper-300);
}

/* ---------- Filters / portfolio chips ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-chip {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  color: var(--ivory-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s var(--ease);
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--copper-400);
  background: rgba(196, 123, 61, 0.08);
  color: var(--copper-300);
}

/* ---------- Client logos (real brands) ---------- */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  position: relative;
  overflow: hidden;
}

.clients__label {
  text-align: center;
  font-size: clamp(0.7rem, 1.6vw, 0.75rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  padding: 0 1rem;
  line-height: 1.5;
}

/* Tile-based grid — each logo sits on a subtle cream/ivory tile so all logos
   (color, white-bg JPEGs, mono) look intentional and consistent. */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

@media (max-width: 1100px) { .clients__grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .clients__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .clients__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .clients__grid { grid-template-columns: repeat(2, 1fr); } }

.client-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 3;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

/* On smaller screens give logos a more breathable square-ish tile + tighter padding */
@media (max-width: 640px) {
  .client-tile {
    aspect-ratio: 4 / 3;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
  }
}

@media (max-width: 420px) {
  .client-tile {
    aspect-ratio: 3 / 2;
    padding: 0.7rem 0.85rem;
  }
}

.client-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(196,123,61,0.0), rgba(196,123,61,0.0));
  pointer-events: none;
  transition: background 0.35s var(--ease);
}

.client-tile:hover {
  border-color: var(--copper-400);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -18px rgba(196, 123, 61, 0.4);
}

.client-tile:hover::after {
  background: linear-gradient(135deg, rgba(196,123,61,0.06), rgba(196,123,61,0.0));
}

.client-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95);
  transition: filter 0.3s var(--ease);
  /* Prevent some logos from being collapsed by container queries */
  display: block;
}

.client-tile:hover img {
  filter: saturate(1);
}

.clients__cta {
  text-align: center;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: var(--muted);
  padding: 0 1rem;
  line-height: 1.6;
}

.clients__cta b {
  color: var(--copper-300);
  font-weight: 500;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1em;
}

/* ---------- Mobile fine-tuning (overrides) ---------- */
@media (max-width: 640px) {
  /* Container padding tighter on small screens to give content more room */
  :root {
    --pad-x: 1.1rem;
    --section-y: 3.25rem;
  }

  /* Hero — less aggressive top padding, smaller orbital */
  .hero {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .hero__visual {
    aspect-ratio: 1 / 1;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .hero__cta .btn {
    justify-content: center;
    width: 100%;
  }

  /* Page hero (inner pages) */
  .page-hero {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  /* Service grid cards — tighter padding */
  .service-card {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  /* Process step layout */
  .process__step {
    padding: 2rem 0;
    gap: 1rem;
  }

  .process__num {
    font-size: 1.6rem;
  }

  .process__title {
    font-size: 1.25rem;
  }

  /* Stats — tighter padding */
  .stat {
    padding: 1.75rem 1rem;
  }

  /* Featured work / portfolio cards */
  .work-card__body {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  .work-card__meta {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.72rem;
  }

  /* Quote block — tighter mobile padding */
  .quote-block {
    padding: 2.5rem 1.5rem;
  }

  .quote-block::before {
    font-size: 5rem;
    top: 0.3rem;
    left: 1rem;
  }

  /* CTA banner */
  .cta-banner {
    padding: 3rem 1.5rem;
  }

  /* Section heading tighter */
  .section-head {
    margin-bottom: 2.5rem;
  }

  /* Service detail blocks (services page) */
  .service-detail,
  .service-detail--reverse {
    padding: 2.5rem 0;
  }

  /* Contact info type a touch smaller */
  .contact-info__item p,
  .contact-info__item a {
    font-size: 1.15rem;
  }

  /* Footer — column layout */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  /* Filter chips */
  .filter-chip {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }

  /* Eyebrow — tighter on mobile */
  .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }
}

/* Very small screens (under 380px) */
@media (max-width: 380px) {
  :root {
    --pad-x: 0.9rem;
  }

  .nav__cta .btn--primary {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
  }
}

/* ---------- Animations / on-scroll ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
