:root {
  --ink:        #16160F;
  --ink-soft:   #6E6C62;
  --paper:      #FBF9F5;
  --paper-dim:  #F1EDE5;
  --line:       #E7E2D6;
  --white:      #FFFFFF;
  --accent:     #FF5A36;
  --accent-ink: #FFFFFF;
  --accent-dim: #FFE4DA;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 60ch; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.eyebrow { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 14px; display: inline-block; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600; border-radius: 100px; border: 2px solid var(--ink); cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease; background: none; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-outline { background: none; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,245,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.site-logo { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.site-logo span { color: var(--accent); }
.primary-nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
.primary-nav ul li + li { margin-left: 32px; }
.primary-nav a { font-size: 0.92rem; font-weight: 500; position: relative; padding: 6px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 100px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: var(--sans); }

/* Full-screen mobile menu */
.menu-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 90; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay-close { position: absolute; top: 26px; right: 40px; background: none; border: 2px solid var(--ink); border-radius: 100px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.menu-overlay ul { list-style: none; margin: 0; padding: 0; }
.menu-overlay li + li { margin-top: 14px; }
.menu-overlay a { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 8vw, 3.4rem); }
.menu-overlay-footer { margin-top: 40px; font-size: 0.9rem; color: var(--ink-soft); }

/* Hero */
.hero { padding: 76px 0 90px; position: relative; overflow: hidden; }
.hero .wrap { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.hero-copy { flex: 1.2 1 420px; }

/* Typed hero headline. The h1 owns an animated height so the copy below it
   slides as the title wraps. JS pins .hero-copy to its tallest possible
   height, so that motion stays inside the hero and the page never reflows. */
.hero-title { overflow: hidden; transition: height 260ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.hero-title.no-anim { transition: none; }
.hero-title-text { display: block; white-space: pre-wrap; }
.hero-caret { display: inline-block; width: 0.055em; height: 0.78em; margin-left: 0.06em; background: var(--accent); vertical-align: -0.04em; animation: caret-blink 1s steps(1, end) infinite; transition: opacity 500ms ease; }
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-title { overflow: visible; transition: none; }
  .hero-caret { display: none; }
}
.hero-copy .lede { font-size: 1.15rem; max-width: 46ch; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions > * + * { margin-left: 14px; }
@supports (gap: 1px) { .hero-actions > * + * { margin-left: 0; } }
.hero-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }
.hero-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #3FBF63; flex-shrink: 0; }
.hero-photo { flex: 1 1 300px; position: relative; }
.hero-photo-frame { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--accent-dim); position: relative; }
.hero-photo-frame img, .hero-photo-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: -18px; left: -18px; background: var(--ink); color: var(--paper); border-radius: 100px; padding: 14px 22px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }

