/* Golden Triangle Remodeling v2. Palette from his logo; see DIRECTION.md. */
:root {
  --yellow: #f6e61c;
  --black: #171615;
  --paper: #fafaf7;
  --concrete: #66635d;
  --gold: #927323;
  --logo-yellow: #f6e61c;

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Type scale (rem): 0.75 / 0.875 / 1.0625 / 1.375 / 2.25 / 3.75 / 6.5 / 11 */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: 1.375rem;
  --t-item: 2.25rem;
  --t-h3: 3.75rem;
  --t-h2: 6.5rem;
  --t-xl: 11rem;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--yellow);
  color: var(--black);
  font: 400 var(--t-body)/1.55 var(--body);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
.marquee :focus-visible, .where :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--black); color: var(--yellow); padding: 0.75rem 1rem; }
.skip:focus { left: var(--gutter); top: 1rem; }

.label { font: 500 var(--t-xs)/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.line-in { display: block; }

/* Header */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav.is-solid { background: var(--yellow); box-shadow: 0 2px 0 var(--black); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand .mark { width: 3rem; }
.brand-name { font: 800 var(--t-xs)/1.15 var(--display); font-variation-settings: "wdth" 115; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-call {
  font: 700 var(--t-body)/1 var(--body); text-decoration: none; letter-spacing: 0.01em;
  padding: 0.8rem 1.1rem; background: var(--black); color: var(--yellow);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-call:hover { background: var(--paper); color: var(--black); }

/* Phone numbers: one style, even-width lining digits. */
.nav-call, .call-btn-num, .foot-row a, .big-number { font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "wdth" 100; }

/* Logo */
.mark { height: auto; flex: none; display: block; }
.mark-tri { fill: var(--black); }
.mark-y { fill: var(--logo-yellow); }

/* Hero */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1fr; align-items: center; gap: 3rem;
  padding: 8rem var(--gutter) 4.5rem;
}
.tag { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; font: 500 var(--t-sm)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; }
.hero-title {
  margin: 0; text-transform: uppercase;
  font: 900 clamp(2.4rem, 6.6vw, var(--t-h2))/0.86 var(--display);
  font-variation-settings: "wdth" 118; letter-spacing: -0.015em;
}
.hero-lede { margin-top: 2.5rem; max-width: 34ch; font: 500 var(--t-lead)/1.45 var(--body); text-wrap: pretty; }
.call-btn {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; margin-top: 2.5rem;
  padding: 1.15rem 1.6rem; min-height: 3.5rem; background: var(--black); color: var(--yellow); text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.call-btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--paper); }
.call-btn:active { transform: none; box-shadow: none; transition-duration: 0.08s; }
.call-btn-label { font: 900 var(--t-lead)/1 var(--display); font-variation-settings: "wdth" 115; text-transform: uppercase; }
.call-btn-num { font: 700 var(--t-lead)/1 var(--body); letter-spacing: 0.01em; }

.hero-tri { position: relative; margin: 0; aspect-ratio: 1.12 / 1; width: 100%; max-width: 40rem; justify-self: end; }
.hero-tri img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-tri .label { position: absolute; right: 0; bottom: -1.5rem; }

/* Marquee */
.marquee { background: var(--black); color: var(--yellow); overflow: hidden; padding: 2rem 0; }
.marquee-track { display: flex; width: max-content; }
.marquee-row {
  white-space: nowrap;
  font: 900 var(--t-h3)/1 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase;
  color: var(--yellow);
}

/* Signature: the years */
.years { position: relative; padding: var(--section) var(--gutter); }
.years-stage { position: relative; }
.years-head { margin: 0; position: relative; z-index: 1; }
.years-since { display: block; font: 900 var(--t-lead)/1 var(--display); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.75rem; }
.years-num {
  display: block; font: 900 clamp(7rem, 40vw, 26rem)/0.8 var(--display);
  font-variation-settings: "wdth" 80; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums;
}
.years-note { position: relative; z-index: 1; max-width: 30ch; margin-top: 2rem; font: 500 var(--t-lead)/1.45 var(--body); text-wrap: pretty; }
.prints { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.print { margin: 0; background: var(--paper); padding: 0.45rem 0.45rem 0.6rem; box-shadow: 0 10px 24px -14px rgba(23, 22, 21, 0.55); }
.print img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.print .label { display: block; margin-top: 0.45rem; color: var(--black); }

/* Work */
.work { background: var(--paper); padding: var(--section) var(--gutter); }
.section-title {
  margin: 0; text-transform: uppercase;
  font: 900 clamp(2.75rem, 7vw, var(--t-h2))/0.9 var(--display); font-variation-settings: "wdth" 120; letter-spacing: -0.015em;
}
.work-intro { display: grid; gap: 1.5rem; align-items: end; }
.work-lede { max-width: 30ch; font: 500 var(--t-lead)/1.45 var(--body); text-wrap: pretty; }
.work-cols { display: grid; grid-template-columns: 1fr; gap: 3.5rem; margin-top: 5rem; }
.col-head { margin: 0 0 1.25rem; font: 500 var(--t-sm)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--concrete); }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--black); }
.work-list li {
  padding: 1rem 0; border-bottom: 3px solid var(--black);
  font: 800 clamp(1.375rem, 2.2vw, var(--t-item))/1.15 var(--display); font-variation-settings: "wdth" 104; text-transform: uppercase; letter-spacing: 0.005em;
}
.roofing { margin-top: 5.5rem; }
.roof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0; }
.roof-list li { font: 800 clamp(1.375rem, 2.2vw, var(--t-item))/1.25 var(--display); font-variation-settings: "wdth" 104; text-transform: uppercase; letter-spacing: 0.005em; }
.roof-list li:not(:last-child)::after { content: "/"; margin: 0 0.6em; color: var(--concrete); font-weight: 400; }
.text-call {
  display: inline-block; margin-top: 4.5rem; padding: 0.75rem 0; border-bottom: 3px solid currentColor;
  font: 500 var(--t-sm)/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
}
.text-call span { display: inline-block; transition: transform 0.2s var(--ease); }
.text-call:hover span { transform: translateX(5px); }

