/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ox:        #356273;
  --ox-deep:   #244552;
  --ox-light:  #7F948B;
  --ox-muted:  #5F6E6B;
  --ox-blush:  #D1D0C8;
  --ox-soft:   #DCE0D8;

  --cream:     #D7D8D0;
  --parchment: #E8E5DE;
  --warm-mid:  #99A19A;
  --walnut:    #55605F;
  --bark:      #283235;
  --ink:       #182022;

  --text-body:    var(--ink);
  --text-muted:   var(--walnut);
  --text-on-ox:   #FAF0F0;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 4px rgba(30,20,16,.08);
  --shadow:     0 4px 20px rgba(30,20,16,.10);
  --shadow-lg:  0 12px 40px rgba(30,20,16,.14);

  --max-w: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);

  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-body);
  background: #d7d8d0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--ox);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
a:hover { color: var(--ox-deep); }

:focus-visible {
  outline: 3px solid var(--ox);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--ox);
  color: var(--text-on-ox);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(2.1rem, 5.5vw, 4.5rem); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ox-deep);
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: 1.25rem;
}
.section-label::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: color-mix(in srgb, var(--ox) 45%, var(--warm-mid));
}

.section-heading {
  font-family: 'Lora', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bark);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--walnut);
  max-width: 52ch;
  line-height: 1.65;
  text-wrap: balance;
}

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232,229,222,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--warm-mid);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.35rem;
  gap: 1rem;
}

.nav-logo {
  color: var(--bark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-logo-mark {
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ox) 0%, var(--ox-deep) 100%);
  color: var(--text-on-ox);
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  box-shadow: 0 10px 22px rgba(62,92,102,.18);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.nav-logo-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.nav-logo-tag {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ox-deep);
}
@media (max-width: 560px) {
  .nav-logo-tag {
    display: none;
  }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}
@media (min-width: 640px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--walnut);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ox); }

.nav-cta {
  display: none;
}
@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}

/* hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  border-radius: var(--radius-sm);
}
@media (min-width: 640px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--parchment);
  border-top: 1px solid var(--warm-mid);
  padding: 1rem var(--gutter) 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--walnut);
  text-decoration: none;
  padding: .75rem 0;
  border-bottom: 1px solid var(--parchment);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--ox); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ox);
  color: var(--text-on-ox);
  border-color: var(--ox);
}
.btn-primary:hover {
  background: var(--ox-deep);
  border-color: var(--ox-deep);
  color: var(--text-on-ox);
  box-shadow: 0 4px 16px rgba(62,92,102,.28);
}

.btn-outline {
  background: transparent;
  color: var(--ox);
  border-color: var(--ox);
}
.btn-outline:hover {
  background: var(--ox-blush);
  color: var(--ox-deep);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--text-on-ox);
  border-color: rgba(255,255,255,.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  color: var(--text-on-ox);
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  padding-top: clamp(4rem, 8vw, 6.25rem);
  padding-bottom: clamp(2.8rem, 6vw, 4.75rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(53,98,115,.08), transparent 22%),
    radial-gradient(circle at 18% 24%, rgba(127,148,139,.12), transparent 24%),
    linear-gradient(180deg, #e1dfd8 0%, #d3d6cf 100%);
}

#hero::after {
  content: '';
  position: absolute;
  inset: auto auto 2.25rem 50%;
  width: min(64rem, calc(100% - 2 * var(--gutter)));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53,98,115,.18), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.hero-content {
  position: relative;
  max-width: 43rem;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ox-deep);
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: 'Lora', serif;
  font-size: clamp(2.35rem, 5.6vw, 4.05rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--bark);
  margin-bottom: 1.5rem;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-heading em {
  font-style: italic;
  color: var(--ox);
}

.hero-body {
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  color: var(--bark);
  max-width: 58ch;
  margin-bottom: 1.9rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.hero-mini-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(85,96,95,.22);
}

.hero-mini-point {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--bark);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-mini-point::before {
  content: '';
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--ox);
}
@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  background: #c7cbc4;
  border-top: 1px solid rgba(57,58,53,.1);
  border-bottom: 1px solid rgba(57,58,53,.1);
}

.trust-shell {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 920px) {
  .trust-shell {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.trust-copy {
  max-width: 32rem;
}

.trust-heading {
  font-family: 'Lora', serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.14;
  color: var(--bark);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.trust-sub {
  color: var(--bark);
  font-size: .98rem;
  line-height: 1.65;
  max-width: 46ch;
}

.trust-inner {
  display: grid;
  gap: .75rem;
}
@media (min-width: 640px) {
  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.trust-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .9rem 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(57,58,53,.12);
  box-shadow: none;
}

.trust-item-index {
  flex-shrink: 0;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  margin-top: .48rem;
  background: var(--ox);
}

.trust-item-text {
  color: var(--bark);
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 600;
}

/* ── Services ─────────────────────────────────────────────── */
#services {
  background: #d9d9d1;
}

.services-header {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 52rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: #ebe9e2;
  border: 1px solid rgba(57,58,53,.16);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s, transform .2s, border-color .25s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ox);
  opacity: .14;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(119,129,109,.45);
}
.service-card:hover::before { opacity: .55; }

.service-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .875rem;
}

.service-icon {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--ox);
}
.service-icon svg { width: 100%; height: 100%; }

.service-name {
  font-family: 'Lora', serif;
  font-size: 1.075rem;
  font-weight: 600;
  color: var(--bark);
  line-height: 1.25;
  text-wrap: balance;
}

