/* AMKIT Design & Construction: main stylesheet
   Brand: blue #1f3c88, orange #ff7a18, Montserrat (from the original AMKIT files).
   Layout, spacing and type scale follow the agreed visual reference. */

:root {
  --blue: #1f3c88;
  --blue-deep: #0f1f4d;      /* dark sections, derived from the brand blue */
  --blue-night: #0a1638;     /* footer */
  --orange: #ff7a18;
  --orange-dark: #e8650a;
  --logo-orange: #ff761c;     /* sampled from the logo mark */
  --logo-blue: #000080;
  --ink: #141a2b;
  --muted: #5b6477;
  --line: #e1e4eb;
  --paper: #f4f4f4;
  --header-bg: #e8e5e2;      /* logo circle grey #d0cbc6, 50% lighter so the orange stays readable */
  --white: #ffffff;
  --on-dark: #e8ecf6;
  --on-dark-muted: #a9b3cc;
  --line-dark: rgba(255, 255, 255, .12);

  --font: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --wrap: none;              /* full width, as Aman asked; the gutter keeps a margin at the edges */
  --gutter: clamp(20px, 4vw, 72px);
  --header-h: 88px;
  --radius: 2px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 2000;
  background: var(--blue); color: var(--white); padding: 8px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Header (light bar from the original AMKIT design) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(15, 31, 77, .12); }

.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* logo lockup: mark + A M K I T in blue + DESIGN & CONSTRUCTION in orange (header and footer) */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand-mark { width: auto; height: 42px; }
.brand-text { display: block; text-align: center; }
.brand-main {
  display: block;
  font-size: 32px; font-weight: 700; letter-spacing: 5.5px;
  color: var(--blue); line-height: .85;
}
.brand-sub {
  display: block; margin-top: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.45px;
  color: var(--orange);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue);
  padding: 6px 0;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 2px; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover, .nav a[aria-current="page"] { color: var(--orange); }
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta {
  padding: 11px 20px; background: var(--blue); color: var(--white);
  border-radius: var(--radius); transition: background .25s ease;
}
.nav .nav-cta:hover { background: var(--orange); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--blue);
  transition: transform .25s ease, background .25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Type & small parts ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.display {
  font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; line-height: 1.02;
  letter-spacing: -.5px; text-transform: uppercase; color: var(--blue);
}
.display .accent { color: var(--orange); }
.display .logo-orange { color: var(--logo-orange); }
.display .logo-blue { color: var(--logo-blue); }

