/* ===== Forta Ornamental Iron: site styles =====
   Colors come from the work itself: powder-coated steel, cedar, stucco.
   Change them here and they update everywhere. */
:root {
  --iron: #25282b;        /* header, footer, dark sections */
  --iron-2: #34383c;
  --iron-line: #474c51;
  --stucco: #f3f3f0;      /* light sections */
  --paper: #ffffff;
  --cedar: #a5602c;       /* accent: buttons, links */
  --cedar-deep: #7f4519;
  --cedar-light: #d89a62; /* accent on dark backgrounds */
  --ink: #1c1e20;
  --muted: #5e6368;
  --max: 1200px;
  --header: 72px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cedar-deep); text-underline-offset: 3px; }
button, a, [role="button"] { touch-action: manipulation; }
button, .btn, .tile, .nav a, .cat { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--cedar-light); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 21px; line-height: 1.2; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }

section { padding: 88px 0; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head p { margin-top: 14px; }
.section-foot { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  background: var(--cedar); color: #fff;
  font: inherit; font-weight: 650; font-size: 16px;
  text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); background: var(--cedar-deep); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.btn.dark { background: var(--iron); }
.btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--cedar-deep); }
  .btn.ghost:hover { background: rgba(255,255,255,.12); }
  .btn.dark:hover { background: var(--iron-2); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--iron); color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header); gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.footer-logo { display: block; width: 220px; height: auto; margin-bottom: 14px; }
