/* =========================================================
   Presco Contracting — Vancouver, BC
   One-page site stylesheet
   ========================================================= */

:root {
  --ink:     #15181b;
  --body:    #3c4348;
  --muted:   #767d83;
  --line:    #e3e6e8;
  --line-2:  #f0f2f3;
  --bg:      #ffffff;
  --bg-alt:  #fafafa;
  --navy:    #0d151e;
  --accent:  #b47708;
  --wrap:    1100px;
  --gutter:  28px;
  --header:  72px;
  --ease:    cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16.5px/1.7 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.012em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.18; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1.15em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 30; }
.label {
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 32px; min-height: var(--header);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand b {
  font-size: 1.02rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.brand b i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 26px; font-size: .89rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.header-email {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: border-color .25s ease, background .25s ease;
}
.header-email svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.header-email:hover { border-color: var(--accent); background: #fffaf1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
}
.hero::before {                     /* faint drawing-paper grid, fading out from the top right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 55% 85% at 92% 10%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 55% 85% at 92% 10%, #000 0%, transparent 72%);
  animation: fade 1.6s ease both;
}
.hero .wrap { position: relative; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(24px, 3vw, 34px);
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); animation: fade .8s ease both;
}
.hero__eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--accent); }
.hero__title {
  font-size: clamp(2.35rem, 6.4vw, 4.75rem); line-height: 1.03; letter-spacing: -.038em;
  font-weight: 600; margin: 0 0 clamp(40px, 5.5vw, 64px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: block; animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .09s; }
.hero__title .line:nth-child(3) > span { animation-delay: .18s; }
.hero__title i { font-style: normal; color: var(--accent); }
.hero__soft { color: var(--muted); font-weight: 500; }
.hero__foot {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: start;
  padding-top: 28px; border-top: 1px solid var(--line);
  animation: fade 1s ease .35s both;
}
.hero__foot::before {               /* short amber segment drawn along the rule */
  content: ""; position: absolute; top: -1px; left: 0; width: 96px; height: 2px;
  background: var(--accent); transform-origin: left; animation: draw 1s var(--ease) .5s both;
}
.hero__lede { margin: 0; max-width: 46ch; font-size: 1.08rem; color: var(--body); }
.hero__facts { display: grid; grid-auto-flow: column; justify-content: end; }
.hero__facts div { padding: 2px 0 2px 22px; margin-left: 22px; border-left: 1px solid var(--line); }
.hero__facts div:first-child { margin-left: 0; padding-left: 0; border-left: none; }
.hero__facts dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.hero__facts dd { margin: 0; font-size: .92rem; color: var(--ink); white-space: nowrap; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- What we do: expandable trade cards ---------- */
.disciplines { padding: clamp(24px, 4vw, 40px) 0 clamp(72px, 9vw, 112px); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head .label { margin: 0; }
.section-head__hint { margin: 0; font-size: .82rem; color: var(--muted); }
.disc-grid {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  transition: grid-template-columns .75s var(--ease);
}
.disc-grid[data-open="1"] { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.disc-grid[data-open="2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr); }
.disc-grid[data-open="3"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.3fr); }

.disc { position: relative; display: flex; flex-direction: column; padding-top: 26px; cursor: pointer; }
.disc + .disc::before {             /* vertical divider in the gap */
  content: ""; position: absolute; top: 0; bottom: 0; left: -24px; width: 1px; background: var(--line);
}
.disc::after {                      /* amber rule that draws across the top */
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.disc__num {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: var(--accent);
}
.disc__num::after {
  content: ""; height: 1px; width: 22px; background: currentColor; opacity: .6;
  transition: width .6s var(--ease);
}
.disc__title { margin: 0 0 18px; min-height: 2.6em; }  /* titles share a height so the photos line up */
.disc__btn {
  all: unset; cursor: pointer; display: block;
  font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; color: var(--ink);
}
.disc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.disc__media {
  position: relative; overflow: hidden; background: var(--line-2); margin-bottom: 18px;
  height: clamp(320px, 34vw, 440px);
}
.disc__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) contrast(1.02) brightness(.98);
  transition: transform 1.1s var(--ease), filter .7s ease;
}
.disc__media::after {               /* shade that rises behind the teaser list */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,21,30,.9) 0%, rgba(13,21,30,.55) 38%, rgba(13,21,30,0) 68%);
  opacity: 0; transition: opacity .5s ease;
}
.disc__teaser { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; color: #fff; }
.disc__teaser li {
  font-size: .86rem; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .5s var(--ease);
}
.disc__teaser li:first-child { border-top: none; }
.disc__teaser li:nth-child(2) { transition-delay: .05s; }
.disc__teaser li:nth-child(3) { transition-delay: .1s; }
.disc__teaser li:nth-child(4) { transition-delay: .15s; }
.disc__text { color: var(--muted); font-size: .93rem; margin: 0 0 16px; max-width: 52ch; }
.disc__more {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: .86rem; font-weight: 500; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--accent);
}
.disc__more svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.disc__more svg .v { transform-origin: center; transition: transform .4s var(--ease); }
.disc__more-close { display: none; }

/* Full capability list, unfolded under the open card */
.disc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); cursor: auto; }
.disc__panel-inner { overflow: hidden; min-height: 0; }
.disc__caps {
  columns: 2; column-gap: 36px; padding-top: 26px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .5s var(--ease);
}
.disc__caps li {
  break-inside: avoid; position: relative;
  font-size: .95rem; color: var(--ink); padding: 10px 0 10px 18px; border-top: 1px solid var(--line);
}
.disc__caps li::before {
  content: ""; position: absolute; left: 0; top: calc(10px + .85em); width: 7px; height: 2px; background: var(--accent);
}

