/*
Theme Name: Portfolio Theme
Author: G.G. Marshall
Version: 1.0
Updated: 8-19-2026
*/


/* ================================================================
   MAKE IT GLO — SHARED COLORS AND FOUNDATIONS
   ================================================================ */
:root {
  --navy-950: #080f19;
  --navy-900: #101b2b;
  --navy-850: #142338;
  --navy-800: #182a40;
  --navy-750: #203850;
  --navy-700: #294a68;
  --steel-600: #536f88;
  --steel-400: #93aabd;
  --steel-200: #cbd6df;
  --white: #ffffff;
  --check-green: #78ad92;
  --line: rgba(255, 255, 255, 0.2);
  --overlay: rgba(5, 10, 17, 0.84);
  --max: 1180px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(135deg, #0d1725 0%, #34495f 48%, #15243a 100%) fixed;
  color: var(--white);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.8rem, 5.7vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.eyebrow,
.portfolio-kicker,
.section-number,
.footer-label {
  color: var(--steel-200);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--steel-200);
}

.centered-heading {
  text-align: center;
}

.centered-heading > p {
  margin-inline: auto;
}

/* ================================================================
   HEADER AND NAVIGATION
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(41, 74, 104, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
  font-size: 1.08rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-group {
  position: relative;
}

.nav-parent-row {
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  width: 30px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--steel-200);
  cursor: pointer;
  font-size: 1rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 40;
  min-width: 225px;
  display: none;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-750);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

.dropdown-menu a {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  color: var(--steel-200);
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a[aria-current="page"] {
  border: 0;
  background: var(--navy-750);
  color: var(--white);
}

.nav-group.dropdown-open .dropdown-menu {
  display: block;
}

@media (min-width: 941px) {
  .nav-group:hover .dropdown-menu,
  .nav-group:focus-within .dropdown-menu {
    display: block;
  }
}

.nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  border-color: var(--steel-400);
}

.menu-button {
  display: none;
  min-width: 56px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--steel-400);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

/* ================================================================
   BUTTONS, TAGS, AND SMALL REUSABLE ELEMENTS
   ================================================================ */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 18px;
  border: 1px solid var(--steel-400);
  border-radius: 6px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--navy-700);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--steel-400);
  font-size: 0.84rem;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags span {
  padding: 5px 11px;
  border: 1px solid var(--steel-400);
  border-radius: 999px;
  color: var(--steel-200);
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
}

.technical-tags {
  max-width: 980px;
  margin-top: 28px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 28px;
}

.skill-group {
  min-width: 0;
}

.skill-group > p {
  margin: 0;
  color: var(--steel-400);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.skill-group .tags {
  margin-top: 8px;
}

.compact-skill-groups {
  max-width: 820px;
  margin-top: 18px;
}

.tag-rows {
  display: grid;
  gap: 11px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(203, 214, 223, 0.34);
  border-radius: 10px;
  background: rgba(24, 42, 64, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tag-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row > strong {
  color: var(--steel-400);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tag-row > span[aria-hidden="true"] {
  color: var(--steel-600);
}

.tag-row .tags {
  display: inline-flex;
  margin: 0;
}

.compact-tag-rows {
  max-width: 900px;
  margin-top: 16px;
}

/* ================================================================
   HOMEPAGE HERO
   Full usable width and no dark section overlay.
   ================================================================ */
.home-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 74px;
}

.home-hero h1 {
  max-width: 980px;
  margin-top: 8px;
}

.hero-description {
  max-width: 920px;
  margin: 24px 0 0;
  color: #e5ebf0;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
}

.home-tagline {
  margin: 14px 0 0;
  color: var(--white);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

/* ================================================================
   HOMEPAGE CAPABILITIES AND PORTFOLIO PANELS
   ================================================================ */
.home-panel {
  margin-bottom: 34px;
  padding: clamp(36px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--overlay);
}

.capabilities-intro {
  max-width: 980px;
}

.capabilities-intro h2 {
  margin-top: 8px;
}

.capabilities-intro > p:last-child {
  font-size: 1.04rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.capability-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: var(--navy-850);
}

.capability-card:nth-child(2n) {
  background: var(--navy-800);
}

.capability-card h3 {
  font-size: 1.3rem;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  color: var(--steel-200);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--check-green);
  content: "✓";
  font-weight: 800;
}

.toolkit {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.toolkit h3 {
  font-size: 1.05rem;
}

.original-work {
  margin-bottom: 76px;
}

.original-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.original-category-grid a {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--steel-400);
  border-radius: 7px;
  background: var(--navy-800);
  font-weight: 700;
}

.original-category-grid a:hover,
.original-category-grid a:focus-visible {
  background: var(--navy-700);
}

.home-service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.home-service-group {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--navy-850);
}

.home-service-group h3 {
  color: var(--steel-200);
  font-size: 1rem;
  letter-spacing: 0;
}

.author-service-group {
  grid-column: 1 / -1;
}

.home-service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.home-service-links a {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--steel-600);
  border-radius: 6px;
  background: rgba(8, 15, 25, 0.5);
  font-size: 0.82rem;
  font-weight: 700;
}

.home-service-links a:hover,
.home-service-links a:focus-visible {
  border-color: var(--steel-200);
  background: var(--navy-750);
}

.author-service-group .home-service-links {
  grid-template-columns: minmax(0, 340px);
}

/* ================================================================
   HOMEPAGE WORK SCROLLER
   Several projects remain visible at once without enlarging images.
   ================================================================ */
.carousel {
  width: 100%;
  margin: 38px auto 0;
}

.carousel-viewport {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--steel-600) var(--navy-950);
}

