:root {
  --paper: #f3ede2; --paper-2: #ebe2d3; --card: #fbf8f2;
  --ink: #2b2119; --muted: #6b5d50; --line: #dccfbd;
  --oak: #c58a4c; --oak-deep: #8a4b1c; --walnut: #3a2a1f; --cream: #f7efe1;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gut: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { accent-color: var(--oak-deep); margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oak-deep); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--oak-deep); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.kicker { margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-deep); }
.lede { color: var(--muted); max-width: 56ch; font-size: 1.08rem; margin: 16px 0 0; }
.small { font-size: .88rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn.primary { background: var(--walnut); color: var(--cream); }
.btn.primary:hover { background: var(--oak-deep); }
.btn.ghost { border-color: var(--walnut); color: var(--walnut); }
.btn.ghost:hover { background: var(--walnut); color: var(--cream); }

/* Header */
.mast { position: sticky; top: 0; z-index: 20; background: rgb(243 237 226 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand-name { font: 560 1.3rem var(--display); letter-spacing: -0.01em; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.mast-nav { display: flex; gap: 22px; margin-left: auto; }
.mast-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.mast-nav a:hover { color: var(--oak-deep); }
.mast-call { font-weight: 700; text-decoration: none; color: var(--walnut); white-space: nowrap; }
.demo-label { font-size: .7rem; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted); white-space: nowrap; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 7.2vw, 6.1rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--oak-deep); display: inline-block; padding-bottom: .06em; }
.intro { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 46ch; margin: 26px 0 0; }
.tagline { margin: 14px 0 0; font-size: .95rem; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--oak); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-photo { margin: 0; }
.hero-photo .zoom { aspect-ratio: 4 / 5; border-radius: 6px; }
.hero-photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* Tape-measure rule: ticks on an 8px grid starting at the text edge */
.rule { height: 18px; margin-top: clamp(40px, 6vw, 72px);
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 80px) 0 0 / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) 0 0 / 100% 11px no-repeat,
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat;
  opacity: .55; }
.facts { list-style: none; margin: 0; padding: 22px 0 clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font: 400 1.35rem/1.2 var(--display); }
.facts span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.work { background: var(--card); border-top: 1px solid var(--line); }

/* Work index (DESIGN-1 list of work with preview) */
.index { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; margin-bottom: clamp(40px, 6vw, 80px); }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .25s, background .25s; }
.index-list img { display: none; }
.index-list .n { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.index-list .t { font: 400 clamp(1.4rem, 2.6vw, 2.1rem)/1.15 var(--display); }
.index-list .c { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.index-list a:hover, .index-list a:focus-visible, .index-list a.is-on { padding-left: 16px; background: var(--paper); }
.index-list a:hover .t, .index-list a.is-on .t { color: var(--oak-deep); }
.index-preview { position: sticky; top: 100px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }

/* Work groups */
.group { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.group-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; margin-bottom: 24px; }
.group-head .n { font-size: .85rem; color: var(--muted); }
.group-head h3 { grid-column: 2; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.group-head p { grid-column: 2; margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.group-head .ask { grid-column: 3; grid-row: 1; font-weight: 600; white-space: nowrap; }
.photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.photos-5 { grid-template-columns: repeat(5, 1fr); }
.photos-4 { grid-template-columns: repeat(4, 1fr); }
.photos-3 { grid-template-columns: repeat(3, 1fr); }
.photos figure { margin: 0; }
.photos figcaption { margin-top: 8px; font-size: .88rem; color: var(--ink); line-height: 1.4; }
.steps figcaption b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--walnut); color: var(--cream); font-size: .75rem; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.03); }
.group-quote { margin: 28px 0 0 72px; max-width: 760px; padding-left: 20px; border-left: 3px solid var(--oak); }
.group-quote p { margin: 0; font: italic 400 1.15rem/1.5 var(--display); }
.group-quote cite, .statement cite { display: block; margin-top: 10px; font: 500 .88rem var(--body); color: var(--muted); font-style: normal; }
.photo-note { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* Statement */
.statement { background: var(--walnut); color: var(--cream); padding: clamp(56px, 8vw, 104px) 0; }
.statement .kicker { color: var(--oak); }
.statement blockquote { margin: 0; max-width: 980px; }
.statement blockquote p { margin: 0; font: 400 clamp(1.45rem, 3vw, 2.4rem)/1.3 var(--display); letter-spacing: -0.01em; }
.statement cite { color: #d8c7b2; margin-top: 22px; }
.statement a { color: #f0c690; }

/* Services */
.svc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); }
.svc h3 { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.svc > p { margin: 14px 0 0; color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.svc-list a { font-size: .85rem; font-weight: 600; flex: none; }
.svc-handy { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; align-self: start; }

/* How I work + prices */
.how { background: var(--paper-2); }
.steps-row { list-style: none; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps-row li { background: var(--card); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.steps-row .n { font: 400 1.9rem/1 var(--display); color: var(--oak-deep); margin-bottom: 10px; }
.steps-row strong { font-weight: 700; }
.steps-row span:last-child { color: var(--muted); font-size: .92rem; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.prices dl { margin: 18px 0; }
.prices dl div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.prices dl div:last-child { border-bottom: 1px solid var(--line); }
.prices dt { font-weight: 700; }
.prices dd { margin: 0; }
.prices > p:first-of-type, .about p { margin: 14px 0 0; }
.about .btn { margin-top: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 26px 0 16px; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.contact-list a { font-weight: 600; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .pref legend { font-size: .88rem; font-weight: 600; }
.quote input[type=text], .quote select, .quote textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #cbbba6; border-radius: 6px; background: #fff; color: var(--ink); }
.pref { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.pref legend { padding: 0; margin-bottom: 6px; width: 100%; }
.pref label { font-weight: 400; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.form-foot { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .small { margin: 0; flex: 1 1 220px; }
.sent { grid-column: 1 / -1; background: #f1e3cf; border-radius: 6px; padding: 14px 16px; }
.sent p { margin: 0; }

/* Footer */
.foot { background: var(--walnut); color: #d8c7b2; padding: 48px 0 56px; }
.foot a { color: #f0c690; }
.foot p { margin: 0 0 10px; }
.foot-brand { font: 560 1.4rem var(--display); color: var(--cream); }
.foot .small { color: #bba891; }

/* Phone call bar */
.callbar { display: none; }

/* Lightbox */
#lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 96vh; overflow: visible; }
#lightbox::backdrop { background: rgb(20 14 10 / .88); }
#lightbox figure { margin: 0; }
#lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; }
#lightbox figcaption { color: var(--cream); text-align: center; margin-top: 10px; font-size: .95rem; }
.lb-credit { color: #bba891; }
.lb-controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.lb-controls button { min-width: 48px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(247 239 225 / .5); background: transparent; color: var(--cream); cursor: pointer; }
.lb-controls button:hover { background: rgb(247 239 225 / .12); }

@media (max-width: 1080px) {
  .mast-nav { gap: 16px; }
  .mast-call { display: none; }
  .photos-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: 68px; }
  .mast-inner { min-height: 62px; gap: 12px; }
  .mast-nav { display: none; }
  .brand-name { font-size: 1.15rem; }
  .demo-label { margin-left: auto; }
  .hero-grid, .index, .svc-grid, .how-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo .zoom { aspect-ratio: 4 / 3; }
  .hero-photo .zoom img { object-position: 50% 30%; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .index-preview { display: none; }
  .index-list a { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 12px 0; }
  .index-list a:hover, .index-list a.is-on { padding-left: 0; }
  .index-list .n { display: none; }
  .index-list img { display: block; grid-row: 1 / 3; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
  .index-list .t { font-size: 1.3rem; align-self: end; }
  .index-list .c { align-self: start; }
  .group-head { grid-template-columns: 40px minmax(0, 1fr); }
  .group-head .ask { grid-column: 2; grid-row: auto; margin-top: 10px; }
  .group-quote { margin-left: 0; }
  .photos-5, .photos-4, .photos-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photos-5 figure:first-child { grid-column: 1 / -1; }
  .photos-5 figure:first-child .zoom { aspect-ratio: 4 / 3; }
  .photos-3 > :first-child { grid-column: 1 / -1; }
  .photos-3 > :first-child .zoom { aspect-ratio: 4 / 3; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .prices dl div { grid-template-columns: 1fr; gap: 2px; }
  .quote { grid-template-columns: 1fr; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(243 237 226 / .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--walnut); color: var(--walnut); }
  .callbar .callbar-quote { background: var(--walnut); color: var(--cream); }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
