/* ==========================================================================
   GAK CONSTRUCTION — PROJECTS PAGE  (Midnight Ocean & Rustic Ivory)
   File: public/css/projects.css

   Drop-in replacement: every original class name is preserved.
   Shared classes (.section-lead, .btn-solid, .project-card, .projects-grid,
   .project-image, .project-info, .link-arrow) are re-skinned here, scoped
   under .gak-projects-section so nothing else on the site is affected.

   PALETTE
   Midnight Navy #071A3A · Ocean Blue #234B78 · Steel Blue #669BC5
   Ice Blue #B7D9EF · Denim #6593BC · Ivory #E5E0D7 · Sand #CFC7B8
   Stone #8C8A80 · Ink #0A1526

   SECTIONS
   01. Tokens
   02. Section shell & heading
   03. Results count
   04. Projects grid
   05. Project card — 3D, media, overlay, info
   06. Pagination
   07. Bottom CTA
   08. Motion & reveal
   09. Responsive
   10. Accessibility & print
   ========================================================================== */


/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  --gp-navy:     #071A3A;
  --gp-navy-2:   #04101F;
  --gp-navy-3:   #102E5C;
  --gp-ocean:    #234B78;
  --gp-steel:    #669BC5;
  --gp-denim:    #6593BC;
  --gp-ice:      #B7D9EF;
  --gp-ice-50:   #DCEBF7;
  --gp-ivory:    #E5E0D7;
  --gp-ivory-50: #F5F2EB;
  --gp-sand:     #CFC7B8;
  --gp-stone:    #8C8A80;
  --gp-ink:      #0A1526;
  --gp-muted:    #5C6A7A;
  --gp-line:     rgba(35, 75, 120, .14);
  --gp-line-2:   rgba(35, 75, 120, .26);

  --gp-grad-navy: linear-gradient(150deg, #04101F 0%, #071A3A 34%, #234B78 82%, #2F5C8A 100%);
  --gp-grad-ice:  linear-gradient(180deg, #E4F1FA 0%, #B7D9EF 50%, #669BC5 100%);
  --gp-grad-sheen:linear-gradient(115deg, transparent 26%, rgba(255,255,255,.6) 46%, transparent 64%);

  --gp-e1: 0 1px 2px rgba(7,26,58,.06), 0 2px 6px rgba(7,26,58,.05);
  --gp-e2: 0 4px 10px -2px rgba(7,26,58,.10), 0 12px 24px -12px rgba(7,26,58,.16);
  --gp-e3: 0 10px 24px -8px rgba(7,26,58,.18), 0 30px 60px -30px rgba(7,26,58,.30);
  --gp-e4: 0 18px 40px -12px rgba(7,26,58,.26), 0 50px 90px -40px rgba(7,26,58,.40);
  --gp-bevel: inset 0 1px 0 rgba(255,255,255,.9);

  --gp-ease: cubic-bezier(.16, 1, .3, 1);
  --gp-t: .4s var(--gp-ease);

  --gp-tex-plaster: url("../img/textures/plaster.jpg");
  --gp-tex-denim:   url("../img/textures/denim.jpg");

  --gp-grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");

  --gp-twill: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 6 6-2M2 10 10 2' stroke='%23669BC5' stroke-opacity='.5' stroke-width='1'/%3E%3C/svg%3E");
}


/* ==========================================================================
   02. SECTION SHELL & HEADING
   ========================================================================== */
.gak-projects-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, #F8F6F0 0%, var(--gp-ivory-50) 46%, #EFEAE1 100%);
}

/* ivory plaster texture — very quiet, fades at the edges */
.gak-projects-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--gp-tex-plaster) center/cover no-repeat;
  opacity: .4;
  mix-blend-mode: multiply;
  filter: contrast(.92) brightness(1.07);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 88%, transparent);
}

/* soft navy aura, drifting */
.gak-projects-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22%;
  left: -12%;
  width: 48vw;
  height: 48vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 155, 197, .22), transparent 66%);
  filter: blur(50px);
  pointer-events: none;
  animation: gpDrift 26s var(--gp-ease) infinite alternate;
}

