/* ============================================================
   GRAFT ADVISORY — Sunset Miami design system (two-colour)
   Base cream · espresso ink · flamingo + peach accents
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-normal-0.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-normal-1.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FBF3E4;
  --cream-2: #F6E7D0;
  --ink: #2B2118;
  --ink-soft: #55483C;
  --flamingo: #FF6F91;
  --flamingo-deep: #D94A6F;
  --flamingo-tint: #FFD3DE;
  --peach: #FFB86B;
  --peach-deep: #C77A22;
  --peach-tint: #FFE3C2;
  --sunset: linear-gradient(100deg, var(--flamingo) 0%, var(--peach) 100%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 10px 40px -12px rgba(43, 33, 24, .18);
  --head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
}

/* subtle grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, picture { max-width: 100%; display: block; }
a { color: var(--flamingo-deep); }

h1, h2, h3 {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 75, 'opsz' 120;
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--flamingo-deep);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--sunset);
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); margin: 14px 0 16px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- animations ---------- */
@keyframes float-sun {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(26px) scale(1.04); }
}
@keyframes shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-7deg) scale(1.08); }
  75% { transform: rotate(6deg) scale(1.05); }
}
@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 228, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 33, 24, .08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.wordmark { text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark strong {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 680;
  font-size: 26px;
  letter-spacing: .01em;
  display: block;
}
.wordmark span {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .42em;
  margin-top: 3px;
  color: var(--flamingo-deep);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 550;
}
.nav-links a:hover { color: var(--flamingo-deep); }
.nav-links a.btn { color: var(--cream); }
.nav-links a.btn:hover { color: var(--cream); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 620;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover {
  background: var(--flamingo-deep);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 12px 28px -10px rgba(217, 74, 111, .5);
}
.btn.small { padding: 10px 20px; font-size: 14.5px; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(43, 33, 24, .25);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--flamingo-deep); color: var(--flamingo-deep); background: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 100px 0 110px; overflow: hidden; }
.hero-sun {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, var(--peach-tint) 0%, var(--peach) 45%, var(--flamingo) 100%);
  opacity: .5;
  filter: blur(2px);
  animation: float-sun 9s ease-in-out infinite alternate;
}
.hero-stripes {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  background: repeating-linear-gradient(0deg, rgba(255, 111, 145, .13) 0 2px, transparent 2px 22px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  font-variation-settings: 'SOFT' 90, 'opsz' 144;
  margin: 22px 0 26px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #D94A6F, #E08A2E, #D94A6F, #E08A2E);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 620px; margin: 0 auto 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 34px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-proof li { display: flex; align-items: center; gap: 9px; }
.hero-proof li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sunset);
}
.hero-sun.left {
  left: -220px; right: auto;
  top: auto; bottom: -320px;
  width: 480px; height: 480px;
  opacity: .3;
  animation-delay: -4s;
}

/* ---------- why band ---------- */
.break-band { position: relative; overflow: hidden; min-height: 380px; display: grid; }
.break-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.break-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(43, 33, 24, .78), rgba(217, 74, 111, .45));
}
.break-inner {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.break-quote {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 90, 'opsz' 144;
  font-weight: 620;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.22;
  color: var(--cream);
  max-width: 780px;
  margin: 0 auto 18px;
}
.break-attr {
  color: var(--peach);
  font-weight: 650;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- name / definition ---------- */
.name-band { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.name-band::before {
  content: '';
  position: absolute;
  left: -120px; bottom: -220px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--flamingo) 0%, transparent 68%);
  opacity: .32;
}
.name-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.def-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow);
  transform: rotate(-1.4deg);
  transition: transform .3s ease;
}
.def-card:hover { transform: rotate(.6deg) scale(1.02); }
.def-card .word {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 680;
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: 1;
}
.def-card .pos { color: var(--peach-deep); font-size: 15px; font-style: italic; margin: 10px 0 16px; }
.def-card .def { font-size: 19px; line-height: 1.55; }
.def-card .def strong { color: var(--flamingo-deep); }
.name-copy h2 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 18px; }
.name-copy p { color: rgba(251, 243, 228, .82); font-size: 17.5px; margin-bottom: 16px; }
.name-copy .eyebrow { color: var(--peach); }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.service:hover .icon { animation: wiggle .5s ease; }
.service .icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service:nth-child(odd) .icon { background: var(--flamingo-tint); color: var(--flamingo-deep); }
.service:nth-child(even) .icon { background: var(--peach-tint); color: var(--peach-deep); }
.service h3 { font-size: 21.5px; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 15.5px; }
/* staggered reveal */
.services-grid .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4) { transition-delay: .08s; }
.services-grid .reveal:nth-child(5) { transition-delay: .16s; }
.services-grid .reveal:nth-child(6) { transition-delay: .24s; }

