/* DHNY Consultants — site styles */
:root {
  --ink: #0E2A4F;          /* logo navy, text */
  --blue: #1F4F9C;         /* logo blue, primary actions */
  --sky: #2C9AD6;          /* logo leaf, accents */
  --sky-soft: #DCEEF8;
  --paper: #F4F7FA;        /* cool page background */
  --white: #FFFFFF;
  --board: #1D2A2E;        /* e-blackboard dark */
  --amber: #E3A22B;        /* in-progress signal only */
  --amber-soft: #FBF0D9;
  --line: #D6DEE7;
  --muted: #52627A;

  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 6px;
  --radius-m: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.35rem; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky-soft); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand img { height: 78px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--blue); }
.site-nav a.is-current { color: var(--blue); box-shadow: inset 0 -2px 0 var(--sky); }
.site-nav .nav-cta { background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: var(--radius-s); }
.site-nav .nav-cta:hover { background: var(--blue); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.menu-lines { top: 21px; }
.menu-lines::before { left: 0; top: -7px; }
.menu-lines::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--white); padding: clamp(3rem, 6vw, 5.5rem) 0 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; }
.lede { font-size: var(--step-1); color: var(--muted); margin-top: 1.5rem; max-width: 38ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-photo { margin: 0; }
.hero-photo img { height: auto; border-radius: var(--radius-m); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--board); }
.hero-photo figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .6rem; }