/* Heading row */
.gak-projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: 26px;
}

.gak-projects-heading h2,
.gak-projects-cta h2 {
  margin: 12px 0;
  color: var(--gp-navy);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.gak-projects-heading .section-lead {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--gp-muted);
  font-size: clamp(.96rem, 1.1vw, 1.04rem);
  line-height: 1.8;
}

.gak-projects-heading > .btn-solid {
  flex-shrink: 0;
  /* keep the shared button, just add the 3D press + shine */
  border-radius: 12px;
  white-space: nowrap;
}

/* Eyebrow label, if the template prints one above the h2 */
.gak-projects-heading .eyebrow,
.gak-projects-heading .gak-projects-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 7px 16px 7px 14px;
  border: 1px solid var(--gp-line-2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.62));
  box-shadow: var(--gp-e1), var(--gp-bevel);
  color: var(--gp-ocean);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.gak-projects-heading .eyebrow::before,
.gak-projects-heading .gak-projects-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gp-steel);
  box-shadow: 0 0 0 3px rgba(102, 155, 197, .22);
}


/* ==========================================================================
   03. RESULTS COUNT
   ========================================================================== */
.gak-projects-count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  color: var(--gp-stone);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gak-projects-count::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gp-steel), transparent);
}
/* optional trailing hairline that fills the row */
.gak-projects-count::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gp-line), transparent 70%);
}


/* ==========================================================================
   04. PROJECTS GRID
   ========================================================================== */
.gak-projects-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
  perspective: 1600px;
}


/* ==========================================================================
   05. PROJECT CARD — 3D
   ========================================================================== */
.gak-projects-section .project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gp-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, #FBFAF6);
  box-shadow: var(--gp-e1), var(--gp-bevel);
  transform-style: preserve-3d;
  transition:
    transform .55s var(--gp-ease),
    box-shadow .55s var(--gp-ease),
    border-color .55s var(--gp-ease);
}

/* top bevel light line */
.gak-projects-section .project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 155, 197, .95), transparent);
  opacity: 0;
  transition: opacity .55s var(--gp-ease);
}

/* cursor-tracked sheen */
.gak-projects-section .project-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -26%;
  right: -22%;
  width: 84%;
  height: 92%;
  border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 72%) var(--my, 16%),
              rgba(183, 217, 239, .55), transparent 66%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--gp-ease);
}

.gak-projects-section .project-card:hover,
.gak-projects-section .project-card:focus-within {
  transform: perspective(1000px) rotateX(4deg) rotateY(-5deg) translateY(-10px) scale(1.012);
  border-color: rgba(102, 155, 197, .55);
  box-shadow: var(--gp-e4), var(--gp-bevel);
}
.gak-projects-section .project-card:hover::before,
.gak-projects-section .project-card:focus-within::before { opacity: 1; }
.gak-projects-section .project-card:hover::after,
.gak-projects-section .project-card:focus-within::after { opacity: 1; }

/* ---- Media ---- */
.gak-projects-section .project-image {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #E9F0F6, #CFDEEA);
}

.gak-projects-section .project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04);
  transform: scale(1.001);
  transition: transform .95s var(--gp-ease), filter .6s var(--gp-ease);
}

/* navy veil — keeps tag + arrow readable over any photo */
.gak-projects-section .project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 58, 0) 42%, rgba(7, 26, 58, .62) 100%);
  opacity: .9;
  transition: opacity .55s var(--gp-ease);
  pointer-events: none;
}

.gak-projects-section .project-card:hover .project-image img {
  transform: scale(1.07);
  filter: saturate(1.06) contrast(1.06);
}
.gak-projects-section .project-card:hover .project-image::after { opacity: 1; }

/* Floating "View" pill that slides up over the photo on hover.
   Purely decorative — the link-arrow below stays the real control. */
