/* Specht Construction — site stylesheet v2 (photo-first, NS Builders-modeled)
   Brand: PANTONE 153 (burnt orange, approx #BE6A14) + PANTONE 5265 (deep navy-purple, approx #3E3865) */
:root {
  --bg: #34558B;      /* marine royal */
  --bg-dim: #3E619C;  /* lifted band for section contrast */
  --ink: #FFFFFF;
  --ink-soft: #D7E0EC;
  --ink-mute: #B4C4DE;
  --orange: #BE6A14;
  --orange-deep: #9A5510;
  --navy: #3E3865;
  --navy-deep: #122844; /* midnight navy - header bar + footer base */
  --navy-lift: #1A3457; /* lifted midnight for footer columns */
  --black: #0A0A0B;
  --rule: rgba(255, 255, 255, 0.25);
  --pad: clamp(16px, 2.5vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(165deg, #3F62A0 0%, #34558B 45%, #294570 100%) fixed var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Helvetica Neue', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* —— TYPE —— */
.h-display {
  font-size: clamp(56px, 8.5vw, 150px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.h-statement {
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.h-sub {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.serif-em { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400; color: var(--orange); letter-spacing: 0; }
.small { font-size: 13px; color: var(--ink-mute); }
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —— NAV —— */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.3s;
}
header.site.on-dark { color: #fff; }
header.site.scrolled { background: rgba(18,40,68,0.92); color: var(--ink); backdrop-filter: blur(8px); }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 14px var(--pad); gap: 16px;
}
.logo { font-weight: 700; font-size: 34px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.logo .lt { font-weight: 400; }
nav.links { display: flex; gap: 28px; justify-content: center; }
nav.links a { text-decoration: none; font-size: 13.5px; font-weight: 450; opacity: 0.9; }
nav.links a:hover, nav.links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .place { justify-self: end; font-size: 12px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.nav .place::before { content: '●'; font-size: 7px; color: var(--orange); }

/* —— PINNED BACKGROUND WINDOWS (NS-style scroll transition) ——
   The section pins to the top of the viewport (sticky) and the next section
   slides up over it while JS fades the image out. */
.window { position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 0; }
.window.short { height: 78vh; }
.window .clipper { position: absolute; inset: 0; }
.window .clipper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.1s linear;
}
.scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.62) 55%, rgba(10,10,11,0.45) 100%);
}
.window .overlay-title { position: absolute; z-index: 2; }
/* window with content laid over the pinned photo (e.g. testimonials) */
.quotes-window { display: flex; align-items: center; }
.quotes-window .q-content {
  position: relative; z-index: 2; width: 100%;
  padding: clamp(64px, 8vw, 120px) var(--pad);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  color: #fff;
}
.quotes-window .quote { border-top-color: var(--orange); }
.quotes-window .quote p { color: #fff; }
.quotes-window .quote cite { color: rgba(255, 255, 255, 0.75); }
/* rotating quotes: all stack in one cell, cross-fade */
.q-rotate { display: grid; grid-template-columns: 1fr; }
.q-rotate .quote { grid-area: 1 / 1; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.q-rotate .quote.on { opacity: 1; pointer-events: auto; }
/* small in-column photo */
.side-photo { margin-top: 32px; max-width: 420px; }
.side-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* in-column video (fills the column) */
.side-video { width: 100%; margin-top: 32px; display: block; background: var(--black); }
/* services band: photo background with scrim, video fills the full height
   of the text column without affecting it */
#services.band.split { align-items: stretch; background: transparent; position: relative; overflow: hidden; }
#services > .clipper { position: absolute; inset: 0; }
#services > .clipper img { width: 100%; height: 100%; object-fit: cover; }
#services > div:not(.clipper) { position: relative; z-index: 2; }
#services .video-col { position: relative; }
.v-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 3; background: rgba(10, 10, 11, 0.72); color: #fff;
  padding: 8px 16px; font-size: 12.5px; white-space: nowrap;
  pointer-events: none; border-radius: 999px;
}
#services .side-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  margin: 0; max-width: none; max-height: none;
  background: transparent;
}
@media (max-width: 900px) {
  #services .video-col { min-height: 60vh; }
}
/* team section laid transparently over a background photo */
.team-window { position: relative; overflow: hidden; }
.team-window .clipper { position: absolute; inset: 0; }
.team-window .clipper img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.team-window .t-content {
  position: relative; z-index: 2; color: #fff;
  padding: clamp(64px, 8vw, 120px) var(--pad);
  display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center;
}
/* portrait hangs on the right, over the wall above the black credenza */
.team-window .team-slider { order: 2; justify-self: center; margin-top: -6vh; }
.team-window .intro { order: 1; }
/* team slideshow — headshots presented as a framed portrait on the wall */
.team-slider .ts-slide { display: none; }
.team-slider .ts-slide.on { display: block; }
.team-slider figure {
  aspect-ratio: 4 / 5; overflow: hidden;
  border: 14px solid #211D18;            /* wood frame */
  outline: 1px solid rgba(0, 0, 0, 0.5);
  background: #F2EEE5;                    /* mat */
  padding: 14px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.team-slider img { width: 100%; height: 100%; object-fit: cover; box-shadow: inset 0 0 8px rgba(0,0,0,0.3); }
.ts-nav { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ts-nav button {
  background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff;
  width: 36px; height: 36px; cursor: pointer; font-size: 15px; font-family: inherit;
}
.ts-nav button:hover { border-color: #fff; }
.ts-nav span { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
/* tagline word strip */
.tagstrip {
  position: relative; background: rgba(15, 17, 22, 0.60);
  padding: 26px var(--pad); text-align: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
}
.team-window .intro { align-self: center; }
.team-window .intro .h-statement { font-weight: 600; margin-bottom: 24px; }
.team-window .body { color: #fff; font-size: 17px; font-weight: 550; max-width: 60ch; }
.team-window .body p { margin-bottom: 16px; }
.team-window .team-grid { background: transparent; grid-template-columns: repeat(3, 1fr); padding: 0; max-width: none; }
.team-window .m-name { color: #fff; font-weight: 600; }
.team-window .m-role { color: #E8B77D; }
@media (max-width: 900px) { .team-window .t-content { grid-template-columns: 1fr; gap: 32px; } .team-slider { max-width: 260px; } }
/* Everything that isn't a window needs a solid background so it covers the
   pinned image as it scrolls over it. */
section.band, .article-index, .pgrid, .team-grid, .filter-bar, .page-head,
.works-head, .proj-meta, .next-proj { position: relative; background: rgba(15, 17, 22, 0.60); }
.stack { position: relative; background: transparent; }
footer.site { position: relative; background: var(--navy-deep); }
.page-head.dark { background: var(--black); }
section.band.dim { background: rgba(15, 17, 22, 0.68); }
.foot-cols, .foot-logotype { position: relative; }

/* —— FULL-BLEED MEDIA —— */
.bleed { width: 100%; }
.bleed figure { width: 100%; height: 92vh; overflow: hidden; position: relative; }
.bleed.short figure { height: 72vh; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed figcaption {
  position: absolute; left: var(--pad); bottom: 20px;
  color: #fff; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* —— HERO (positioning comes from .window) —— */
.hero-full .hero-title {
  position: absolute; left: var(--pad); bottom: 12vh;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  max-width: 12em;
}
.hero-full .hero-kicker {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: #fff; text-align: center; opacity: 0.85;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.8;
}

/* —— PAGE HEAD (split: title left, statement right) —— */
.page-head { padding: 140px var(--pad) 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.page-head.dark { background: var(--black); color: #fff; padding-top: 150px; }
.page-head .back { justify-self: end; align-self: end; font-size: 13px; opacity: 0.6; text-decoration: none; }
.page-head .back:hover { opacity: 1; }

/* —— STATEMENT BANDS —— */
.band { padding: clamp(64px, 9vw, 140px) var(--pad); }
.band.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.band .body { font-size: 16px; color: var(--ink-soft); max-width: 60ch; }
.band .body p { margin-bottom: 16px; }
.band.dim { background: var(--bg-dim); }

/* —— FILTER BAR —— */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  padding: 18px var(--pad); font-size: 13.5px;
}
.filter-bar .label { color: var(--ink-mute); }
.filter-bar button {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: var(--ink-mute); padding: 2px 0;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.on { color: var(--ink); }
.filter-bar button.on::before { content: '● '; font-size: 8px; color: var(--orange); vertical-align: 2px; }
.filter-bar .sort { margin-left: auto; }

/* —— PORTFOLIO GRID (huge, 2-col, tiny gaps) —— */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 var(--pad); }
.pgrid .tile { text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.pgrid .tile figure { height: min(78vh, 720px); overflow: hidden; background: var(--bg-dim); position: relative; }
.pgrid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.pgrid .tile:hover img { transform: scale(1.035); }
.pgrid .tile .t-label { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 2px 34px; }
.pgrid .tile .t-name { font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
.pgrid .tile .t-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.pgrid .tile.wide { grid-column: span 2; }
.pgrid .tile.wide figure { height: min(92vh, 860px); }

/* —— PROJECT PAGE —— */
.stack { display: grid; gap: 14px; padding: 0 0 14px; }
.stack figure { height: 94vh; overflow: hidden; }
.stack figure.half { height: 64vh; }
.stack img { width: 100%; height: 100%; object-fit: cover; }
.stack .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 var(--pad); }
.stack .pair figure { height: 72vh; }
.proj-meta { padding: clamp(56px, 7vw, 100px) var(--pad); display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.proj-meta .credits { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); line-height: 2.1; }
.next-proj { display: block; text-decoration: none; color: #fff; position: relative; }
.next-proj figure { height: 56vh; overflow: hidden; }
.next-proj img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: filter 0.4s; }
.next-proj:hover img { filter: brightness(0.75); }
.next-proj .np-label { position: absolute; left: var(--pad); bottom: 40px; }
.next-proj .np-label .mono { opacity: 0.7; display: block; margin-bottom: 10px; }

/* —— ARTICLE ROWS —— */
.article-index { padding: 0 var(--pad); }
.article-row {
  display: grid;
  grid-template-columns: 170px 1fr 150px 110px;
  gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
.article-row:hover .title { text-decoration: underline; text-underline-offset: 4px; }
.article-row .date { font-size: 12.5px; color: var(--ink-mute); }
.article-row .title { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.article-row .cat { font-size: 12.5px; color: var(--ink-mute); }
.article-row .more { font-size: 13px; text-align: right; white-space: nowrap; color: var(--ink-soft); }

/* —— SELECTED WORKS (home strip) —— */
.works-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--pad) 24px; }
.works-head a { font-size: 13.5px; color: var(--ink-soft); }

/* —— QUOTES —— */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.quote p { font-size: clamp(17px, 1.6vw, 21px); font-weight: 450; letter-spacing: -0.01em; line-height: 1.35; color: var(--ink); margin-bottom: 12px; }
.quote cite { font-style: normal; font-size: 12.5px; color: var(--ink-mute); }

/* —— TEAM GRID —— */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 var(--pad); max-width: 1120px; }
.member figure { aspect-ratio: 4 / 5; overflow: hidden; background: transparent; }
.member img { width: 100%; height: 100%; object-fit: cover; }
.member .m-label { display: block; padding: 8px 2px 20px; }
.member .m-name { font-size: 13.5px; font-weight: 550; display: block; }
.member .m-role { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* —— STEPS / SERVICES —— */
.step { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 28px; padding: 34px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.step .n { font-size: 13px; color: var(--ink-mute); }
.step h3 { font-size: clamp(19px, 1.9vw, 26px); font-weight: 550; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.svc { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.svc h3 { font-size: clamp(19px, 1.9vw, 26px); font-weight: 550; letter-spacing: -0.01em; }
.svc p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* —— BUTTONS / CTA CHIP —— */
.btn {
  display: inline-block; background: var(--black); color: #fff;
  padding: 14px 28px; text-decoration: none; font-size: 14px; font-weight: 550;
  border: none; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--orange-deep); }
.u-link { color: inherit; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.cta-chip {
  position: fixed; left: 14px; bottom: 14px; z-index: 80;
  display: flex; align-items: center; gap: 0;
  background: var(--black); color: #fff; text-decoration: none;
}
.cta-chip img { width: 92px; height: 92px; object-fit: cover; display: block; }
.cta-chip span { padding: 0 22px; font-size: 16px; font-weight: 450; text-decoration: underline; text-underline-offset: 5px; }
.cta-chip:hover span { color: #E8B77D; }

/* —— FORM —— */
form.contact { display: grid; gap: 16px; max-width: 560px; }
form.contact label { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
form.contact input, form.contact textarea, form.contact select {
  width: 100%; padding: 13px 14px; font-family: inherit; font-size: 16px;
  border: 1px solid var(--rule); background: #fff; color: #16141A;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 2px solid var(--orange); }

/* —— FOOTER (black CTA + light columns + giant logotype) —— */
footer.site { margin-top: clamp(64px, 9vw, 140px); }
.foot-black { background: var(--navy-deep); color: #fff; padding: clamp(64px, 8vw, 120px) var(--pad) 48px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.foot-black .fb-left .h-statement { margin-bottom: 28px; }
.foot-black .socials { display: flex; gap: 18px; font-size: 13px; }
.foot-black .socials a { color: #fff; opacity: 0.75; text-decoration: none; }
.foot-black .socials a:hover { opacity: 1; color: #E8B77D; }
.foot-black .fb-right { font-size: clamp(30px, 4.2vw, 62px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; color: #C9C6D0; }
.foot-black .fb-right a { text-decoration: none; color: inherit; display: block; }
.foot-black .fb-right a:hover { color: #fff; }
.foot-consult { position: relative; display: block; text-decoration: none; color: #fff; }
.foot-consult figure { height: 46vh; overflow: hidden; }
.foot-consult img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); transition: filter 0.4s; }
.foot-consult:hover img { filter: brightness(0.7); }
.foot-consult span {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  font-size: clamp(28px, 4.5vw, 60px); font-weight: 500; letter-spacing: -0.02em;
  text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 2px;
}
.foot-cols { background: var(--navy-lift); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding: 48px var(--pad); font-size: 13.5px; }
.foot-cols a { display: block; text-decoration: none; color: var(--ink-soft); margin-bottom: 8px; }
.foot-cols a:hover { color: var(--orange-deep); }
.foot-cols .fine { color: var(--ink-mute); line-height: 1.8; }
.foot-logotype { background: var(--navy-lift); padding: 0 var(--pad) 24px; overflow: hidden; }
.foot-logotype div {
  font-size: clamp(30px, 7.3vw, 128px); font-weight: 700; letter-spacing: -0.04em;
  line-height: 0.9; color: rgba(255, 255, 255, 0.92);
  white-space: nowrap; text-align: left;
}

/* —— PAGE-WIDE PHOTO BACKGROUND (hero continues behind everything) —— */
.page-bg { position: fixed; inset: 0; z-index: -1; }
.page-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-bg::after { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 11, 0.25); }

/* —— DESIGNKC AWARD BADGE —— */
.award-badge {
  position: absolute; top: 96px; right: var(--pad); z-index: 3;
  width: clamp(84px, 9vw, 140px); height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
  pointer-events: none;
}
.pgrid .tile .award-badge { top: 16px; right: 16px; width: 72px; }
@media (max-width: 900px) { .award-badge { top: 78px; width: 72px; } .pgrid .tile .award-badge { width: 56px; } }

/* —— REVEAL ANIMATION —— */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.bleed figure img, .pgrid .tile img { will-change: transform; }

/* —— MOBILE —— */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  nav.links { display: none; }
  /* collapse the location/clock text so only the Menu button shows and stays on-screen */
  .nav .place { font-size: 0; gap: 0; }
  .nav .place::before { display: none; }
  .nav .m-toggle { display: block; font-size: 15px; padding: 10px 2px 10px 14px; }
  .page-head, .band.split, .proj-meta, .foot-black, .quotes { grid-template-columns: 1fr; gap: 24px; }
  .pgrid { grid-template-columns: 1fr; }
  .pgrid .tile.wide { grid-column: span 1; }
  .pgrid .tile figure, .pgrid .tile.wide figure { height: 58vh; }
  .stack .pair { grid-template-columns: 1fr; }
  .stack figure { height: 62vh; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-window { position: relative; height: auto; min-height: 0; }
  .quotes-window .q-content { grid-template-columns: 1fr; gap: 24px; }
  .side-photo { max-width: 100%; }
  .article-row { grid-template-columns: 1fr; gap: 4px; }
  .article-row .more { text-align: left; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .svc { grid-template-columns: 1fr; gap: 8px; }
  .foot-cols { grid-template-columns: 1fr; }
  .cta-chip { border-radius: 50%; overflow: hidden; left: auto; right: 16px; bottom: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.30); }
  .cta-chip img { width: 58px; height: 58px; }
  .cta-chip span { display: none; }
  .hero-full .hero-title { bottom: 16vh; }
}

/* —— MOBILE NAV (simple) —— */
.m-toggle { display: none; background: none; border: none; font: inherit; color: inherit; cursor: pointer; font-size: 13.5px; }
.m-menu { display: none; position: fixed; inset: 0; background: var(--black); color: #fff; z-index: 95; padding: 90px var(--pad); }
.m-menu.open { display: block; }
.m-menu a { display: block; color: #fff; text-decoration: none; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; padding: 10px 0; }
.m-menu .close { position: absolute; top: 18px; right: var(--pad); font-size: 14px; }

/* fix: tile badge must not inherit the tile photo's stretch/crop rules */
.pgrid .tile img.award-badge {
  position: absolute; top: 16px; right: 16px;
  width: 72px; height: auto;
  object-fit: contain;
  transform: none !important;
  transition: none;
}
@media (max-width: 900px) { .pgrid .tile img.award-badge { width: 56px; } }

/* footer wordmark: the logo's S mark as the leading letter */
.foot-logotype .s-mark {
  height: 0.9em; width: auto;
  display: inline-block; vertical-align: -0.04em;
  margin-right: 0.06em;
}


/* —— PORTFOLIO GRID: smaller tiles, more per view (Paige feedback) —— */
#pgrid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
#pgrid .tile.wide { grid-column: span 1; }
#pgrid .tile figure, #pgrid .tile.wide figure { height: min(38vh, 340px); }
#pgrid .tile .t-name { font-size: 15px; }
#pgrid .tile img.award-badge { width: 56px; }
@media (max-width: 900px) {
#pgrid { grid-template-columns: 1fr 1fr; }
#pgrid .tile figure, #pgrid .tile.wide figure { height: 28vh; }
#pgrid .tile img.award-badge { width: 44px; }
}


/* Portfolio backdrop: heavier scrim so the pinned photo reads as texture, not competition */
.scrim.strong {
  background: linear-gradient(100deg, rgba(10,10,11,0.79) 0%, rgba(10,10,11,0.75) 55%, rgba(10,10,11,0.71) 100%);
  opacity: 0;
  transition: opacity 0.15s linear;
}
