/*
Theme Name:   FSMY Architects 2026
Theme URI:    https://github.com/Agile-Media-Agency/fsmyarch-theme
Description:  Refined rebuild of the FSMY Architects 2025 theme: same pages, fonts, logo and content; a new project slider with a thumbnail grid and video slide, fading Work filters, partners row on the Office page, page transitions. No jQuery.
Author:       Agile Media Agency
Author URI:   https://agilecreativeagency.com
Version:      6.2026.10.30
Requires at least: 6.5
Requires PHP: 8.0
License:      Single Use License for fsmyarch.com Only
Text Domain:  fsmy
*/

/* ==========================================================
   Tokens
   ========================================================== */
:root {
  --ink: #3d4044;          /* the 2025 theme's text colour */
  --ink-strong: #24272a;
  --muted: #6c7075;        /* 4.9:1 on white */
  --nav: #7b7f84;          /* the grey nav, a touch darker for contrast */
  --line: #e6e6e3;
  --soft: #f5f5f3;
  --bg: #fff;
  --blue: #1d4b8f;         /* from the logo; focus rings only */
  --font: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.2vw, 32px);
  --max: 1440px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) {
  :root { --header-h: 84px; }
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-strong); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--ink-strong); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10000;
  background: var(--ink-strong); color: #fff; padding: 10px 16px; font-size: 15px; font-weight: 400;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Page transitions (js/site.js): on click the content fades out at once, the next page's content
   fades in. The header stays put. Works in every browser and in the Customizer preview. */
#main, .site-footer { animation: fsmy-page-in .55s cubic-bezier(.25, .1, .25, 1) backwards; }
html.is-leaving #main,
html.is-leaving .site-footer { opacity: 0; transition: opacity .26s cubic-bezier(.4, 0, .6, 1); }
@keyframes fsmy-page-in { from { opacity: 0; } }
/* Photos fade in as they load (js/site.js) rather than popping in. */
img.img-wait { opacity: 0; }
.work-card__media img, .news-card__media img, .team-card__photo img, .person__photo img, .article__image img, .thumbs__item img {
  transition: opacity .6s ease, transform .9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
  background: rgba(255, 255, 255, .97);
}
.site-header__inner {
  height: var(--header-h);
  max-width: 2560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__logo { margin-right: auto; line-height: 0; }
.site-logo { display: inline-block; }
.site-logo__img { width: 160px; height: auto; }
.site-logo__text { font-size: 22px; font-weight: 700; line-height: 1; color: var(--blue); }
@media (max-width: 719px) {
  .site-logo__img { width: 128px; }
}

.site-nav .menu { display: flex; gap: clamp(18px, 2vw, 28px); }
.site-nav a {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nav);
  text-transform: lowercase;
  padding: 6px 0 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: color .25s ease, background-size .35s var(--ease);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a {
  color: var(--ink-strong);
  background-size: 100% 1.5px;
}

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.menu-toggle__bars { position: relative; width: 24px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink-strong);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 10.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 5.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)) 0 0 0;
  background: #fff;
  padding: 24px var(--gutter);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu .menu { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block; padding: 10px 0;
  font-size: 34px; font-weight: 600; letter-spacing: -0.02em; text-transform: lowercase; color: var(--nav);
}
.mobile-menu .current-menu-item > a,
.mobile-menu .current-menu-ancestor > a { color: var(--ink-strong); }
.menu-open { overflow: hidden; }

@media (max-width: 719px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Home: the header sits over the photos (white logo and nav) on landscape screens. */
.logo-on-hero { display: none; }
@media (min-width: 720px) and (orientation: landscape) {
  .has-hero .site-header { position: absolute; left: 0; right: 0; background: none; }
  .has-hero .logo-on-hero { display: inline; }
  .has-hero .logo-default { display: none; }
  .has-hero .site-nav a { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
  .has-hero .site-nav a:hover,
  .has-hero .site-nav .current-menu-item > a { color: #fff; }
}

/* ==========================================================
   Home slideshow
   ========================================================== */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h) - var(--wp-admin--admin-bar--height, 0px));
  overflow: hidden;
  background: #1b1d1f;
}
@media (min-width: 720px) and (orientation: landscape) {
  .hero { height: 100vh; height: calc(100svh - var(--wp-admin--admin-bar--height, 0px)); }
}
.hero__slides { position: absolute; inset: 0; }
.hero__set { display: none; }
.hero__set.is-current { display: contents; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide picture { display: contents; }
.hero__slide.is-active img { animation: hero-drift 9s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero__controls {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; align-items: center;
  padding: 0 var(--gutter) 22px;
}
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 30px; height: 24px; position: relative; }
.hero__dot::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 11px; height: 2px;
  background: rgba(255, 255, 255, .45); transition: background .3s ease;
}
.hero__dot[aria-current="true"]::after { background: #fff; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 14px;
  width: 40px; height: 40px; display: grid; place-items: center; color: #fff; opacity: .7;
  transition: opacity .2s ease;
}
.hero__pause:hover, .hero__pause:focus-visible { opacity: 1; }
.hero__pause svg { fill: currentColor; }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: inline; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
html:not(.js) .hero__controls { display: none; }