.gak-projects-section .project-image::before {
  content: "View project";
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 24px -16px rgba(0, 0, 0, 1);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--gp-ease), transform .45s var(--gp-ease);
}
.gak-projects-section .project-card:hover .project-image::before,
.gak-projects-section .project-card:focus-within .project-image::before {
  opacity: 1;
  transform: translateY(0);
}

/* Existing tag pill (if the template uses .project-tag) */
.gak-projects-section .project-tag {
  position: absolute;
  z-index: 3;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(7, 26, 58, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #EAF4FC;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}
.gak-projects-section .project-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gp-ice);
}

/* if .project-tag isn't absolutely positioned in the markup, keep it inline */
.gak-projects-section .project-info .project-tag {
  position: static;
  margin-bottom: 10px;
  border-color: rgba(102, 155, 197, .45);
  background: linear-gradient(180deg, #EFF6FC, #DCEAF6);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(35, 75, 120, .5);
  color: var(--gp-ocean);
  backdrop-filter: none;
}
.gak-projects-section .project-info .project-tag::before { background: var(--gp-steel); }

/* ---- Info ---- */
.gak-projects-section .project-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 26px) clamp(18px, 2.2vw, 24px) clamp(18px, 2vw, 22px);
}

.gak-projects-section .project-info h3 {
  margin: 10px 0 12px;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.gak-projects-section .project-info h3 a {
  display: inline;
  color: var(--gp-navy);
  text-decoration: none;
  background-image: linear-gradient(var(--gp-steel), var(--gp-steel));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: color var(--gp-t), background-size .45s var(--gp-ease);
}
.gak-projects-section .project-info h3 a:hover {
  color: var(--gp-ocean);
  background-size: 100% 1.5px;
}

.gak-projects-section .gak-project-location,
.gak-projects-section .project-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--gp-muted);
  font-size: .8rem;
  line-height: 1.5;
}
.gak-projects-section .gak-project-location i,
.gak-projects-section .project-date i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: linear-gradient(160deg, #EAF2F9, #D2E3F1);
  box-shadow: var(--gp-bevel);
  color: var(--gp-ocean);
  font-size: 10px;
}
/* inline SVG icons work too */
.gak-projects-section .gak-project-location svg,
.gak-projects-section .project-date svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke: var(--gp-steel);
}

.gak-projects-section .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gp-line);
  color: var(--gp-ocean);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--gp-t), border-color var(--gp-t), gap .3s var(--gp-ease);
}
.gak-projects-section .link-arrow span,
.gak-projects-section .link-arrow i {
  transition: transform .4s var(--gp-ease);
}
.gak-projects-section .link-arrow:hover {
  color: var(--gp-steel);
  border-color: rgba(102, 155, 197, .4);
  gap: 14px;
}
.gak-projects-section .link-arrow:hover span,
.gak-projects-section .link-arrow:hover i { transform: translateX(3px); }

/* Empty / no-results state reuse */
.gak-projects-section .empty-state {
  grid-column: 1 / -1;
  padding: clamp(40px, 5vw, 66px) 26px;
  border: 1px dashed rgba(102, 155, 197, .55);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,248,.94));
  box-shadow: var(--gp-e2);
  text-align: center;
}
.gak-projects-section .empty-state h2,
.gak-projects-section .empty-state h3 { color: var(--gp-navy); margin-top: 0; }
.gak-projects-section .empty-state p { color: var(--gp-muted); }


/* ==========================================================================
   06. PAGINATION
   ========================================================================== */
.gak-pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 52px);
}

.gak-pagination nav { display: flex; justify-content: center; }

.gak-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gak-pagination .page-item { list-style: none; }

.gak-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--gp-line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #F7F7F3);
  box-shadow: var(--gp-e1), var(--gp-bevel);
  color: var(--gp-ocean);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .22s var(--gp-ease), background .22s var(--gp-ease),
              color .22s var(--gp-ease), border-color .22s var(--gp-ease),
              box-shadow .22s var(--gp-ease);
}