.brand span {
  font-variation-settings: "wdth" 118; font-weight: 760;
  font-size: 17px; line-height: 1.1;
}
.brand small { display: block; font-weight: 450; font-size: 13px; opacity: .75; font-variation-settings: "wdth" 100; }
.nav { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav a {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 520;
  padding: 6px 0; border-bottom: 2px solid transparent; opacity: .88;
  transition: opacity 160ms ease, border-color 160ms ease;
}
.nav a.active { opacity: 1; border-color: var(--cedar-light); }
.nav .btn { min-height: 42px; padding: 0 18px; border: 0; opacity: 1; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { opacity: 1; border-color: var(--cedar-light); }
}
.menu-btn {
  display: none; background: none; border: 0; color: #fff; cursor: pointer;
  width: 44px; height: 44px; margin-right: -8px; place-items: center;
}
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Language button: one oval with both languages; the one you are on is filled in ---------- */
.nav { margin-left: auto; }
.lang-btn {
  display: inline-flex; align-items: center; flex: none; gap: 2px; padding: 3px;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: border-color 160ms ease, transform 140ms var(--ease-out);
}
.lang-btn > span {
  display: grid; place-items: center; min-width: 42px; height: 33px; padding: 0 14px; border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}
.lang-btn > .on { background: #fff; color: var(--ink); }
.lang-btn .short { display: none; }
.lang-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .lang-btn:hover { border-color: #fff; }
  .lang-btn:hover > span:not(.on) { background: rgba(255,255,255,.18); }
}
/* Tighter header: full words on wide screens, EN | ES where space is short (mid-width screens and phones) */
@media (min-width: 761px) and (max-width: 1100px), (max-width: 560px) {
  .lang-btn .full { display: none; }
  .lang-btn .short { display: inline; }
  .lang-btn > span { min-width: 38px; padding: 0 10px; }
}
@media (max-width: 1100px) { .nav { gap: 20px; } }
/* Tablet-size windows (761-960px): keep every menu link in the bar next to the language oval by tightening the header */
@media (min-width: 761px) and (max-width: 960px) {
  .site-header .wrap { gap: 12px; padding: 0 16px; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; white-space: nowrap; }
  .nav .btn { padding: 0 12px; }
  .brand small { font-size: 12px; white-space: nowrap; }
  .lang-btn > span { min-width: 34px; height: 27px; padding: 0 8px; font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 775px) { .site-header .wrap { gap: 9px; } .nav { gap: 9px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  min-height: calc(100svh - var(--header));
  display: flex; align-items: flex-end;
  background: var(--iron) center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,22,24,.88) 0%, rgba(20,22,24,.5) 45%, rgba(20,22,24,.05) 80%);
}
.hero .wrap { position: relative; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { max-width: 15ch; }
.hero p { font-size: 20px; max-width: 46ch; margin-top: 18px; opacity: .92; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-in { animation: rise 700ms var(--ease-out) both; }
.hero-in:nth-child(2) { animation-delay: 80ms; }
.hero-in:nth-child(3) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.service img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.service h3 { margin: 20px 0 10px; }
.service p { color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--stucco); padding: 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-text { padding: 88px 64px 88px max(20px, calc((100vw - var(--max)) / 2 + 20px)); }
.about-text p { margin-top: 18px; max-width: 54ch; }
.about-text .btn { margin-top: 28px; }
.about-img { min-height: 460px; background: center / cover no-repeat; }

/* ---------- Stats ---------- */
.stats { background: var(--iron); color: #fff; padding: 52px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stat b {
  display: block; font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(30px, 9vw, 60px); line-height: 1; color: var(--cedar-light);
}
.stat span { display: block; margin-top: 8px; opacity: .85; }

/* ---------- Category tiles (home, work hub, gallery pages) ---------- */
.cat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(200px, 22vw, 280px);
  grid-auto-flow: dense;
}
.cat {
  position: relative; overflow: hidden; border-radius: 3px;
  display: flex; align-items: flex-end;
  background: var(--iron-2); color: #fff; text-decoration: none;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,22,24,.82), rgba(20,22,24,0) 60%); }
.cat .cat-text { position: relative; z-index: 1; padding: 20px 22px; }
.cat h3 { font-size: clamp(22px, 2.4vw, 30px); }
.cat p { font-size: 15px; opacity: .85; margin-top: 4px; }
.cat.big { grid-column: span 2; grid-row: span 2; }
.cat.wide { grid-column: span 2; }
.cat.empty { background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.04) 14px 15px); }
.cat.empty::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cat:hover img { transform: scale(1.03); }
}

/* ---------- Photo break ---------- */
.photo-break {
  position: relative; padding: 120px 20px; text-align: center; color: #fff;
  background: var(--iron) center / cover no-repeat;
}
.photo-break::before { content: ""; position: absolute; inset: 0; background: rgba(20,22,24,.62); }
.photo-break > div { position: relative; max-width: 640px; margin: 0 auto; }
.photo-break p { margin: 14px 0 28px; font-size: 19px; opacity: .92; }

/* ---------- Contact ---------- */
.contact { background: var(--stucco); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops phones zooming in */
  padding: 12px 14px; border: 1px solid #c9cac6; border-radius: 3px; background: #fff; color: var(--ink);
}
.form input[type="file"] { padding: 10px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.hidden { display: none; }
.info-block + .info-block { margin-top: 30px; }
.info-block h3 { margin-bottom: 8px; }
.info-block .big-phone { font-size: 26px; font-weight: 700; font-variation-settings: "wdth" 112; text-decoration: none; }
.map { width: 100%; height: 280px; border: 0; border-radius: 3px; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--iron); color: rgba(255,255,255,.8); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--iron-line); font-size: 14px; }
.site-footer .legal .credit { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; text-decoration: underline; } }

/* ---------- Gallery pages ---------- */
.page-head { background: var(--iron); color: #fff; padding: 56px 0 0; }
.crumbs { font-size: 14px; opacity: .75; margin-bottom: 14px; }
.crumbs a { color: #fff; }
.page-head .lead { color: rgba(255,255,255,.82); margin-top: 16px; }
.page-head .no-tabs { height: 56px; }
.cat-tabs {
  display: flex; gap: 6px; margin-top: 36px; overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a {
  flex: none; padding: 12px 18px; color: #fff; text-decoration: none; font-weight: 560; font-size: 15px;
  border-radius: 3px 3px 0 0; background: var(--iron-2);
}
.cat-tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cat-tabs a:not([aria-current]):hover { background: var(--iron-line); } }

.gallery-section { padding-top: 48px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
.project .tile { aspect-ratio: 4 / 5; }
.project h2 { font-size: 19px; margin-top: 14px; font-variation-settings: "wdth" 106; }
.project p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.project .count { font-size: 14px; color: var(--muted); margin-top: 2px; }
.empty-note { background: var(--stucco); padding: 48px 32px; border-radius: 3px; max-width: 720px; }
.empty-note p { margin: 10px 0 22px; }
.gallery-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.gallery-cta p { font-size: 19px; font-weight: 600; }
.more-cats { background: var(--stucco); }
.more-cats .cat-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }

/* Tile: a button that opens the lightbox */
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; border-radius: 3px; background: var(--stucco); color: inherit; font: inherit;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.tile .badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,22,24,.78); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 3px;
}
.tile .badge svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }

/* Featured work on the home page */

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(16,17,18,.96); color: #fff;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
  overscroll-behavior: contain;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }
.lb-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: calc(64px + env(safe-area-inset-top)) 72px 8px; min-height: 0; touch-action: none; overflow: hidden;
}
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px;
}
.lb-stage img { cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox.zoomed .lb-stage img { cursor: grab; }
.lb-zin { top: calc(10px + env(safe-area-inset-top)); left: 12px; }
.lb-zout { top: calc(10px + env(safe-area-inset-top)); left: 68px; }
.lightbox.is-video .lb-zoom { display: none; }
.lb-bar { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; }
.lb-bar strong { display: block; font-size: 17px; }
.lb-bar span { font-size: 14px; opacity: .7; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.lb-btn:active { transform: scale(0.94); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: calc(10px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(255,255,255,.2); } }

/* ---------- Thank you ---------- */
.thanks { text-align: center; padding: 120px 0; }
.thanks p { margin: 18px auto 30px; max-width: 52ch; }

/* ---------- Call button (phones) ---------- */
.call-float {
  display: none; position: fixed; z-index: 60;
  left: 28px; right: 28px; bottom: calc(10px + env(safe-area-inset-bottom));
  min-height: 44px; align-items: center; justify-content: center; gap: 8px; font-size: 15px;
  background: var(--cedar); color: #fff; font-weight: 700; text-decoration: none; border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform 140ms var(--ease-out);
}
.call-float:active { transform: scale(0.98); }
.call-float svg { width: 17px; height: 17px; }

/* ---------- Tablet ---------- */
/* ---------- Recent work (home): one project at a time, stacked ----------
   The new project slides up on top; the last one sits behind it, blurred. */
.recent { background: var(--stucco); }
.recent-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.stack { position: relative; aspect-ratio: 5 / 4; margin-top: 44px; }
.stack-card {
  position: absolute; inset: 0; padding: 0; border: 0; border-radius: 4px; overflow: hidden;
  background: var(--iron-2); cursor: zoom-in; z-index: 1;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.5);
  /* resting state: far back, out of sight (where old projects go) */
  opacity: 0; visibility: hidden; transform: translateY(-56px) scale(.82); filter: blur(12px);
  transition: transform 700ms var(--ease-out), opacity 500ms var(--ease-out), filter 700ms var(--ease-out), visibility 0s 700ms;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card.is-prev {
  z-index: 2; visibility: visible; opacity: .8;
  transform: translateY(-40px) scale(.9); filter: blur(6px);
  transition: transform 700ms var(--ease-out), opacity 500ms var(--ease-out), filter 700ms var(--ease-out), visibility 0s;
}
.stack-card.is-enter { visibility: visible; opacity: 0; transform: translateY(48px) scale(1.02); filter: none; transition: none; }
.stack-card.is-active {
  z-index: 3; visibility: visible; opacity: 1; transform: none; filter: none;
  transition: transform 700ms var(--ease-out), opacity 350ms var(--ease-out), visibility 0s;
}
.stack-arrow { display: none; }
.recent-texts { display: grid; }
.recent-text {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 0s 250ms;
}
.recent-text.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 450ms var(--ease-out) 150ms, transform 600ms var(--ease-out) 150ms, visibility 0s;
}
.recent-text .kind { color: var(--muted); font-weight: 600; font-size: 15px; }
.recent-text h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; margin: 8px 0 14px; }
.recent-text p { color: var(--muted); max-width: 44ch; }
.recent-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.recent-links a { font-weight: 600; }
.recent-controls { display: flex; align-items: center; gap: 10px; margin-top: 36px; }
.rc-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.rc-btn svg { width: 18px; height: 18px; }
.rc-btn:active { transform: scale(0.94); }
.rc-pause { margin-left: 8px; }
.rc-pause .i-play, .rc-pause[aria-pressed="true"] .i-pause { display: none; }
.rc-pause[aria-pressed="true"] .i-play { display: block; }
.rc-count { min-width: 52px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .rc-btn:hover { background: var(--ink); color: var(--paper); } }