/* Home video: computers and landscape tablets only; it shows from the first paint. */
.hero__slide--video { display: none; background: #1b1d1f; }
.hero__slide--video video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) and (orientation: landscape) {
  .hero--has-video .hero__slide--video { display: block; }
  .hero--has-video:not(.is-built) .hero__slide--video { opacity: 1; z-index: 1; }
  .hero--has-video:not(.is-built) .hero__slide.is-first { opacity: 0; }
}
.hero .hero__slide--video.is-unused { display: none; }

/* ==========================================================
   Shared layout
   ========================================================== */
.page-work, .page-office, .news, .article, .person, .project {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(61, 64, 68, .35); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { height: auto; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .wp-block-spacer { height: 12px !important; }

/* ==========================================================
   Work
   ========================================================== */
.page-work { padding-top: 8px; padding-bottom: 72px; }
.work-filters {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 4px 22px;
  margin: 0 0 28px;
}
.work-filters__btn {
  position: relative;
  font-size: 15px; font-weight: 400; letter-spacing: .01em;
  color: var(--muted);
  padding: 8px 0;
  transition: color .2s ease;
}
.work-filters__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.work-filters__btn:hover { color: var(--ink-strong); }
.work-filters__btn[aria-pressed="true"] { color: var(--ink-strong); font-weight: 600; }
.work-filters__btn[aria-pressed="true"]::after { transform: scaleX(1); }
@media (max-width: 719px) {
  /* One scrolling row on phones (the 2025 theme hid the filters there). */
  .work-filters {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1) 16px; padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .work-filters::-webkit-scrollbar { display: none; }
  .work-filters__btn { flex: none; padding: 10px 0; }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
@media (max-width: 1099px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }

.work-card { transition: opacity .45s ease, transform .55s var(--ease); }
.work-card[hidden] { display: none; }
.work-card.is-out { opacity: 0; transform: translateY(8px); }
.is-filtering .work-card.is-out { transition-duration: .22s, .22s; }

.work-card__link { display: block; position: relative; color: var(--ink-strong); }
.work-card__media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 5 / 3; background: var(--soft);
}
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s ease, transform .9s var(--ease);
}
.work-card__meta { display: block; padding: 10px 0 0; }
.work-card__title { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.work-card__sub { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* With a mouse: the name appears over the photo, as before, but softer. */
@media (hover: hover) and (pointer: fine) {
  .work-card__meta {
    position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px;
    color: #fff;
    background: linear-gradient(to top, rgba(20, 22, 24, .62), rgba(20, 22, 24, 0));
    opacity: 0; transform: translateY(6px);
    transition: opacity .35s ease, transform .45s var(--ease);
  }
  .work-card__title { font-size: 19px; color: #fff; }
  .work-card__sub { color: rgba(255, 255, 255, .85); }
  .work-card__link:hover .work-card__meta,
  .work-card__link:focus-visible .work-card__meta { opacity: 1; transform: none; }
  .work-card__link:hover img { transform: scale(1.035); }
}

/* ==========================================================
   Project
   ========================================================== */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "media" "details";
  gap: 0;
  padding-bottom: 64px;
}
.project__head { grid-area: head; padding: 8px 0 16px; }
.project__title { font-size: clamp(26px, 2.4vw, 34px); margin: 0; }
.project__media { grid-area: media; min-width: 0; }
.project__details { grid-area: details; padding-top: 28px; }
@media (min-width: 1000px) {
  .project {
    grid-template-columns: minmax(300px, 25rem) minmax(0, 1fr);
    grid-template-areas: "head media" "details media";
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 3.5vw, 56px);
  }
  .project__head { padding-top: 20px; }
  .project__media {
    position: sticky;
    top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
    align-self: start;
    padding-top: 4px;
  }
  .project__details { padding-top: 12px; }
}

.details { margin: 0; border-top: 1px solid var(--line); }
.details__row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 16px; line-height: 1.5;
}
.details dt { font-weight: 600; color: var(--ink-strong); }
.details dd { margin: 0; }
.project__text { padding-top: 22px; font-size: 16px; }

.post-nav {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.post-nav__link { display: inline-flex; gap: 8px; align-items: baseline; color: var(--ink); max-width: 48%; }
.post-nav__link--next { margin-left: auto; text-align: right; }
.post-nav__arrow { transition: transform .3s var(--ease); }
.post-nav__link--prev:hover .post-nav__arrow { transform: translateX(-3px); }
.post-nav__link--next:hover .post-nav__arrow { transform: translateX(3px); }

/* ---------- Slider ---------- */
.slider { --stage-h: auto; position: relative; }
.slider__track { margin: 0; padding: 0; }
/* No JavaScript: the photos stack. */
.slider__slide + .slider__slide { margin-top: 12px; }
.slider__img { width: 100%; height: auto; }

.project__media { container-type: inline-size; }
/* The stage is 3:2 (most photos), never taller than the screen allows. */
.slider.is-ready { --stage-h: 66.667cqi; }
@media (min-width: 1000px) {
  .slider.is-ready { --stage-h: min(66.667cqi, calc(100vh - var(--header-h) - 80px)); --stage-h: min(66.667cqi, calc(100svh - var(--header-h) - var(--wp-admin--admin-bar--height, 0px) - 80px)); }
}
.slider.is-ready .slider__stage { position: relative; height: var(--stage-h); min-height: 240px; }
.slider.is-ready .slider__track { position: absolute; inset: 0; }
.slider.is-ready .slider__slide {
  position: absolute; inset: 0; margin: 0;
  display: none; opacity: 0;
  transition: opacity .6s ease;
}
.slider.is-ready .slider__slide.is-near,
.slider.is-ready .slider__slide.is-leaving { display: block; }
.slider.is-ready .slider__slide.is-active { opacity: 1; z-index: 2; }
.slider.is-ready .slider__slide.is-leaving { z-index: 1; }
.slider.is-ready .slider__img {
  width: 100%; height: 100%;
  object-fit: contain;          /* the whole photo, never cropped */
}
.slider__slide--video { background: #111; }
.slider__slide--video video,
.slider__slide--video .slider__iframe,
.slider__embed { width: 100%; height: 100%; object-fit: contain; border: 0; }
.slider:not(.is-ready) .slider__slide--video video { aspect-ratio: 16 / 9; height: auto; }
.slider__embed { position: relative; display: block; }
.slider__embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink-strong);
  display: grid; place-items: center; box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  transition: transform .3s var(--ease);
}
.slider__play svg { fill: currentColor; margin-left: 3px; }
.slider__embed:hover .slider__play { transform: translate(-50%, -50%) scale(1.06); }

.slider__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); color: var(--ink-strong);
  opacity: 0; transition: opacity .25s ease, background .2s ease;
}
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__stage:hover .slider__arrow,
.slider__arrow:focus-visible { opacity: 1; }
.slider__arrow:hover { background: #fff; }
@media (hover: none) {
  .slider__arrow { opacity: .9; width: 36px; height: 52px; }
}
.slider.is-ready .slider__img { cursor: e-resize; }
.slider.on-video .slider__arrow { display: none; }  /* the video has its own controls; use the counter or swipe */

.slider__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding-top: 6px;
  font-size: 14px; font-weight: 400; color: var(--muted);
}
.slider__pager { display: flex; align-items: center; flex-wrap: wrap; gap: 0; min-width: 0; }
.slider__dot { width: 22px; height: 32px; position: relative; }
.slider__dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: #c9cbce; transition: background .25s ease, transform .25s ease;
}
.slider__dot:hover::after { background: var(--muted); }
.slider__dot[aria-current="true"]::after { background: var(--ink-strong); transform: scale(1.15); }
.slider__pager--counter { gap: 2px; font-variant-numeric: tabular-nums; }
.slider__count { min-width: 4.6em; text-align: center; color: var(--ink); letter-spacing: .04em; }
.slider__count-btn { width: 32px; height: 36px; font-size: 22px; line-height: 1; color: var(--ink); }
.slider__count-btn:hover { color: var(--ink-strong); }
.slider__grid-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 2px; color: var(--ink); letter-spacing: .02em;
  transition: color .2s ease;
}
.slider__grid-btn:hover { color: var(--ink-strong); }
.slider__grid-btn svg { transition: transform .3s var(--ease); }
.slider__grid-btn:hover svg { transform: scale(1.08); }

