/* Pitchline Roofing Co. sample: shared styles */
:root {
  --paper: #ECE6DA; --paper-2: #E2DACB; --ink: #17191C; --slate: #1C1F22; --slate-2: #262A2E;
  --muted: #7D776B; --muted-d: #9A968D; --line: rgba(23, 25, 28, .16); --line-d: rgba(236, 230, 218, .16);
  --patina: #6F8C7E; --patina-l: #9DB7AA;
  --f-d: 'Fraunces', Georgia, serif; --f-b: 'Archivo', system-ui, sans-serif;
  --pad: clamp(20px, 3.4vw, 56px); --hd: 84px; --strip-h: 0px;
  --e-menu: cubic-bezier(.25, 1, .5, 1); --e-out: cubic-bezier(.16, 1, .3, 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; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-b); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--patina); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* grain over everything, very light */
body::after { content: ''; position: fixed; inset: 0; z-index: 150; pointer-events: none; background: url(../img/grain.png); opacity: .05; mix-blend-mode: multiply; }

/* NOSITE strip */
.ns-strip { position: relative; z-index: 120; background: #111113; color: #fff; font: 13px/1.3 system-ui, -apple-system, sans-serif; padding: 8px 16px; text-align: center; }
.ns-strip a { color: #c9f55b; text-decoration: none; margin-left: 6px; white-space: nowrap; }
.ns-strip a:hover { text-decoration: underline; }

/* type */
.lbl { font: 600 11px/1.3 var(--f-b); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; }
.disp { font-family: var(--f-d); font-weight: 600; font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; margin: 0; }
.wide { font-family: var(--f-b); font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* header: logo left, menu square in the middle, phone right */
.hd { position: fixed; z-index: 100; left: 0; right: 0; top: var(--strip-h); height: var(--hd); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); pointer-events: none; color: var(--ink); transition: color .4s; }
.hd > * { pointer-events: auto; }
.hd.on-dark { color: var(--paper); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { display: block; font: 600 22px/1 var(--f-d); font-variation-settings: 'opsz' 48; letter-spacing: -.01em; }
.logo small { display: block; font: 600 8.5px/1 var(--f-b); font-stretch: 125%; letter-spacing: .26em; margin-top: 4px; opacity: .8; }
.hd .logo-w { transition: opacity .4s, transform .5s var(--e-out); }
.hd.is-scrolled .logo-w { opacity: 0; transform: translateX(-8px); pointer-events: none; }
.menu-btn { justify-self: center; display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 14px; border: 1px solid currentColor; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.hd.on-dark .menu-btn { background: var(--slate); color: var(--paper); }
.menu-btn .mb-i { position: relative; width: 22px; height: 14px; }
.menu-btn .mb-i i { position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor; transition: transform .5s var(--e-menu), top .5s var(--e-menu); }
.menu-btn .mb-i i:nth-child(1) { top: 3px; } .menu-btn .mb-i i:nth-child(2) { top: 10px; }
.menu-open .menu-btn .mb-i i:nth-child(1) { top: 6px; transform: rotate(32deg); }
.menu-open .menu-btn .mb-i i:nth-child(2) { top: 6px; transform: rotate(-32deg); }
.menu-btn .mb-t { font: 600 11px/1 var(--f-b); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; }
.hd-tel { justify-self: end; text-decoration: none; font: 500 15px/1 var(--f-b); display: inline-flex; gap: 8px; align-items: center; }
.hd-tel span { transition: transform .4s var(--e-out); display: inline-block; }
.hd-tel:hover span { transform: translateX(4px); }
.menu-open .hd { color: var(--paper); }
.menu-open .hd .menu-btn { background: var(--slate); color: var(--paper); }
.menu-open .hd .logo-w { opacity: 1; transform: none; }

/* menu sheet */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--slate); color: var(--paper); clip-path: inset(0 0 100% 0); display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: calc(var(--hd) + 60px) var(--pad) 40px; overflow-y: auto; }
.menu-open .menu { clip-path: inset(0); }
.menu nav a.m-big { display: block; text-decoration: none; font: 600 clamp(48px, 7vw, 104px)/.95 var(--f-d); font-variation-settings: 'opsz' 144; text-transform: uppercase; letter-spacing: -.01em; }
.menu nav a.m-big sup { font: 600 11px var(--f-b); font-stretch: 125%; letter-spacing: .14em; vertical-align: top; margin-left: 10px; color: var(--patina-l); }
.menu nav a.m-big:hover { color: var(--patina-l); }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-content: start; padding-top: 12px; }
.menu-cols .lbl { color: var(--muted-d); margin-bottom: 14px; }
.menu-cols a { display: block; text-decoration: none; padding: 5px 0; font-size: 16px; }
.menu-cols a:hover { color: var(--patina-l); }
.menu-foot { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line-d); padding-top: 20px; font-size: 14px; color: var(--muted-d); }
.menu-foot a { text-decoration: none; color: var(--paper); }

