/* ── Fonts (self-hosted, SIL Open Font License) ─────────── */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:           #0b0b0c;
  --bg-2:         #111113;
  --text:         #f2f2f0;
  --muted:        #8d8d93;
  --accent:       #e02020;
  --accent-hover: #c41b1b;
  --accent-light: #ff5a52;      /* the same red, lightened so small text passes AA on near-black */
  --whatsapp:     #0f7a40;
  --whatsapp-2:   #0b6634;
  --border:       rgba(255,255,255,0.1);
  --radius:       8px;
  --serif:        'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:         'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: 0.7rem 1.1rem; background: #fff; color: #0e0e10; font-weight: 600; border-radius: 4px; transition: top 0.2s; }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }

/* ── Type ───────────────────────────────────────────────── */
.label { margin: 0 0 0.9rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-light); }
.eyebrow { margin: 0; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.15; letter-spacing: -0.01em; }
.lead { margin: 1rem 0 0; max-width: 52ch; font-size: 1rem; color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border: 1px solid transparent; border-radius: 6px; font-size: 0.95rem; font-weight: 600; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-2); }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.3s, box-shadow 0.3s; }
.site-header.scrolled { background: rgba(11,11,12,0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9rem; font-weight: 500; }
.nav a:not(.btn) { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.nav a:not(.btn):hover { color: #fff; }
.nav .btn { padding: 0.55rem 1.2rem; font-size: 0.875rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { display: flex; align-items: center; min-height: 100svh; padding: 7rem 0 4.5rem; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); gap: 4rem; align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero h1 { font-size: clamp(2.3rem, 3.7vw, 3.5rem); line-height: 1.12; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.hero-sub { margin: 0; max-width: 46ch; font-size: 1.06rem; line-height: 1.75; color: rgba(255,255,255,0.7); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-media { position: relative; }
.hero-frame { position: relative; width: 100%; margin: 0; overflow: hidden; aspect-ratio: 5 / 4; max-height: min(80vh, 780px); background: transparent; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transition: opacity 0.35s ease; }
.hero-video.is-dipping { opacity: 0; }
/* The page colour fades over the clip's edges, so it melts into the background instead of sitting in a box */
.hero-frame::after, .hero-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-frame::after {
  background: linear-gradient(to bottom,
    rgba(11,11,12,1) 0%, rgba(11,11,12,0.9) 5%, rgba(11,11,12,0.72) 10%, rgba(11,11,12,0.52) 15%, rgba(11,11,12,0.34) 20%,
    rgba(11,11,12,0.19) 25%, rgba(11,11,12,0.08) 31%, rgba(11,11,12,0) 38%, rgba(11,11,12,0) 70%, rgba(11,11,12,0.08) 76%,
    rgba(11,11,12,0.26) 83%, rgba(11,11,12,0.58) 91%, rgba(11,11,12,0.9) 97%, rgba(11,11,12,1) 100%);
}
.hero-frame::before { display: none; }
@media (min-width: 1001px) {
  .hero-media { margin-right: calc((min(1180px, 100vw - 2.5rem) - 100vw) / 2); }
  .hero-frame::before {
    display: block;
    background: linear-gradient(to right,
      rgba(11,11,12,1) 0%, rgba(11,11,12,0.72) 7%, rgba(11,11,12,0.42) 14%, rgba(11,11,12,0.18) 22%, rgba(11,11,12,0.05) 30%, rgba(11,11,12,0) 36%);
  }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 3rem; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.service { display: grid; gap: 0.8rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.22); transition: border-color 0.25s; }
.service:hover { border-top-color: var(--accent-light); }
.service h3 { font-size: 1.15rem; transition: color 0.25s; }
.service:hover h3 { color: var(--accent-light); }
.service p { margin: 0; font-size: 0.86rem; line-height: 1.7; color: var(--muted); }

.work { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.work p { margin: 1rem 0 1.75rem; max-width: 46ch; color: var(--muted); }
.work-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.work-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; transition: padding-left 0.25s, color 0.25s; }
.work-list li:hover { padding-left: 0.5rem; color: var(--accent-light); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.contact-links { border-top: 1px solid var(--border); }
.contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-row .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-row .v { font-size: 0.98rem; font-weight: 600; text-align: right; }
a.contact-row:hover .v { color: var(--accent-light); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-inner img { height: 40px; width: auto; }
.footer-inner p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; }

/* ── Motion ─────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { opacity: 0; animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; } .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.27s; } .hero-copy > *:nth-child(4) { animation-delay: 0.38s; }
.hero-frame { opacity: 0; animation: rise 0.9s 0.3s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.service.reveal:nth-child(2) { transition-delay: 0.08s; } .service.reveal:nth-child(3) { transition-delay: 0.16s; } .service.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero { padding-bottom: 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-media { margin-inline: -1.25rem; margin-top: -1rem; }
  .hero-frame { aspect-ratio: 3 / 2; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .work, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 700px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 600px) { .hero-frame { aspect-ratio: 1 / 1; } .hero-video { object-position: 34% 50%; } .services { grid-template-columns: 1fr; gap: 2rem; } .section { padding: 4rem 0; } .logo img { height: 30px; } }
@media (max-width: 480px) { .hero-actions { flex-direction: column; justify-self: stretch; } .btn { width: 100%; } .nav .btn { width: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hero-copy > *, .hero-frame, .reveal { opacity: 1 !important; transform: none !important; }
}
