/* ============================================================
   Tokens
   ============================================================ */
:root {
  --ink: #17130F;
  --ink-muted: #6B6157;
  --cream: #FBF7F2;
  --paper: #FFFFFF;
  --flame: #F2600C;
  --flame-deep: #C4430A;
  --flame-tint: #FFE7D6;
  --border: #F0E1D2;

  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --max-width: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(23, 19, 15, 0.04);
  --shadow-card-hover: 0 18px 40px -20px rgba(196, 67, 10, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--ink);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

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

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 64px);
}

.section--cream {
  background: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.section-sub {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--flame);
  white-space: nowrap;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  background: var(--flame);
  color: #FFFFFF;
  box-shadow: 0 14px 28px -14px rgba(242, 96, 12, 0.55);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.button:hover {
  background: var(--flame-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(196, 67, 10, 0.6);
}

.button:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgba(23, 19, 15, 0.25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: auto;
  display: block;
}

.site-header .logo img {
  height: 13px;
}

.site-footer .logo img {
  height: 10.4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-desktop a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

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

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

.nav-desktop a.is-active {
  color: var(--flame);
}

.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

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

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.nav-mobile a {
  padding: 12px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a.is-active {
  color: var(--flame);
}

/* ============================================================
   Hero
   ============================================================ */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(56px, 9vw, 96px) clamp(40px, 6vw, 64px);
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-heading .accent {
  color: var(--flame);
}

.hero-copy {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  margin-top: 34px;
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* ============================================================
   Product spotlight (Exon Studio)
   ============================================================ */
.product-spot-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-heading--wide {
  max-width: none;
}

.section-sub--wide {
  max-width: none;
}

.product-spot-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.product-spot-media {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
}

.product-spot-glow {
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(ellipse at 50% 38%, rgba(242, 96, 12, 0.35), rgba(242, 96, 12, 0) 65%);
  filter: blur(48px);
  z-index: 0;
}

.product-spot-media picture {
  position: relative;
  z-index: 1;
  display: block;
}

.product-spot-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 40px 70px -35px rgba(23, 19, 15, 0.38);
}

/* ============================================================
   Card grids (services / blog / projects)
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card,
.blog-card,
.project-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover,
.blog-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: #FFD9BE;
}

.service-card {
  padding: 32px 28px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--flame-tint);
  color: var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.blog-card,
.project-card {
  overflow: hidden;
}

.card-media {
  aspect-ratio: 8 / 5;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .card-media img,
.project-card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px 24px 28px;
}

.card-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}

.blog-card h3,
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.project-card p {
  color: var(--ink-muted);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

/* ============================================================
   CTA + contact
   ============================================================ */
.cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cta-copy {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 40ch;
}

.cta-actions {
  margin-top: 30px;
}

.cta-map {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 28px;
  overflow: hidden;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.contact-list .icon-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--flame-tint);
  color: var(--flame);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-list .icon-chip svg {
  width: 16px;
  height: 16px;
}

.dot-map {
  position: relative;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-image: radial-gradient(#E7B896 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 55%, transparent 100%);
}

.dot-map .pin {
  position: absolute;
  left: 27%;
  top: 62%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 4px rgba(242, 96, 12, 0.25);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-links a:hover {
  color: var(--flame);
  border-color: #FFD9BE;
  transform: translateY(-2px);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    max-width: 420px;
    margin-inline: auto;
  }

  .cta .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile.is-open {
    display: flex;
  }

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

  .section-head {
    align-items: flex-start;
  }
}
