/* EHANIX public website (Phase 4). One hand-written stylesheet, no build step: it is served as it is on cPanel.
   Palette: midnight navy #0B1F2A, teal #14B8A6, deep teal #0F766E, white and a warm off-white. Type: Poppins, bundled locally. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/poppins-700.woff2") format("woff2"); }

:root {
  --navy: #0B1F2A;
  --navy-900: #071820;
  --navy-800: #0d2633;
  --navy-700: #143546;
  --teal: #14B8A6;
  --teal-deep: #0F766E;
  --teal-soft: #5EEAD4;
  --white: #ffffff;
  --cream: #F6F4EF;
  --cream-2: #EEF2EF;
  --ink: #0B1F2A;
  --text: #2b3f4a;
  --muted: #566872;
  --muted-dark: #a9bfc8;
  --line: #dde4e1;
  --line-dark: rgba(255, 255, 255, .14);
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok-bg: #e6f6f3;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --header-h: 76px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(11, 31, 42, .35);
  --section-y: clamp(3rem, 5.5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--teal-deep); text-decoration-thickness: .08em; text-underline-offset: .18em; }
@media (hover: hover) { a:hover { color: var(--navy); } }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.18; color: var(--ink); text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: var(--teal-soft); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--teal); color: var(--navy); padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 1rem; color: var(--navy); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.55rem; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
@media (hover: hover) { .btn:hover .icon { transform: translateX(3px); } }
.btn--primary { background: var(--teal); color: var(--navy); }
@media (hover: hover) { .btn--primary:hover { background: var(--teal-soft); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(20, 184, 166, .8); } }
.btn--ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--teal-soft); color: var(--teal-soft); } }
.btn--outline { border-color: var(--navy); color: var(--navy); }
@media (hover: hover) { .btn--outline:hover { background: var(--navy); color: var(--white); } }
.btn--sm { padding: .65rem 1.2rem; font-size: .875rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 42, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; max-width: 210px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; gap: .25rem 1.5rem; list-style: none; }
.site-nav__link { position: relative; display: block; padding: .5rem 0; color: #d6e4e9; font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .2s; }
.site-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
@media (hover: hover) { .site-nav__link:hover { color: var(--white); } }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) { .site-nav__link:hover::after { transform: scaleX(1); } }
.site-nav__link[aria-current="page"] { color: var(--teal-soft); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; color: var(--white); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

@media (max-width: 1139px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; background: var(--navy); border-bottom: 1px solid var(--line-dark); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line-dark); }
  .site-nav__link::after { display: none; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--navy); color: #cddde3; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark a { color: var(--teal-soft); }
@media (hover: hover) { .section--dark a:hover { color: var(--white); } }
.section--dark .btn--primary { color: var(--navy); }
@media (hover: hover) { .section--dark .btn--primary:hover { color: var(--navy); } }
.section--dark .btn--ghost { color: var(--white); }
@media (hover: hover) { .section--dark .btn--ghost:hover { color: var(--teal-soft); } }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.eyebrow { display: inline-flex; align-items: center; margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--teal); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
.section-head p { margin: .75rem 0 0; font-size: 1rem; color: var(--muted); }
.section--dark .section-head p { color: var(--muted-dark); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.section-head--split > div { max-width: 46rem; min-width: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 20%, rgba(15, 118, 110, .45), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: #cddde3; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: clamp(560px, 40vw, 760px); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4.5rem, 7vw, 5.5rem); }
.hero__copy { max-width: 48rem; }
/* The picture fades out on all four sides into the hero's own navy, so no edge of the photo is visible. */
.hero__bg { position: absolute; z-index: 1; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, .55) 42%, #000 62%); mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, .55) 42%, #000 62%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--navy) 0%, rgba(11, 31, 42, 0) 22%), linear-gradient(0deg, var(--navy-900) 0%, rgba(7, 24, 32, 0) 28%); }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); color: var(--white); line-height: 1.08; letter-spacing: -.02em; }
.hero h1 .accent { display: block; color: var(--teal); }
.hero__intro { margin: 1.5rem 0 0; max-width: 38rem; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero__cue { z-index: 2; position: absolute; left: 0; right: 0; bottom: 1.5rem; pointer-events: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: .8rem; color: var(--muted-dark); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; pointer-events: auto; }
@media (hover: hover) { .scroll-cue:hover { color: var(--teal-soft); } }
.scroll-cue__circle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; }
.scroll-cue__circle .icon { width: 1rem; height: 1rem; animation: cue 1.8s ease-in-out 3; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---------- About preview ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.about-visual { position: relative; padding: 0 0 2rem 2rem; max-width: 420px; width: 100%; }
.about-visual::before { content: ""; position: absolute; inset: 2.2rem 2.2rem 0 0; background: var(--teal-deep); border-radius: 26px; }
.about-visual__img { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: var(--navy-700); box-shadow: var(--shadow); }
.about-visual__img img { width: 100%; height: 100%; object-fit: cover; }
.badge-years { position: absolute; right: -.5rem; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 132px; padding: 1rem 1.2rem; border-radius: 18px; background: var(--navy); color: var(--white); text-align: center; box-shadow: var(--shadow); border: 3px solid var(--cream); }
.badge-years strong { font-size: 2rem; line-height: 1; color: var(--teal); font-weight: 700; }
.badge-years span { margin-top: .35rem; font-size: .75rem; line-height: 1.3; color: #cddde3; }
.about-copy h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
.about-copy .lead { margin-top: 1.25rem; font-size: 1.05rem; color: var(--muted); }
.highlights { list-style: none; display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 0; }
.highlight { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.highlight__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ok-bg); color: var(--teal-deep); }
.highlight__icon .icon { width: 24px; height: 24px; }
.highlight h3 { font-size: 1rem; }
.highlight p { margin: .25rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }

/* ---------- Services ---------- */
.services-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.5rem; min-width: 0; border-left: 1px solid var(--line-dark); transition: background-color .25s; }
.service-card:first-child { border-left: 0; }
@media (hover: hover) { .service-card:hover { background: rgba(255, 255, 255, .03); } }
.service-card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); transition: background-color .25s, color .25s; }
@media (hover: hover) { .service-card:hover .service-card__icon { background: var(--teal); color: var(--navy); } }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--muted-dark); }
.service-card .link-arrow { margin-top: auto; padding-top: .5rem; font-size: .88rem; color: var(--teal-soft); }
.services-grid--light { gap: 1.5rem; }
.services-grid--light .service-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.services-grid--light .service-card:first-child { border-left: 1px solid var(--line); }
@media (hover: hover) { .services-grid--light .service-card:hover { background: var(--white); box-shadow: var(--shadow); } }
.services-grid--light .service-card h3 { color: var(--ink); }
.services-grid--light .service-card p { color: var(--muted); }
.services-grid--light .service-card .link-arrow { color: var(--teal-deep); }
.services-grid--light .service-card__icon { border-color: var(--teal-deep); color: var(--teal-deep); }
@media (hover: hover) { .services-grid--light .service-card:hover .service-card__icon { background: var(--teal-deep); color: var(--white); } }
.services-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Project cards / carousel ---------- */
.carousel__viewport { position: relative; }
.round-btn { display: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
@media (hover: hover) { .round-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); } }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn--prev, .round-btn--next { position: absolute; top: 50%; z-index: 2; margin-top: -23px; }
.round-btn--prev { left: -1.4rem; }
.round-btn--next { right: -1.4rem; }
.js .carousel .round-btn { display: grid; }
@media (min-width: 1360px) { .round-btn--prev { left: -4.5rem; } .round-btn--next { right: -4.5rem; } }
@media (max-width: 899px) { .js .carousel .round-btn { display: none; } }
.project-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--navy); isolation: isolate; }
.project-card img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .project-card:hover img { transform: scale(1.05); } }
.project-card__body { position: relative; z-index: 1; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; background: rgba(11, 31, 42, .94); }
.project-card__tag { display: block; margin-top: .1rem; font-size: .78rem; color: var(--muted-dark); }
.project-card h3 { font-size: 1.05rem; color: var(--white); }
.project-card h3 a { color: inherit; text-decoration: none; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-card__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid rgba(255, 255, 255, .55); color: var(--white); background: transparent; border-radius: 50%; transition: transform .25s, background-color .25s, color .25s, border-color .25s; }
@media (hover: hover) { .project-card:hover .project-card__go { transform: rotate(-45deg); background: var(--teal); border-color: var(--teal); color: var(--navy); } }
.project-card:focus-within { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.project-card a:focus-visible { outline: none; }

.js .carousel .project-grid, .js .carousel .cert-grid, .js .carousel .quote-grid, .js .carousel .post-grid { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 1.5rem; padding-bottom: .25rem; }
.js .carousel .project-grid::-webkit-scrollbar, .js .carousel .cert-grid::-webkit-scrollbar, .js .carousel .quote-grid::-webkit-scrollbar, .js .carousel .post-grid::-webkit-scrollbar { display: none; }
.js .carousel .project-grid > li { flex: 0 0 calc((100% - 3rem) / 3); scroll-snap-align: start; min-width: 0; }
@media (max-width: 899px) { .js .carousel .project-grid > li { flex-basis: min(78%, 360px); } }
/* Certificates: about two cards in view beside the heading; testimonials: three. Both swipe on touch screens. */
.js .carousel .cert-grid { gap: 1.25rem; padding-bottom: .25rem; }
.js .carousel .cert-grid > li { flex: 0 0 calc((100% - 1.25rem) / 2); scroll-snap-align: start; min-width: 0; }
.js .carousel .quote-grid, .js .carousel .post-grid { padding-bottom: .25rem; }
.js .carousel .post-grid > li { flex: 0 0 calc((100% - 3rem) / 3); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1099px) { .js .carousel .post-grid > li { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 899px) { .js .carousel .post-grid > li { flex-basis: min(84%, 380px); } }
.js .carousel .quote-grid > li { flex: 0 0 calc((100% - 3rem) / 3); scroll-snap-align: start; min-width: 0; }
.carousel--certs .round-btn--prev { left: -1.1rem; }
.carousel--certs .round-btn--next { right: -1.1rem; }
@media (min-width: 1360px) { .carousel--certs .round-btn--prev { left: -3.2rem; } .carousel--certs .round-btn--next { right: -3.2rem; } }
@media (max-width: 1099px) { .js .carousel .quote-grid > li { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 899px) {
  .js .carousel .cert-grid > li { flex-basis: min(82%, 340px); }
  .js .carousel .quote-grid > li { flex-basis: min(84%, 380px); }
}

/* ---------- Certifications ---------- */
.cert-layout > * { min-width: 0; }
.cert-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cert-layout .section-head { margin-bottom: 1.5rem; }
.cert-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cert-grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.cert-card { height: 100%; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; color: var(--text); min-width: 0; transition: transform .25s, box-shadow .25s; }
@media (hover: hover) { .cert-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6); } }
/* Fixed picture frame: certificates come in different shapes (1.29 to 1.41), so the frame never follows the image's own height. */
.cert-card__media { position: relative; aspect-ratio: 10 / 7; background: var(--cream-2); overflow: hidden; }
.cert-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cert-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cert-card h3 { font-size: 1rem; color: var(--ink); }
.cert-card__issuer { margin: 0; font-size: .85rem; color: var(--teal-deep); font-weight: 600; }
.cert-card__meta { margin: 0; font-size: .8rem; color: var(--muted); }
.cert-card__link { margin-top: auto; padding-top: .6rem; font-size: .82rem; }
.section--dark .cert-card a { color: var(--teal-deep); }

/* ---------- Testimonials ---------- */
.quote-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.quote-card { position: relative; display: flex; flex-direction: column; gap: 1.25rem; height: 100%; padding: 2rem 1.75rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.quote-card__mark { color: var(--teal); }
.quote-card__mark .icon { width: 2rem; height: 2rem; }
.quote-card blockquote { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--text); }
.quote-card figcaption, .quote-card__who { display: flex; align-items: center; gap: .9rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote-card__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--navy-700); flex: none; }
.quote-card__who strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.quote-card__who span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.quote-card { margin: 0; }