.section { padding-block: clamp(80px, 11vw, 144px); }
.section-alt { background: var(--paper); }
.section-dark { background: var(--blue-deep); color: var(--on-dark); }
.section-dark .display { color: var(--white); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  align-items: end; gap: 24px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .display { margin-top: 16px; }
.section-lead { color: var(--muted); font-size: 16px; }
.section-dark .section-lead { color: var(--on-dark-muted); }
.rule { width: 64px; height: 2px; background: var(--orange); margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { border-color: rgba(31, 60, 136, .35); color: var(--blue); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }
.section-dark .btn-ghost, .btn-ghost.on-dark { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.section-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { background: var(--white); color: var(--blue); border-color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--blue); text-decoration: none; white-space: nowrap;
}
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--orange); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.center { text-align: center; }
.more { margin-top: clamp(40px, 5vw, 56px); text-align: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 64px;
  background-color: var(--white);
  /* light drafting grid, a nod to the drawings in the portfolio */
  background-image:
    linear-gradient(rgba(31, 60, 136, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 60, 136, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.hero::after { /* soft fade of the grid towards the next section */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; text-align: center;
}

/* holds the headline, the disciplines and (during the intro) the logo; the height never changes */
.hero-stage {
  position: relative; width: 100%;
  display: grid; align-content: center; justify-items: center;
  min-height: clamp(150px, 15vw, 190px);
}

/* one line on desktop and tablet; wraps on small phones only (see 560px) */
.hero h1 {
  font-size: min(4.6vw, 58px); font-weight: 700; letter-spacing: .06em;
  line-height: 1.12; color: var(--blue); white-space: nowrap;
}

.hero-services {
  display: flex; align-items: center; justify-content: center; gap: 8px 14px;
  margin-top: 22px;
  font-size: clamp(14px, 1.2vw, 17px); font-weight: 700; letter-spacing: clamp(2.5px, .3vw, 4px);
}
.hero-services .pair { display: inline-flex; gap: 14px; white-space: nowrap; }
.hero-services a {
  position: relative; color: var(--orange); text-decoration: none;
  transition: opacity .3s ease, color .3s ease;
}
.hero-services a::before { /* larger tap and click area, without moving the text */
  content: ""; position: absolute; inset: -12px -6px;
}
.hero-services a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: calc(100% - 4px); height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.hero-services .sep { color: var(--blue); transition: opacity .3s ease; }
/* one word turns blue and underlined, the others fade. Hover only on devices that can
   hover, so the state cannot stay stuck on a phone after a tap. */
@media (hover: hover) {
  .hero-services:has(a:hover) a:not(:hover), .hero-services:has(a:hover) .sep { opacity: .45; }
  .hero-services a:hover { opacity: 1; color: var(--blue); }
  .hero-services a:hover::after { transform: scaleX(1); }
}
.hero-services:has(a:focus-visible) a:not(:focus-visible), .hero-services:has(a:focus-visible) .sep,
.hero-services:has(a:active) a:not(:active), .hero-services:has(a:active) .sep { opacity: .45; }
.hero-services a:focus-visible, .hero-services a:active { opacity: 1; color: var(--blue); outline: none; }
.hero-services a:focus-visible::after, .hero-services a:active::after { transform: scaleX(1); }
/* a tap is short: show it at once */
.hero-services:has(a:active) a, .hero-services:has(a:active) .sep, .hero-services a:active::after { transition: none; }

.hero-intro { max-width: 540px; margin-top: 12px; font-size: 17px; color: var(--muted); }
.hero-intro span { display: block; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

/* Intro, once per visit (the class is set in the head of index.html). 3.8 s in total:
   logo centered for about 2.6 s, it fades, the headline scales up, the disciplines follow.
   Only opacity and transform change, so nothing below moves. */
.hero-logo { display: none; }
.intro .hero-logo {
  display: block; position: absolute; left: 50%; top: 50%; z-index: 2;
  height: clamp(140px, 14vw, 180px); aspect-ratio: 389 / 237;
  transform: translate(-50%, -50%); pointer-events: none;
  animation: introLogo 3.8s ease both;
}
.intro .hero-logo img { width: 100%; height: 100%; }
.intro .hero h1 { animation: introTitle 3.8s var(--ease) both; }
.intro .hero-services { animation: introServices 3.8s ease both; }

@keyframes introLogo {
  0% { opacity: 0; }
  7%, 68% { opacity: 1; }
  79%, 100% { opacity: 0; }
}
@keyframes introTitle {
  0%, 71% { opacity: 0; transform: scale(.6); }
  100% { opacity: 1; transform: none; }
}
@keyframes introServices {
  0%, 82% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}

/* ---------- About ---------- */

.about {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end; gap: 32px clamp(40px, 7vw, 112px);
}
.about .display { margin-top: 16px; }
.about p { font-size: 18px; color: var(--muted); max-width: 640px; }
.about .link-arrow { margin-top: 28px; }

/* ---------- Project cards ---------- */

.project-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px;
}
/* homepage: 2 large cards on top, then rows of 3 */
.project-grid.featured { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-grid.featured > * { grid-column: span 2; }
.project-grid.featured > :nth-child(-n+2) { grid-column: span 3; }
.project-grid.featured > :nth-child(-n+2) .card-media { aspect-ratio: 16 / 10; }

.project-card { text-decoration: none; color: inherit; display: block; }
.card-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--white); border: 1px solid var(--line);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.project-card:hover .card-media img { transform: scale(1.045); }
.card-media::after { /* subtle darkening on hover */
  content: ""; position: absolute; inset: 0; background: rgba(15, 31, 77, 0);
  transition: background .4s ease; pointer-events: none;
}
.project-card:hover .card-media::after { background: rgba(15, 31, 77, .08); }
.card-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 6px 10px; background: var(--blue); color: var(--white);
  font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.card-body { padding-top: 18px; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card-title {
  font-size: 19px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--blue);
  line-height: 1.25; transition: color .25s ease;
}
.card-loc { font-size: 12px; color: var(--muted); white-space: nowrap; }
.card-meta { margin-top: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.project-card:hover .card-title { color: var(--orange); }

/* placeholder for missing photos */
.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center;
  background-color: #eef1f7;
  background-image:
    linear-gradient(rgba(31, 60, 136, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 60, 136, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
}
.ph span { padding: 6px 12px; background: rgba(255, 255, 255, .88); }

/* ---------- Services ---------- */

.services-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 30px; min-height: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; scroll-margin-top: 190px; /* keeps the section heading in view */
  transition: border-color .3s ease, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:target { border-color: var(--orange); }
.service-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 31, 77, .08); }
.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-num { font-size: 28px; font-weight: 800; color: var(--orange); line-height: 1; }
.service-icon { width: 30px; height: 30px; color: var(--blue); }
.service-card h3 {
  margin-top: 44px;
  font-size: 20px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--blue);
  line-height: 1.2;
}
.service-card p { margin-top: 12px; font-size: 15px; color: var(--muted); flex: 1; }
.service-card .link-arrow { margin-top: 24px; font-size: 11px; }

/* ---------- Process (dark) ---------- */

.process {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.step {
  position: relative; padding: 30px 26px 32px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: border-color .3s ease, background .3s ease;
}
.step:hover { border-color: rgba(255, 122, 24, .6); background: rgba(255, 255, 255, .05); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--orange); }
.step-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--line-dark); color: var(--on-dark-muted);
}
.step h3 { margin-top: 28px; font-size: 17px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.step p { margin-top: 10px; font-size: 14.5px; color: var(--on-dark-muted); }

/* ---------- Studio ---------- */

.studio { text-align: center; }
.studio .display { margin-top: 16px; }
.studio p { margin: 24px auto 0; color: var(--muted); max-width: 540px; }
.studio .btn { margin-top: 32px; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.team-grid.full { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.team-card .card-media { aspect-ratio: 4 / 5; }
.team-card h3 { margin-top: 12px; font-size: 15px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--blue); }
.team-card p { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); }
.team-card .team-focus, .team-card .team-qual, .team-card .team-bio { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.team-card .team-focus { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.team-card .team-qual { margin-top: 2px; font-size: 13px; }
.team-card .team-bio { margin-top: 10px; font-size: 14.5px; }

/* ---------- Contact (dark) ---------- */

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-grid .display { font-size: clamp(44px, 7vw, 88px); }
.contact-grid > div > p { margin-top: 28px; color: var(--on-dark-muted); max-width: 440px; font-size: 17px; }
.contact-card { border-top: 1px solid var(--line-dark); }
.contact-list { list-style: none; }
.contact-list li { padding-block: 22px; border-bottom: 1px solid var(--line-dark); }
.contact-list small {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--orange);
}
.contact-list a, .contact-list span.value { display: inline-block; margin-top: 4px; font-size: 21px; font-weight: 500; color: var(--white); text-decoration: none; word-break: break-word; }
.contact-list a[href]:hover { color: var(--orange); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact-form { margin-top: 32px; }
.form-title { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); }
.form-row { margin-top: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--on-dark); }
.form-row .optional { font-weight: 400; color: var(--on-dark-muted); }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--white);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, .1); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { margin-top: 22px; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 14px; min-height: 1.7em; font-size: 15px; color: var(--on-dark); }
.form-status.is-error { color: #ffb37a; }
.contact-or { margin-top: 40px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-muted); }
.contact-or + .contact-actions { margin-top: 14px; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-block: clamp(64px, 9vw, 112px) clamp(28px, 4vw, 44px); }
.page-head .display { margin-top: 16px; }
.page-head .section-lead { margin-top: 20px; max-width: 560px; }
.page-head .studio-intro { max-width: 540px; margin-inline: auto; font-size: 17px; }

