/* ===== Paul Bryant, Architect — site styles ===== */
/* Fonts: stored inside the site (assets/fonts) so the site never depends on Google Fonts */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-var.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-var.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --paper: #ffffff;
  --mute: #75757a;
  --line: #e6e4e0;
  --soft: #f6f5f2;
  --accent: #c8102e;          /* true red — change this one value to re-color the site */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font: 400 20px/1 var(--display); letter-spacing: -.01em; text-decoration: none; display: block; }
.brand img { height: 36px; width: auto; display: block; }
.hero-sig { margin: 0; line-height: 0; }
.hero-sig img { height: clamp(80px, 11vw, 150px); width: auto; display: block; margin-left: -6px; }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); }
.nav a {
  font: 500 15px/1 var(--body); text-decoration: none; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -.025em; font-weight: 500; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 4.5vw, 52px); }
.link-arrow { font: 500 15px/1 var(--body); text-decoration: none; color: var(--ink-2); }
.link-arrow::after { content: " →"; color: var(--accent); transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Signature lockup — first word bold, second word light (name, projects, headings) */
.lockup { display: inline-flex; align-items: baseline; column-gap: .26em; flex-wrap: wrap; }
.lockup b { font-weight: 700; }
.lockup i { font-style: normal; font-weight: 300; }
.lockup .dot, .lockup .accent, .lockup > span:last-child:not(i) { color: var(--accent); font-weight: 700; margin-left: -.22em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 160px) 0 clamp(56px, 8vw, 96px); }
.hero h1 { font-size: clamp(52px, 9vw, 116px); font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.hero h1 .accent { color: var(--accent); }
.red-dot { color: var(--accent); }
.resume-only { display: none !important; }   /* kept in the page for the resume only */
/* clipping frame for zoomed images (Site Editor zoom) */
.zw { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.zw > img { display: block; }
.multi .zw { flex: 1 1 0; min-width: 0; height: 100%; }
.multi .zw > img { width: 100%; height: 100%; }
.hero-creds { font: 300 clamp(20px, 2.4vw, 30px)/1.3 var(--display); letter-spacing: .02em; color: var(--ink-2); margin: 18px 0 0; }
.hero .title { font: 400 clamp(18px, 2vw, 22px)/1.4 var(--body); color: var(--ink-2); margin: 20px 0 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); align-items: baseline; justify-content: space-between; }
.hero-meta .creds { font: 500 14px/1 var(--body); letter-spacing: .14em; color: var(--ink-2); }
.hero-meta p { max-width: 560px; margin: 0; color: var(--mute); font-size: 18px; }

/* ---------- Project cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.featured { grid-template-columns: repeat(3, 1fr); }
.card { text-decoration: none; display: block; }
.card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); position: relative; border-radius: var(--radius); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .media img, .card:hover .ph { transform: scale(1.03); }
.card .info { padding: 14px 0 4px; }
.card h3 { font-size: 21px; letter-spacing: -.015em; transition: color .2s; }
.card:hover h3 { color: var(--accent); }
.card .meta { font-size: 14px; color: var(--mute); margin-top: 4px; }
.grid.featured .card.lead { grid-column: 1 / -1; }
.card.lead .media { aspect-ratio: 21 / 9; }
.card.lead .info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; }
.card.lead h3 { font-size: clamp(26px, 3vw, 36px); }
.card.lead .meta { font-size: 15px; }
@media (max-width: 560px) { .card.lead .media { aspect-ratio: 4 / 3; } .card.lead .info { display: block; } }
.card .cat {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.92);
  font: 500 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px; color: var(--ink-2);
}

/* Placeholder "drawing" shown until real photos are added */
.ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px;
  transition: transform .7s ease;
  background-color: var(--soft);
  background-image:
    linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ph::before {
  content: ""; position: absolute; right: 12%; top: 16%; width: 42%; height: 48%;
  border: 1px solid rgba(0,0,0,.28); border-left: 2px solid var(--accent);
  transform: skewY(-6deg);
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button {
  font: 500 14px/1 var(--body); padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.filters button:hover { border-color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- About ---------- */
.about { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); }
/* two columns of equal height: Experience starts level with the heading; Registrations end level with Education */
.about-grid > div { display: flex; flex-direction: column; }
.about-grid > div > :last-child, .about-grid > div > :last-child > :last-child { margin-bottom: 0; }
.about-grid > div:last-child { padding-top: 0; }   /* EXPERIENCE lines up with ABOUT */
.about-reg { margin-top: auto; padding-top: 32px; }
.about-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-actions:not(:has(a:not([hidden]))) { display: none; }
.about h2 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 28px; }
.about .lead { font-size: 21px; line-height: 1.55; margin: 0 0 20px; color: var(--ink); }
.about p { color: var(--ink-2); }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; padding: 0; list-style: none; }
.sectors li { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0 0 40px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:first-child .yr { color: var(--accent); }
.timeline .yr { font-weight: 500; color: var(--mute); font-size: 14px; }
.timeline strong { display: flex; font-weight: 600; }
.timeline strong.lockup { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
.timeline strong.lockup i { color: var(--mute); }
.timeline strong.lockup { align-items: baseline; gap: 12px; }
.timeline strong.lockup i { margin-left: auto; text-align: right; }   /* city, state set to the right edge */
.timeline span { color: var(--mute); font-size: 15px; }
.sub { font: 500 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; }
.sub.eyebrow { font: 500 13px/1 var(--body); margin: 0 0 18px; }   /* section labels match ABOUT, with the red line */
.creds-list { list-style: none; padding: 0; margin: 0 0 32px; color: var(--ink-2); font-size: 16px; }
.creds-list li { padding: 5px 0; }
.awards { margin-top: clamp(48px, 6vw, 80px); padding-top: 40px; border-top: 1px solid var(--line); }
.awards ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 48px; }
.awards li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.awards li b { font-weight: 600; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.035em; }
.contact h2 span { color: var(--accent); }
.contact .note { color: var(--mute); margin-top: 20px; max-width: 360px; }
form { display: grid; gap: 18px; }
label { font: 500 14px/1 var(--body); color: var(--ink-2); display: grid; gap: 8px; }
input, textarea {
  font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); padding: 13px 14px; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
textarea { min-height: 150px; resize: vertical; }
.btn {
  justify-self: start; font: 500 15px/1 var(--body);
  background: var(--accent); color: #fff; border: 0; padding: 15px 24px; border-radius: var(--radius); cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s;
}
.btn:hover { background: #a00d25; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.form-status { font-size: 15px; min-height: 1.4em; margin: 0; }
.hidden { display: none; }
[hidden] { display: none !important; }

/* ---------- Project page ---------- */
.p-hero { padding-top: clamp(16px, 3vw, 32px); }
.p-hero .media { aspect-ratio: 16 / 8; position: relative; background: var(--soft); overflow: hidden; border-radius: var(--radius); }
.p-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.p-head { padding: 48px 0 28px; }
.p-head h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.035em; }
.p-head .full { margin: 16px 0 0; color: var(--mute); font-size: 18px; }
.p-body { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); padding: 32px 0 64px; border-top: 1px solid var(--line); }
.facts { margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }
.facts ul { margin: 0; padding-left: 18px; }
.facts li::marker { color: var(--accent); }
.facts .certs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.facts .certs img { height: 84px; width: auto; }
.facts .cert { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 12px; }
.p-text p { font-size: 18px; line-height: 1.7; margin: 0 0 22px; max-width: 700px; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 24px); padding-bottom: 64px; }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; cursor: zoom-in; border-radius: var(--radius); background: var(--soft); }
.gallery figure.wide img { aspect-ratio: 16 / 8; }
.gallery figure.contain img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4%; }
.gallery .multi { display: flex; gap: 6px; aspect-ratio: 3 / 2; }
.gallery .multi img { flex: 1 1 0; min-width: 0; height: 100%; aspect-ratio: auto; }
.gallery .multi.grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery .multi.grid img { width: 100%; height: 100%; min-height: 0; }
.gallery figure.wide .multi { aspect-ratio: 16 / 8; }
.gallery figure.contain .multi img { padding: 4%; }
.gallery .g-sec { grid-column: 1 / -1; display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); padding: 40px 0 8px; border-top: 1px solid var(--line); }
.gallery .g-sec:first-child { border-top: 0; padding-top: 0; }
.gallery .g-sec h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; display: block; line-height: 1.15; }
.gallery .g-sec p { margin: 0; max-width: 700px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
@media (max-width: 860px) { .gallery .g-sec { grid-template-columns: 1fr; gap: 12px; } }
.credit { font-size: 13px; color: var(--mute); margin: -40px 0 40px; }
.gallery figcaption { font-size: 13px; color: var(--mute); padding-top: 8px; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 32px 0 64px; }
.pager a { text-decoration: none; max-width: 48%; }
.pager small { display: block; font: 500 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.pager strong { font: 400 clamp(18px, 2.4vw, 26px)/1.15 var(--display); letter-spacing: -.015em; transition: color .2s; }
.pager .next strong { justify-content: flex-end; }
.pager a:hover strong { color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }

/* Lightbox */
/* Gallery viewer (opens when a project image is clicked) */
.lightbox { position: fixed; inset: 0; background: rgba(18,18,20,.96); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 100; padding: 56px 72px 0; }
.lightbox.open { display: flex; }
.lb-stage { margin: 0; flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 220px); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb-stage figcaption { display: flex; justify-content: space-between; gap: 24px; width: 100%; max-width: 1100px; color: rgba(255,255,255,.75); font-size: 14px; padding-top: 12px; }
.lb-count { color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s, color .2s; line-height: 1; padding: 8px 14px; }
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; color: var(--accent); outline: none; }
.lb-close { top: 10px; right: 14px; font-size: 40px; }
.lb-prev, .lb-next { top: calc(50% - 60px); font-size: 64px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; width: 100%; max-width: 1100px; padding: 16px 4px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.lb-thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 3px; background: none; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.on { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { display: block; height: 64px; width: 96px; object-fit: cover; border-radius: 1px; }
@media (max-width: 700px) {
  .lightbox { padding: 52px 12px 0; }
  .lb-prev, .lb-next { top: auto; bottom: 100px; font-size: 48px; }
  .lb-thumbs img { height: 48px; width: 72px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--mute); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.fnote { margin: 40px 0 0; font-size: 12px; color: var(--mute); }   /* image note under the project cards */

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) { .grid.featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .about-grid, .contact-grid, .p-body { grid-template-columns: 1fr; }
  .about-grid > div:last-child { padding-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .p-hero .media { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .brand img { height: 28px; }
  .grid, .grid.featured { grid-template-columns: 1fr; }
  .nav a { font-size: 14px; }
  .brand { font-size: 16px; }
  .timeline li, .awards li { grid-template-columns: 1fr; gap: 4px; }
  .awards ul { grid-template-columns: 1fr; }
}

/* LinkedIn logo in the Contact section */
.contact .social { display: inline-flex; margin-top: 28px; color: var(--ink); transition: color .2s ease, transform .2s ease; }
.contact .social:hover, .contact .social:focus-visible { color: #0a66c2; transform: translateY(-2px); }

/* ---------- Motion ---------- */
/* Project page title image: a slow drift-zoom when the page opens, then it holds.
   Uses the separate "scale" property so it stacks with any custom zoom set in the Site Editor. */
@keyframes drift { from { scale: 1; } to { scale: 1.06; } }
.p-hero .media img { animation: drift 10s cubic-bezier(.25, .1, .25, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .p-hero .media img { animation: none; }
}
