/* =============================================================================
   ATELIER  -  editorial / drafting-studio plumber template
   Pinnacle Web Design  |  built to the frontend-design skill brief
   Bricolage Grotesque + Hanken Grotesk + Space Mono, warm paper, rust accent
   ========================================================================== */

:root {
  --paper:    #efe9dc;
  --paper-2:  #e7dfce;
  --paper-3:  #faf7f0;
  --ink:      #191713;
  --ink-2:    #221f19;
  --ink-soft: #46413a;
  --muted:    #8c8677;
  --rust:     #bf4a22;
  --rust-2:   #a03c19;
  --cream:    #f4efe4;

  --line:      rgba(25, 23, 19, 0.18);
  --line-soft: rgba(25, 23, 19, 0.06);
  --line-d:    rgba(244, 239, 228, 0.2);

  --display: "Bricolage Grotesque", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --wrap: 1220px;
  --shadow: 0 40px 70px -46px rgba(25, 23, 19, 0.5);
}

/* ---------- reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 74px 74px;
}
/* film grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tk-pending body { opacity: 0; }
body { opacity: 1; transition: opacity .45s ease; }
body.nav-locked { overflow: hidden; }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
section[id] { scroll-margin-top: 92px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- shared type helpers ------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.label { font-family: var(--mono); font-size: .72rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.label-rule { display: inline-block; width: 30px; height: 2px; background: var(--rust); margin-right: .85rem; flex: none; }
.label-rule-light { background: var(--rust); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head .label { margin-bottom: 1.2rem; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.section-lead { margin-top: 1.1rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 56ch; }

/* ---------- buttons ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 1.05rem 1.6rem; border: 1.5px solid var(--rust); background: var(--rust); color: var(--cream); transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; white-space: nowrap; }
.btn-solid:hover { background: var(--rust-2); border-color: var(--rust-2); transform: translateY(-2px); }
.btn-underline { background: none; border: none; color: var(--ink); padding: 1.05rem .2rem; border-bottom: 2px solid var(--rust); }
.btn-underline:hover { color: var(--rust); }
.btn-paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.1rem; font-size: .72rem; }
.btn-block { width: 100%; padding-top: 1.15rem; padding-bottom: 1.15rem; }

/* ---------- frames (mounted drafting prints) ----------------------------- */
.frame { position: relative; border: 1px solid var(--line); background: var(--paper-3); padding: 9px; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
figcaption.label { margin-top: .8rem; color: var(--muted); }

/* ---------- header -------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0; background: rgba(239,233,220,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, padding .3s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 12px 30px -26px rgba(25,23,19,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--rust); border: 1px solid var(--ink); flex: none; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--ink); transition: color .2s ease; }
.nav a:hover { color: var(--rust); }
.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.header-phone:hover { color: var(--rust); }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------------------------------------------------------- */
.hero { padding-top: clamp(7.5rem, 12vw, 10rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(2.7rem, 8vw, 6.2rem); line-height: .96; letter-spacing: -.035em; color: var(--ink); }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--rust); text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .1em; text-decoration-color: rgba(191,74,34,.45); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.hero-figure { position: relative; }
.hero-figure .frame { box-shadow: var(--shadow); }
.hero-figure .frame img { aspect-ratio: 16 / 10; }
.hero-figure::before, .hero-figure::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--rust); z-index: 2; }
.hero-figure::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.hero-figure::after { bottom: 26px; right: -6px; border-left: none; border-top: none; }
.hero-aside { padding-bottom: .3rem; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.spec { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.spec > div { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
.spec dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); margin-top: .2rem; }

/* ---------- ticker (ink band) -------------------------------------------- */
.ticker { background: var(--ink); overflow: hidden; padding: .95rem 0; }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 34s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: .74rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); padding: 0 1.4rem; }
.ticker-track i { color: var(--rust); font-style: normal; font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- services (catalogue table) ----------------------------------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.svc { padding: 2.1rem 0; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.svc:nth-child(odd) { padding-right: 3rem; border-right: 1px solid var(--line); }
.svc:nth-child(even) { padding-left: 3rem; }
.svc:hover { background: rgba(191,74,34,.045); }
.svc-no { display: inline-block; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--rust); margin-bottom: .7rem; }
.svc h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: -.01em; }
.svc p { margin-top: .55rem; font-size: .97rem; color: var(--ink-soft); max-width: 46ch; }