/* ---------- Blog ---------- */
.post-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.post-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); min-width: 0; transition: transform .25s, box-shadow .25s; }
@media (hover: hover) { .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.post-card__img { aspect-ratio: 16 / 10; background: var(--navy-700); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
@media (hover: hover) { .post-card:hover .post-card__img img { transform: scale(1.04); } }
.post-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; font-size: .78rem; color: var(--muted); }
.post-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card__meta .icon { width: .95rem; height: .95rem; }
.post-card__cat { font-weight: 600; color: var(--teal-deep); letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { font-size: 1.15rem; line-height: 1.35; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; padding-top: .5rem; font-size: .88rem; }
.section--dark .post-card { background: var(--navy-800); border-color: var(--line-dark); }
.section--dark .post-card h3 a { color: var(--white); }
.section--dark .post-card p, .section--dark .post-card__meta { color: var(--muted-dark); }
.section--dark .post-card__cat, .section--dark .post-card .link-arrow { color: var(--teal-soft); }
@media (hover: hover) { .section--dark .post-card:hover { box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .7); } }

/* ---------- Contact CTA ---------- */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-grid h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.cta-grid p { margin: 1rem 0 1.5rem; max-width: 32rem; font-size: 1.05rem; color: var(--muted); }
.cta-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 7; background: var(--cream-2); box-shadow: var(--shadow); }
.cta-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inner page hero ---------- */
.page-hero { background: radial-gradient(900px 380px at 90% 0%, rgba(15, 118, 110, .45), transparent 65%), var(--navy); color: #cddde3; padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.page-hero__copy { min-width: 0; }
.page-hero__visual { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-700); border: 1px solid rgba(94, 234, 212, .25); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.page-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); color: var(--white); max-width: 22ch; }
.page-hero p { margin: 1.1rem 0 0; max-width: 40rem; color: var(--muted-dark); font-size: 1.05rem; }
.breadcrumbs { margin: 0 0 1.5rem; font-size: .82rem; color: var(--muted-dark); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.breadcrumbs a { color: var(--teal-soft); text-decoration: none; }
@media (hover: hover) { .breadcrumbs a:hover { text-decoration: underline; color: var(--white); } }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Content pages ---------- */
.prose { max-width: 46rem; font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.prose a { color: var(--teal-deep); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding: .4rem 0 .4rem 1.4rem; border-left: 4px solid var(--teal); color: var(--ink); font-size: 1.15rem; font-style: italic; }
.prose img { border-radius: var(--radius-sm); margin-inline: auto; }
.prose pre { overflow-x: auto; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); background: var(--navy); color: #e3f1f4; font-size: .9rem; line-height: 1.6; }
.prose code { font-size: .92em; background: var(--cream-2); padding: .1em .35em; border-radius: 6px; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--cream-2); }

.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside-card { padding: 1.75rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.link-list { list-style: none; display: grid; gap: .55rem; }
.link-list a { font-weight: 500; }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card h2, .aside-card h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.aside-card dl { margin: 0; display: grid; gap: .9rem; }
.aside-card dt { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); }
.aside-card dd { margin: .1rem 0 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; padding: .3rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--ok-bg); color: var(--teal-deep); text-decoration: none; border: 1px solid transparent; }
@media (hover: hover) { a.chip:hover { border-color: var(--teal-deep); } }
.section--dark .chip { background: rgba(255, 255, 255, .06); color: var(--teal-soft); border-color: rgba(94, 234, 212, .35); }
@media (hover: hover) { .section--dark a.chip:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); } }
.chip[aria-current="true"], .chip.is-active { background: var(--navy); color: var(--white); }
.filter-bar { margin-bottom: 2.5rem; }
.story { display: grid; gap: 2rem; }
.story h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.story h2::before { content: ""; display: block; width: 2.2rem; height: 3px; margin-bottom: .8rem; background: var(--teal); }
.story p { white-space: pre-line; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .7rem 1rem; font-size: .85rem; color: var(--muted); }
.cover-wide { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-700); box-shadow: var(--shadow); }
.cover-wide img { width: 100%; height: 100%; object-fit: cover; }
.about-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.expertise { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.expertise li { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.expertise h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.expertise p { margin: 0; font-size: .92rem; color: var(--muted); white-space: pre-line; }
.empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--white); }
.empty h2, .empty h3 { font-size: 1.2rem; margin-bottom: .5rem; }