.gak-pagination .page-link:hover {
  border-color: transparent;
  background: var(--gp-grad-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -14px rgba(7, 26, 58, .85);
}

.gak-pagination .page-item.active .page-link {
  border-color: transparent;
  background: var(--gp-grad-navy);
  color: #fff;
  box-shadow: 0 12px 22px -14px rgba(7, 26, 58, .85), var(--gp-bevel);
}

.gak-pagination .page-item.disabled .page-link {
  color: #A7B2BC;
  background: #F4F5F3;
  box-shadow: none;
  pointer-events: none;
}


/* ==========================================================================
   07. BOTTOM CTA
   ========================================================================== */
.gak-projects-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(22px, 3.4vw, 42px);
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 84px);
  padding: clamp(28px, 4.4vw, 56px) clamp(24px, 4vw, 52px);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(90% 140% at 6% 0%, rgba(102, 155, 197, .55), transparent 60%),
    radial-gradient(80% 120% at 96% 110%, rgba(183, 217, 239, .26), transparent 62%),
    var(--gp-grad-navy);
  box-shadow: var(--gp-e4);
}

/* denim texture */
.gak-projects-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gp-tex-denim) center/cover no-repeat;
  opacity: .24;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
/* grain */
.gak-projects-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--gp-grain);
  background-size: 180px 180px;
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.gak-projects-cta > div { position: relative; max-width: 660px; }

.gak-projects-cta h2 {
  color: #fff;
  font-size: clamp(25px, 3vw, 40px);
  margin: 0 0 12px;
}

.gak-projects-cta p {
  margin: 0;
  color: #C6D6E4;
  font-size: clamp(.94rem, 1.1vw, 1.02rem);
  line-height: 1.8;
}

/* the shared .btn-solid on a dark panel becomes the ice button */
.gak-projects-cta > .btn-solid {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  gap: 12px;
  padding: 15px 26px;
  border-radius: 12px;
  color: var(--gp-navy);
  background: var(--gp-grad-ice);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 0 rgba(7, 26, 58, .18),
    0 16px 30px -16px rgba(183, 217, 239, .85);
  transition: transform .25s var(--gp-ease), box-shadow .25s var(--gp-ease), background .25s var(--gp-ease);
}
.gak-projects-cta > .btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gp-grad-sheen);
  transform: translateX(-130%);
  transition: transform .85s var(--gp-ease);
}
.gak-projects-cta > .btn-solid:hover {
  color: var(--gp-navy);
  background: linear-gradient(180deg, #EAF4FB, #CFE5F4 50%, #7FADD4);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 36px -16px rgba(183, 217, 239, .95);
}
.gak-projects-cta > .btn-solid:hover::after { transform: translateX(130%); }
.gak-projects-cta > .btn-solid:active { transform: translateY(1px); }

/* the heading button also gets the shine sweep */
.gak-projects-heading > .btn-solid { position: relative; overflow: hidden; }
.gak-projects-heading > .btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gp-grad-sheen);
  transform: translateX(-130%);
  transition: transform .85s var(--gp-ease);
}
.gak-projects-heading > .btn-solid:hover::after { transform: translateX(130%); }


/* ==========================================================================
   08. MOTION & REVEAL
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .gak-projects-heading,
  .gak-projects-count,
  .gak-projects-section .project-card,
  .gak-projects-section .empty-state,
  .gak-projects-cta,
  .gak-pagination {
    animation: gpRise .8s var(--gp-ease) both;
    animation-delay: calc(var(--i, 0) * 85ms);
  }

  /* automatic stagger — no extra markup needed */
  .gak-projects-section .projects-grid > *:nth-child(1) { --i: 0; }
  .gak-projects-section .projects-grid > *:nth-child(2) { --i: 1; }
  .gak-projects-section .projects-grid > *:nth-child(3) { --i: 2; }
  .gak-projects-section .projects-grid > *:nth-child(4) { --i: 3; }
  .gak-projects-section .projects-grid > *:nth-child(5) { --i: 4; }
  .gak-projects-section .projects-grid > *:nth-child(6) { --i: 5; }
  .gak-projects-section .projects-grid > *:nth-child(7) { --i: 6; }
  .gak-projects-section .projects-grid > *:nth-child(8) { --i: 7; }
  .gak-projects-section .projects-grid > *:nth-child(9) { --i: 8; }
}

