/* Sol Naciente - design tokens */
:root {
  --paper: #FBF6EF;
  --card: #FFFFFF;
  --ink: #211C16;
  --ink-2: #564E42;
  --muted: #9C9284;
  --line: #E8DECE;
  --sun: #F22A18;
  --sun-dark: #C7200F;
  --sun-soft: #FDEAE7;
  --photo-a: #F0D9C6;
  --photo-b: #E7C2A8;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(33, 28, 22, .05), 0 14px 30px rgba(33, 28, 22, .07);
  --shadow-hover: 0 4px 10px rgba(33, 28, 22, .07), 0 20px 40px rgba(33, 28, 22, .1);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun-dark); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--sans); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 .5em; color: var(--ink); }
h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin: 0 0 .9em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand .mark { width: 22px; height: 22px; color: var(--sun); flex-shrink: 0; }
.brand-word { white-space: nowrap; }
.brand-strong { color: var(--sun); }
.brand-fade { color: var(--muted); font-weight: 500; }
.site-header--overlay .brand-strong { color: #FF8A6B; }
.site-header--overlay .brand-fade { color: rgba(255, 255, 255, .55); }
.site-header--overlay.is-scrolled .brand-strong { color: var(--sun); }
.site-header--overlay.is-scrolled .brand-fade { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sun); }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .98rem; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; line-height: 1.2; }
.btn-primary { background: var(--sun); color: #fff; }
.btn-primary:hover { background: var(--sun-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 80px); }
.hero h1 { max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.6em; }
.hero-contact { font-size: .95rem; color: var(--muted); }
.hero-contact a { color: var(--ink-2); }
.no-contract { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--sun-dark); background: var(--sun-soft); padding: 8px 16px; border-radius: 999px; }

.hero--video {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 56px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 17, 13, .5), rgba(20, 17, 13, .8)); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  color: rgba(255, 255, 255, .75); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; animation: scroll-cue-bounce 2s ease-in-out infinite;
}
.scroll-cue svg { width: 26px; height: 26px; }
.scroll-cue:hover { color: #fff; }
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
.hero--video .eyebrow { color: #FFA98F; }
.hero--video h1 { color: #fff; }
.hero--video h1 em { color: #FF8A6B; }
.hero--video .lead { color: rgba(255, 255, 255, .88); }
.hero--video .hero-contact { color: rgba(255, 255, 255, .6); }
.hero--video .hero-contact a { color: rgba(255, 255, 255, .92); }
.hero--video .btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.hero--video .btn-ghost:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } .hero--video { background: var(--ink); } }

/* Nav overlaid on the hero video, solidifies once scrolled past it */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .25s ease, border-color .25s ease; }
.site-header--overlay .brand { color: #fff; transition: color .25s ease; }
.site-header--overlay .nav a { color: rgba(255, 255, 255, .85); transition: color .25s ease; }
.site-header--overlay .nav a:hover, .site-header--overlay .nav a[aria-current="page"] { color: #fff; }
.site-header--overlay.is-scrolled { background: var(--paper); border-bottom-color: var(--line); }
.site-header--overlay.is-scrolled .brand { color: var(--ink); }
.site-header--overlay.is-scrolled .nav a { color: var(--ink-2); }
.site-header--overlay.is-scrolled .nav a:hover, .site-header--overlay.is-scrolled .nav a[aria-current="page"] { color: var(--sun); }
/* The CTA button keeps white text in every header state */
.site-header .nav a.btn.btn-primary, .site-header .nav a.btn.btn-primary:hover { color: #fff; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--sand { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 2.2em; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .price { font-weight: 800; font-size: 1.05rem; color: var(--sun); margin-top: 1em; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--sun-soft); color: var(--sun); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon svg { width: 22px; height: 22px; }

/* Value points */
.points { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.point h3 { font-size: 1.15rem; margin-bottom: .3em; }
.point p { color: var(--ink-2); margin: 0; }
.point .num { font-weight: 700; color: var(--sun); font-size: .95rem; letter-spacing: .04em; margin-bottom: .4em; display: block; }

/* Work cards */
.work-featured { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 34px; }
.work-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: var(--ink); }
.work-card .logo-box { height: 64px; display: flex; align-items: center; margin-bottom: 18px; }
.work-card .logo-box img { max-height: 56px; width: auto; max-width: 200px; object-fit: contain; }
.work-card .result { font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--ink); margin-bottom: 16px; }
.work-card .tag-row { margin-bottom: 20px; }
.work-card .thumb { display: block; width: calc(100% + 52px); height: 160px; object-fit: cover; object-position: top; margin: -26px -26px 18px; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.work-card .wordmark { font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.work-card .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5em; }
.work-card h3 { font-size: 1.3rem; }
.work-card p.desc { color: var(--ink-2); font-size: .97rem; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 18px; }
.mini-stats .n { font-weight: 800; font-size: 1.6rem; color: var(--sun); line-height: 1.1; }
.mini-stats .l { font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.work-card .more { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--sun); }
.work-card--featured { box-shadow: var(--shadow-hover); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-dark); }
.tag--own { background: none; padding: 0; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; color: var(--sun); }
.subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 46px 0 6px; }
.subhead h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.work-grid + .subhead { margin-top: 64px; }
.subnote { color: var(--muted); font-size: .95rem; margin-bottom: 22px; max-width: 46em; }
.work-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* Testimonials */
.testimonials { max-width: 760px; margin: 0 auto; text-align: center; }
.t-slides { position: relative; min-height: 170px; }
.t-slide { display: none; }
.t-slide.active { display: block; animation: t-fade .4s ease; }
.t-quote { font-size: 1.35rem; font-weight: 300; color: var(--ink); line-height: 1.55; margin-bottom: .6em; }
.t-author { font-size: .92rem; color: var(--muted); font-weight: 600; margin: 0; }
.t-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.t-dot.active { background: var(--sun); }
@keyframes t-fade { from { opacity: 0; } to { opacity: 1; } }

/* Steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .3em; }
.step p { color: var(--ink-2); margin: 0; }

/* Pricing */
.price-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.price-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.is-popular { box-shadow: var(--shadow-hover); border: 2px solid var(--sun); position: relative; }
.price-card .badge { position: absolute; top: -13px; left: 24px; background: var(--sun); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { margin-bottom: .1em; }
.price-card .amt { font-weight: 800; font-size: 2.1rem; line-height: 1.1; margin: .3em 0 .1em; }
.price-card .amt small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.1em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: .97rem; border-top: 1px solid var(--line); }
.price-card li:first-child { border-top: 0; }
.price-card li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--sun); border-bottom: 2.5px solid var(--sun); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; text-align: center; }
.fineprint { color: var(--muted); font-size: .9rem; margin-top: 18px; max-width: 50em; }