.service-desc {
  font-size: .92rem;
  color: var(--bark);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}

.tag {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--bark);
  background: #dde2da;
  border: 1px solid rgba(90,86,78,.18);
  padding: .25em .625em;
  border-radius: 100px;
}


/* ── Process ──────────────────────────────────────────────── */
#process {
  background: #ced2ca;
  border-top: 1px solid rgba(57,58,53,.1);
  border-bottom: 1px solid rgba(57,58,53,.1);
}

.process-header {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 50rem;
}

.process-steps {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  background: #e8e7df;
  border: 1px solid rgba(57,58,53,.14);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 8px 28px rgba(30,20,16,.06);
}

.process-num {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-mid);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.process-title {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: .5rem;
  text-wrap: balance;
}

.process-desc {
  font-size: .875rem;
  color: var(--bark);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: #d7d8d1;
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 860px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--warm-mid);
}
.contact-detail:first-of-type { padding-top: 0; border-top: 1px solid var(--warm-mid); margin-top: 1rem; }

.contact-detail-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #e0e4dc;
  border: 1px solid rgba(90,86,78,.16);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--ox);
}
.contact-detail-icon svg { width: 1rem; height: 1rem; }

.contact-detail-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ox-deep);
  margin-bottom: .125rem;
}
.contact-detail-value {
  font-size: .9375rem;
  color: var(--bark);
  font-weight: 500;
}
.contact-detail-value a {
  color: var(--bark);
  text-decoration: none;
}
.contact-detail-value a:hover { color: var(--ox); }

/* form */
.contact-form-wrap {
  background: #ebeae3;
  border: 1px solid rgba(57,58,53,.15);
  border-radius: 20px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  box-shadow: 0 18px 44px rgba(30,20,16,.09);
}

.form-title {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: .375rem;
  text-wrap: balance;
}
.form-subtitle {
  font-size: .875rem;
  color: var(--bark);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form-wrap label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: .375rem;
  letter-spacing: .01em;
}
.contact-form-wrap label .req {
  color: var(--ox);
  margin-left: .15em;
}

.contact-form-wrap input:not([type="checkbox"]):not([type="radio"]),
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  color: var(--ink);
  background: #f4f2ec;
  border: 1.5px solid var(--warm-mid);
  border-radius: var(--radius);
  padding: .6875rem .875rem;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form-wrap input:not([type="checkbox"]):not([type="radio"])::placeholder,
.contact-form-wrap textarea::placeholder { color: var(--ox-muted); opacity: .7; }
.contact-form-wrap input:not([type="checkbox"]):not([type="radio"]):focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--ox);
  box-shadow: 0 0 0 3px rgba(53,98,115,.12);
}
.contact-form-wrap input:not([type="checkbox"]):not([type="radio"]):invalid:not(:placeholder-shown),
.contact-form-wrap textarea:invalid:not(:placeholder-shown) {
  border-color: #8D4A42;
}

.contact-form-wrap textarea { resize: vertical; min-height: 120px; }

.contact-form-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23244552' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-hint {
  font-size: .75rem;
  color: var(--walnut);
  margin-top: .375rem;
  opacity: .8;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: .75rem;
  color: var(--walnut);
  opacity: .8;
}

.form-status {
  display: none;
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  margin-top: 1rem;
}
.form-status.success {
  display: block;
  background: #EEF6EE;
  border: 1px solid #B7D9B7;
  color: #2E5E2E;
}
.form-status.error {
  display: block;
  background: var(--ox-blush);
  border: 1px solid var(--ox-muted);
  color: var(--ox-deep);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bark);
  color: rgba(248,244,238,.75);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.footer-brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12);
  color: var(--cream);
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.footer-brand {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}
.footer-tagline {
  font-size: .8rem;
  margin-top: .2rem;
  opacity: .6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
}
.footer-links a {
  font-size: .8rem;
  color: rgba(248,244,238,.65);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-copy {
  width: 100%;
  font-size: .75rem;
  opacity: .45;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248,244,238,.1);
  margin-top: .5rem;
}

/* ── Animations ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .animate-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .animate-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .animate-delay-1 { transition-delay: .1s; }
  .animate-delay-2 { transition-delay: .2s; }
  .animate-delay-3 { transition-delay: .3s; }
  .animate-delay-4 { transition-delay: .4s; }
}

/* ── Portfolio ────────────────────────────────────────────── */
#portfolio {
  background: #c3c9c3;
  border-top: 1px solid rgba(57,58,53,.1);
  border-bottom: 1px solid rgba(57,58,53,.1);
}

.portfolio-header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 48rem;
}

#portfolio .section-label {
  color: var(--ox-deep);
}

#portfolio .section-label::after {
  background: var(--warm-mid);
}

#portfolio .section-heading,
#portfolio .section-sub {
  color: var(--bark);
}

#portfolio .section-sub {
  opacity: 1;
  color: var(--walnut);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(57,58,53,.16);
  background: #dee3db;
  cursor: pointer;
  padding: 0;
  transition: box-shadow .25s, transform .2s, border-color .25s;
  text-align: left;
}
.portfolio-thumb:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--ox-muted);
}
.portfolio-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.portfolio-thumb:hover img { transform: scale(1.03); }

.portfolio-caption {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bark);
  padding: .75rem 1rem;
  border-top: 1px solid rgba(90,86,78,.12);
  background: #ebefe7;
}

.portfolio-cta {
  text-align: center;
  margin-top: 1rem;
}

/* Lightbox */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,12,8,.88);
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.portfolio-lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  display: block;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