.filters {
  position: sticky; top: var(--header-h); z-index: 900;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-block: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}
.filter-bar button {
  position: relative; border: 0; background: none; padding: 6px 0;
  color: var(--orange); letter-spacing: inherit; font-weight: inherit; text-transform: inherit;
  opacity: .5; transition: opacity .3s ease;
}
.filter-bar button::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% - 3px); height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.filter-bar button:hover { opacity: .85; }
.filter-bar button[aria-pressed="true"] { opacity: 1; }
.filter-bar button[aria-pressed="true"]::after { transform: scaleX(1); }
.filter-bar .sep { color: var(--blue); opacity: .4; }

.empty-note { color: var(--muted); padding-block: 24px; }

/* ---------- Project detail ---------- */

.back-link { font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--blue); text-decoration: none; }
.back-link:hover { color: var(--orange); }
.project-meta { margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); }
.project-cover { position: relative; aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; border: 1px solid var(--line); background: var(--white); }
.project-cover img { width: 100%; height: 100%; object-fit: contain; }
.project-summary { max-width: 720px; margin-top: 40px; font-size: 17px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.gallery .card-media { display: block; }
.gallery .card-media img { object-fit: contain; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-item:hover .card-media { border-color: var(--orange); }

/* full-size image view */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px;
  border: 0; background: rgba(10, 22, 56, .96); overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(10, 22, 56, .96); }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; background: var(--white); }
