/* ---------- Tokens ---------- */
:root {
  --brand: #f38922;
  --brand-dark: #d9701a;
  --brand-light: #fff1e2;
  --brand-glow: rgba(243, 137, 34, 0.35);
  --ink: #171512;
  --ink-soft: #55504a;
  --ink-faint: #8a847c;
  --paper: #ffffff;
  --paper-alt: #faf7f3;
  --line: #ece6dd;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -24px rgba(23, 21, 18, 0.28);
  --shadow-sm: 0 10px 24px -14px rgba(23, 21, 18, 0.22);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Sora', 'Inter', -apple-system, sans-serif;
  --max: 1160px;
  --header-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 300;
}
.skip-link:focus { left: 0; }

.text-gradient {
  background: linear-gradient(115deg, var(--brand-dark), var(--brand) 45%, #ffb454);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #ffb454);
  z-index: 300;
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -10px var(--brand-glow);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 28px -10px var(--brand-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  --header-h: 96px;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  --header-h: 72px;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.brand {
  display: flex;
  align-items: flex-end;
  align-self: stretch;
}
.brand-mark {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: -60px;
  box-shadow: var(--shadow-sm);
  transition: width 0.25s ease, height 0.25s ease, margin-bottom 0.25s ease;
}
.site-header.is-scrolled .brand-mark {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: -40px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}
.nav a:not(.nav-cta) {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  padding-bottom: 2px;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brand);
  transition: right 0.2s ease;
}
.nav a:not(.nav-cta):hover { color: var(--ink); }
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 10px 20px -10px var(--brand-glow);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 24px -10px var(--brand-glow); }

.nav-cta-desktop { display: none; }

@media (min-width: 761px) {
  .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-cta-mobile { display: none; }
  .nav-cta-desktop {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-cta-desktop:hover {
    transform: translateY(calc(-50% - 2px));
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float-blob 16s ease-in-out infinite;
}
.hero-bg .blob-1 {
  width: 480px; height: 480px;
  top: -180px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--brand-light), rgba(255, 244, 232, 0));
}
.hero-bg .blob-2 {
  width: 360px; height: 360px;
  top: 120px; right: 260px;
  background: radial-gradient(circle at 40% 40%, var(--brand-glow), rgba(243, 137, 34, 0));
  animation-delay: -8s;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 28px) scale(1.06); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  max-width: 15ch;
}
.lead {
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 360px;
}
.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: float-card 7s ease-in-out infinite;
}
.hero-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card-1 { top: 0; left: 5%; width: 280px; animation-delay: 0s; }
.card-1 .bar { height: 10px; border-radius: 6px; background: var(--paper-alt); margin-bottom: 8px; }
.card-1 .bar.short { width: 60%; }
.card-2 { top: 150px; right: 0; width: 220px; animation-delay: -2.4s; }
.card-2 .dot-row { display: flex; gap: 8px; }
.card-2 .dot-row span { width: 26px; height: 26px; border-radius: 50%; background: var(--paper-alt); border: 2px solid var(--brand); }
.card-3 { bottom: 0; left: 18%; width: 200px; animation-delay: -4.8s; }
.card-3 .ring {
  width: 60px; height: 60px; margin: 4px auto 0;
  border-radius: 50%;
  border: 8px solid var(--brand-light);
  border-top-color: var(--brand);
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg .blob, .hero-card { animation: none; }
}

/* ---------- Audience strip ---------- */
.audience-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.audience-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 22px 24px;
}
.audience-strip-inner p {
  margin: 0;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.audience-strip-inner ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.audience-strip-inner li {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Section shared ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-sub { font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #ffb454);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), #ffe3c2);
  color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }
.service-card-cta {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card-cta::before { background: linear-gradient(90deg, var(--brand), #ffb454); }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: #cfc9c0; font-size: 0.95rem; }
.service-card-cta .btn { margin-top: 8px; align-self: flex-start; }
.service-card-cta:hover { transform: none; }

/* ---------- Process ---------- */
.process { background: var(--paper-alt); }
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-steps li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.process-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -25px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--brand);
  opacity: 0.55;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 18px -8px var(--brand-glow);
  margin-bottom: 16px;
}
.process-steps h3 { font-size: 1.05rem; }
.process-steps p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Audiences ---------- */
.audience-grid { grid-template-columns: repeat(3, 1fr); }
.audience-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: linear-gradient(180deg, var(--paper), var(--paper-alt));
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audience-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), #ffb454);
  transition: width 0.3s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.audience-card:hover::before { width: 100%; }
.audience-card h3 { font-size: 1.15rem; }
.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand-light);
  box-shadow: inset 0 0 0 4px var(--brand);
}

/* ---------- Why ---------- */
.why { background: var(--paper-alt); }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-item {
  padding: 24px 0 0;
  border-top: 2px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.why-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.why-item h3 { font-size: 1.05rem; }
.why-item p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--paper-alt); }
.cta-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  border-radius: 28px;
  background: linear-gradient(160deg, #211d18, var(--ink) 60%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.cta-card::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  z-index: -1;
}
.cta-card h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-card p { color: #cfc9c0; margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-body {
  display: flex;
  align-items: center;
  gap: 48px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1 1 auto;
  max-width: 760px;
}
.contact-visual {
  flex: 1 1 320px;
  max-width: 380px;
}
.contact-illustration {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 32px rgba(23, 21, 18, 0.12));
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-faint); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--brand-light);
}
textarea { resize: vertical; }
.form-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--brand-dark);
  font-weight: 600;
  min-height: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--paper-alt);
  padding: 40px 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.footer-inner .brand {
  align-items: center;
  align-self: auto;
}
.footer-inner .brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 0;
  box-shadow: none;
}
.footer-bottom {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}
.footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-admin-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.footer-admin-link:hover {
  color: var(--brand-dark);
  text-decoration-color: var(--brand);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; margin-top: 20px; }
  .services-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li:nth-child(2)::after { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-visual { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 80px; }
  .site-header.is-scrolled { --header-h: 66px; }
  .brand-mark { width: 92px; height: 92px; margin-bottom: -46px; border-radius: 18px; }
  .site-header.is-scrolled .brand-mark { width: 64px; height: 64px; margin-bottom: -32px; border-radius: 14px; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, top 0.25s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }

  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-visual { height: 260px; transform: scale(0.9); transform-origin: top center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .services-grid, .audience-grid, .process-steps, .why-grid { grid-template-columns: 1fr; }
  .process-steps li::after { display: none !important; }
  .contact-form { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 24px; border-radius: 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-admin-link { position: static; transform: none; }
}

@media (max-width: 420px) {
  .card-1 { width: 240px; }
  .card-2 { width: 190px; }
  .card-3 { width: 170px; }
}
