:root {
  --paper: #eeeade;
  --ink: #171713;
  --muted: #68675f;
  --line: #aaa69a;
  --accent: #a23a2b;
  --panel: #23231f;
  --panel-ink: #eeeade;
  font-family: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; min-width: 320px; overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 1px dashed var(--accent); outline-offset: 4px; }
.grain { display: none; }

.page-shell {
  min-height: 100svh;
  padding: 24px 30px 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: opacity .2s;
}

.topbar, .footer-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ink); font-size: 11px; }
.contact-link, .primary-action, .inline-action { border: 0; background: none; color: inherit; cursor: pointer; }
.contact-link { padding: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.hero { align-self: center; padding: 5vh 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }
h1 { max-width: 1080px; margin: 24px 0; font-size: clamp(54px, 9vw, 128px); line-height: .89; letter-spacing: -.075em; font-weight: 400; }
h1 em { color: var(--accent); font-family: inherit; font-style: normal; font-weight: 400; }
.lead { margin: 0 0 5vh; color: var(--muted); font-size: clamp(12px, 1.1vw, 16px); line-height: 1.55; }

.service-nav { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ink); }
.service-nav button { min-height: 90px; padding: 13px; border: 0; border-right: 1px solid var(--ink); background: transparent; color: inherit; text-align: left; cursor: pointer; font-size: clamp(11px, 1vw, 14px); text-transform: uppercase; transition: background .12s, color .12s; }
.service-nav button:last-child { border-right: 0; }
.service-nav button span { display: block; margin-bottom: 25px; color: var(--muted); font-size: 9px; }
.service-nav button:hover, .service-nav button[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.service-nav button:hover span, .service-nav button[aria-expanded="true"] span { color: #aaa79e; }

.footer-line { padding-top: 14px; border-top: 1px solid var(--ink); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.primary-action { min-width: 210px; display: flex; justify-content: space-between; padding: 0; color: var(--accent); font-size: 11px; text-transform: uppercase; }

.detail-panel { position: fixed; z-index: 5; inset: auto 0 0; min-height: min(470px, 64vh); padding: 62px 5vw 38px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 8vw; overflow: auto; border-top: 1px solid var(--paper); background: var(--panel); color: var(--panel-ink); transform: translateY(101%); visibility: hidden; transition: transform .28s steps(5, end), visibility 0s .28s; }
.detail-panel.is-open { transform: translateY(0); visibility: visible; transition: transform .28s steps(5, end); }
.panel-close { position: absolute; top: 20px; right: 30px; padding: 0; border: 0; background: none; color: #aaa79e; cursor: pointer; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.panel-close span { margin-left: 8px; font-size: 15px; }
.panel-number { position: absolute; top: 21px; left: 5vw; color: #85837a; font-size: 9px; text-transform: uppercase; }
.panel-content { display: contents; }
.panel-kicker { color: #939087; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.panel-copy h2 { margin: 14px 0 22px; font-size: clamp(30px, 4.2vw, 61px); line-height: 1; letter-spacing: -.055em; font-weight: 400; }
.panel-copy > p:not(.panel-kicker) { max-width: 590px; color: #b9b5aa; font-size: 12px; line-height: 1.65; }
.panel-copy a, .inline-action { display: inline-block; margin-top: 16px; padding: 0 0 3px; border-bottom: 1px solid #77746c; color: var(--panel-ink); text-decoration: none; font-size: 10px; text-transform: uppercase; }

.steps { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid #55534c; }
.steps li { display: flex; gap: 22px; padding: 14px 0; border-bottom: 1px solid #55534c; font-size: 11px; text-transform: uppercase; }
.steps span { color: #87847a; font-size: 9px; }
.tag-grid { align-self: end; display: grid; grid-template-columns: 1fr 1fr; }
.tag-grid span { margin: -1px 0 0 -1px; padding: 15px 10px; border: 1px solid #55534c; color: #c8c4b9; font-size: 10px; text-transform: uppercase; }
.big-stat { align-self: center; display: flex; align-items: flex-end; gap: 18px; }
.big-stat strong { color: var(--accent); font-size: clamp(80px, 12vw, 170px); line-height: .72; letter-spacing: -.12em; font-weight: 400; }
.big-stat span { color: #aaa79e; font-size: 10px; text-transform: uppercase; line-height: 1.5; }
.price-list { align-self: center; display: grid; grid-template-columns: 1fr 1fr; }
.price-list > div { padding: 22px; border: 1px solid #55534c; }
.price-list span, .price-list small { display: block; color: #9b988e; font-size: 9px; text-transform: uppercase; }
.price-list strong { display: block; margin: 28px 0 7px; font-size: clamp(22px, 2.8vw, 40px); font-weight: 400; }
.result-stats { align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-stats div { padding: 17px 0; border-top: 1px solid #55534c; }
.result-stats div:last-child { grid-column: 1 / -1; }
.result-stats strong, .result-stats span { display: block; }
.result-stats strong { color: var(--accent); font-size: clamp(38px, 5.5vw, 74px); letter-spacing: -.08em; font-weight: 400; }
.result-stats span { color: #aaa79e; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.direct-contacts { display: flex; flex-wrap: wrap; gap: 20px; }
.contact-form { align-self: center; }
.contact-form label { display: block; margin-bottom: 19px; color: #99968c; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.contact-form input { display: block; width: 100%; margin-top: 6px; padding: 10px 0; border: 0; border-bottom: 1px solid #66635b; border-radius: 0; outline: none; background: none; color: var(--panel-ink); font-size: 17px; }
.contact-form input:focus { border-bottom-color: var(--accent); }
.contact-form button { width: 100%; display: flex; justify-content: space-between; margin-top: 25px; padding: 14px; border: 1px solid var(--paper); background: transparent; color: var(--panel-ink); cursor: pointer; font-size: 10px; text-transform: uppercase; }
.contact-form button:hover { background: var(--paper); color: var(--ink); }
.form-note, .form-status { color: #88857c; font-size: 9px; }
.form-status { min-height: 15px; color: #c5c1b6; }
body.panel-open .page-shell { opacity: .35; }

@media (max-width: 760px) {
  .page-shell { padding: 16px; }
  .topbar { padding-bottom: 10px; }
  .hero { padding: 4vh 0; }
  h1 { font-size: clamp(48px, 17vw, 78px); line-height: .92; }
  .lead br { display: none; }
  .service-nav { grid-template-columns: 1fr 1fr; }
  .service-nav button { min-height: 67px; border-bottom: 1px solid var(--ink); }
  .service-nav button:nth-child(2n) { border-right: 0; }
  .service-nav button:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .service-nav button span { margin-bottom: 10px; }
  .footer-line > span { display: none; }
  .primary-action { width: 100%; }
  .detail-panel { min-height: 80svh; max-height: 92svh; padding: 58px 18px 28px; grid-template-columns: 1fr; gap: 24px; }
  .panel-number { left: 18px; }
  .panel-close { right: 18px; }
  .panel-copy h2 { font-size: clamp(32px, 10vw, 46px); }
  .big-stat strong { font-size: 31vw; }
}

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