/* Two Rivers Kitchen & Bath. Dealt direction: the contact sheet. Graphite and orange, Archivo only. */

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2c2f33;
  --ink: #eff0f1;
  --muted: #9c9ea3;
  --accent: #ff4a1f;
  --accent-ink: #18191b;
  --field: #eff0f1;
  --field-ink: #18191b;
  --field-muted: #4f535a;
  --field-surface: #dfe1e3;

  --s-small: 14px;
  --s-body: 17px;
  --s-lead: clamp(20px, 1.6vw, 26px);
  --s-head: clamp(32px, 3.2vw, 44px);
  --s-display: clamp(44px, 7.2vw, 112px);

  --m: clamp(16px, 2vw, 28px);
  --gap: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--s-body);
  line-height: 1.5;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: visually hidden helper, not a visible rule */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--m); top: 12px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }

/* type */
.display { font-size: var(--s-display); font-weight: 400; line-height: .96; letter-spacing: -0.03em; max-width: 14ch; }
.head { font-size: var(--s-head); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: var(--s-lead); font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; }
.small { font-size: var(--s-small); line-height: 1.45; color: var(--muted); }
.meta { font-size: var(--s-small); color: var(--muted); margin-top: 2px; }

/* buttons: flat, square, one fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 0; text-decoration: none;
  font-weight: 600; font-size: var(--s-body); line-height: 1.2; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); background: #ff6a44; }
.btn:active { transform: scale(.98); }

/* header bar */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--m);
}
.mark { font-weight: 600; text-decoration: none; font-size: var(--s-body); }
.bar nav { display: flex; gap: 24px; }
.bar nav a, .foot nav a { text-decoration: none; font-size: var(--s-body); color: var(--ink); transition: color .2s; }
.bar nav a:hover, .foot nav a:hover { color: var(--accent); }
.bar .btn { padding: 10px 16px; min-height: 44px; font-size: var(--s-small); }

/* 12-column grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: 0 var(--m); }

/* hero and contact sheet */
.hero { padding: 24px 0 0; }
.hero .display { padding: 0 var(--m); margin-bottom: 36px; max-width: none; }
.intro { align-items: start; margin-bottom: 36px; }
.intro .c1 { grid-column: 1 / span 4; }
.intro .c2 { grid-column: 5 / span 4; }
.intro .c3 { grid-column: 9 / span 4; display: grid; gap: 16px; justify-items: start; }
.intro p { font-size: var(--s-body); line-height: 1.5; }

.sheet { padding: 0 0 120px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 var(--m); margin-bottom: 20px; }
.sheet-head .small { max-width: 60ch; }