/* ---------- Thumbnail grid ---------- */
.thumbs {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(255, 255, 255, .985); color: var(--ink);
  /* Fades in and out (js/project-slider.js adds and removes .is-open around showModal/close). */
  opacity: 0;
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1);
}
.thumbs.is-open { opacity: 1; }
.thumbs .thumbs__grid { transform: translateY(12px); transition: transform .5s var(--ease); }
.thumbs.is-open .thumbs__grid { transform: none; }
.thumbs::backdrop { background: transparent; }
.grid-open { overflow: hidden; }
.thumbs__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .96);
}
.thumbs__title { font-size: 20px; margin: 0; }
.thumbs__count { font-weight: 300; color: var(--muted); margin-left: .35em; }
.thumbs__close { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.thumbs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 30vw), 1fr));
  gap: 10px;
  padding: 4px var(--gutter) 48px;
  max-width: var(--max); margin: 0 auto;
}
@media (max-width: 639px) {
  .thumbs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
}
.thumbs__item {
  position: relative; display: block; width: 100%;
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft);
}
.thumbs__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .6s var(--ease); }
.thumbs__item:hover img { opacity: .85; transform: scale(1.03); }
.thumbs__item[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--ink-strong);
}
.thumbs__item .slider__play { width: 44px; height: 44px; }