.carousel-slide {
  min-width: 0;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy-950);
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top center;
}

.carousel-slide figcaption {
  padding: 13px 14px 15px;
  color: var(--steel-200);
  font-size: 0.78rem;
  font-weight: 600;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.carousel-button,
.lightbox-toolbar button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--steel-400);
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  cursor: pointer;
}

.carousel-button:hover,
.carousel-button:focus-visible,
.lightbox-toolbar button:hover,
.lightbox-toolbar button:focus-visible {
  background: var(--navy-700);
}

.carousel-status {
  min-width: 82px;
  margin: 0;
  color: var(--steel-200);
  text-align: center;
  font-size: 0.78rem;
}

/* ================================================================
   PORTFOLIO INTRODUCTIONS
   ================================================================ */
.portfolio-intro {
  padding: 64px clamp(22px, 4vw, 52px) 44px;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
}

.portfolio-intro-copy {
  min-width: 0;
}

.portfolio-intro h1 {
  max-width: 980px;
  margin-top: 8px;
  font-size: clamp(2.55rem, 5vw, 4.25rem);
}

.portfolio-intro-copy > p:last-of-type,
.portfolio-intro > p:last-of-type {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--steel-200);
  font-size: 1.04rem;
}

.portfolio-intro .intro-promise,
.portfolio-intro-copy .intro-promise {
  margin: 16px 0 0;
  color: var(--white);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 700;
}

.portfolio-hero-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--steel-400);
  border-radius: var(--radius);
  background: var(--navy-950);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.portfolio-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.portfolio-hero-visual figcaption {
  padding: 12px 14px 14px;
  color: var(--steel-400);
  font-size: 0.72rem;
}

.portrait-hero-visual img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.service-hero {
  max-width: var(--max);
  padding: 64px clamp(22px, 4vw, 52px) 48px;
}

.service-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.55rem, 5vw, 4.25rem);
}

.service-hero > p:not(.portfolio-kicker, .intro-promise, .selling-point) {
  max-width: 850px;
  margin: 16px 0 0;
  color: var(--steel-200);
  font-size: 1.04rem;
}

.service-hero .intro-promise {
  margin: 16px 0 0;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 700;
}

.service-directory-page {
  margin-bottom: 84px;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 27, 43, 0.94);
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-card {
  min-width: 0;
  display: flex;
  padding: 18px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 15, 25, 0.52);
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--steel-200);
  transform: translateY(-3px);
}

.service-card img {
  width: 100%;
  height: 185px;
  border-radius: 7px;
  background: var(--navy-950);
  object-fit: cover;
  object-position: top center;
}