/* Where */
.where { background: var(--black); color: var(--paper); padding: var(--section) var(--gutter); display: grid; gap: 3.5rem; align-items: center; }
.where .section-title { color: var(--yellow); }
.where-lede { max-width: 32ch; margin-top: 2rem; font: 500 var(--t-lead)/1.45 var(--body); text-wrap: pretty; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map-fill { fill: var(--yellow); }
.map-edge { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.map-city circle { fill: var(--yellow); stroke: var(--paper); stroke-width: 3; }
.map-city text { fill: var(--paper); font: 800 30px var(--display); font-variation-settings: "wdth" 115; text-transform: uppercase; }
.map-shop circle { fill: var(--black); }
.map-shop .map-ring { fill: none; stroke: var(--black); stroke-width: 2; opacity: 0.6; }
.map-shop text { fill: var(--black); font: 800 34px var(--display); font-variation-settings: "wdth" 115; text-transform: uppercase; }
.map-caption { color: rgba(250, 250, 247, 0.8); margin-top: 1.5rem; font: 500 var(--t-sm)/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }

/* Close */
.close { padding: var(--section) var(--gutter); }
.close-title {
  margin: 0; text-transform: uppercase;
  font: 900 clamp(3rem, 9vw, var(--t-xl))/0.88 var(--display); font-variation-settings: "wdth" 125; letter-spacing: -0.015em;
}
.big-number {
  display: inline-block; margin-top: 2.5rem; text-decoration: none; white-space: nowrap;
  font: 800 clamp(2.6rem, 9.5vw, var(--t-xl))/0.95 var(--display); font-variation-settings: "wdth" 100;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em;
  background-image: linear-gradient(var(--black), var(--black)); background-size: 0% 6px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.big-number:hover { background-size: 100% 6px; }
.close-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-top: 4.5rem; padding-top: 2rem; border-top: 3px solid var(--black); }
.close-meta p { font: 500 var(--t-body)/1.5 var(--body); }
.close .text-call { margin-top: 0; }

/* Footer */
.foot { background: var(--black); color: var(--paper); padding: 6rem var(--gutter) 3.5rem; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
.foot .mark { width: 5.5rem; }
.foot .mark-tri { fill: var(--black); stroke: var(--yellow); stroke-width: 2; }
.foot-motto { font: 900 clamp(1.375rem, 3.4vw, var(--t-h3))/1 var(--display); font-variation-settings: "wdth" 120; text-transform: uppercase; color: var(--yellow); }
.foot-row { font-style: normal; }
address.foot-row { font-style: normal; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid rgba(250, 250, 247, 0.25); font: 400 var(--t-body)/1.6 var(--body); }
.foot-row a { text-decoration: none; color: var(--yellow); font: 700 var(--t-lead)/1.2 var(--body); letter-spacing: 0.01em; }
.foot-note { margin-top: 2.5rem; font: 400 var(--t-sm)/1.6 var(--body); color: rgba(250, 250, 247, 0.75); max-width: 62ch; }

/* Motion pass: hover states, 200 to 300ms, nothing bounces. */
.work-list li, .roof-list li {
  background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat;
  background-size: 0% 100%; background-position: 0 0;
  transition: background-size 0.28s var(--ease);
}
.work-list li:hover, .roof-list li:hover { background-size: 100% 100%; }
.print { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.prints .print:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -14px rgba(23, 22, 21, 0.6); }
.map-caption, .foot-row a { transition: color 0.2s var(--ease); }
.foot-row a:hover { color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Wider screens */
@media (min-width: 760px) {
  .hero { grid-template-columns: 7fr 5fr; gap: 4rem; padding-bottom: 5rem; }
  .work-intro { grid-template-columns: 1fr auto; }
  .work-cols { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .where { grid-template-columns: 4fr 7fr; gap: 6rem; }
  .prints { grid-template-columns: repeat(4, 1fr); }
  .years-num { font-size: clamp(7rem, 24vw, 26rem); }

  /* With motion: the years section pins and the prints float around the numerals. */
  .js.motion .years { height: 340vh; padding: 0; }
  .js.motion .years-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; }
  .js.motion .years .prints { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
  .js.motion .years .print { position: absolute; width: var(--w, 15vw); will-change: transform; }
  .js.motion .p1 { left: 55%; top: 4%; --w: 21vw; rotate: -2deg; }
  .js.motion .p2 { left: 77%; top: 0%; --w: 21vw; rotate: 1.5deg; }
  .js.motion .p3 { left: 66%; top: 33%; --w: 20vw; rotate: -1deg; }
  .js.motion .p4 { left: 86%; top: 38%; --w: 15vw; rotate: 2deg; }
  .js.motion .p5 { left: 53%; top: 62%; --w: 21vw; rotate: 1deg; }
  .js.motion .p6 { left: 76%; top: 70%; --w: 20vw; rotate: -2deg; }
  .js.motion .p7 { left: 61%; top: 98%; --w: 19vw; rotate: 1deg; }
  .js.motion .p8 { left: 82%; top: 104%; --w: 18vw; rotate: -1.5deg; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .call-btn { width: 100%; justify-content: space-between; }
  .hero-tri { max-width: 22rem; justify-self: center; }
  .map-city text { font-size: 48px; }
  .map-shop text { font-size: 46px; }
}

/* Service pages */
.page-hero { padding: 9rem var(--gutter) var(--section); }
.crumbs { margin-bottom: 2.5rem; }
.crumbs a { text-decoration: none; border-bottom: 2px solid currentColor; }
.page-title {
  margin: 0; text-transform: uppercase;
  font: 900 clamp(2.75rem, 8vw, var(--t-xl))/0.88 var(--display); font-variation-settings: "wdth" 118; letter-spacing: -0.015em;
}
.service-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; }
.service-copy p { max-width: 34ch; font: 500 var(--t-lead)/1.45 var(--body); text-wrap: pretty; }
.service-copy p + p { margin-top: 1.5rem; }
.service-prints { margin-top: 5rem; }
.other-services { background: var(--yellow); padding: var(--section) var(--gutter) 0; }
.service-links { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--black); }
.service-links li { border-bottom: 3px solid var(--black); font: 800 clamp(1.375rem, 2.2vw, var(--t-item))/1.15 var(--display); font-variation-settings: "wdth" 104; text-transform: uppercase; }
.service-links a, .service-links span { display: block; padding: 1rem 0; text-decoration: none; }
.service-links span { color: var(--concrete); }
.service-links a { background-image: linear-gradient(var(--black), var(--black)); background-repeat: no-repeat; background-size: 0% 3px; background-position: 0 100%; transition: background-size 0.28s var(--ease); }
.service-links a:hover { background-size: 100% 3px; }
.work-more { margin-top: 4.5rem; }
.work-more .service-links { border-top-width: 3px; }
@media (min-width: 760px) {
  .service-grid { grid-template-columns: 5fr 6fr; gap: 6rem; }
  .service-prints { grid-template-columns: repeat(3, 1fr); }
}