/* ---------- work (offset gallery) ---------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
.work-fig .frame img { aspect-ratio: 4 / 5; }
.work-fig:nth-child(2) { transform: translateY(-2.2rem); }
.work-fig:nth-child(3) { transform: translateY(1.6rem); }

/* ---------- why us -------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.why-body .label { margin-bottom: 1.2rem; }
.why-body .section-lead { max-width: 52ch; }
.spec-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.spec-list li { display: flex; gap: 1.1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 1rem; }
.spec-list li span { font-family: var(--mono); font-size: .74rem; color: var(--rust); flex: none; }
.why-figure { position: relative; }
.why-figure .frame { box-shadow: var(--shadow); }
.why-figure .frame img { aspect-ratio: 4 / 5; }
.why-stat { position: absolute; left: -18px; bottom: 40px; background: var(--ink); color: var(--cream); padding: 1rem 1.3rem; text-align: left; }
.why-stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: #fff; }
.why-stat span { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,239,228,.7); }

/* ---------- process ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px dashed var(--line); }
.step { padding-top: 1.6rem; }
.step-no { font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--rust); line-height: 1; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin: .7rem 0 .5rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- reviews ------------------------------------------------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review { position: relative; border: 1px solid var(--line); background: var(--paper-3); padding: 2.4rem 1.8rem 1.8rem; }
.quote-mark { position: absolute; top: .5rem; left: 1.3rem; font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--rust); opacity: .5; }
.review blockquote { position: relative; color: var(--ink); font-size: 1.04rem; line-height: 1.55; margin-bottom: 1.4rem; }
.review figcaption { display: grid; gap: .5rem; }
.review .stars { color: var(--rust); letter-spacing: .12em; font-size: .85rem; }

/* ---------- areas (ink panel) -------------------------------------------- */
.areas-panel { background: var(--ink); color: var(--cream); padding: clamp(2.3rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; box-shadow: var(--shadow); }
.areas-panel .label { color: rgba(244,239,228,.7); }
.areas-panel .section-title { color: #fff; }
.areas-panel .section-lead { color: rgba(244,239,228,.8); }
.areas-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.areas-tags li { font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); border: 1px solid var(--line-d); padding: .55rem .9rem; }

/* ---------- faq ----------------------------------------------------------- */
.faq-wrap { max-width: 940px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: left; padding: 1.5rem 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--rust); transition: transform .3s ease, opacity .3s ease; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.is-open .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 64ch; }

/* ---------- contact ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-info .label { margin-bottom: 1.2rem; }
.contact-spec { margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-spec > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-spec dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact-spec dd { color: var(--ink); font-weight: 500; }
.contact-spec a:hover { color: var(--rust); }

.contact-form-wrap { border: 1px solid var(--line); background: var(--paper-3); padding: clamp(1.6rem, 3vw, 2.4rem); }
.quote-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--paper); border: 1px solid var(--line); padding: .85rem .9rem; color: var(--ink); font: inherit; font-size: .98rem; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); background: #fff; box-shadow: 0 0 0 3px rgba(191,74,34,.14); }
.form-note { font-family: var(--mono); font-size: .68rem; color: var(--muted); line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; }
.form-success { border: 1px solid var(--rust); background: rgba(191,74,34,.06); padding: 2rem; display: grid; gap: .4rem; }
.form-success strong { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.form-success span { color: var(--ink-soft); }

/* ---------- footer -------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--cream); padding-top: clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.8rem; }
.site-footer .brand-mark { border-color: var(--line-d); color: var(--rust); }
.site-footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 1.1rem; color: rgba(244,239,228,.6); max-width: 32ch; font-size: .95rem; }
.footer-col h4 { color: rgba(244,239,228,.7); margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a, .footer-col li { color: rgba(244,239,228,.66); font-size: .95rem; }
.footer-col a:hover { color: var(--rust); }
.footer-wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 15vw, 13rem); line-height: .8; letter-spacing: -.04em; color: rgba(244,239,228,.05); white-space: nowrap; margin-top: 1rem; user-select: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-top: 1px solid var(--line-d); }
.footer-bottom .label { color: rgba(244,239,228,.5); }
.footer-bottom .credit a { color: var(--rust); }
.footer-bottom .credit a:hover { text-decoration: underline; }

/* ---------- sticky mobile bar --------------------------------------------- */
.mobile-bar { display: none; }

/* ---------- load + scroll reveals ---------------------------------------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal-load { opacity: 0; animation: riseIn .9s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--d, 0s); }
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 880px) {
  .nav { position: fixed; inset: 0; z-index: 99; flex-direction: column; justify-content: center; gap: 1.4rem; background: rgba(239,233,220,.98); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
  .nav-toggle { display: flex; }
  .header-phone, .header-cta .btn-sm { display: none; }

  .hero-grid, .why-grid, .areas-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero-figure { order: 2; }
  .why-figure { max-width: 440px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(odd) { padding-right: 0; border-right: none; }
  .svc:nth-child(even) { padding-left: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-fig:nth-child(2), .work-fig:nth-child(3) { transform: none; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .review-grid { grid-template-columns: 1fr; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; transition: transform .35s ease; }
  .mobile-bar.is-hidden { transform: translateY(100%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; padding: 1.05rem; font-family: var(--mono); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
  .mobile-bar-call { background: var(--rust); color: var(--cream); }
  .mobile-bar-quote { background: var(--ink); color: var(--cream); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .contact-spec > div { grid-template-columns: 5rem 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-load, [data-reveal] { opacity: 1 !important; transform: none !important; }
}