.service-card-number {
  margin-top: 17px;
  color: var(--steel-600);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card h3 {
  margin-top: 5px;
  font-size: 1.3rem;
}

.service-card p {
  margin: 10px 0 18px;
  color: var(--steel-200);
  font-size: 0.88rem;
}

.service-card b {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  color: var(--steel-200);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.industry-note {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 22px;
  border-left: 3px solid var(--steel-400);
  background: rgba(8, 15, 25, 0.4);
}

.industry-note strong {
  color: var(--steel-200);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.industry-note p {
  margin: 0;
  color: var(--steel-400);
  font-size: 0.84rem;
}

.service-portfolio {
  margin-top: 0;
}

/* ================================================================
   CONTINUOUS PORTFOLIO FLOW
   Sections touch and alternate blue tones instead of floating apart.
   ================================================================ */
.portfolio-flow {
  margin-bottom: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--navy-900);
}

.portfolio-section {
  padding: clamp(32px, 4.5vw, 50px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 27, 43, 0.94);
}

.portfolio-section:nth-child(even) {
  background: rgba(24, 42, 64, 0.94);
}

.portfolio-section:last-child {
  border-bottom: 0;
}

.portfolio-section .section-heading h2 {
  margin-top: 6px;
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.selling-point {
  max-width: 760px;
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--steel-400);
  background: rgba(5, 10, 17, 0.34);
  color: var(--white) !important;
  font-size: 1.05rem;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin-top: 30px;
}

.three-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.single-project-grid {
  grid-template-columns: minmax(0, 540px);
}

.gallery-project {
  min-width: 0;
  display: flex;
  margin: 0;
  padding: 22px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 15, 25, 0.38);
}

.portfolio-section > .gallery-project,
.portfolio-section > .project-thumbnails {
  max-width: 540px;
  margin-top: 28px;
}

.gallery-project-heading {
  max-width: 100%;
  margin-top: 17px;
}

.gallery-project-heading h3 {
  color: var(--white);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.gallery-project-heading p {
  margin: 9px 0 0;
  color: var(--steel-200);
  font-size: 0.88rem;
  line-height: 1.55;
}

.gallery-project-heading .project-role {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--steel-400);
  color: var(--white);
  font-size: 0.88rem;
}

.project-thumbnails {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.single-thumbnail {
  grid-template-columns: minmax(0, 1fr);
}

.portfolio-shot {
  position: relative;
  width: 100%;
  height: 185px;
  display: grid;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--steel-400);
  border-radius: 7px;
  background: var(--navy-950);
  color: var(--white);
  cursor: zoom-in;
}

.gallery-project > .portfolio-shot {
  flex: 0 0 auto;
}

.portfolio-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.portfolio-shot.book-cover-shot img {
  object-fit: contain;
  object-position: center;
}

/*
 * Individual focus helpers keep unusual source proportions readable without
 * changing the full-resolution images shown in the lightbox.
 */
.portfolio-shot.preview-focus-lower img {
  object-position: center 68%;
}

.carousel-slide.preview-focus-lower img {
  object-position: center 68%;
}

.portfolio-shot.preview-zoom-detail img {
  object-position: center 64%;
  transform: scale(1.55);
  transform-origin: center 64%;
}

.portfolio-shot.portrait-preview img,
.carousel-slide.portrait-preview img {
  padding: 8px;
  background: var(--navy-900);
  object-fit: contain;
  object-position: center;
}

.portfolio-shot:hover img,
.portfolio-shot:focus-visible img {
  opacity: 0.82;
  transform: scale(1.015);
}

.portfolio-shot.preview-zoom-detail:hover img,
.portfolio-shot.preview-zoom-detail:focus-visible img {
  transform: scale(1.59);
}

.portfolio-shot b {
  position: absolute;
  inset: auto 8px 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(5, 10, 18, 0.9);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.placeholder-shot img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.54;
}

.placeholder-shot b {
  inset: 50% auto auto 50%;
  width: calc(100% - 30px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--steel-400);
  text-align: center;
}

.gallery-note {
  margin: 10px 0 0;
  color: var(--steel-400);
  font-size: 0.76rem;
  font-weight: 600;
}

.project-tags {
  margin-top: 14px;
}

.experience-point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.experience-point-grid article {
  padding: 22px;
  border-left: 3px solid var(--steel-400);
  background: rgba(8, 15, 25, 0.34);
}

.experience-point-grid h3 {
  font-size: 1.2rem;
}

.experience-point-grid p {
  margin: 9px 0 0;
  color: var(--steel-200);
  font-size: 0.9rem;
}

.website-cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.website-cta-section h2 {
  margin-top: 6px;
}

.website-cta-section p:not(.eyebrow) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--steel-200);
}

