/* Bathrooms By Flush: their black, a warm pale partner, their rose-taupe accent.
   The thread: the level line under FLUSH in their logo, with the nail driven through it. */
:root {
  --ink: #1b1b1b;
  --ink-2: #232120;
  --ink-3: #2d2a29;
  --paper: #f4f1ee;
  --paper-2: #e9e4e0;
  --rose: #826c6c;        /* their accent, measured from their site */
  --rose-dk: #6f5b5b;     /* on paper, for small text (AA) */
  --rose-lt: #c9b2b0;     /* on ink (AA) */
  --line: rgba(244, 241, 238, .5);
  --line-dim: rgba(244, 241, 238, .22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 72rem;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.ink :focus-visible, .site-head :focus-visible, .callbar :focus-visible { outline-color: var(--rose-lt); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 8.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 99; background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: 2px; }
.skip:focus { top: .75rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Labels set like the strapline in their logo: DESIGN | CONSTRUCTION & FITOUT */
.label { font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.1rem; color: var(--rose-dk); }
.ink .label, .ink-2 .label { color: var(--rose-lt); }

/* The flush line: a dead-level rule with their nail driven through it. */
.flush { position: relative; height: 1px; background: currentColor; opacity: .7; margin: 0 0 2rem; transform-origin: left; }
.flush::after { content: ""; position: absolute; left: var(--nail, 2.5rem); top: -8px; width: 5px; height: 24px; background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.flush.short { width: 9rem; }

/* Sections */
.ink { background: var(--ink); color: var(--paper); }
.ink-2 { background: var(--ink-2); color: var(--paper); }
.pale { background: var(--paper); }
.pale-2 { background: var(--paper-2); }
section { padding: clamp(3.5rem, 10vw, 6.5rem) 0; }
.lede { font-size: 1.15rem; max-width: 36rem; }
.muted { opacity: .78; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .75rem 1.3rem; border-radius: 2px;
  font: 600 .98rem/1.1 var(--sans); text-decoration: none; border: 1px solid currentColor; cursor: pointer; background: transparent; color: inherit;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pale .btn.solid, .pale-2 .btn.solid, dialog.drawer .btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: var(--rose-lt); border-color: var(--rose-lt); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.arrow::after { content: "→"; transition: transform .25s var(--ease); }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Header: hides going down, returns coming up; keeps the number in reach on desktop */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--paper); transition: transform .35s var(--ease), box-shadow .35s; }
.site-head.away { transform: translateY(-100%); }
.site-head.lifted { box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .25); }
.head-in { display: flex; align-items: center; gap: 1rem; height: 4rem; }
.brand { display: block; width: 7.4rem; flex: none; }
.brand img { width: 100%; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; opacity: .85; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-color: var(--rose-lt); }
.head-call { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .98rem; }
.head-call span { color: var(--rose-lt); font-weight: 400; margin-right: .35rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: inherit; min-height: 2.6rem; padding: 0 .9rem; font: 600 .85rem var(--sans); letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .head-call { display: none; }
  .nav { position: fixed; inset: 4rem 0 auto 0; background: var(--ink); padding: .5rem var(--gut) 1.5rem; border-top: 1px solid var(--line-dim);
    transform: translateY(-.5rem); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-dim); }
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; }
}