@keyframes gpRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes gpDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 2vw, 0) scale(1.12); }
}

/* Scroll-driven reveal (Chrome/Edge 115+), zero JS */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gak-projects-section .project-card {
      animation: gpRise linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 24%;
      animation-delay: 0ms;
    }
  }
}


/* ==========================================================================
   09. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .gak-projects-heading h2 { font-size: clamp(28px, 4.4vw, 40px); }
}

/* Tablet */
@media (max-width: 900px) {
  .gak-projects-section .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 22px);
  }

  .gak-projects-cta {
    padding: clamp(26px, 4vw, 36px);
  }

  .gak-projects-section .project-card:hover,
  .gak-projects-section .project-card:focus-within {
    transform: translateY(-6px);   /* flatten the tilt on smaller screens */
  }
}

/* Phone */
@media (max-width: 640px) {
  .gak-projects-section {
    padding: clamp(38px, 9vw, 56px) 0 clamp(46px, 10vw, 64px);
  }

  .gak-projects-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .gak-projects-heading > .btn-solid { width: 100%; }

  .gak-projects-section .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    perspective: none;
  }

  .gak-projects-section .project-card:hover,
  .gak-projects-section .project-card:focus-within {
    transform: none;
    box-shadow: var(--gp-e3), var(--gp-bevel);
  }
  .gak-projects-section .project-card:active { transform: scale(.995); }

  /* on touch there is no hover — show the label permanently */
  .gak-projects-section .project-image::before {
    opacity: 1;
    transform: none;
  }

  .gak-projects-section .project-info {
    padding: 20px 18px 16px;
  }

  .gak-projects-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 42px;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .gak-projects-cta > .btn-solid { width: 100%; }

  .gak-pagination { margin-top: 30px; }
  .gak-pagination .page-link {
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    font-size: .82rem;
  }
}

@media (max-width: 400px) {
  .gak-projects-section .gak-project-location,
  .gak-projects-section .project-date { font-size: .76rem; }
  .gak-projects-count { font-size: .7rem; letter-spacing: .08em; }
}


/* ==========================================================================
   10. ACCESSIBILITY & PRINT
   ========================================================================== */
.gak-projects-section a:focus-visible,
.gak-projects-cta .btn-solid:focus-visible,
.gak-projects-heading .btn-solid:focus-visible,
.gak-pagination .page-link:focus-visible {
  outline: 2px solid var(--gp-steel);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gak-projects-section::after { animation: none; }

  .gak-projects-heading,
  .gak-projects-count,
  .gak-projects-section .project-card,
  .gak-projects-section .empty-state,
  .gak-projects-cta,
  .gak-pagination {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }

  .gak-projects-section .project-card,
  .gak-projects-section .project-image img,
  .gak-projects-section .project-image::before { transition: none !important; }

  .gak-projects-section .project-card:hover,
  .gak-projects-section .project-card:focus-within {
    transform: translateY(-4px) !important;
  }
}

@media (prefers-contrast: more) {
  .gak-projects-section .project-card { border-width: 2px; }
  .gak-projects-section .project-info h3 a { color: #04101F; }
  .gak-projects-section .gak-project-location,
  .gak-projects-section .project-date,
  .gak-projects-heading .section-lead { color: #3E4C5B; }
}

@media print {
  .gak-projects-section { background: #fff; padding: 10mm 0; }
  .gak-projects-section::before,
  .gak-projects-section::after,
  .gak-projects-cta::before,
  .gak-projects-cta::after { display: none !important; }
  .gak-projects-section .project-card,
  .gak-projects-cta {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .gak-projects-cta { color: #000; background: #fff !important; }
  .gak-projects-cta h2 { color: #000; }
  .gak-projects-cta p { color: #333; }
  .gak-projects-section .project-image::before { display: none !important; }
}
