/* ==========================================================================
   Studio Name — styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #575E6B;
  --line: #E7E3DA;
  --accent: #FF5A36;
  --accent-ink: #16181D;
  --accent-deep: #C2330F;

  --radius-btn: 10px;
  --radius-card: 14px;
  --section-pad: clamp(64px, 10vw, 120px);
  --container: 1120px;
  --header-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1216;
    --surface: #171C23;
    --ink: #ECEEF2;
    --muted: #A3ACB9;
    --line: #262C35;
    --accent: #FF7A57;
    --accent-ink: #16181D;
    --accent-deep: #FF8A6B;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-mark { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - var(--header-h));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.site-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav li a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="true"]:not(.btn) { color: var(--accent-deep); }

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: rgba(15, 18, 22, .5);
}
.nav-backdrop[hidden] { display: none; }
.site-nav { z-index: 95; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    background: none;
    border: 0;
    transform: none;
    visibility: visible;
  }
  .site-nav ul { flex-direction: row; gap: 32px; }
  .site-nav li a:not(.btn) {
    min-height: 44px;
    font-size: .95rem;
    border: 0;
    color: var(--muted);
    transition: color .2s;
  }
  .site-nav li a:not(.btn):hover,
  .site-nav a[aria-current="true"]:not(.btn) { color: var(--ink); }
  .site-nav a[aria-current="true"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--accent); }
  .nav-cta { min-height: 44px; padding: 0 20px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 10vw, 160px) clamp(56px, 8vw, 100px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .875rem;
  font-weight: 500;
}
.pill-dot { color: var(--accent-deep); font-size: .7rem; }

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.accent { color: var(--accent-deep); }
.hero-pitch {
  max-width: 48ch;
  margin-top: 28px;
  font-size: 1.125rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  border-block: 1px solid var(--line);
  padding-block: 18px;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 32px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee-track span { flex: none; }
.marquee .star { color: var(--accent-deep); }
@keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow {
  margin-bottom: 12px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }

/* ---------- Services ---------- */
.services { display: grid; gap: 0 64px; }
.service {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  row-gap: 8px;
  padding-block: 32px;
  border-top: 1px solid var(--ink);
}
.service-num {
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  padding-top: 6px;
}
.service-icon { display: none; }
.service h3 { font-size: 1.5rem; }
.service p { grid-column: 2; color: var(--muted); max-width: 44ch; }
@media (min-width: 720px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service {
    grid-template-columns: 1fr auto;
    grid-template-areas: "num icon" "title title" "text text";
    row-gap: 12px;
  }
  .service-num { grid-area: num; grid-row: auto; padding: 0; }
  .service-icon { display: block; grid-area: icon; color: var(--accent-deep); }
  .service h3 { grid-area: title; margin-top: 24px; }
  .service p { grid-area: text; }
}

/* ---------- Portfolio ---------- */
.work-grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.work-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
.work-card:hover img { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(22, 24, 29, .45); }
.work-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 14px; }
.work-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.tag { font-size: .875rem; color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about-photo img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.about-body h2 { margin-bottom: 24px; }
.about-body p + p { margin-top: 16px; }
.about-body p:not(.eyebrow) { color: var(--muted); max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .9rem;
  font-weight: 500;
}
@media (min-width: 800px) {
  .about { grid-template-columns: 5fr 6fr; gap: 80px; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 48px 48px; }
.quote { padding-top: 28px; border-top: 1px solid var(--ink); }
.quote blockquote p { font-size: 1.1rem; line-height: 1.55; }
.quote figcaption { margin-top: 20px; display: flex; flex-direction: column; font-size: .95rem; }
.quote figcaption span { color: var(--muted); }
.quote-featured blockquote p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 28em;
}
@media (min-width: 760px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-featured { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
.contact-intro h2 { margin-bottom: 20px; }
.contact-intro > p:not(.eyebrow) { color: var(--muted); max-width: 40ch; }
.contact-email { margin-top: 24px; }
.contact-email a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--accent-deep);
  text-underline-offset: 4px;
}
.socials { display: flex; gap: 4px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  transition: color .2s, background-color .2s;
}
.socials a:hover { color: var(--accent-deep); background: var(--line); }

.form { display: grid; gap: 20px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--muted);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--accent-deep); border-width: 2px; }
.field-error { font-size: .875rem; font-weight: 500; color: var(--accent-deep); }
.field-error[hidden] { display: none; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.5em; font-size: .95rem; color: var(--muted); }
.form-status.is-error { color: var(--accent-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 880px) {
  .contact { grid-template-columns: 5fr 6fr; gap: 80px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-top: 56px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 32px; }
.footer-brand p { margin-top: 8px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }
.site-footer .socials { margin-top: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 40px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto auto; align-items: start; gap: 48px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(960px, 94vw);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 12, 15, .82); }
.lightbox-inner { position: relative; padding: 16px; }
.lightbox figure img {
  width: 100%;
  max-height: 72dvh;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg);
}
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 4px;
  font-weight: 500;
}
#lb-counter { color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform .2s;
}
.lb-btn:hover { transform: scale(1.08); }
.lb-btn:focus-visible { outline-color: var(--ink); }
.lb-close { top: 24px; right: 24px; }
.lb-prev, .lb-next { bottom: 12px; }
.lb-prev { right: 76px; }
.lb-next { right: 16px; }
@media (min-width: 800px) {
  .lb-prev, .lb-next { top: 40%; bottom: auto; }
  .lb-prev { left: -24px; right: auto; }
  .lb-next { right: -24px; }
}
@media (max-width: 799px) {
  .lightbox figcaption { padding-right: 130px; min-height: 52px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation: none !important;
  }
  .marquee { overflow-x: auto; }
}