/* Call bar: the number never leaves the screen on a phone */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; gap: .5rem; padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(27, 27, 27, .96); color: var(--paper); border-top: 1px solid var(--line-dim); transition: padding .3s var(--ease); }
.callbar a, .callbar button { flex: 1; min-height: 3rem; }
.callbar .call { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.callbar.tight { padding-top: .35rem; padding-bottom: calc(.35rem + env(safe-area-inset-bottom)); }
.callbar.tight a, .callbar.tight button { min-height: 2.7rem; }
@media (max-width: 960px) { .callbar { display: flex; } body { padding-bottom: 4.6rem; } }

/* Hero */
.hero { padding: clamp(1.4rem, 6vw, 5rem) 0 0; overflow: hidden; }
.hero .label { letter-spacing: .16em; }
@media (max-width: 960px) { .hero .btns .solid { display: none; } .hero .lede { font-size: 1.05rem; margin-bottom: .8rem; } .hero .btns .btn { border: 0; padding: .4rem 0; min-height: 2.75rem; text-decoration: underline; text-underline-offset: .25em; } .hero-grid { gap: 1.4rem; } .hero .flush { margin-bottom: 1.3rem; } }
.hero-grid { display: grid; gap: 2.2rem; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--rose-lt); }
.hero .lede { opacity: .86; }
.hero .flush { color: var(--paper); width: min(100%, 26rem); }
.hero-photo { position: relative; margin: 0 calc(var(--gut) * -1); aspect-ratio: 3 / 4; max-height: 82vh; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo svg.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.marks line, .marks path, .marks circle { fill: none; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.marks circle { fill: #fff; }
.marks text { fill: #fff; font: 600 9px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.marks .tag { fill: rgba(27, 27, 27, .72); stroke: none; }
.hero-photo figcaption { position: absolute; left: var(--gut); bottom: .9rem; font-size: .78rem; letter-spacing: .08em; color: #fff; opacity: .9; }
@media (min-width: 961px) {
  .hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; }
  .hero-photo { margin: 0; max-height: none; }
  .hero-photo figcaption { left: 1rem; }
}

/* Motion: the line levels, the nail taps, the marks draw. Still for anyone who asks. */
@media (prefers-reduced-motion: no-preference) {
  .hero .flush { animation: level 1.1s var(--ease) .15s both; }
  .hero .flush::after { animation: tap .5s cubic-bezier(.3, 1.6, .5, 1) 1.1s both; }
  .marks .m { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) both; }
  .marks .m1 { animation-delay: 1.2s; } .marks .m2 { animation-delay: 1.5s; } .marks .m3 { animation-delay: 1.8s; }
  .marks g.t { opacity: 0; animation: fade .5s ease both; }
  .marks .t1 { animation-delay: 1.9s; } .marks .t2 { animation-delay: 2.2s; } .marks .t3 { animation-delay: 2.5s; }
  .reveal.wait { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.wait.in { opacity: 1; transform: none; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
}
@keyframes level { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tap { 0% { transform: translateY(-14px); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.015); } }

/* Swipe rows: the next card shows at the edge */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem var(--gut) 1.25rem; margin: 0 calc(var(--gut) * -1); scrollbar-width: thin; overscroll-behavior-x: contain; }
.row > * { scroll-snap-align: start; }
@media (min-width: 961px) { .row.fit { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* Job cards (their own photos) */
.job { position: relative; display: block; text-decoration: none; color: inherit; }
.job .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.job img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.job:hover img { transform: scale(1.035); }
.job h3 { font-size: 1.3rem; margin: .85rem 0 .2rem; }
.job p { margin: 0; font-size: .92rem; opacity: .75; }
.job .no { position: absolute; top: .7rem; left: .7rem; font: 600 .7rem var(--sans); letter-spacing: .18em; background: rgba(27, 27, 27, .75); color: #fff; padding: .3rem .5rem; }

/* Photo carry: a job's picture grows into the top of its own page */
.vt-minyama { view-transition-name: job-minyama; }
.vt-alex { view-transition-name: job-alex; }
.vt-buderim { view-transition-name: job-buderim; }
.vt-buddina { view-transition-name: job-buddina; }
::view-transition-group(job-minyama), ::view-transition-group(job-alex), ::view-transition-group(job-buderim), ::view-transition-group(job-buddina) { animation-duration: .55s; animation-timing-function: var(--ease); }

/* Steps */
.steps { counter-reset: s; }
.step { border-top: 1px solid var(--line-dim); padding-top: 1.2rem; }
.pale .step, .pale-2 .step { border-color: rgba(27, 27, 27, .18); }
.step .n { font: 400 2.6rem/1 var(--serif); color: var(--rose-lt); display: block; margin-bottom: .6rem; }
.pale .step .n, .pale-2 .step .n { color: var(--rose); }
.step h3 { font-size: 1.3rem; }
.step p { font-size: .96rem; opacity: .85; margin: 0; }
.step svg { width: 100%; max-width: 14rem; margin: 0 0 1rem; }

/* Pull quote: their promise */
.pull { font: 400 clamp(1.75rem, 5.6vw, 2.9rem)/1.15 var(--serif); margin: 0 0 1.5rem; max-width: 22ch; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.facts li { padding-left: 1.6rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 1rem; height: 1px; background: var(--rose); }
.facts strong { display: block; font-weight: 600; }
@media (min-width: 761px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Editorial two-column with a picture that breaks the column */
.ed { display: grid; gap: 2.5rem; }
@media (min-width: 861px) {
  .ed { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; }
  .ed .break { margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gut)); }
  /* A picture in the left column breaks out to the left, never across the column beside it. */
  .ed > :first-child .break { margin-right: 0; margin-left: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gut)); }
  .ed > :first-child .break img { aspect-ratio: 4 / 5; object-fit: cover; }
  .ed > :first-child .break .cap { padding-left: var(--gut); }
}
.break img { width: 100%; }
.cap { font-size: .82rem; opacity: .72; margin-top: .6rem; }

/* Visit block */
.visit { display: grid; gap: 2rem; }
.visit dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; }
.visit dt { font-weight: 600; }
.visit dd { margin: 0; }
@media (min-width: 861px) { .visit { grid-template-columns: 1.2fr 1fr; align-items: end; } }

/* Page heads for inner pages */
.page-head { padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3.5rem); }
.page-head h1 { max-width: 16ch; }
.page-head .flush { color: var(--paper); width: min(100%, 20rem); margin-top: 1.5rem; }
.crumbs { font-size: .85rem; opacity: .75; margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 40rem; }
.prose h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* Services list */
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.svc li { border-top: 1px solid rgba(27, 27, 27, .16); padding: 1.15rem 0; display: grid; gap: .25rem; }
.svc li:last-child { border-bottom: 1px solid rgba(27, 27, 27, .16); }
.svc h3 { font-size: 1.25rem; margin: 0; }
.svc p { margin: 0; opacity: .82; font-size: .98rem; }
@media (min-width: 761px) { .svc li { grid-template-columns: 18rem 1fr; gap: 2rem; } }

/* Timeline: what happens when */
.when { list-style: none; margin: 0; padding: 0; position: relative; }
.when::before { content: ""; position: absolute; left: .45rem; top: .5rem; bottom: .5rem; width: 1px; background: rgba(27, 27, 27, .25); }
.when > li { position: relative; padding: 0 0 2.4rem 2.4rem; }
.when > li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .95rem; height: .95rem; border: 1px solid var(--ink); background: var(--paper); border-radius: 50%; }
.when .when-k { font: 600 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rose-dk); }
.when h3 { margin: .3rem 0 .5rem; }
.when p { margin: 0 0 .6rem; max-width: 38rem; }

/* FAQ */
.faq { border-top: 1px solid rgba(27, 27, 27, .18); }
.faq details { border-bottom: 1px solid rgba(27, 27, 27, .18); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative; font: 400 1.25rem/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font: 300 1.6rem var(--sans); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; max-width: 40rem; }

/* Gallery on a job page */
.gal { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.gal figure { margin: 0; }
.gal img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-2); }
.gal .wide { grid-column: 1 / -1; }
.gal .wide img { aspect-ratio: 4 / 3; }
@media (min-width: 861px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.job-hero img { width: 100%; max-height: 78vh; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .job-hero img { aspect-ratio: 4 / 5; } }

/* Forms and the quote drawer */
.f { display: grid; gap: 1rem; }
.f label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.f input, .f textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(27, 27, 27, .35); border-radius: 2px; padding: .8rem .9rem; min-height: 3rem; width: 100%; }
.f textarea { min-height: 7.5rem; resize: vertical; }
.f input:focus, .f textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; border-color: var(--ink); }
.f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f small { font-weight: 400; opacity: .75; }
.f .note { font-size: .86rem; opacity: .78; margin: 0; }
dialog.drawer { margin: auto auto 0; width: 100%; max-width: 34rem; max-height: 92vh; padding: 0; border: 0; border-radius: 6px 6px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); }
dialog.drawer::backdrop { background: rgba(10, 10, 10, .55); }
@media (prefers-reduced-motion: no-preference) {
  dialog.drawer[open] { animation: rise .45s var(--ease); }
  dialog.drawer[open]::backdrop { animation: fade .35s ease both; }
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.drawer-in { padding: 1.4rem var(--gut) 1.6rem; overflow: auto; max-height: 92vh; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.drawer-top h2 { font-size: 1.8rem; margin: 0; }
.x { background: none; border: 1px solid rgba(27, 27, 27, .3); width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: inherit; }
.grip { width: 3rem; height: 4px; border-radius: 2px; background: rgba(27, 27, 27, .2); margin: 0 auto .9rem; }

/* Footer */
.site-foot { background: var(--ink); color: var(--paper); padding: 3.5rem 0 2rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; }
.site-foot img { width: 10rem; margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot a { text-decoration: none; opacity: .85; }
.site-foot a:hover { opacity: 1; text-decoration: underline; }
.site-foot h2 { font: 600 .74rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rose-lt); margin-bottom: .9rem; }
.legal { border-top: 1px solid var(--line-dim); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .82rem; opacity: .75; }
.legal .credit { margin-left: auto; }
@media (min-width: 761px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; } .foot-grid > div:first-child { grid-column: 1 / -1; } .site-foot img { width: 8rem; } .site-foot { padding-top: 2.5rem; font-size: .9rem; } .legal .credit { margin-left: 0; } }

.center { text-align: center; }
.mt { margin-top: 2rem; }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.split-head h2 { margin: 0; max-width: 18ch; }

/* Small blueprint drawings: pale existing lines, new work in their rose */
.bp { overflow: visible; }
.bp .bp-l { fill: none; stroke: rgba(244, 241, 238, .78); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp .bp-d { fill: none; stroke: rgba(244, 241, 238, .45); stroke-width: .8; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.bp .bp-n { fill: none; stroke: var(--rose-lt); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.bp .bp-h { fill: rgba(244, 241, 238, .06); stroke: none; }
.bp text { fill: rgba(244, 241, 238, .7); font: 600 6.5px var(--sans); letter-spacing: .06em; }
.job-hero { margin: 0; }
