html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .09 0 0 0 0 .04 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow { font-size: .78rem; letter-spacing: .28em; color: var(--muted); margin: 0 0 .8rem; font-family: var(--f-lat); }
h1, h2, h3 { font-family: var(--f-ar); line-height: 1.25; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem; padding: 1rem clamp(16px, 4vw, 56px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
/* The blurred bar lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed mobile menu inside the bar. */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -2; transition: background .3s, box-shadow .3s; }
.nav.scrolled::before { background: rgba(207, 191, 160, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.scrolled { padding-block: .6rem; }
html.menu-open { overflow: hidden; }
.nav-logo img { height: 52px; width: auto; transition: height .3s; }
.nav.scrolled .nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 2rem; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--ink); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: .6em 1.2em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; inset-inline: 8px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  padding: 120px clamp(16px, 6vw, 96px) 64px; position: relative;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.4; }
.stroke-word { position: relative; display: inline-block; font-weight: 300; }
.stroke-word svg { position: absolute; inset-inline: 4%; top: .12em; width: 92%; height: .16em; overflow: visible; }
.stroke-word path { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.4s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--ink-2); margin: 1.6rem 0 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-mark { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sand-2); animation: breathe 7s ease-in-out infinite; }
.hero-mark img { position: relative; width: 78%; animation: float 6s ease-in-out infinite; }
.hero-badge { position: absolute; bottom: 8%; inset-inline-start: 4%; background: var(--ink); color: var(--sand); padding: .4em 1em; border-radius: 999px; font-size: .8rem; letter-spacing: .3em; transform: rotate(-8deg); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes breathe { 50% { transform: scale(1.04); border-radius: 46% 54% 50% 50%; } }
.hero-stats { grid-column: 1 / -1; display: flex; gap: clamp(1.5rem, 6vw, 5rem); margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1; }
.hero-stats dd { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--ink); color: var(--sand); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg); margin: 1rem -2vw; }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--f-ar); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 500; white-space: nowrap; }
.marquee-track i { width: 14px; height: 14px; background: var(--sand); border-radius: 50% 0 50% 50%; transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(72px, 10vw, 140px) clamp(16px, 6vw, 96px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.section-sub { max-width: 26em; color: var(--ink-2); margin: 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: .45em 1.1em; cursor: pointer; font-size: .92rem; transition: background .2s, color .2s; }
.chip[aria-selected="true"], .chip:hover { background: var(--ink); color: var(--sand); }

/* grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: clamp(14px, 2vw, 28px); }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }
.card { position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--sand-2); aspect-ratio: 4 / 5; border: 0; padding: 0; text-align: inherit; display: block; width: 100%; }
.card.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.card:hover img, .card:focus-visible img { transform: scale(1.05); filter: brightness(.82); }
.card-info { position: absolute; inset: auto 0 0 0; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; color: var(--paper); background: linear-gradient(to top, rgba(31,23,10,.78), transparent); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.card:hover .card-info, .card:focus-visible .card-info { opacity: 1; transform: none; }
.card-info h3 { font-size: 1.25rem; font-weight: 700; }
.card-info span { font-size: .85rem; opacity: .8; }
.card-arrow { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; }
.card-tag { position: absolute; top: 1rem; inset-inline-start: 1rem; background: var(--paper); color: var(--ink); border-radius: 999px; padding: .2em .8em; font-size: .78rem; font-weight: 600; }

/* services */
.services { background: var(--paper); border-radius: 40px 40px 0 0; }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 2rem 1.6rem 2.4rem; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); transition: background .35s; position: relative; }
.service:nth-child(3n+1) { border-inline-start: 0; }
.service:hover { background: var(--sand-2); }
.service .num { color: var(--muted); font-size: .9rem; }
.service h3 { font-size: 1.5rem; margin: 1.6rem 0 .6rem; font-weight: 700; }
.service p { margin: 0; color: var(--ink-2); }

/* process */
.process { background: var(--paper); padding-top: 0; }
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps li { counter-increment: s; background: var(--sand); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; min-height: 210px; position: relative; overflow: hidden; }
.steps li::before { content: "0" counter(s); font-family: var(--f-lat); font-size: 4.5rem; line-height: 1; color: var(--ink); opacity: .12; position: absolute; inset-inline-end: 1rem; bottom: .5rem; }
.steps b { font-family: var(--f-ar); font-size: 1.4rem; }
.steps span { color: var(--ink-2); }