/* ---------- How a job goes (home): 4 steps, one job from frame to finished ---------- */
.process { background: var(--stucco); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 48px; line-height: 1; }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step img, .step-call { margin-top: 20px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.step-call { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; background: var(--iron) center / cover; color: #fff; }
.step-call small { font-size: 15px; opacity: .75; }
.step-call a {
  color: #fff; text-decoration: none; line-height: 1.1;
  font-variation-settings: "wdth" 100; font-weight: 800; white-space: nowrap;
  font-size: min(28px, calc(100cqw / 8.4));
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
  .service-list { grid-template-columns: 1fr; gap: 44px; }
  .service { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
  .service h3 { margin-top: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text { padding: 64px 20px; }
  .about-img { min-height: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  /* Steps become a timeline: number on the left, a line joining them */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; border-top: 0; padding: 0 0 36px; position: relative; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; border-left: 2px solid var(--ink); opacity: .25; }
  .step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 19px; }
  .step h3 { margin: 7px 0 6px; }
  .step img { aspect-ratio: 4 / 3; margin-top: 16px; }
  .step-call { aspect-ratio: 4 / 3; margin-top: 16px; padding: 18px 20px; }
  .recent-grid { grid-template-columns: 1fr; gap: 28px; }
  .stack { aspect-ratio: 1; margin-top: 34px; }
  .stack-card.is-prev { transform: translateY(-30px) scale(.9); }
  .recent-controls { margin-top: 20px; }
  .recent-controls [data-dir] { display: none; }
  .stack-arrow {
    display: grid; place-items: center; position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform 140ms var(--ease-out);
  }
  .stack-arrow svg { width: 20px; height: 20px; }
  .stack-arrow:active { transform: scale(0.92); }
  .stack-arrow.prev { left: 10px; }
  .stack-arrow.next { right: 10px; }
  section { padding: 64px 0; }
  /* Menu button and dropdown nav: the full menu bar stays in one row down to 761px wide */
  .menu-btn { display: grid; order: 2; }
  .site-header .wrap { gap: 12px; }
  .lang-btn { order: 1; margin-left: auto; }
  .nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--iron); padding: 8px 20px 20px;
    border-top: 1px solid var(--iron-line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
  .nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--iron-line); }
  .nav a.active { border-color: var(--iron-line); color: var(--cedar-light); }
  .nav .btn { margin-top: 16px; min-height: 50px; display: flex; border-bottom: 0; }
  .hero p { font-size: 18px; }
  .service { grid-template-columns: 1fr; }
  .stats .wrap { gap: 12px; }
  .stat span { font-size: 14px; }
  .cat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .cat.big { grid-column: span 2; grid-row: span 1; }
  .cat .cat-text { padding: 14px 16px; }
  .cat p { display: none; }
  .more-cats .cat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .projects { gap: 28px 12px; }
  .project h2 { font-size: 16px; }
  .project p { display: none; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-stage { padding: calc(64px + env(safe-area-inset-top)) 0 8px; }
  .lb-prev, .lb-next { display: none; }
  .call-float { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Very small phones (320px): tighten the language oval and the name so they fit on one line */
@media (max-width: 340px) {
  .lang-btn > span { min-width: 34px; padding: 0 8px; }
  .brand small { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card, .stack-card.is-prev, .stack-card.is-enter, .recent-text { transform: none !important; filter: none !important; }
  .stack-card.is-prev { opacity: 0; }
  html { scroll-behavior: auto; }
  .hero-in { animation: fade 300ms ease both; }
  .cat img, .tile img, .lb-stage video, .nav { transform: none !important; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Privacy page ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-page .wrap > * { max-width: 68ch; }
.legal-page .updated { color: var(--muted); margin-top: 8px; }
.legal-page h2 { font-size: 22px; margin: 36px 0 8px; }
.legal-page p { margin-top: 12px; }