.website-cta-section .button {
  flex: 0 0 auto;
}

.simple-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin: -54px auto 84px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(24, 42, 64, 0.94);
}

.simple-cta h2 {
  margin-top: 5px;
  font-size: 1.8rem;
}

.simple-cta p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--steel-200);
}

.simple-cta .button {
  flex: 0 0 auto;
}

/* ================================================================
   CONTACT FIRST, ABOUT SECOND
   ================================================================ */
.contact {
  width: min(var(--max), calc(100% - 48px));
  margin: 46px auto 0;
  padding: clamp(38px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--overlay);
}

.contact-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(44px, 7vw, 86px);
}

.contact-intro h1 {
  margin-top: 8px;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.contact-intro > p:last-of-type {
  color: var(--steel-200);
}

.contact-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.contact-reassurance span {
  padding: 5px 10px;
  border-left: 2px solid var(--steel-400);
  color: var(--steel-200);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 20px;
  padding: 34px;
  border-radius: 8px;
  background: #f1f4f7;
  color: var(--navy-900);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

input,
select {
  min-width: 0;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--navy-900);
  background: transparent;
  outline: none;
}

textarea {
  min-width: 0;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--navy-900);
  background: transparent;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 2px 0 var(--navy-700);
}

.form-note {
  margin: 0;
  color: #4a5562;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.about {
  margin-bottom: 80px;
  padding: clamp(38px, 6vw, 68px);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(20, 35, 56, 0.94);
}

.about-summary {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 70px);
}

.about-summary h2 {
  margin-top: 8px;
}

.compact-portrait {
  position: relative;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--steel-400);
  border-radius: 7px;
  background: var(--navy-800);
}

.compact-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.portrait-label {
  position: absolute;
  inset: auto 0 0;
  padding: 10px 12px;
  background: rgba(5, 10, 18, 0.9);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.about-lede {
  max-width: 790px;
  font-size: 1.12rem;
  font-weight: 600;
}

.experience-block {
  margin-top: 52px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  position: relative;
  padding: 14px 14px 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--steel-200);
}

.experience-list li::before {
  position: absolute;
  left: 4px;
  color: var(--steel-400);
  content: "•";
}