/* Hover (and keyboard focus) */
.disc:hover::after, .disc:focus-within::after, .disc.is-open::after { transform: scaleX(1); }
.disc:hover .disc__num::after, .disc:focus-within .disc__num::after, .disc.is-open .disc__num::after { width: 48px; }
.disc:hover .disc__media img, .disc:focus-within .disc__media img { filter: none; transform: scale(1.06); }
.disc:hover .disc__media::after, .disc:focus-within .disc__media::after { opacity: 1; }
.disc:hover .disc__teaser li, .disc:focus-within .disc__teaser li { opacity: 1; transform: none; }

/* Open state */
.disc.is-open { cursor: default; }
.disc.is-open .disc__top, .disc.is-open .disc__more { cursor: pointer; }
.disc.is-open .disc__media img { filter: none; transform: scale(1.02); }
.disc.is-open .disc__media::after, .disc.is-open .disc__teaser li { opacity: 0; }
.disc.is-open .disc__panel { grid-template-rows: 1fr; }
.disc.is-open .disc__caps { opacity: 1; transform: none; transition-delay: .2s; }
.disc.is-open .disc__more-open { display: none; }
.disc.is-open .disc__more-close { display: inline; }
.disc.is-open .disc__more svg .v { transform: scaleY(0); }
.disc-grid[data-open] .disc:not(.is-open) { opacity: .62; transition: opacity .4s ease; }
.disc-grid[data-open] .disc:not(.is-open):hover { opacity: 1; }
.disc-grid[data-open] .disc:not(.is-open) .disc__text { display: none; }

@media (hover: none) {              /* touch: no hover, so show the colour photo straight away */
  .disc__media img { filter: none; }
}

/* Permits note */
.notice {
  display: flex; gap: 14px; align-items: flex-start; max-width: 760px;
  margin-top: clamp(48px, 6vw, 64px); padding: 18px 22px; background: var(--bg-alt);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.notice__title {
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 6px;
}
.notice p:last-child { margin: 0; font-size: .92rem; line-height: 1.6; }

/* ---------- About ---------- */
.about { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.about__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.about__copy h2 { max-width: 22ch; margin-bottom: 24px; }
.about__copy p:not(.label) { max-width: 52ch; }
.about__copy p:last-child { margin-bottom: 0; }
.about__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after {              /* amber corner bracket */
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
}

/* ---------- Definition rows ---------- */
.rows { border-top: 1px solid var(--line); }
.rows div {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.rows dt { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.rows dd { margin: 0; font-size: .97rem; color: var(--ink); }
.rows dd small { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* ---------- Contact: city band ---------- */
.contact-email {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem); font-weight: 500;
  letter-spacing: -.01em; margin: 0 0 22px;
}
.contact-email a { text-decoration: none; padding-bottom: 3px; transition: border-color .25s ease; }
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: clamp(460px, 52vw, 620px);
  color: #fff;
}
.closing > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13,21,30,.94) 0%, rgba(13,21,30,.62) 50%, rgba(13,21,30,.15) 100%);
}
.closing__inner { padding-block: clamp(56px, 8vw, 96px); }
.closing .label { color: rgba(255,255,255,.7); }
.closing h2 { color: #fff; max-width: 18ch; margin-bottom: 22px; }
.closing .contact-email a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.closing .contact-email a:hover { border-bottom-color: var(--accent); }
.closing__text { max-width: 56ch; margin: 0; color: rgba(255,255,255,.78); font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 30px 0;
  font-size: .84rem; color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer--dark { background: var(--navy); border-top-color: rgba(255,255,255,.1); color: rgba(255,255,255,.55); }
.site-footer--dark a { color: rgba(255,255,255,.55); }
.site-footer--dark a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-email span { display: none; }
  .header-email { padding: 9px; }
}
@media (max-width: 820px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__facts { justify-content: start; }
  .disc-grid, .disc-grid[data-open] { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: none; }
  .disc { padding: 28px 0 36px; border-top: 1px solid var(--line); }
  .disc + .disc::before { display: none; }
  .disc__media { height: clamp(220px, 56vw, 340px); }
  .disc__title { min-height: 0; }
  .disc-grid[data-open] .disc:not(.is-open) { opacity: 1; }
  .disc-grid[data-open] .disc:not(.is-open) .disc__text { display: block; }
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; --header: 64px; }
  .site-header .wrap { gap: 14px; }
  .nav { display: none; }
  .brand b { font-size: .92rem; letter-spacing: .1em; }
  .hero__facts { grid-template-columns: 1fr; width: 100%; }
  .hero__facts div {
    display: flex; justify-content: space-between; gap: 16px;
    margin: 0; padding: 10px 0; border-left: none; border-top: 1px solid var(--line-2);
  }
  .hero__facts div:first-child { border-top: none; padding-top: 0; }
  .hero__facts dt { margin: 0; }
  .disc__caps { columns: 1; }
  .rows div { grid-template-columns: 1fr; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print { .site-header, .site-footer { display: none; } }