/* About */
.about { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .about { grid-template-columns: 220px 1fr; } }
.avatar { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(145deg, var(--photo-a), var(--photo-b)); color: var(--sun); display: grid; place-items: center; font-weight: 700; font-size: 4rem; letter-spacing: -.02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about p { color: var(--ink-2); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }

/* Contact */
.contact { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 56px; } }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list strong { display: inline-block; min-width: 70px; color: var(--muted); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
form.contact-form { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--sun); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: .8em 0 0; color: var(--ink-2); max-width: 46em; }

/* Page header (inner pages) */
.page-hero { padding: clamp(40px, 7vw, 76px) 0 clamp(24px, 4vw, 40px); }
.crumb { font-size: .9rem; margin-bottom: 1.4em; }
.crumb a { color: var(--muted); }

/* Case study */
.case-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.case-head .logo-box { height: 72px; display: flex; align-items: center; }
.case-head .logo-box img { max-height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.case-meta { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.stat-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 30px 0 10px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.stat .big { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--sun); line-height: 1.05; }
.stat .lbl { font-weight: 600; margin-top: 8px; font-size: .95rem; }
.stat .det { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.prose { max-width: 46em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .7em; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.callout { background: var(--sun-soft); border-left: 4px solid var(--sun); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; max-width: 46em; }
.callout p { margin: 0; color: var(--ink); }
.chart { margin: 28px 0 6px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); max-width: 46em; }
.chart-cap { color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.shot-hero { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 900px; }
.shot-hero img { width: 100%; display: block; }
.shot-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 8px 0 32px; max-width: 900px; }
.shot-grid figure { min-width: 0; margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shot-grid img { width: 100%; display: block; }
.shot-grid figcaption { padding: 12px 16px; font-size: .85rem; color: var(--muted); }
.case-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.cta-band { background: var(--card); box-shadow: var(--shadow); border-radius: 20px; padding: clamp(28px, 5vw, 48px); display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); margin: 0 0 .2em; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 0; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; margin-top: 30px; background: var(--paper); }
.foot { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--sun); }
.foot .small { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Preview banner (dev only) */
.todo-banner { background: #FFF3C4; color: #5b4500; border-bottom: 1px solid #E8D48A; font-size: .85rem; padding: 8px 20px; text-align: center; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .nav a:not(.btn) { font-size: .9rem; }
  .price-card .amt { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card, .btn { transition: none; }
}