.industry-experience {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.industry-experience > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.industry-experience span {
  padding: 8px 11px;
  border: 1px solid var(--steel-600);
  border-radius: 999px;
  color: var(--steel-200);
  font-size: 0.72rem;
  font-weight: 700;
}

.education-block {
  margin-top: 48px;
  padding: 30px;
  border-left: 3px solid var(--steel-400);
  background: rgba(5, 10, 17, 0.28);
}

.education-block h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.education-block p {
  margin-bottom: 4px;
  color: var(--steel-200);
  font-weight: 600;
}

.education-block small {
  color: var(--steel-400);
}

/* ================================================================
   GALLERY LIGHTBOX
   ================================================================ */
.lightbox {
  width: min(94vw, 1500px);
  max-height: 92vh;
  padding: 0 20px 22px;
  overflow: auto;
  border: 1px solid var(--steel-400);
  border-radius: 8px;
  background: var(--navy-950);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(8, 15, 25, 0.96);
}

.lightbox-toolbar .lightbox-close {
  margin-left: 12px;
  font-size: 1.4rem;
}

.lightbox-count {
  min-width: 72px;
  color: var(--steel-200);
  text-align: center;
  font-size: 0.78rem;
}

.lightbox-image-wrap {
  display: flex;
  justify-content: center;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox > p {
  margin-bottom: 0;
  color: var(--steel-200);
  text-align: center;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  padding: 56px 0 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(41, 74, 104, 0.98), rgba(32, 56, 80, 0.98));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 58px;
  padding-bottom: 46px;
}

.footer-grid nav {
  display: grid;
  gap: 7px;
}

.footer-muted {
  margin: 8px 0 0;
  color: var(--steel-200);
  font-size: 0.86rem;
}

.footer-brand-copy {
  line-height: 1.75;
}

.availability-lines {
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--steel-400);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.original-footer {
  padding-top: 22px;
}

.original-footer .footer-bottom {
  border-top: 0;
}

/* ================================================================
   TABLET LAYOUT
   ================================================================ */
@media (max-width: 940px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    inset: 76px 24px auto;
    max-height: calc(100dvh - 92px);
    display: none;
    padding: 22px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--navy-750);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    overscroll-behavior: contain;
  }

  .nav.open {
    display: flex;
  }

  .nav-group {
    width: 100%;
  }

  .nav-parent-row {
    justify-content: space-between;
  }

  .nav-parent-row > a {
    flex: 1;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 8px 12px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid var(--steel-600);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .dropdown-menu a {
    min-height: 44px;
    white-space: normal;
  }

  .capability-grid,
  .contact-inner,
  .portfolio-hero {
    grid-template-columns: 1fr;
  }

  .portfolio-hero-visual {
    width: min(100%, 660px);
  }

  .carousel-viewport {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .original-category-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .three-card-grid,
  .service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================================================================
   PHONE LAYOUT
   ================================================================ */
@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  .shell,
  .contact {
    width: min(var(--max), calc(100% - 28px));
  }

  .header-inner {
    min-height: 68px;
  }

  .nav {
    inset: 68px 14px auto;
    max-height: calc(100dvh - 82px);
    padding: 16px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .service-hero h1,
  .portfolio-intro h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .portfolio-section .section-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .home-hero {
    min-height: auto;
    padding-block: 52px;
  }

  .home-panel,
  .portfolio-section,
  .contact,
  .about {
    padding: 28px 20px;
  }

  .capability-grid,
  .skill-groups,
  .project-grid,
  .three-card-grid,
  .service-card-grid,
  .home-service-groups,
  .home-service-links,
  .experience-point-grid,
  .project-thumbnails,
  .field-pair,
  .experience-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .author-service-group {
    grid-column: auto;
  }

  .author-service-group .home-service-links {
    grid-template-columns: 1fr;
  }

  .industry-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-hero {
    padding: 44px 20px 34px;
  }

  .tag-rows {
    padding: 15px 16px;
  }

  .tag-row > strong {
    flex-basis: 100%;
  }

  .tag-row > span[aria-hidden="true"] {
    display: none;
  }

  .tag-row .tags {
    width: 100%;
  }

  .portfolio-hero {
    gap: 28px;
  }

  .portfolio-intro {
    padding: 44px 0 30px;
  }

  .portfolio-flow {
    margin-bottom: 62px;
  }

  .portfolio-shot {
    height: 180px;
  }

  .carousel-viewport {
    grid-auto-columns: 100%;
  }

  .carousel-slide {
    min-height: 250px;
  }

  .carousel-slide img {
    height: 195px;
  }

  .website-cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-cta {
    align-items: flex-start;
    margin: -34px auto 62px;
    padding: 24px 20px;
    flex-direction: column;
  }

  .contact {
    margin-top: 24px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .about-summary {
    grid-template-columns: 1fr;
  }

  .compact-portrait {
    width: 190px;
  }

  .education-block {
    padding: 24px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .lightbox {
    width: 98vw;
    padding-inline: 10px;
  }
}

@media (max-width: 420px) {
  .gallery-project,
  .service-card,
  .capability-card,
  .home-service-group {
    padding: 16px;
  }

  .button {
    max-width: 100%;
    gap: 16px;
    white-space: normal;
  }

  .lightbox-toolbar {
    gap: 8px;
  }

  .lightbox-toolbar .lightbox-close {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-viewport,
  .portfolio-shot img {
    transition: none;
  }
}