.facts {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.facts li { padding: 1.5rem 1.5rem 1.75rem 0; color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: var(--step-3); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: .3rem; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* Services: a quiet two-column list */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.services li { padding: 1.5rem 1.5rem 2rem 0; border-bottom: 1px solid var(--line); }
.services li:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.services h3 { font-size: var(--step-1); font-weight: 700; margin-bottom: .5rem; }
.services p { color: var(--muted); max-width: 36ch; }

/* Projects — card grid */
.section-projects { background: linear-gradient(180deg, var(--white) 0, var(--paper) 340px); border-top: 1px solid var(--line); }
:root { --c-classroom: #1F4F9C; --c-vc: #2C9AD6; --c-campus: #0E7C86; --c-advisory: #0E2A4F; --c-support: #4A5FA8; }

.proj-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: .9rem 1rem; cursor: pointer; color: var(--ink); transition: border-color .15s, background-color .15s, color .15s;
}
.tab svg { width: 26px; height: 26px; color: var(--tc, var(--blue)); }
.tab .t-name { font-weight: 600; font-size: var(--step--1); line-height: 1.3; }
.tab .t-n { font-size: .8125rem; color: var(--muted); }
.tab:hover { border-color: var(--tc, var(--blue)); }
.tab[aria-pressed="true"] { background: var(--tc, var(--ink)); border-color: var(--tc, var(--ink)); color: #fff; }
.tab[aria-pressed="true"] svg, .tab[aria-pressed="true"] .t-n { color: rgba(255,255,255,.85); }

.proj-bar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 1.25rem; }
.status-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.status-toggle button { background: transparent; border: 0; color: var(--muted); padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-size: var(--step--1); font-weight: 500; }
.status-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: min(340px, 86vw); padding: .65rem .9rem .65rem 2.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.search input:focus { border-color: var(--blue); outline: 2px solid var(--sky-soft); outline-offset: 0; }
.result-count { margin: 1rem 0 1.25rem; font-size: var(--step--1); color: var(--muted); }

.proj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pcard { height: 100%; }
.pcard > button {
  width: 100%; height: 100%; text-align: left; padding: 0; cursor: pointer; color: inherit;
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
.pcard > button:hover { border-color: var(--pc); box-shadow: 0 14px 30px -18px rgba(14,42,79,.45); transform: translateY(-2px); }
.pc-media { position: relative; height: 150px; background: var(--pc); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-media.art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
}
.pc-media .pc-icon { position: absolute; right: 1rem; bottom: -14px; width: 108px; height: 108px; color: rgba(255,255,255,.22); }
.pc-media .pc-hl { position: absolute; left: 1.1rem; bottom: .9rem; right: 6rem; color: #fff; font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pc-media.photo .pc-hl { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.pc-media.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(14,42,79,.78)); }
.pc-media .pc-hl { z-index: 1; }
.badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; background: #fff; color: var(--ink);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; }
.badge.progress { background: var(--amber-soft); color: #7A5205; }
.badge.progress::before { background: var(--amber); }
.pc-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pc-sector { font-size: .8125rem; font-weight: 600; color: var(--pc); }
.pc-title { font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.pc-client { font-size: var(--step--1); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); font-size: var(--step--1); }
.pc-dates { color: var(--ink); font-weight: 500; }
.pc-more { color: var(--blue); font-weight: 600; }
.pcard > button:hover .pc-more { text-decoration: underline; text-underline-offset: 3px; }
.proj-more { text-align: center; margin-top: 2rem; }
.empty { color: var(--muted); padding: 2rem 0; }

.s-classroom { --pc: var(--c-classroom); --tc: var(--c-classroom); }
.s-vc { --pc: var(--c-vc); --tc: var(--c-vc); }
.s-campus { --pc: var(--c-campus); --tc: var(--c-campus); }
.s-advisory { --pc: var(--c-advisory); --tc: var(--c-advisory); }
.s-support { --pc: var(--c-support); --tc: var(--c-support); }

/* Project modal */
.proj-modal { border: 0; padding: 0; border-radius: var(--radius-m); width: min(860px, 94vw); max-height: 90vh; color: var(--ink); background: var(--white); }
.proj-modal::backdrop { background: rgba(14,42,79,.7); }
.proj-modal[open] { animation: pm-in .2s ease-out; }
@keyframes pm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pm-inner { position: relative; }
.pm-close { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.pm-media { position: relative; height: 220px; background: var(--pc); overflow: hidden; }
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-media .pc-icon { width: 150px; height: 150px; bottom: -20px; }
.pm-media .pc-hl { font-size: var(--step-3); bottom: 1.25rem; left: 1.75rem; }
.pm-body { padding: 1.5rem 1.75rem 1.75rem; }
.pm-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.pm-tags span { font-size: .8125rem; padding: .25rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pm-tags .badge { position: static; }
.pm-body h3 { font-size: var(--step-2); font-weight: 800; }
.pm-client { color: var(--muted); margin-top: .35rem; }
.pm-summary { margin-top: 1rem; max-width: 64ch; }
.pm-body h4 { margin: 1.4rem 0 .5rem; font-size: var(--step-0); }
.pm-scope { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.pm-scope li { position: relative; padding-left: 1.6rem; color: #2B3F5C; }
.pm-scope li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--pc, var(--sky)); border-bottom: 2.5px solid var(--pc, var(--sky)); transform: rotate(-45deg); }
.pm-source { margin-top: 1.25rem; font-size: var(--step--1); color: var(--muted); }
.pm-source:empty { display: none; }
.pm-foot { margin-top: 1.5rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: .75rem; }
.g-item { position: relative; padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden; cursor: zoom-in; background: var(--board); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.03); }
.g-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .85rem .7rem;
  color: #fff; font-size: var(--step--1); font-weight: 600; text-align: left;
  background: linear-gradient(transparent, rgba(14,42,79,.85));
}
.g-wide { grid-column: span 2; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(14,42,79,.88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius-s); }
.lightbox-cap { color: #fff; text-align: center; margin-top: .75rem; }
.lightbox-close { position: fixed; top: 1rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Clients */
.section-clients { background: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-title { font-size: var(--step-1); font-weight: 700; margin-bottom: 1.5rem; }
.client-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 0; }
.client-list li { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.client-list li:not(:last-child)::after { content: "/"; color: var(--sky); margin: 0 .7em; font-weight: 400; }

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.partners li { box-shadow: 0 0 0 .5px var(--line); background: var(--white); padding: 1.5rem 1rem 1.1rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.partners img { height: 48px; width: auto; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partners li:hover img { filter: none; opacity: 1; }
.partners span { font-size: .8125rem; color: var(--muted); line-height: 1.35; }

/* About */
.section-about { background: var(--white); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
.section-about h2 { font-size: var(--step-3); font-weight: 800; }
.about-lede { font-size: var(--step-1); margin-top: 1.25rem; line-height: 1.5; max-width: 34ch; }
.about-body p { color: var(--muted); max-width: 60ch; }
.about-body p + p { margin-top: 1rem; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 2rem 0 0; border-top: 2px solid var(--ink); }
.about-facts div { padding-top: .9rem; }
.about-facts dt { font-size: var(--step--1); color: var(--muted); }
.about-facts dd { margin: .15rem 0 0; font-weight: 700; }

/* Contact */
.section-contact { background: var(--ink); color: #E6EDF5; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-info h2 { font-size: var(--step-3); font-weight: 800; color: #fff; }
.contact-info > p { margin-top: 1rem; color: #B8C7DA; max-width: 40ch; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { padding: .8rem 0; border-top: 1px solid #2A4569; display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.contact-list span { color: #8FA6C2; font-size: var(--step--1); padding-top: .1rem; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--sky-soft); }

.contact-form { background: #fff; color: var(--ink); border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  border: 1px solid #B9C6D4; border-radius: var(--radius-s); padding: .7rem .8rem; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--sky-soft); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .8125rem; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: var(--step--1); }
.form-status.ok { color: #1E7A46; }
.form-status.err { color: #B3261E; }

/* Footer */
.site-footer { background: #0A2140; color: #B8C7DA; padding: 3.5rem 0 1.5rem; font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2rem; align-items: start; }
.footer-name { color: #fff; font-weight: 700; font-size: var(--step-0); margin-bottom: .4rem; }
.site-footer nav { display: flex; flex-direction: column; gap: .4rem; }
.site-footer nav a { color: #DCE6F2; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.newsletter label { display: block; color: #fff; font-weight: 600; margin-bottom: .6rem; }
.nl-row { display: flex; gap: .5rem; }
.nl-row input { flex: 1; min-width: 0; padding: .7rem .8rem; border-radius: var(--radius-s); border: 1px solid #2A4569; background: #0E2A4F; color: #fff; }
.nl-row input::placeholder { color: #7F95B1; }
.site-footer .form-status { margin-top: .5rem; }
.site-footer .form-status.ok { color: #9CD8B1; }
.site-footer .form-status.err { color: #F2B8B5; }
.footer-base { border-top: 1px solid #1E3A60; margin-top: 2.5rem; padding-top: 1.25rem; color: #7F95B1; }

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .services li:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-tabs { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .site-nav {
    position: absolute; top: 92px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; }
  .hero-grid, .section-head, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { gap: .75rem; }
}
@media (max-width: 640px) {
  .header-row { height: 72px; }
  .brand img { height: 60px; }
  .site-nav { top: 72px; }
  html { scroll-padding-top: 80px; }
  .services { grid-template-columns: 1fr; }
  .services li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .facts li { padding-right: .75rem; }
  .facts li + li { padding-left: .75rem; }
  .facts li:nth-child(3) { padding-left: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .contact-form { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; gap: .25rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .1rem; }
}

@media (max-width: 640px) {
  .hero-photo img { aspect-ratio: 16 / 10; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .tab { flex: 0 0 auto; min-width: 150px; scroll-snap-align: start; }
  .proj-bar { flex-direction: column; align-items: stretch; }
  .status-toggle { justify-content: space-between; }
  .status-toggle button { flex: 1; }
  .search input { width: 100%; }
  .pm-media { height: 170px; }
  .pm-body { padding: 1.25rem; }
}
