/* Envi Construction. Colours from their logo and website: green #7ebd42, black #111111.
   Supporting tones from the materials of their builds: limestone paper, drystone, charcoal cladding. */
:root {
  --ink: #111111;
  --ink-2: #3d3f3b;
  --muted: #5b5d57;
  --paper: #f3f1ec;
  --paper-2: #e8e5dc;
  --rule: #d2cdc1;
  --ground: #151715;
  --ground-2: #1d201d;
  --pale: #ecefe8;
  --pale-dim: #a9ada4;
  --rule-dark: rgba(236, 239, 232, .16);
  --green: #7ebd42;
  --green-ink: #3d6b1b;
  --stone: #c9b99a;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bar-h: 60px;
  --gut: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--green-ink);
}
@media (min-width: 700px) { :root { --gut: 32px; } }
@media (min-width: 1000px) { :root { --bar-h: 72px; } }
html.is-stuck { --bar-h: 52px; }
@media (min-width: 1000px) { html.is-stuck { --bar-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--green); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 300; letter-spacing: -.018em; }
h3 { font-weight: 500; font-size: 1.125rem; line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.small { font-size: .8125rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--green); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; }

/* the hatch: three 45-degree lines, as in Envi's logo and on a drawing's cut section */
.hatch { display: inline-block; width: 14px; height: 14px; flex: none; background: repeating-linear-gradient(-45deg, var(--green) 0 1.3px, transparent 1.3px 4.6px); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 40; height: var(--hd-room, 60px); pointer-events: none; }
@media (min-width: 1000px) { .hd { --hd-room: 72px; } }
.hd-in { pointer-events: auto; height: var(--bar-h); display: flex; align-items: center; gap: 16px; padding: 0 var(--gut); background: rgba(21, 23, 21, .94); color: var(--pale); border-bottom: 1px solid var(--rule-dark); transition: height .3s var(--ease); --focus: var(--green); }
@supports (backdrop-filter: blur(8px)) { .hd-in { background: rgba(21, 23, 21, .82); backdrop-filter: blur(10px) saturate(1.2); } }
.hd-logo { flex: none; display: block; width: 108px; transition: width .3s var(--ease); }
html.is-stuck .hd-logo { width: 96px; }
@media (min-width: 1000px) { .hd-logo { width: 132px; } html.is-stuck .hd-logo { width: 112px; } }
.hd-tel { margin-left: auto; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; min-height: 44px; }
.hd-tel .mono { font-size: .8125rem; letter-spacing: .04em; color: var(--pale); }
.hd-tel-lbl { display: none; font-size: .875rem; color: var(--pale-dim); }
.nav { order: 3; }
.nav-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 2px 0 6px; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
.nav-btn-bars { width: 18px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .25s; }
.nav-btn[aria-expanded="true"] .nav-btn-bars { transform: scaleY(.15); }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--green); }
html.js .nav-list { position: fixed; left: 0; right: 0; top: var(--bar-h); background: var(--ground); padding: 8px var(--gut) 24px; border-bottom: 1px solid var(--rule-dark); display: none; max-height: calc(100svh - var(--bar-h)); overflow: auto; }
html.js .nav-list.open { display: block; }
html.js .nav-list li { border-top: 1px solid var(--rule-dark); }
html.js .nav-list a { display: block; padding: 14px 0; font-family: var(--display); font-size: 1.5rem; font-weight: 300; }
html:not(.js) .nav-btn { display: none; }
html:not(.js) .hd { height: auto; }
html:not(.js) .hd-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
html:not(.js) .nav { order: 4; width: 100%; }
html:not(.js) .nav-list { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9375rem; }
@media (min-width: 1000px) {
  .nav { order: 0; margin-left: auto; }
  .nav-btn { display: none; }
  html.js .nav-list, .nav-list { position: static; display: flex; gap: 28px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  html.js .nav-list li { border: 0; }
  html.js .nav-list a, .nav-list a { display: inline; padding: 0; font: 400 .9375rem/1 var(--sans); color: var(--pale); }
  .nav-list a:hover { color: var(--green); }
  .hd-tel { margin-left: 32px; padding-left: 24px; border-left: 1px solid var(--rule-dark); }
  .hd-tel-lbl { display: inline; }
}

/* the progress line: a tape measure pulled out along the bottom of the header */
.tape { display: none; }
@supports (animation-timeline: scroll()) {
  .tape { display: block; position: absolute; left: 0; right: 0; top: var(--bar-h); height: 7px; pointer-events: none; transition: top .3s var(--ease); }
  .tape::before { content: ""; position: absolute; inset: 0; background:
      repeating-linear-gradient(90deg, rgba(17, 17, 17, .78) 0 1px, transparent 1px 50px) 0 0 / 100% 7px no-repeat,
      repeating-linear-gradient(90deg, rgba(17, 17, 17, .5) 0 1px, transparent 1px 10px) 0 0 / 100% 3px no-repeat,
      var(--green);
    clip-path: inset(0 100% 0 0); animation: tape-out linear both; animation-timeline: scroll(root); }
  .tape::after { content: ""; position: absolute; top: -2px; left: 0; width: 4px; height: 11px; background: var(--ink); border: 1px solid var(--green); animation: tape-hook linear both; animation-timeline: scroll(root); }
}
@keyframes tape-out { to { clip-path: inset(0 0 0 0); } }
@keyframes tape-hook { from { left: 0; } to { left: calc(100% - 4px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 22px; border-radius: 2px; border: 1px solid transparent; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn .mono { font-size: .875rem; letter-spacing: .03em; text-transform: none; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #8fcb55; }
.btn-line { background: transparent; border-color: currentColor; }
.btn-line:hover { border-color: var(--green); color: inherit; }
.btn-text { min-height: 44px; padding: 0; border: 0; background: none; font-weight: 500; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .3em; }
.btn-text::after { content: ""; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: .1em; }

/* ---------- home: the opening, a marked-up photograph ---------- */
.hero { background: var(--ground); color: var(--pale); --focus: var(--green); }
.hero-plate { position: relative; height: clamp(300px, 44svh, 520px); overflow: hidden; container-type: size; background: #0e100e; }
.plate { --fx: .37; --fy: .5; --pw: max(100cqw, 150cqh); position: absolute; width: var(--pw); aspect-ratio: 3 / 2;
  left: clamp(calc(100cqw - var(--pw)), calc(50cqw - var(--fx) * var(--pw)), 0px);
  top: clamp(calc(100cqh - var(--pw) / 1.5), calc(50cqh - var(--fy) * var(--pw) / 1.5), 0px);
  transform-origin: 24% 24%; }
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plate-lines .ld { fill: none; stroke: var(--pale); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.plate-lines .pt { fill: var(--green); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.marks { list-style: none; margin: 0; padding: 0; }
.mk { position: absolute; white-space: nowrap; font-family: var(--mono); font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; color: var(--pale); background: rgba(17, 19, 17, .78); padding: 5px 8px 5px 7px; border-left: 2px solid var(--green); line-height: 1.2; }
.mk .mono { color: var(--green); font-size: inherit; margin-right: 4px; }
.mk-1 { left: 11.5%; top: 68.8%; }
.mk-2 { left: 43%; top: 35.2%; }
.mk-3 { left: 30.5%; top: 1.6%; }
.mk-4 { left: 83.5%; top: 51.6%; }
.mk-5 { left: 84%; top: 26.6%; }
.wide { display: none; }
.plate-lines .wide { display: none; }
.plate-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 22px var(--gut) 10px; background: linear-gradient(transparent, rgba(14, 16, 14, .85)); color: var(--pale-dim); font-size: .6875rem; }
.plate-cap a { color: var(--pale); }
.hero-copy { padding: 22px var(--gut) 30px; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--pale-dim); margin-bottom: 14px; font-size: .6875rem; }
.hero h1 { font-size: clamp(1.95rem, 8.3vw, 3.9rem); line-height: 1.06; margin-bottom: 14px; }
.hero-p { color: var(--pale-dim); font-size: 1rem; max-width: 34em; margin-bottom: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.hero-cta .btn-green { flex: 1 1 100%; }
.hero-cta .btn-line { min-height: 44px; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .3em; }
.creds { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--pale-dim); font-size: .6875rem; }
@media (min-width: 560px) {
  .hero-cta .btn-green { flex: 0 1 auto; }
  .hero-cta .btn-line { min-height: 50px; padding: 0 22px; border: 1px solid currentColor; text-decoration: none; }
}
@media (min-width: 760px) {
  .plate { --fx: .5; }
  .wide, .plate-lines .wide { display: revert; }
  .mk.wide { display: block; }
  .mk { font-size: .75rem; padding: 6px 10px 6px 9px; }
}
@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: minmax(0, 66fr) minmax(0, 34fr); align-items: stretch; }
  .hero-plate { height: auto; aspect-ratio: 3 / 2; max-height: calc(100svh - 72px); }
  .hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 40px 44px; border-left: 1px solid var(--rule-dark); }
  .hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.9rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .plate { animation: pull 2.8s var(--ease) both; }
  .plate-img { animation: lights 2.6s ease-out both; }
  .plate-lines .ld { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) forwards; }
  .plate-lines .pt, .mk { opacity: 0; animation: fade .5s ease-out forwards; }
  .ld-1, .pt-1, .mk-1 { animation-delay: 1.5s !important; }
  .ld-3, .pt-3, .mk-3 { animation-delay: 1.8s !important; }
  .ld-2, .pt-2, .mk-2 { animation-delay: 2.1s !important; }
  .ld-4, .pt-4, .mk-4 { animation-delay: 2.4s !important; }
  .ld-5, .pt-5, .mk-5 { animation-delay: 2.7s !important; }
  .mk { animation-name: tag-in; }
}
@keyframes pull { from { transform: scale(1.6); } }
@keyframes lights { from { filter: brightness(.45) saturate(.6); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes tag-in { from { opacity: 0; translate: -6px 0; } to { opacity: 1; translate: 0 0; } }

/* ---------- sections ---------- */
.sec { padding: 68px 0; }
@media (min-width: 900px) { .sec { padding: 112px 0; } }
.dark, .sec.dark { background: var(--ground); color: var(--pale); --focus: var(--green); }
.sec-hd { margin-bottom: 32px; }
.sec-no { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); }
.dark .sec-no, .ph .sec-no, .hero .sec-no, .sheet-sec .sec-no { color: var(--pale-dim); }
.sec-lbl { padding-left: 10px; border-left: 1px solid currentColor; }
.sec-lbl a { text-decoration: none; }
.sec-hd h2 { font-size: clamp(1.75rem, 6.2vw, 3rem); line-height: 1.08; }
.sec-lede { margin: 14px 0 0; max-width: 36em; color: var(--muted); }
.dark .sec-lede, .sheet-sec .sec-lede { color: var(--pale-dim); }
.two { display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .two > .sec-hd { position: sticky; top: 110px; } }

/* ledger rows */
.ledger { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.ledger li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 18px 0 16px; border-top: 1px solid var(--rule); }
.ledger-no { color: var(--green-ink); padding-top: 3px; }
.ledger h3 { margin-bottom: 4px; }
.ledger p { margin: 0; color: var(--muted); }
.dark .ledger, .dark .ledger li { border-color: var(--rule-dark); }
.dark .ledger-no { color: var(--green); }
.dark .ledger p { color: var(--pale-dim); }
.ledger-tight li { padding: 14px 0 12px; }

/* cards and rails */
.rail { list-style: none; margin: 0; padding: 0 var(--gut) 6px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.rail > li { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 600px) { .rail > li { flex-basis: 44%; } }
@media (min-width: 1000px) {
  .rail { max-width: 1240px; margin: 0 auto; overflow: visible; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; }
}
.card a { display: block; text-decoration: none; color: inherit; }
.card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card a:hover .card-img img { transform: scale(1.035); }
.card-meta { display: flex; gap: 12px; padding: 12px 0 6px; margin-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); }
.card-meta span:first-child { color: var(--green-ink); }
.card-name { display: block; font-family: var(--display); font-size: 1.375rem; font-weight: 400; line-height: 1.2; margin-bottom: 4px; }
.card-short { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.5; }
.dark .card-meta { border-color: var(--rule-dark); color: var(--pale-dim); }
.dark .card-meta span:first-child { color: var(--green); }
.dark .card-short { color: var(--pale-dim); }
.card-more a { height: 100%; }
.card-more-in { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; aspect-ratio: 4 / 5; padding: 20px; background: var(--ground); color: var(--pale); position: relative; overflow: hidden; }
.card-more-in::before { content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; background: repeating-linear-gradient(-45deg, rgba(126, 189, 66, .55) 0 1.5px, transparent 1.5px 12px); }
.card-more-in .mono { color: var(--green); }
.card-more-in .card-short { color: var(--pale-dim); }
.work .rail { padding-bottom: 12px; }
@media (max-width: 599px) { .home .work .card:not(.card-more) .card-short { display: none; } .home .work .card-img { aspect-ratio: 1 / 1; } }

/* quotes */
.quotes > li { flex-basis: 84%; }
@media (min-width: 600px) { .quotes > li { flex-basis: 46%; } }
.qcard { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px 20px 18px; background: var(--paper-2); border-top: 2px solid var(--green); }
.qcard blockquote { margin: 0; }
.qcard blockquote p { margin: 0; font-family: var(--display); font-size: 1.125rem; line-height: 1.45; font-weight: 400; }
.qcard-who { margin: 0; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.qcard-who span { color: var(--muted); text-transform: none; letter-spacing: .02em; }
.proof-foot { margin-top: 22px; }

/* Tom */
.tom-grid, .talk-grid { display: grid; gap: 28px 64px; }
@media (min-width: 900px) { .tom-grid, .talk-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tom-p { color: var(--muted); max-width: 32em; }
.vals { list-style: none; margin: 0 0 14px; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--green-ink); }
.tom-img { margin: 0; }
.tom-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tom-img figcaption { padding-top: 8px; color: var(--muted); font-size: .6875rem; }
@media (max-width: 899px) { .tom-img img { aspect-ratio: 16 / 9; } }

/* talk */
.talk { background: var(--paper-2); }
.talk .sec-hd { margin-bottom: 0; }
.talk-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.talk-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--rule); }
.talk-list li > .mono { color: var(--muted); }
.talk-list a { overflow-wrap: anywhere; }
.talk-list li:first-child a { font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 300; text-decoration: none; line-height: 1.1; }

/* inner page heads */
.ph { background: var(--ground); color: var(--pale); padding: 52px 0 44px; --focus: var(--green); }
@media (min-width: 900px) { .ph { padding: 92px 0 76px; } }
.ph h1 { font-size: clamp(2.2rem, 9vw, 4.6rem); line-height: 1.04; max-width: 16em; }
.ph-lede { margin: 18px 0 0; max-width: 36em; color: var(--pale-dim); font-size: 1.0625rem; }
.ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.band { margin: 0; background: var(--ground); }
.band img { width: 100%; height: clamp(260px, 56svh, 720px); object-fit: cover; }
.band figcaption { max-width: 1240px; margin: 0 auto; padding: 10px var(--gut) 12px; color: var(--pale-dim); font-size: .6875rem; }

/* tables */
.mat { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.mat th, .mat td { text-align: left; padding: 13px 12px 13px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.mat thead th { color: var(--muted); font-weight: 400; border-top: 0; padding-bottom: 8px; }
.mat tbody th { font-weight: 500; }
.mat td { color: var(--muted); }
.mat tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
@media (max-width: 599px) {
  .mat thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mat tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-top: 1px solid var(--rule); }
  .mat tr > * { border: 0 !important; padding: 0; }
  .mat tbody th { grid-column: 1; }
  .mat td:nth-of-type(1) { grid-column: 1; grid-row: 2; font-size: .875rem; }
  .mat td:nth-of-type(2) { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .mat tbody tr:last-child { border-bottom: 1px solid var(--rule); }
}

/* split */
.split { display: grid; gap: 28px 64px; align-items: center; }
.split-img { margin: 0; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split p { color: var(--muted); max-width: 34em; }
.dark .split p { color: var(--pale-dim); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip .split-img { order: 2; } }

/* project page */
.proj-hero { margin: 0; background: var(--ground); }
.proj-hero img { width: 100%; height: clamp(300px, 64svh, 860px); object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) { .proj-hero img { height: min(78svh, 860px); } }
.proj-title { padding-top: 36px; padding-bottom: 8px; }
.proj-title h1 { font-size: clamp(2.4rem, 10vw, 5.2rem); line-height: 1; }
.proj-line { margin: 14px 0 0; font-size: 1.1875rem; color: var(--ink-2); max-width: 30em; }
.proj-meta { margin: 16px 0 0; color: var(--muted); }
.proj-body { display: grid; gap: 28px 64px; padding-top: 28px; padding-bottom: 48px; }
@media (min-width: 900px) { .proj-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-bottom: 80px; } }
.proj-story p { max-width: 36em; }
.proj-story p:first-child { font-size: 1.1875rem; }
.facts { margin: 0; border-bottom: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts-dark, .facts-dark > div { border-color: var(--rule-dark); }
.facts-dark dt { color: var(--pale-dim); }
.photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.photos figure { margin: 0; background: var(--paper-2); }
.photos img { width: 100%; }
@media (min-width: 760px) { .photos { grid-template-columns: 1fr 1fr; gap: 16px; } .photos .wide { grid-column: 1 / -1; } .photos li:not(.wide) img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; } }
.pull { margin: 56px 0 0; padding: 26px 0 0; border-top: 2px solid var(--green); max-width: 48em; }
.pull blockquote { margin: 0; }
.pull blockquote p { font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 1.625rem); font-weight: 300; line-height: 1.4; margin-bottom: .8em; }
.pull-more summary { cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); min-height: 44px; display: flex; align-items: center; }
.dark .pull-more summary { color: var(--green); }
.pull-more p { font-size: 1.0625rem !important; }
.pull figcaption { color: var(--muted); }
.dark .pull figcaption { color: var(--pale-dim); }
.dark .pull { margin-top: 0; }
.src { text-transform: none; letter-spacing: .02em; }
.proj-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.proj-nav a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; font-family: var(--display); font-size: 1.125rem; }
.proj-nav a .mono { color: var(--muted); }
.proj-nav a[rel="next"] { text-align: right; align-items: flex-end; }
.proj-nav > a.mono { text-decoration: underline; text-decoration-color: var(--green); }

/* call to action */
.cta { background: var(--ground); color: var(--pale); padding: 64px 0; --focus: var(--green); border-top: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .cta { padding: 96px 0; } }
.cta .sec-no { color: var(--pale-dim); }
.cta h2 { font-size: clamp(1.75rem, 6vw, 3rem); line-height: 1.08; margin-bottom: 12px; max-width: 18em; }
.cta p { color: var(--pale-dim); max-width: 34em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 24px; }

/* gallery filter (works without script) */
.filter { border: 0; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter legend { float: left; width: 100%; margin-bottom: 10px; color: var(--muted); padding: 0; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border: 1px solid var(--rule); border-radius: 2px; font-size: .9375rem; background: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip:hover > span { border-color: var(--ink-2); }
.chip-n { font-size: .6875rem; opacity: .7; }
.grid-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 20px; }
@media (min-width: 700px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .grid-cards { grid-template-columns: 1fr 1fr 1fr; } }
.grid-cards .card-img { aspect-ratio: 4 / 3; }
.gallery:has(input[value="new-build"]:checked) .card:not([data-type="new-build"]),
.gallery:has(input[value="renovation"]:checked) .card:not([data-type="renovation"]),
.gallery:has(input[value="knockdown"]:checked) .card:not([data-type="knockdown"]),
.gallery:has(input[value="duplex"]:checked) .card:not([data-type="duplex"]) { display: none; }

/* testimonials */
.tlist { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.tlist > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 28px 0; border-top: 1px solid var(--rule); }
.tlist figure { margin: 0; max-width: 46em; }
.tlist-h { font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 1.625rem); font-weight: 300; line-height: 1.3; margin-bottom: 12px; }
.tlist blockquote { margin: 0 0 12px; }
.tlist blockquote p { color: var(--ink-2); margin: 0; }
.tlist figcaption { color: var(--muted); }
.tlist .ledger-no { padding-top: 6px; }

/* contact */
.contact-grid { display: grid; gap: 48px 64px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.next-box { margin-top: 32px; padding: 22px 20px; background: var(--paper-2); }
.next-box > .mono { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.next-box ol { margin: 0 0 8px; padding-left: 1.2em; color: var(--ink-2); }
.next-box li { margin-bottom: 6px; }

.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 38em; }
.narrow { max-width: 760px; }
.nf-links { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nf-links a { color: var(--pale); }

/* ---------- forms ---------- */
.qf { display: grid; gap: 14px; }
.qf-row { display: grid; gap: 6px; }
.qf label { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.qf input, .qf textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #9c978b; border-radius: 2px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.qf textarea { resize: vertical; min-height: 104px; }
.qf input:focus, .qf textarea:focus { outline: 2px solid var(--green-ink); outline-offset: 1px; border-color: var(--green-ink); }
.qf-send { width: 100%; margin-top: 4px; }
@media (min-width: 600px) { .qf-send { width: auto; justify-self: start; } }
.qf-small { margin: 0; font-size: .8125rem; color: var(--muted); }
.qf-notes { padding: 14px 14px 8px; background: var(--paper-2); border-left: 2px solid var(--green); }
.qf-notes-h { margin: 0 0 8px; color: var(--muted); }
.qf-notes ul { list-style: none; margin: 0; padding: 0; }
.qf-notes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.qf-notes li:first-child { border-top: 0; }
.qf-notes b { font-weight: 500; }
.qf-notes button { min-height: 36px; min-width: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-ink); text-decoration: underline; }

/* the quote drawer: rises from the bottom on a phone, a card on a wide screen */
.qd { --focus: var(--green-ink); }
.qd:popover-open, .qd[popover] { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92svh; margin: 0; padding: 0; border: 0; border-radius: 12px 12px 0 0; overflow: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); }
.qd::backdrop { background: rgba(10, 12, 10, .55); }
.qd-in { padding: 18px var(--gut) calc(24px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.qd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.qd-kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.qd-close { min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--green); }
.qd-h { font-size: 1.75rem; margin-bottom: 6px; }
.qd-p { color: var(--muted); font-size: .9375rem; }
.qd-next { margin: 18px 0 0; padding: 14px 0 0 1.4em; border-top: 1px solid var(--rule); color: var(--muted); font-size: .6875rem; line-height: 1.9; }
@media (min-width: 900px) {
  .qd:popover-open, .qd[popover] { inset: auto 24px 24px auto; width: 440px; max-height: calc(100svh - 120px); border-radius: 4px; }
  .qd-in { padding: 22px 26px 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .qd[popover] { transition: translate .38s var(--ease), opacity .38s, overlay .38s allow-discrete, display .38s allow-discrete; translate: 0 100%; }
  .qd:popover-open { translate: 0 0; }
  @starting-style { .qd:popover-open { translate: 0 100%; } }
  .qd::backdrop { transition: opacity .38s, overlay .38s allow-discrete, display .38s allow-discrete; opacity: 0; }
  .qd:popover-open::backdrop { opacity: 1; }
  @starting-style { .qd:popover-open::backdrop { opacity: 0; } }
  @media (min-width: 900px) { .qd[popover] { translate: 0 24px; opacity: 0; } .qd:popover-open { translate: 0 0; opacity: 1; } @starting-style { .qd:popover-open { translate: 0 24px; opacity: 0; } } }
}
html.no-popover .qd { position: static; border-radius: 0; box-shadow: none; max-height: none; border-top: 1px solid var(--rule); }

/* ---------- footer and phone bar ---------- */
.ft { background: var(--ground); color: var(--pale-dim); padding: 56px 0 120px; font-size: .9375rem; --focus: var(--green); border-top: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .ft { padding-bottom: 36px; } }
.ft a { color: var(--pale); text-decoration-color: rgba(236, 239, 232, .35); }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 32px; }
.ft-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.ft-brand, .ft-in > .ft-col:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 760px) { .ft-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } .ft-brand, .ft-in > .ft-col:nth-child(2) { grid-column: auto; } }
@media (max-width: 759px) { .ft-brand p { display: none; } .ft-logo { margin-bottom: 0; } .ft { padding-top: 40px; } .ft-ledger { margin-top: 28px; } }
.ft-logo { display: block; width: 150px; margin-bottom: 16px; }
.ft-brand p { max-width: 26em; }
.ft-h { color: var(--green); margin: 0 0 10px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { padding: 5px 0; overflow-wrap: anywhere; }
.ft-ledger { max-width: 1240px; margin: 40px auto 0; padding: 14px var(--gut); display: flex; flex-wrap: wrap; gap: 6px 24px; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); font-size: .6875rem; }
.ft-base { max-width: 1240px; margin: 0 auto; padding: 16px var(--gut) 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .8125rem; }
.ft-base p { margin: 0; }
.credit { opacity: .8; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); background: rgba(21, 23, 21, .96); border-top: 1px solid var(--rule-dark); --focus: var(--green); transition: padding .3s var(--ease); }
.bar a, .bar button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 2px; text-decoration: none; font-weight: 500; white-space: nowrap; overflow: hidden; }
.bar-call { flex: 1 1 auto; background: var(--green); color: var(--ink); padding: 0 12px; }
.bar-call .mono { font-size: .8125rem; letter-spacing: .03em; }
.bar-quote { flex: 0 1 46%; max-width: 46%; border: 1px solid rgba(236, 239, 232, .5); background: transparent; color: var(--pale); cursor: pointer; padding: 0 12px; transition: max-width .35s var(--ease), padding .35s, opacity .25s, border-width .35s; }
html.is-down .bar-quote { max-width: 0; padding: 0; opacity: 0; border-width: 0; }
html.is-down .bar { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
html.is-down .bar a { min-height: 46px; }
.carry-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green); color: var(--ink); font: 600 .6875rem/1 var(--mono); }
.carry-count[hidden] { display: none; }
@media (min-width: 900px) { .bar { display: none; } }
@media (max-width: 359px) { .bar-call-lbl { display: none; } }

/* ---------- arrive as you scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv-wait { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
  .rv-wait.in { opacity: 1; translate: 0 0; }
  .rail > .rv-wait:nth-child(2) { transition-delay: .08s; }
  .rail > .rv-wait:nth-child(3) { transition-delay: .16s; }
  .rail > .rv-wait:nth-child(4) { transition-delay: .24s; }
  .rail > .rv-wait:nth-child(5) { transition-delay: .32s; }
}

/* ---------- a job's picture carries into its own page ---------- */
@view-transition { navigation: auto; }
.pc-yaringa { view-transition-name: pc-yaringa; }
.pc-kellehers { view-transition-name: pc-kellehers; }
.pc-rosemount { view-transition-name: pc-rosemount; }
.pc-bronze-wing { view-transition-name: pc-bronze-wing; }
.pc-the-palms-beach-house { view-transition-name: pc-palms; }
.pc-mizzen { view-transition-name: pc-mizzen; }
.pc-laguna-grove { view-transition-name: pc-laguna; }
.pc-barra { view-transition-name: pc-barra; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: cover; overflow: clip; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media print { .hd, .bar, .qd, .tape, .cta { display: none !important; } body { background: #fff; } }