.lb-count { color: var(--on-dark); font-size: 13px; letter-spacing: 2px; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: var(--radius);
  background: rgba(255, 255, 255, .12); color: var(--white); font-size: 30px; line-height: 1;
}
.lb-btn:hover { background: var(--orange); }
.lb-close { top: 10px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */

/* light footer so the blue and orange of the logo stay exact */
.site-footer { background: var(--white); color: var(--muted); padding-block: 40px 28px; font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); }
.footer-nav a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px;
}

/* ---------- Reveal on scroll (light animation) ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-group > .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal-group > .reveal:nth-child(3) { transition-delay: .16s; }
.js .reveal-group > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 26px; }
}

@media (max-width: 640px) {
  .hero-services { flex-direction: column; row-gap: 20px; }
  .hero-services .sep-mid { display: none; }
}

@media (max-width: 1080px) {
  .services-grid, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { scroll-margin-top: 24px; }
  .service-card:nth-child(-n+2) { scroll-margin-top: 240px; }
  .team-grid.full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
}

/* narrow desktop: the hero already has this button, keep the logo and links on one row */
@media (min-width: 881px) and (max-width: 1040px) {
  .nav .nav-cta { display: none; }
}

@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .brand-mark { height: 36px; }
  .brand-main { font-size: 26px; letter-spacing: 4.5px; }
  .brand-sub { font-size: 9.8px; letter-spacing: 1.15px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); padding: 8px var(--gutter) 24px;
    box-shadow: 0 12px 20px rgba(15, 31, 77, .14);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid #d9dbe0; font-size: 14px; }
  .nav a::after { display: none; }
  .nav .nav-cta { margin-top: 16px; padding: 15px 20px; text-align: center; border-bottom: 0; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }

  .hero { min-height: auto; padding-top: 44px; }

  .project-grid, .project-grid.featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .project-grid.featured > *, .project-grid.featured > :nth-child(-n+2) { grid-column: auto; }
  .project-grid.featured > :first-child { grid-column: span 2; }
  .project-grid.featured > :nth-child(2) .card-media { aspect-ratio: 4 / 3; }

  .contact-grid, .about { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(24px, 7.8vw, 40px); white-space: normal; }
  .hero-services { letter-spacing: 2.5px; gap: 20px 10px; }
  .hero-intro, .page-head .studio-intro { font-size: 15px; }
  .hero-intro span + span { margin-top: 6px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .services-grid, .process { grid-template-columns: 1fr; }
  .service-card:first-child { scroll-margin-top: 240px; }
  .service-card:nth-child(2) { scroll-margin-top: 24px; }
  .service-card h3 { margin-top: 28px; }
  .project-grid, .project-grid.featured { grid-template-columns: 1fr; }
  .project-grid.featured > :first-child { grid-column: auto; }
  .team-grid.full { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr; }
  .contact-list a, .contact-list span.value { font-size: 18px; }
  .contact-actions .btn { flex: 1 1 100%; }
  .contact-form .btn { width: 100%; }
}

/* smallest phones: keep the four discipline names inside the screen */
@media (max-width: 380px) {
  .hero-services { font-size: 12px; letter-spacing: 1.6px; row-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-logo { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