/* ---------- matt ---------- */
.matt-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.matt-photos { position: relative; }
.matt-photos .ph-main {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.matt-photos .ph-float {
  position: absolute;
  right: -34px; bottom: -44px;
  width: 46%;
  height: auto;
  border-radius: var(--radius-md);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  transition: transform .3s ease;
}
.matt-photos:hover .ph-float { transform: rotate(-1.5deg) scale(1.04); }
.matt-copy h2 { font-size: clamp(30px, 4vw, 42px); margin: 14px 0 18px; }
.matt-copy > p { color: var(--ink-soft); margin-bottom: 26px; }
.facts { list-style: none; display: grid; gap: 12px; }
.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 15.5px;
  transition: transform .2s ease;
}
.facts li:hover { transform: translateX(6px); }
.facts li::before {
  content: '';
  flex: 0 0 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--sunset);
}

/* ---------- logo marquees ---------- */
.logos-band { background: var(--cream-2); border-block: 1px solid rgba(43,33,24,.06); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.marquee .track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-left 42s linear infinite;
}
.marquee.reverse .track { animation-name: marquee-right; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .cell {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 14px;
  height: 88px;
  width: 190px;
  display: grid;
  place-items: center;
  padding: 18px 26px;
  border: 1px solid rgba(43, 33, 24, .06);
}
.marquee img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
}

/* ---------- testimonials ---------- */
.testis { columns: 2; column-gap: 22px; }
.testi {
  break-inside: avoid;
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi .mark {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: 54px;
  line-height: .6;
  color: var(--peach);
  display: block;
  margin-bottom: 14px;
}
.testi blockquote { font-size: 15.5px; color: var(--ink-soft); }
.testi blockquote strong { color: var(--ink); }
.testi .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.testi .who img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--peach-tint);
}
.testi .who .n { font-weight: 650; font-size: 15px; }
.testi .who .r { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- awards ---------- */
.awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 34px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin-bottom: 26px;
}
.awards-row img {
  max-height: 72px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
}
.awards-row img:hover { transform: rotate(-3deg) scale(1.08); }
.awards-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.awards-photos { align-items: start; }
.awards-photos img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform .25s ease;
}
.awards-photos img:hover { transform: scale(1.03) rotate(-.6deg); }

/* ---------- fit ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.fit-list { list-style: none; display: grid; gap: 14px; }
.fit-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15.5px;
  transition: transform .2s ease;
}
.fit-list li:hover { transform: translateX(6px); }
.fit-list li::before {
  content: '✓';
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--flamingo-tint);
  color: var(--flamingo-deep);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.fit-not {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 4px solid var(--peach);
  background: var(--peach-tint);
  border-radius: 0 14px 14px 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.fit-not strong { color: var(--ink); }
.fit-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.fit-copy .entry { color: var(--ink); font-weight: 600; }
.fit-copy .entry a { color: var(--flamingo-deep); }

/* ---------- steps ---------- */
.steps-band { background: var(--cream-2); border-block: 1px solid rgba(43,33,24,.06); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .num {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 680;
  font-size: 46px;
  line-height: 1;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.steps .reveal:nth-child(2) { transition-delay: .08s; }
.steps .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details {
  background: #fff;
  border: 1px solid rgba(43, 33, 24, .07);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 650;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--flamingo-tint);
  color: var(--flamingo-deep);
  font-size: 20px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15.5px; }
.faq details[open] { border-color: rgba(217, 74, 111, .35); }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 26px 0;
  border-block: 1px solid rgba(43, 33, 24, .08);
  background: var(--cream);
}
.ticker .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-left 30s linear infinite;
}
.ticker span {
  font-family: var(--head);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 680;
  font-size: 44px;
  line-height: 1;
  white-space: nowrap;
  padding-right: 28px;
  color: var(--flamingo);
}
.ticker span.fill { color: var(--peach); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--sunset); }
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(251, 243, 228, .10) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 70%);
  mask-image: linear-gradient(0deg, #000, transparent 70%);
}
.cta-inner { position: relative; text-align: center; max-width: 680px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(36px, 5.2vw, 58px); color: var(--ink); margin-bottom: 18px; }
.cta-inner p { color: rgba(43, 33, 24, .82); font-size: 18px; margin-bottom: 34px; }
.cta-inner .btn { font-size: 18px; padding: 18px 40px; }
.cta-inner .fine { font-size: 14px; margin-top: 22px; color: rgba(43, 33, 24, .65); }
.cta-inner .fine a { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(251, 243, 228, .75); padding: 44px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer .wordmark { color: var(--cream); }
.footer .wordmark span { color: var(--peach); }
.footer a { color: var(--cream); }
.footer .meta { font-size: 14px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  .hero-sun, .hero h1 em, .hero-card img, .marquee .track, .ticker .track { animation: none !important; }
  .marquee, .marquee .track { overflow-x: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 80px; }
  .name-grid, .matt-grid, .fit-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .break-band { min-height: 320px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .testis { columns: 1; }
  .awards-photos { grid-template-columns: 1fr; }
  .awards-photos img { height: 220px; }
  .matt-photos .ph-float { right: 0; }
  .nav-links li:not(:last-child) { display: none; }
  .ticker span { font-size: 32px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