/* ---------- Article ---------- */
.article-head { max-width: 50rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.5rem; font-size: .88rem; color: var(--muted-dark); }
.article-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta .icon { width: 1rem; height: 1rem; color: var(--teal); }
.article-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article-cover { margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 56rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-700); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-footer { max-width: 46rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.75rem; }
.author-card { display: flex; gap: 1rem; align-items: center; }
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--navy-700); }
.author-card strong { display: block; color: var(--ink); }
.author-card span { font-size: .88rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.share__label { font-weight: 600; color: var(--ink); margin-right: .4rem; }
.share a, .share button { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
@media (hover: hover) { .share a:hover, .share button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); } }
.share .icon { width: 1.1rem; height: 1.1rem; }
.share__status { font-size: .85rem; color: var(--teal-deep); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 3rem; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font-size: .92rem; font-weight: 500; text-decoration: none; }
@media (hover: hover) { .pagination a:hover { border-color: var(--navy); } }
.pagination [aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination [aria-disabled="true"] { opacity: .45; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #b9c6c2; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.2rem; padding-right: 2.6rem; }
@media (hover: hover) { .input:hover { border-color: var(--teal-deep); } }
.input:focus { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 4px rgba(20, 184, 166, .22); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.error-text { margin: 0; font-size: .82rem; color: var(--danger); font-weight: 500; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .95rem; }
.alert--error { background: var(--danger-bg); color: #7a1a12; border: 1px solid #f4b7b0; }
.alert--ok { background: var(--ok-bg); color: #0a4f49; border: 1px solid #a7e0d8; }
.alert strong { display: block; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; min-width: 0; }
.contact-list .icon { margin-top: .2rem; color: var(--teal-deep); width: 1.3rem; height: 1.3rem; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-deep); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.success-panel { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; }
.success-panel .icon { width: 3.5rem; height: 3.5rem; padding: .8rem; border-radius: 50%; background: var(--ok-bg); color: var(--teal-deep); }
.success-panel h2 { margin: 1.25rem 0 .75rem; font-size: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.footer-logo img { height: 46px; width: auto; max-width: 210px; object-fit: contain; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; }
.footer-nav a { color: var(--muted-dark); text-decoration: none; font-size: .88rem; }
@media (hover: hover) { .footer-nav a:hover { color: var(--teal-soft); text-decoration: underline; } }
.footer-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; padding-bottom: 1.75rem; font-size: .88rem; }
.footer-info p { margin: 0; max-width: 34rem; }
.footer-info ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-info a { color: var(--muted-dark); }
@media (hover: hover) { .footer-info a:hover { color: var(--teal-soft); } }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--white); transition: background-color .2s, color .2s, border-color .2s; }
@media (hover: hover) { .social a:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); } }
.social .icon { width: 1.15rem; height: 1.15rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .84rem; }
.footer-bottom-wrap { padding-inline: var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid .service-card:nth-child(odd) { border-left: 0; }
  .services-grid .service-card:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .services-grid--light .service-card:nth-child(n) { border: 1px solid var(--line); }
  .cert-layout { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .about-grid .highlights { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero__grid { min-height: 0; padding-bottom: 2rem; }
  .hero__bg { position: relative; inset: auto; height: min(360px, 70vw); margin-top: 0; }
  .hero__bg img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
  .hero__bg::after { background: linear-gradient(0deg, var(--navy-900) 0%, rgba(7, 24, 32, 0) 25%); }
  .hero__cue { display: none; }
  .about-grid, .cta-grid, .split, .contact-layout, .about-intro { grid-template-columns: minmax(0, 1fr); }
  .about-grid .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-visual { margin-inline: auto; max-width: 420px; width: 100%; }
  .project-grid, .post-grid, .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-visual { order: -1; max-height: 340px; }
}
@media (max-width: 639px) {
  :root { --header-h: 68px; }
  .brand img { height: 36px; max-width: 150px; }
  .highlights, .about-grid .highlights, .expertise, .form-grid, .services-grid, .services-grid--three { grid-template-columns: 1fr; }
  .services-grid .service-card { border-left: 0; border-top: 1px solid var(--line-dark); padding-inline: 0; }
  .services-grid .service-card:first-child { border-top: 0; }
  .services-grid--light .service-card { padding-inline: 1.5rem; border: 1px solid var(--line) !important; }
  .project-grid, .post-grid, .quote-grid, .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav ul { justify-content: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; }
  .badge-years { right: 0; min-width: 112px; }
  .section-head--split { align-items: flex-start; }
  .btn { padding-inline: 1.25rem; }
}
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .hero h1 { font-size: 2.1rem; }
  .brand img { max-width: 124px; }
  .page-hero h1 { font-size: 1.8rem; }
  .about-visual { padding-left: 1.1rem; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; padding-inline: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover .icon, .link-arrow:hover .icon, .project-card:hover img, .post-card:hover, .cert-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .round-btn, .input { border: 2px solid ButtonText; }
}

/* =====================================================================================================================
   Motion layer. Enhancement only: it changes no size, colour, spacing or position of the approved design.
   Rules: transform and opacity only; nothing loops (the scroll cue plays three times); nothing waits for JavaScript
   except the scroll reveal, which JavaScript itself switches on (so without it every element is simply visible);
   prefers-reduced-motion switches everything off at the end of this file.
   Timing: micro 150-250 ms, standard 250-450 ms, entrance 500-800 ms.
   ===================================================================================================================== */
:root {
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur-micro: .2s;
  --dur-std: .35s;
  --dur-enter: .7s;
  --reveal-shift: 18px;
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes hero-image { from { transform: scale(1.03); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero: staggered entrance, plain CSS so the text never depends on JavaScript ---------- */
.hero__copy > * { animation: rise .55s var(--ease-out) backwards; }
.hero__copy > .eyebrow { animation-delay: 0s; }
.hero__copy > h1 { animation-delay: .05s; }
.hero h1 .accent { animation: rise .55s var(--ease-out) .14s backwards; }
.hero__copy > .hero__intro { animation-delay: .2s; }
.hero__copy > .hero__actions { animation-delay: .28s; }
/* Transform only: the photo is never transparent, so a slow download cannot leave an empty hero or wait for an animation. */
.hero__bg { overflow: hidden; }
.hero__bg img { animation: hero-image .8s var(--ease-out) backwards; }
.hero__cue { animation: fade-in .5s ease .6s backwards; }

/* ---------- Scroll reveal. JavaScript adds .reveal only to elements that start below the fold, then .is-in once seen ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal--fade { transform: none; transition-property: opacity; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 899px) { :root { --reveal-shift: 12px; } }

/* ---------- Header, navigation, buttons ---------- */
.site-header { transition: box-shadow var(--dur-std) var(--ease-soft); }
.site-header.is-scrolled { box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .7); }
.site-nav__link::after { transition: transform var(--dur-std) var(--ease-out); }
.btn { transition: background-color var(--dur-micro), color var(--dur-micro), border-color var(--dur-micro), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-std) var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.round-btn:active:not(:disabled) { transform: scale(.94); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.97); }
}
@media (max-width: 1139px) {
  .js .site-nav.is-open { animation: drop-in .26s var(--ease-out) backwards; }
  .js .site-nav.is-open.is-closing { animation: drop-out .18s var(--ease-soft) backwards; }
  .js .site-nav.is-open .site-nav__list li { animation: rise .35s var(--ease-out) backwards; }
  .js .site-nav.is-open .site-nav__list li:nth-child(2) { animation-delay: .03s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(3) { animation-delay: .06s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(4) { animation-delay: .09s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(5) { animation-delay: .12s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(6) { animation-delay: .15s; }
  .js .site-nav.is-open .site-nav__list li:nth-child(n+7) { animation-delay: .18s; }
  .js .site-nav.is-open.is-closing .site-nav__list li { animation: none; }
}
@keyframes drop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }

/* ---------- Cards. Lift only on devices that hover; keyboard focus gets the same treatment ---------- */
.service-card__icon { transition: background-color var(--dur-std), color var(--dur-std), transform var(--dur-std) var(--ease-out); }
.service-card .link-arrow .icon { transition: transform var(--dur-std) var(--ease-out); }
.project-card, .post-card, .services-grid--light .service-card { transition: transform var(--dur-std) var(--ease-out), box-shadow var(--dur-std) var(--ease-out), border-color var(--dur-std), background-color var(--dur-std); }
.project-card img { transition: transform .8s var(--ease-out); }
.post-card__img img { transition: transform .7s var(--ease-out); }
.project-card__tag { transition: color var(--dur-std); }
.project-card__go { transition: transform var(--dur-std) var(--ease-out), background-color var(--dur-std), color var(--dur-std), border-color var(--dur-std); }
.post-card .link-arrow .icon { transition: transform var(--dur-std) var(--ease-out); }
.project-card:focus-within img { transform: scale(1.05); }
.project-card:focus-within .project-card__go { transform: rotate(-45deg); background: var(--teal); border-color: var(--teal); color: var(--navy); }
.service-card:focus-within .service-card__icon { transform: translateY(-2px) scale(1.05); }
.service-card:focus-within .link-arrow .icon, .post-card:focus-within .link-arrow .icon { transform: translateX(4px); }
@media (hover: hover) {
  .project-card:hover img { transform: scale(1.06); }
  .project-card:hover .project-card__tag { color: var(--teal-soft); }
  .project-grid:not([data-carousel-track]) .project-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(11, 31, 42, .6); }
  .service-card:hover .service-card__icon { transform: translateY(-2px) scale(1.05); }
  .service-card:hover .link-arrow .icon, .post-card:hover .link-arrow .icon { transform: translateX(4px); }
  .services-grid--light .service-card:hover { transform: translateY(-4px); border-color: var(--teal-deep); }
  .post-card:hover { border-color: rgba(15, 118, 110, .45); }
}

/* ---------- Contact form ---------- */
.field label { transition: color var(--dur-micro); }
.field:focus-within label { color: var(--teal-deep); }
.input { transition: border-color var(--dur-micro), box-shadow var(--dur-std) var(--ease-out), background-color var(--dur-micro); }
.error-text { animation: drop-in .3s var(--ease-out) backwards; }
.input[aria-invalid="true"] { animation: nudge .35s var(--ease-soft) 1; }
.alert { animation: drop-in .35s var(--ease-out) backwards; }
.success-panel { animation: rise .55s var(--ease-out) backwards; }
.success-panel .icon { animation: pop .55s var(--ease-out) .12s backwards; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Page transitions: a short cross-fade where the browser supports it; the header stays still. Nothing else changes ---------- */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: var(--ease-soft); }

/* ---------- Reduced motion: no movement, no staggering; everything is simply visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal--fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__copy > *, .hero h1 .accent, .hero__bg img, .hero__cue, .success-panel, .success-panel .icon, .alert, .error-text { animation: none !important; }
  .btn:hover, .btn:active, .project-card:hover, .services-grid--light .service-card:hover, .post-card:hover { transform: none !important; }
}

/* ---------- Appointment calendar (contact page): optional, always skippable ---------- */
.booking { padding-bottom: 0; }
.booking__card { padding: 0; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.booking__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 1rem; }
.booking__head h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 0; }
.booking__head p { margin: .35rem 0 0; color: var(--muted); }
.booking__frame { display: block; width: 100%; height: 760px; border: 0; border-radius: 0; background: #fff; }
.booking__note { margin: 0; padding: .9rem clamp(1.25rem, 3vw, 2rem) 1.25rem; font-size: .82rem; color: var(--muted); }
#contact-form:focus { outline: none; }
@media (max-width: 899px) { .booking__frame { height: 1180px; } }

/* ---------- Marketing consent notice. Present only when a tracking Pixel is switched on; fixed, so it moves nothing ---------- */
.consent { position: fixed; z-index: 60; left: 1rem; bottom: 1rem; width: min(26rem, calc(100vw - 2rem)); padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--navy-900); color: #fff; border: 1px solid var(--line-dark); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); font-size: .86rem; animation: rise .35s var(--ease-out) backwards; }
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 .4rem; font-size: 1rem; color: #fff; }
.consent__text { margin: 0 0 .6rem; color: var(--muted-dark); line-height: 1.5; }
.consent__text a { color: var(--teal-soft); text-decoration: underline; }
.consent__state { margin: 0 0 .6rem; font-size: .8rem; color: var(--teal-soft); }
.consent__state:empty { display: none; }
.consent__actions { display: flex; gap: .6rem; }
.consent__actions .btn { flex: 1; justify-content: center; }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--muted-dark); text-decoration: underline; cursor: pointer; }
.link-button:focus-visible { color: var(--teal-soft); }
@media (hover: hover) { .link-button:hover { color: var(--teal-soft); } }
@media (max-width: 899px) { .consent { left: .75rem; right: .75rem; bottom: .75rem; width: auto; } }
.prose .link-button, .section--white .link-button, .section--cream .link-button { color: var(--teal-deep); }
.consent .btn--ghost { background: transparent; font-family: inherit; }
.consent .btn { font-family: inherit; cursor: pointer; }

/* ---------- Mobile polish (review of 2026-11-10) ---------- */
/* Homepage testimonials: a very long quote must not make every card as tall as itself. */
.carousel .quote-card blockquote p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.quote-card__more { font-size: .88rem; color: var(--teal-deep); }
@media (max-width: 899px) {
  /* Comfortable touch targets (about 44 px) for text links, the logo and the footer links. */
  .link-arrow { min-height: 44px; }
  .brand { min-height: 44px; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .cert-card__link { min-height: 44px; padding-top: 0; }
  /* Small print no smaller than 13-14 px. */
  .cert-card__meta { font-size: .875rem; }
  .badge-years span { font-size: .8125rem; }
  .eyebrow { font-size: .8125rem; }
}

/* ---------- Touch screens: the same effects as press feedback ---------- */
/* Hover effects only run where there is a mouse (so a phone tap is never swallowed as "hover"). On touch screens the same
   effects show while the finger is down, which feels alive and never needs a second tap. */
@media (hover: none) {
  a:active { color: var(--navy); }
  .btn:active .icon { transform: translateX(3px); }
  .btn--primary:active { background: var(--teal-soft); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(20, 184, 166, .8); }
  .btn--ghost:active { border-color: var(--teal-soft); color: var(--teal-soft); }
  .btn--outline:active { background: var(--navy); color: var(--white); }
  .link-arrow:active .icon { transform: translateX(4px); }
  .site-nav__link:active { color: var(--white); }
  .site-nav__link:active::after { transform: scaleX(1); }
  .section--dark a:active { color: var(--white); }
  .section--dark .btn--primary:active { color: var(--navy); }
  .section--dark .btn--ghost:active { color: var(--teal-soft); }
  .scroll-cue:active { color: var(--teal-soft); }
  .service-card:active { background: rgba(255, 255, 255, .03); }
  .service-card:active .service-card__icon { background: var(--teal); color: var(--navy); }
  .services-grid--light .service-card:active { background: var(--white); box-shadow: var(--shadow); }
  .services-grid--light .service-card:active .service-card__icon { background: var(--teal-deep); color: var(--white); }
  .round-btn:active:not(:disabled) { background: var(--navy); color: var(--white); }
  .project-card:active img { transform: scale(1.05); }
  .project-card:active .project-card__go { transform: rotate(-45deg); background: var(--teal); border-color: var(--teal); color: var(--navy); }
  .cert-card:active { transform: translateY(-4px); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6); }
  .post-card:active { transform: translateY(-4px); box-shadow: var(--shadow); }
  .post-card:active .post-card__img img { transform: scale(1.04); }
  .section--dark .post-card:active { box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .7); }
  .breadcrumbs a:active { text-decoration: underline; color: var(--white); }
  a.chip:active { border-color: var(--teal-deep); }
  .section--dark a.chip:active { background: var(--teal); color: var(--navy); border-color: var(--teal); }
  .share a:active, .share button:active { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .pagination a:active { border-color: var(--navy); }
  .input:active { border-color: var(--teal-deep); }
  .footer-nav a:active { color: var(--teal-soft); text-decoration: underline; }
  .footer-info a:active { color: var(--teal-soft); }
  .social a:active { background: var(--teal); color: var(--navy); border-color: var(--teal); }

    .btn:active { transform: scale(.97); }
  .project-card:active img { transform: scale(1.06); }
    .project-card:active .project-card__tag { color: var(--teal-soft); }
    .project-grid:not([data-carousel-track]) .project-card:active { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(11, 31, 42, .6); }
    .service-card:active .service-card__icon { transform: translateY(-2px) scale(1.05); }
    .service-card:active .link-arrow .icon, .post-card:active .link-arrow .icon { transform: translateX(4px); }
    .services-grid--light .service-card:active { transform: translateY(-4px); border-color: var(--teal-deep); }
    .post-card:active { border-color: rgba(15, 118, 110, .45); }
  .link-button:active { color: var(--teal-soft); }
}
