/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-2:      #f5f4f2;
  --paper:     #ffffff;
  --ink:       #1a1a1a;
  --ink-soft:  #2a2a2a;
  --ink-mute:  #63615d;
  --line:      rgba(26,26,26,0.10);
  --line-2:    rgba(26,26,26,0.16);

  --accent:      #e8871e;
  --accent-dark: #c56e12;
  --accent-tint: #fdf1e2;

  --display: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 84px;

  --radius: 14px;
  --radius-sm: 8px;

  color-scheme: light;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--display); font-weight: 500; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}
.kicker {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  max-width: 22ch;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--ink-mute);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(232,135,30,0.55);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(232,135,30,0.6); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.site-header.is-solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(26,26,26,0.25);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; width: 100%; }
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 0.3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; align-items: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.75rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
  z-index: 490;
}
.nav-mobile-panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile-panel a {
  padding: 0.85rem 0.25rem; font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-panel .btn { margin-top: 0.9rem; align-self: flex-start; }

/* Cards shared */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: var(--nav-h);
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,13,11,0.35) 0%, rgba(15,13,11,0.28) 35%, rgba(20,19,17,0.6) 72%, rgba(26,26,26,0.97) 100%);
}
.hero-inner { padding-block: clamp(2.5rem, 8vh, 5rem); max-width: 860px; }
.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  color: #fff;
  text-wrap: balance;
  max-width: 17ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- Trust bar --- */
.trust-bar { background: var(--ink); padding-block: clamp(2.75rem, 6vw, 4rem); }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
}
.trust-item { text-align: center; }
.trust-value {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent); font-weight: 600; line-height: 1;
}
.trust-label {
  color: rgba(245,244,242,0.78); font-size: 0.82rem; margin-top: 0.4rem;
  letter-spacing: 0.01em;
}

/* --- Credentials --- */
.credentials {
  background: var(--paper);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.credentials-heading {
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--ink-soft);
  max-width: 30ch;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}
.credentials-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 840px;
  margin-inline: auto;
}
.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2.25rem 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.credential-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--paper);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.credential-icon svg { width: 28px; height: 28px; }
.credential-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.credential-desc {
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 34ch;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.4rem;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 0.9rem; width: max-content;
  animation: marqueeScroll 32s linear infinite;
  font-family: var(--display); font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--ink-mute);
  white-space: nowrap;
}
.marquee-track span:nth-child(odd) { color: var(--accent-dark); font-style: normal; font-weight: 600; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Manifesto --- */
.manifesto { padding-block: clamp(4rem, 10vw, 7rem); }
.manifesto-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.manifesto-number {
  font-family: var(--display); font-size: clamp(3.5rem, 9vw, 6rem);
  color: var(--accent-tint); font-weight: 600; line-height: 1;
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
}
.manifesto-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 16ch; margin-bottom: 1.5rem; }
.manifesto-text p { color: var(--ink-mute); font-size: 1.08rem; max-width: 62ch; margin-bottom: 1.1rem; }

/* --- Services --- */
.services { padding-block: clamp(3rem, 8vw, 6rem); background: var(--bg-2); }
.services-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
.service-card {
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  position: relative; overflow: hidden;
}
.service-card.is-featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-card.is-featured .service-desc { color: rgba(245,244,242,0.75); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(26,26,26,0.35); border-color: var(--line-2); }
.service-card.is-featured:hover { box-shadow: 0 20px 40px -20px rgba(0,0,0,0.45); }
.service-index { font-family: var(--display); font-style: italic; color: var(--accent); font-size: 1rem; }
.service-name { font-family: var(--display); font-size: 1.3rem; font-weight: 500; }
.service-desc { color: var(--ink-mute); font-size: 0.96rem; line-height: 1.55; }

/* --- Portfolio / gallery --- */
.portfolio { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  font-size: 0.9rem; font-weight: 500; color: var(--ink-mute);
  transition: all .25s var(--ease-out);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  transform: perspective(1000px);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,13,11,0.72) 100%);
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.gallery-label {
  position: absolute; left: 1rem; right: 1rem; bottom: 0.9rem;
  color: #fff; font-size: 0.88rem; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  z-index: 1;
}
.gallery-item:hover { box-shadow: 0 26px 50px -22px rgba(26,26,26,0.45); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }
.gallery-item[hidden] { display: none; }

/* --- Process --- */
.process { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--bg-2); }
.process-list { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.process-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  padding: 1.6rem; align-items: start;
}
.process-num {
  font-family: var(--display); font-style: italic; color: var(--accent);
  font-size: 1.6rem; line-height: 1;
}
.process-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.35rem; font-family: var(--sans); }
.process-desc { color: var(--ink-mute); font-size: 0.98rem; }

/* --- Why --- */
.why { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.why-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.why-card { padding: 1.6rem; }
.why-title { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.why-desc { color: var(--ink-mute); font-size: 0.95rem; }

/* --- CTA final --- */
.cta-final { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--ink); color: #fff; }
.cta-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.cta-text h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; max-width: 14ch; }
.cta-text > p:not(.eyebrow) { color: rgba(245,244,242,0.78); font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.75rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.6rem; }
.contact-details a, .contact-details span { color: rgba(245,244,242,0.9); font-size: 1rem; }
.contact-details a:hover { color: var(--accent); }

.contact-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea {
  font: inherit; padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink);
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); background: var(--paper); outline: none; }
.form-submit { width: 100%; }
.form-note { font-size: 0.88rem; color: var(--ink-mute); min-height: 1.2em; }
.form-note.is-success { color: #2f7a3d; font-weight: 500; }

/* --- Footer --- */
.site-footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; gap: 2.25rem; grid-template-columns: 1fr;
  padding-bottom: 2.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--ink-mute); font-size: 0.92rem; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-nav a { color: var(--ink-mute); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.95rem; }
.footer-contact a { color: var(--ink-soft); }
.footer-contact a:hover { color: var(--accent-dark); }
.footer-bottom p { color: var(--ink-mute); font-size: 0.82rem; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .credentials-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .credential { flex-direction: row; text-align: left; padding: 2rem 2.25rem; }
  .manifesto-grid { grid-template-columns: 160px 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card.is-featured { grid-column: span 2; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card.is-featured { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item:nth-child(6n+1), .gallery-item:nth-child(6n+4) { aspect-ratio: 4 / 5.6; }
}

@media (min-width: 1280px) {
  .hero-inner { max-width: 900px; }
}

/* =============================================================
   9. Reduced motion — only the intrusive stuff
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-duration: 90s; }
}