/* ==========================================================
   Office
   ========================================================== */
.page-office { max-width: 1280px; padding-bottom: 72px; }
.office-intro {
  max-width: 54rem; margin: 0 auto; padding: 24px 0 56px;
  font-size: 18px; line-height: 1.85;
}
.office-intro p { line-height: inherit !important; }
.office-intro .has-text-align-justify { text-align: left; }
.office-intro strong { font-weight: 400; color: var(--ink-strong); }
@media (min-width: 720px) { .office-intro { font-size: 19px; } }

.team + .team { margin-top: clamp(40px, 5vw, 72px); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 28px);
}
.team-grid--partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(20px, 2.6vw, 40px); }
@media (max-width: 999px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .team-grid--partners { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

.team-card { font-size: 13px; line-height: 1.5; }
.team-card__link { display: block; color: var(--ink-strong); }
.team-card__photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: opacity .6s ease, transform .9s var(--ease); }
.team-card__link:hover .team-card__photo img { transform: scale(1.03); }
.team-card__name { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; }
.team-card__title { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
/* Qualifications (Registered Architect, NCARB) and the email are quieter than the title: the name leads. */
.team-card__credentials { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; }
.team-card .email { display: inline-block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 12px; }
.team-card .email:hover { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 3px; }
.team-card--partner { font-size: 14px; }
.team-card--partner .team-card__credentials, .team-card--partner .email { font-size: 12.5px; }
.team-card--partner .team-card__name { font-size: 21px; margin-top: 18px; letter-spacing: -0.01em; }

.office-map { margin-top: clamp(56px, 7vw, 96px); }
.office-map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(1) contrast(.95); }

/* ==========================================================
   Team member
   ========================================================== */
.person {
  display: grid; gap: 32px; padding-top: 12px; padding-bottom: 72px;
}
@media (min-width: 900px) {
  .person { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .person__photo { position: sticky; top: calc(var(--header-h) + 12px); }
}
.person__photo img { width: 100%; }
.person__name { font-size: clamp(28px, 3vw, 38px); margin: 0 0 6px; }
.person__title { color: var(--muted); font-weight: 400; margin: 0 0 4px; }
.person__credentials { color: var(--muted); font-size: 14px; margin: -2px 0 4px; }
.person .email { color: var(--muted); font-weight: 400; }
.person__head { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.person__projects-title { font-size: 16px; margin: 32px 0 8px; }
.person__projects li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.person__projects a:hover { color: var(--ink-strong); }
.person__back { margin-top: 36px; font-size: 14px; font-weight: 600; }

/* ==========================================================
   News
   ========================================================== */
.news { padding-top: 8px; padding-bottom: 72px; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px clamp(16px, 1.8vw, 24px);
}
@media (max-width: 1099px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .news-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.news-card__link { display: block; }
.news-card__media { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--soft); margin-bottom: 14px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .9s var(--ease); }
.news-card__link:hover .news-card__media img { transform: scale(1.035); }
.news-card__date { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: .03em; }
.news-card__title { display: block; margin-top: 4px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink-strong); }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 16px; justify-content: center; font-size: 15px; }
.pagination .current { font-weight: 600; color: var(--ink-strong); }

/* ==========================================================
   Article (news post, plain page)
   ========================================================== */
.article { padding-bottom: 72px; }
.article__image { max-width: 1280px; margin: 8px auto 0; }
.article__image img { width: 100%; }
.article__body { max-width: 46rem; margin: 0 auto; padding-top: 32px; }
.article__date { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.article__title { font-size: clamp(28px, 3vw, 40px); margin: 6px 0 24px; }
.article .entry-content { font-size: 18px; line-height: 1.8; }
.article .entry-content figure { margin: 2em 0; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 40px;
  display: grid; justify-items: center; gap: 14px; text-align: center;
  font-size: 14px; font-weight: 400; color: var(--muted);
}
.site-footer__address { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.site-footer__company { color: var(--ink-strong); font-weight: 600; }
.site-footer__copy { margin: 0; font-size: 13px; }
.social { display: flex; gap: 6px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); transition: color .2s ease; }
.social a:hover { color: var(--ink-strong); }
.social svg { fill: currentColor; }