/* contact */
.contact { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(72px, 10vw, 140px) clamp(16px, 6vw, 96px); position: relative; overflow: hidden; }
.contact .eyebrow { color: var(--sand); opacity: .7; }
.contact h2 { color: var(--sand); }
.contact-intro p { color: rgba(244,238,227,.75); }
.contact-direct { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; }
.contact-direct a { color: var(--sand); text-decoration: none; border-bottom: 1px solid rgba(207,191,160,.35); padding-bottom: 2px; }
.contact-direct a:hover { border-color: var(--sand); }
.contact-mark { width: min(340px, 70%); opacity: .14; margin-top: 3rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; align-content: start; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .88rem; color: rgba(244,238,227,.7); }
.contact input:not([type=radio]), .contact select, .contact textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(207,191,160,.35); color: var(--paper);
  padding: .7rem 0; outline: none; transition: border-color .25s; border-radius: 0;
}
.contact select option { color: var(--ink); }
.contact input:focus, .contact select:focus, .contact textarea:focus { border-color: var(--sand); }
.contact .invalid { border-color: #E07A5F !important; }
textarea { resize: vertical; }
.budget { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.budget legend { margin-bottom: .6rem; padding: 0; }
.budget label { cursor: pointer; }
.budget input { position: absolute; opacity: 0; pointer-events: none; }
.budget span { display: inline-block; padding: .45em 1.1em; border: 1.5px solid rgba(207,191,160,.4); border-radius: 999px; transition: all .2s; font-size: .92rem; }
.budget input:checked + span { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.budget input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.form-status { margin: 0; color: var(--sand); min-height: 1.5em; }
.form-status.err { color: #E9A08A; }
.form-done { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border: 1.5px solid rgba(207,191,160,.3); border-radius: var(--r); }
.form-done h3 { color: var(--sand); font-size: 1.8rem; margin-bottom: .5rem; }

/* footer */
.footer { padding: 3rem clamp(16px, 6vw, 96px) 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: center; }
.footer-logo { height: 70px; width: auto; }
.footer-links { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.social { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; transition: background .25s, color .25s, transform .25s var(--ease); }
.social:hover, .social:focus-visible { background: var(--ink); color: var(--sand); transform: translateY(-2px); }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* modal */
.modal { border: 0; padding: 0; width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 48px); border-radius: 24px; background: var(--paper); color: var(--ink); overflow: hidden; }
.modal::backdrop { background: rgba(31,23,10,.6); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-body { display: grid; grid-template-columns: 1.5fr 1fr; max-height: calc(100svh - 48px); }
.modal-media { overflow-y: auto; background: var(--sand-2); display: flex; flex-direction: column; gap: 4px; }
.modal-media img { width: 100%; height: auto; }
.modal-info { padding: 2.4rem 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.modal-info h3 { font-size: 2rem; font-weight: 800; }
.modal-info .eyebrow { font-family: var(--f-body); letter-spacing: 0; font-size: .9rem; margin: 0; }
.modal-info p { margin: 0; color: var(--ink-2); white-space: pre-line; }
.meta { display: flex; gap: 2rem; margin: 0; padding: 1rem 0; border-block: 1px solid var(--line); width: 100%; }
.meta dt { font-size: .8rem; color: var(--muted); } .meta dd { margin: 0; font-weight: 600; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--sand); cursor: pointer; font-size: 1rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n+1) { border-inline-start: 1px solid var(--line); }
  .service:nth-child(2n+1) { border-inline-start: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-direct { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; }
.contact-direct a { color: var(--sand); text-decoration: none; border-bottom: 1px solid rgba(207,191,160,.35); padding-bottom: 2px; }
.contact-direct a:hover { border-color: var(--sand); }
.contact-mark { display: none; }
}
@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav-logo img { height: 42px; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .nav-cta { display: none; }
  .nav-links { position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem; background: var(--sand); font-family: var(--f-ar); font-size: 1.8rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; text-align: start; }
  .hero-mark { order: -1; width: min(70%, 300px); }
  .hero-stats { gap: 1.2rem; justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
  .card-info { opacity: 1; transform: none; }
  .service-list { grid-template-columns: 1fr; }
  .service { border-inline-start: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; gap: 6px; }
  .social { width: 38px; height: 38px; }
  .modal-body { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-media { overflow: visible; }
  .modal-info { overflow: visible; }
}