/* page transition: three paper rafters sweep across */
.tr { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; visibility: hidden; }
.tr i { position: absolute; left: -30%; width: 160%; height: 60%; background: var(--paper); transform-origin: 50% 50%; }
.tr i:nth-child(1) { top: -25%; background: var(--paper-2); }
.tr i:nth-child(2) { top: 20%; }
.tr i:nth-child(3) { top: 65%; background: var(--paper-2); }
.tr .tr-mark { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; color: var(--ink); opacity: 0; }
.tr-in .tr { visibility: visible; }
.tr-in .tr i { transform: none; }

/* round cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 130; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font: 600 11px/1 var(--f-b); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; pointer-events: none; transform: scale(0); transition: transform .45s var(--e-out); }
.cur.on { transform: scale(1); }
@media (hover: none) { .cur { display: none; } }

/* buttons: rectangular, thin frame, label rolls */
.btn { position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 22px; border: 1px solid currentColor; text-decoration: none; font: 600 12px/1 var(--f-b); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; background: transparent; cursor: pointer; overflow: hidden; isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: currentColor; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--e-out); }
.btn .arr { width: 18px; height: 10px; transition: transform .5s var(--e-out); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover > * { color: var(--paper); }
.on-dark-sec .btn:hover > *, .btn.lt:hover > * { color: var(--ink); }
.btn > * { position: relative; transition: color .3s; }
.btn:hover .arr { transform: translateX(4px); }
.roll { display: inline-block; overflow: hidden; height: 1.1em; line-height: 1.1em; }
.roll > span { display: inline-block; }
.roll i { display: inline-block; font-style: normal; position: relative; transition: transform .45s var(--e-out); }
.roll i::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover .roll i, button:hover .roll i { transform: translateY(-100%); }

.link { text-decoration: none; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* let's work together + footer (shared) */
.lwt { background: var(--slate); color: var(--paper); text-align: center; padding: clamp(90px, 14vw, 180px) var(--pad) clamp(70px, 10vw, 130px); }
.lwt .lbl { color: var(--patina-l); }
.lwt .tel { display: block; text-decoration: none; margin: 18px 0 30px; font-size: clamp(48px, 9.4vw, 150px); }
.lwt .tel .c { display: inline-block; }
.lwt .btn { color: var(--paper); }
.ft { background: var(--paper); color: var(--ink); padding: 64px var(--pad) 28px; font-size: 14px; }
.ft-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 32px; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--patina); }
.ft ul { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.ft .lbl { color: var(--muted); margin-bottom: 12px; }
.ft-mid { display: grid; grid-template-columns: 1.2fr 2.3fr; gap: 32px; align-items: end; margin-top: 72px; }
.ft-news { display: flex; gap: 12px; align-items: flex-end; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.ft-news input { flex: 1; min-width: 0; border: 0; background: none; font: 400 clamp(22px, 2.6vw, 34px)/1.2 var(--f-d); color: var(--ink); padding: 6px 0; }
.ft-news input::placeholder { color: var(--muted); }
.ft-news button { border: 0; background: none; cursor: pointer; padding: 12px 0; min-height: 44px; }
.ft-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; color: var(--muted); font-size: 12.5px; }
.form-ok { font-size: 14px; color: var(--patina); margin-top: 10px; }
.form-ok[hidden] { display: none; }
.mbar { display: none; }

@media (max-width: 860px) {
  :root { --hd: 68px; }
  .hd { grid-template-columns: 1fr auto; }
  .menu-btn { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); height: 50px; background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink); z-index: 101; }
  .hd.is-scrolled .logo-w { opacity: 1; transform: none; }
  .hd.is-scrolled .logo { opacity: 0; pointer-events: none; }
  .logo { transition: opacity .3s; }
  .menu { grid-template-columns: 1fr; padding-bottom: 100px; gap: 28px; }
  .menu nav a.m-big { font-size: 52px; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-mid { grid-template-columns: 1fr; margin-top: 44px; }
  .ft { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
[data-dark] .btn:hover > *, .dk .btn:hover > *, .lwt .btn:hover > * { color: var(--ink); }
/* headroom bar: logo + phone (and the menu button on desktop) slide away on the way down, return on a solid backing on the way up */
.hd::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); box-shadow: 0 1px 0 var(--line); opacity: 0; transform: translateY(-100%); transition: transform .5s var(--e-out), opacity .3s, background .3s; pointer-events: none; }
.hd.on-dark::before { background: var(--slate); box-shadow: 0 1px 0 var(--line-d); }
.hd.hd-solid::before { opacity: 1; transform: none; }
.hd .logo, .hd .hd-tel, .hd .menu-btn { transition: transform .5s var(--e-out), opacity .35s, background .3s, color .3s; }
.hd.hd-hide::before { transform: translateY(-100%); }
.hd.hd-hide .logo, .hd.hd-hide .hd-tel { transform: translateY(-160%); opacity: 0; pointer-events: none; }
@media (min-width: 861px) { .hd.hd-hide .menu-btn { transform: translateY(-160%); opacity: 0; pointer-events: none; } }
@media (max-width: 860px) { .hd.hd-solid.is-scrolled .logo { opacity: 1; pointer-events: auto; } }