.run { padding: 0 var(--m); margin-bottom: 26px; transition: opacity .35s var(--ease); }
.run header { margin-bottom: 10px; }
.run h3 { font-size: var(--s-body); font-weight: 600; line-height: 1.3; }
.frames { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: stretch; }
.frame { margin: 0; height: 150px; overflow: hidden; background: var(--surface); flex: 1 1 0; min-width: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.frame:hover img { transform: scale(1.04); filter: brightness(1.08); }
.sheet:has(.run:hover) .run:not(:hover) { opacity: .42; }
.hero-frame img { animation: drift 9s var(--ease) infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

/* process: light field and drag row */
.field { background: var(--field); color: var(--field-ink); }
.field .small, .field .meta { color: var(--field-muted); }
.process { padding: 120px 0 96px; }
.process-head { align-items: end; margin-bottom: 40px; }
.process-head .head { grid-column: 1 / span 6; }
.process-head p { grid-column: 8 / span 5; font-size: var(--s-body); color: var(--field-muted); }
.drag {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--m); scroll-padding-left: var(--m); -webkit-overflow-scrolling: touch;
}
.drag::-webkit-scrollbar { display: none; }
.track { display: flex; gap: 32px; width: max-content; padding-right: var(--m); }
.col { width: 300px; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; }
.col h3 { font-size: var(--s-body); font-weight: 600; line-height: 1.3; }
.col p { font-size: var(--s-body); line-height: 1.5; color: var(--field-ink); }
.col:nth-child(even) { padding-top: 56px; }
.col:nth-child(3n) { padding-top: 112px; }
.quote { background: var(--field-surface); padding: 20px; display: grid; gap: 8px; margin-top: 8px; }
.quote p { font-size: var(--s-body); }
.quote-h { font-weight: 600; }
.bar-track { margin: 36px var(--m) 0; height: 6px; background: var(--field-surface); }
.bar-fill { display: block; height: 100%; width: 0; background: var(--field-ink); transition: width .15s linear; }

/* prices: graphite, table as large type */
.prices { padding: 120px var(--m) 120px; }
.prices > .head { margin-bottom: 40px; }
.plans { width: 100%; border-collapse: collapse; font-size: var(--s-body); }
.plans th, .plans td { text-align: left; vertical-align: top; padding: 22px 20px 22px 0; }
.plans tbody th { font-weight: 400; color: var(--muted); width: 18%; }
.plans tr.names th { width: 18%; }
.plans .pn { font-size: var(--s-lead); font-weight: 600; color: var(--ink); width: 27%; }
.plans td { width: 27%; line-height: 1.45; }
.plans td.big { font-size: var(--s-head); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.plans tbody tr:nth-child(even) { background: var(--surface); }

.estimate { margin-top: 96px; max-width: 980px; }
.estimate > .lead { margin-bottom: 20px; }
.est-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
label { display: grid; gap: 8px; font-size: var(--s-small); color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 14px 14px; border: 0; border-radius: 0;
  background: var(--surface); color: var(--ink); font-size: var(--s-body);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.result { padding: 28px 0 8px; transition: opacity .25s var(--ease); }
.range { font-size: var(--s-head); font-weight: 400; color: var(--accent); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 12px; transition: opacity .25s, transform .25s var(--ease); }
.result p + p { margin-top: 10px; }
.result.flash .range { opacity: .3; transform: translateY(6px); }
.fallback { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: var(--s-body); }
.fallback caption { text-align: left; color: var(--muted); font-size: var(--s-small); padding-bottom: 12px; }
.fallback th, .fallback td { text-align: left; padding: 14px 20px; }
.fallback th { font-size: var(--s-small); color: var(--muted); font-weight: 600; }
.fallback tbody tr:nth-child(odd) { background: var(--surface); }

/* about: light statement */
.about { padding: 120px 0; }
.about-grid { align-items: start; row-gap: 40px; }
.about-main { grid-column: 1 / span 8; display: grid; gap: 28px; }
.statement { font-size: var(--s-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; }
.body { font-size: var(--s-body); line-height: 1.55; max-width: 62ch; color: var(--field-ink); }
.facts { grid-column: 10 / span 3; display: grid; gap: 22px; }
.facts dt { font-size: var(--s-small); color: var(--field-muted); }
.facts dd { font-size: var(--s-body); font-weight: 600; }

/* faq: reading text in two columns */
.faq { padding: 120px var(--m); }
.faq > .lead { margin-bottom: 36px; }
.qa { columns: 2; column-gap: 56px; font-size: var(--s-body); line-height: 1.55; }
.qa p { break-inside: avoid; margin-bottom: 20px; }
.qa strong { font-weight: 600; color: var(--ink); }

/* contact: dark, sentence and form */
.field-dark { background: var(--surface); padding: 120px 0 96px; }
.contact > .statement, .field-dark > .statement { padding: 0 var(--m); max-width: 34ch; margin-bottom: 56px; }
.contact-grid { align-items: start; row-gap: 48px; }
.paths { grid-column: 1 / span 4; display: grid; gap: 16px; font-size: var(--s-body); }
.paths a { font-size: var(--s-lead); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: color .2s; }
.paths a:hover { color: var(--accent); }
.est-request { grid-column: 6 / span 7; display: grid; gap: 18px; }
.est-request > .lead { margin-bottom: 4px; }
.est-request .btn { justify-self: start; margin-top: 6px; }

/* footer: one quiet line, then credits */
.foot { padding: 160px var(--m) 32px; }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; font-size: var(--s-body); }
.foot-line nav { display: flex; gap: 24px; justify-content: center; }
.foot-line > p:last-child { justify-self: end; color: var(--muted); }
.foot-line > p:first-child { color: var(--muted); }
.credits-wrap { margin-top: 64px; border-top: 0; }
.credits-wrap summary { cursor: pointer; font-size: var(--s-small); color: var(--muted); padding: 8px 0; }
.credits-wrap summary:hover { color: var(--ink); }
.credits { display: grid; gap: 6px; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); columns: 2; }
.credits li { break-inside: avoid; color: var(--muted); }
.credits a { color: var(--ink); }
.credits-wrap p.small { margin-top: 10px; }

/* motion: entrance for parts of each section, once, when they enter */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .intro .reveal:nth-child(2) { transition-delay: .08s; }
.js .intro .reveal:nth-child(3) { transition-delay: .16s; }
.js .run.reveal { transition-duration: .7s; }

.js .reveal.in.run:hover { transform: none; }

@media (max-width: 1000px) {
  .bar nav { display: none; }
  .intro .c1, .intro .c2, .intro .c3 { grid-column: span 12; margin-bottom: 20px; }
  .intro .c2 { grid-column: 1 / span 12; }
  .process-head .head, .process-head p { grid-column: 1 / span 12; }
  .about-main { grid-column: 1 / span 12; }
  .facts { grid-column: 1 / span 12; grid-template-columns: repeat(3, 1fr); }
  .paths, .est-request { grid-column: 1 / span 12; }
  .qa { columns: 1; }
  .foot-line { grid-template-columns: 1fr; text-align: left; }
  .foot-line nav { justify-content: flex-start; }
  .foot-line > p:last-child { justify-self: start; }
}

@media (max-width: 640px) {
  :root { --s-display: 44px; --s-head: 32px; --s-lead: 20px; }
  .display { max-width: 12ch; }
  .frame { height: 120px; flex: 1 1 44%; }
  .est-form { grid-template-columns: 1fr; }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: 100%; }
  .plans tr.names { display: none; }
  .plans tr { padding: 20px 16px; margin-bottom: 12px; background: var(--surface); }
  .plans tbody tr:nth-child(even) { background: var(--surface); }
  .plans th { padding: 0 0 8px; }
  .plans td { padding: 6px 0 0; }
  .plans td::before { content: attr(data-plan) ": "; font-size: var(--s-small); color: var(--muted); }
  .plans td.big { font-size: var(--s-head); }
  .track { gap: 24px; }
  .col { width: 78vw; }
  .qa { font-size: var(--s-body); }
  .credits { grid-template-columns: 1fr; }
  .fallback th, .fallback td { padding: 12px 8px; }
  .facts { grid-template-columns: 1fr; }
  .foot { padding-top: 120px; }
  .process, .about, .prices, .field-dark { padding-top: 96px; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .frame:hover img { transform: none; }
}