/* Work grid */
.work { padding: 88px 0; border-top: 1px solid var(--line); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.work-head p { max-width: 36ch; margin: 0; }
.filter-tabs { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-tab { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; padding: 10px 20px; border-radius: 100px; border: 2px solid var(--line); background: none; cursor: pointer; color: var(--ink-soft); transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.filter-tab.is-active { border-color: var(--ink); color: var(--ink); background: var(--white); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.work-card { text-decoration: none; }
.work-card.is-hidden { display: none; }
.work-thumb { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; position: relative; background: var(--paper-dim); }
.work-thumb img, .work-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work-card:hover .work-thumb img,
.work-card:hover .work-thumb video { transform: scale(1.04); }
.work-tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; z-index: 1; }
.work-tag { background: var(--white); font-size: 0.76rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.work-meta h3 { margin: 0; }
.work-meta span { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--sans); }

/* About */
.about { padding: 88px 0; border-top: 1px solid var(--line); background: var(--paper-dim); }
.about .wrap { display: flex; gap: 64px; flex-wrap: wrap; align-items: center; }
.about-copy { flex: 1.3 1 400px; }
.about-copy .lede { font-size: 1.3rem; font-family: var(--display); font-weight: 500; max-width: 30ch; color: var(--ink); }
.skills { margin-top: 34px; }
.skills-head { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--ink); max-width: 46ch; margin: 0 0 16px; }
.skill-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pills li { background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.about-facts { flex: 1 1 280px; display: flex; flex-direction: column; gap: 0; }
.about-fact { padding: 18px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; align-items: baseline; }
.about-fact:last-child { border-bottom: 1px solid var(--line); }
.about-fact .emoji { font-size: 1.3rem; }
.about-fact p { margin: 0; font-size: 0.95rem; }

/* Services */
.services { padding: 88px 0; border-top: 1px solid var(--line); }
.services-head { max-width: 50ch; margin-bottom: 48px; }
.service-list { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.service-item { flex: 1 1 260px; padding: 30px 30px 0 0; border-left: 1px solid var(--line); padding-left: 30px; }
.service-item:first-child { border-left: none; padding-left: 0; }
.service-num { font-family: var(--display); font-size: 1rem; color: var(--accent); display: block; margin-bottom: 40px; }
.service-item h3 { margin-bottom: 10px; }
.service-item p { font-size: 0.95rem; }

/* Process */
.process { padding: 88px 0; border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.process .eyebrow { color: var(--accent); }
.process h2 { color: var(--paper); }
.process-head { max-width: 50ch; margin-bottom: 48px; }
.process-steps { display: flex; flex-wrap: wrap; gap: 28px; }
.process-step { flex: 1 1 220px; }
.process-step .num { font-family: var(--display); font-size: 2.2rem; color: var(--accent); display: block; margin-bottom: 12px; }
.process-step h3 { color: var(--paper); margin-bottom: 8px; }
.process-step p { color: #B8B5AA; font-size: 0.92rem; }

/* Testimonials */
.testimonials { padding: 88px 0; border-top: 1px solid var(--line); }
.testimonial-grid { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.testimonial-card { flex: 1 1 320px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.testimonial-card p.quote { font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-person .name { font-size: 0.88rem; font-weight: 600; }
.testimonial-person .role { font-size: 0.8rem; color: var(--ink-soft); }

/* Contact */
/* FAQ: native <details>, no JS, and answer engines read it as plain text */
.faq { padding: 88px 0; border-top: 1px solid var(--line); }
.faq-head { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1; transition: transform 0.2s ease; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-answer { padding: 0 44px 26px 0; }
.faq-answer p { margin: 0; max-width: 68ch; }

.contact { padding: 88px 0; border-top: 1px solid var(--line); }
.contact .wrap { display: flex; gap: 64px; flex-wrap: wrap; }
.contact-copy { flex: 1 1 380px; }
.contact-copy .lede { font-size: 1.05rem; max-width: 42ch; margin-top: 18px; }
.contact-detail { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.contact-detail a { font-weight: 600; }
.contact-form { flex: 1 1 420px; }
.form-row { margin-bottom: 16px; }
.form-row-pair { display: flex; gap: 16px; }
.form-row-pair > * { flex: 1 1 0; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); font-family: var(--sans); font-size: 0.95rem; color: var(--ink); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 14px 0 0; font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.form-disclaimer { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; }
.form-success { display: none; padding: 30px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; }
.form-success.is-shown { display: block; }
.contact-form-el.is-hidden { display: none; }

/* Footer */
.site-footer { padding: 56px 0 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-top h2 { margin: 0; max-width: 10em; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-soft); flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .about .wrap, .contact .wrap { flex-direction: column; }
  .service-list { flex-direction: column; }
  .service-item { border-left: none; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .service-item:first-child { border-top: none; }
  .form-row-pair { flex-direction: column; gap: 0; }
  .hero-badge { bottom: 14px; left: 14px; font-size: 0.85rem; padding: 11px 18px; }
}
