:root {
  --bg: #f3f1ec;
  --bg-2: #ebe8e1;
  --paper: #faf9f6;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --muted: #6f6c66;
  --line: #d6d2c9;
  --dark: #111111;
  --accent: #c2410c;
  --tp: #00b67a;
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.6; padding-bottom: 64px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.15; }
p { color: var(--ink-2); }

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.15rem; line-height: 1.65; }
.dim { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.6rem; font-family: var(--body); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--dark); cursor: pointer; transition: background .2s, color .2s; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-light { background: #fff; color: var(--dark); border-color: #fff; }
.btn-light:hover { background: var(--bg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-tp { background: var(--tp); border-color: var(--tp); color: #fff; }
.btn-tp:hover { background: #009966; }
.link-arrow { font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(243,241,236,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { display: flex; align-items: baseline; gap: .6rem; }
.logo b { font-family: var(--head); font-size: 1.35rem; letter-spacing: -0.05em; }
.logo span { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav .btn { padding: .75rem 1.2rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* Hero */
.hero { position: relative; min-height: min(calc(100vh - 72px), 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,.82) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 120px 0 56px; }
.hero .mono { color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hero .mono::before { content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.7); }
.hero h1 { color: #fff; max-width: 900px; }
.hero p { color: rgba(255,255,255,.88); max-width: 620px; margin: 1.6rem 0 2.2rem; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-contacts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border: 1px solid rgba(255,255,255,.22); background: rgba(20,20,20,.35); backdrop-filter: blur(6px); }
.hero-contacts > a, .hero-contacts > div { padding: 1.1rem 1.25rem; border-right: 1px solid rgba(255,255,255,.22); }
.hero-contacts > :last-child { border-right: 0; }
.hero-contacts .mono { margin: 0 0 .35rem; color: rgba(255,255,255,.6); font-size: .65rem; }
.hero-contacts .mono::before { display: none; }
.hero-contacts strong { font-family: var(--mono); font-size: .9rem; font-weight: 600; word-break: break-word; }
.hero-contacts a:hover strong { text-decoration: underline; }

/* Sections */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 1.75rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.section-top .mono { display: block; margin-bottom: 1rem; }
.page-head { padding: 96px 0 56px; }
.page-head .mono { display: block; margin-bottom: 1.25rem; }
.page-head p { max-width: 640px; margin-top: 1.5rem; }

/* Practice */
.practice { display: grid; grid-template-columns: 1.05fr 1fr; gap: 5rem; align-items: start; }
.practice h2 { margin: 1rem 0 1.75rem; }
.practice p + p { margin-top: 1.1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.stats div { padding: 2.25rem 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div:nth-child(2n) { border-right: 0; }
.stats div:nth-last-child(-n+2) { border-bottom: 0; }
.stats b { display: block; font-family: var(--head); font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 1; margin-bottom: .75rem; }

/* Services grid */
.grid-box { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid-box.three { grid-template-columns: repeat(3, 1fr); }
.svc { padding: 2.25rem 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background .25s; }
.svc:hover { background: var(--paper); }
.section.alt .svc:hover { background: var(--bg); }
.svc .mono { display: block; margin-bottom: 1.6rem; }
.svc h3 { margin-bottom: .6rem; }
.svc p { color: var(--muted); font-size: .95rem; }

/* Before / after */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; background: #222; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 0 0 50%); filter: grayscale(1) contrast(1.05); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.ba-tag { position: absolute; top: 14px; z-index: 2; font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; padding: .35rem .6rem; background: rgba(17,17,17,.82); color: #fff; pointer-events: none; }
.ba-tag.after { left: 14px; }
.ba-tag.before { right: 14px; }
.project { margin-bottom: 4.5rem; }
.project-meta { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.project-meta h3 { font-size: 1.5rem; margin-top: .5rem; }
.project-meta .mono { display: block; margin-bottom: .4rem; }
.project-meta p { font-size: .95rem; }
.project-simple { padding-top: 1.5rem; }
.project-simple h3 { font-size: 1.6rem; margin: .5rem 0 .5rem; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 2.25rem; }
.section.alt .card { background: var(--bg); }
.card h3 { font-size: 1.6rem; margin: .9rem 0 .75rem; }
.card > p { color: var(--muted); }
.tp-brand { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.tp-brand i { color: var(--tp); font-style: normal; font-size: 1.4rem; }
.tp-stars { display: flex; gap: 4px; margin: 1.5rem 0; }
.tp-stars span { width: 38px; height: 38px; background: var(--tp); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }
.tp-actions { display: grid; gap: .75rem; }
.star-input { display: flex; gap: 2px; }
.star-input button { background: none; border: 0; font-size: 2rem; color: #c9c5bc; cursor: pointer; line-height: 1; transition: color .15s, transform .15s; }
.star-input button.on { color: var(--ink); }
.star-input button:hover { transform: scale(1.12); }

/* Forms */
form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
input, select, textarea { width: 100%; padding: .95rem 1rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 0; font: inherit; font-size: 1rem; color: var(--ink); appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; }
.contact-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.contact-intro p b { font-family: var(--mono); }
.side-block { border: 1px solid var(--line); margin-bottom: 1.5rem; }
.side-block > .mono { display: block; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.side-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.side-row:last-child { border-bottom: 0; }
.side-row .mono { font-size: .64rem; }
.side-row strong { font-weight: 600; text-align: right; word-break: break-word; }
.side-row a strong:hover { text-decoration: underline; }
.bank { background: var(--dark); color: #fff; border-color: var(--dark); }
.bank .mono { color: rgba(255,255,255,.55); }
.bank > .mono { display: flex; justify-content: space-between; border-color: rgba(255,255,255,.15); }
.bank .side-row { border-color: rgba(255,255,255,.15); }
.bank strong { font-family: var(--mono); font-size: 1rem; }
.copy { background: transparent; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.3); font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; padding: .3rem .5rem; margin-left: .6rem; cursor: pointer; text-transform: uppercase; }
.copy:hover { background: #fff; color: var(--ink); }
.bank-note { padding: 1rem 1.25rem; font-size: .82rem; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.15); }

/* CTA band */
.cta { background: var(--dark); color: #fff; padding: 110px 0; }
.cta .mono { color: rgba(255,255,255,.55); display: block; margin-bottom: 1.25rem; }
.cta h2 { color: #fff; max-width: 760px; }
.cta p { color: rgba(255,255,255,.75); margin: 1.5rem 0 2.25rem; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.12); padding: 72px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer .logo b { color: #fff; }
.footer .mono { color: rgba(255,255,255,.5); }
.footer h4 { font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; color: rgba(255,255,255,.5); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a:hover { color: #fff; }
.footer p { color: rgba(255,255,255,.65); margin-top: 1rem; max-width: 360px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }

/* Fixed contact bar */
.contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(243,241,236,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.contact-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 64px; }
.bar-loc { display: flex; align-items: center; gap: .6rem; }
.bar-people { display: flex; gap: 2.5rem; }
.bar-people a { display: flex; align-items: center; gap: .75rem; }
.bar-people b { font-family: var(--mono); font-size: .88rem; }
.bar-people a:hover b { text-decoration: underline; }
.contact-bar .btn { padding: .7rem 1.1rem; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 40px); opacity: 0; background: var(--dark); color: #fff; padding: .8rem 1.25rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; transition: .3s; z-index: 80; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Success popup */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(17,17,17,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(460px, 100%); background: var(--paper); border: 1px solid var(--line); padding: 2.5rem 2rem 2rem; text-align: center; transform: translateY(16px) scale(.97); transition: transform .3s ease; }
.modal.open .modal-box { transform: none; }
.modal-check { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 1.8rem; }
.modal-box h3 { font-size: 1.9rem; margin: .75rem 0 1rem; }
.modal-box p { margin-bottom: .75rem; }
.modal-box p.dim { font-size: .9rem; }
.modal-box a { text-decoration: underline; text-underline-offset: 3px; }
.modal-box .btn { margin-top: 1rem; min-width: 160px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .practice, .contact-grid, .reviews-grid, .contact-intro { grid-template-columns: 1fr; gap: 3rem; }
  .grid-box.three { grid-template-columns: repeat(2, 1fr); }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bar-loc { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 16px 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav .btn { margin-top: 1rem; }
  .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); }
  .hero-contacts { grid-template-columns: 1fr 1fr; }
  .hero-contacts > :nth-child(2) { border-right: 0; }
  .hero-contacts > :nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .contact-bar .btn { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .page-head { padding: 64px 0 40px; }
  .grid-box, .grid-box.three, .row-2, .project-meta, .footer-grid { grid-template-columns: 1fr; }
  .section-top { flex-direction: column; align-items: flex-start; }
  .stats div { padding: 1.5rem 1.25rem; }
  .ba { aspect-ratio: 4 / 3; }
  .card { padding: 1.5rem; }
  .bar-people { gap: 1.25rem; width: 100%; justify-content: space-between; }
  .bar-people .mono { display: none; }
  .hero-inner { padding-top: 80px; }
}
