:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --text: #f5f5f5;
  --muted: #a1a1a1;
  --line: rgba(255,255,255,0.14);
  --accent: #d7ff3f;
  --shadow: 0 20px 60px rgba(0,0,0,0.28);
  --radius: 20px;
  --max: 1200px;
  --font-display: 'Eurostile Extended', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Satoshi', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
.form-trap {
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(215,255,63,0.08), transparent 28%),
    var(--bg);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(5,5,5,0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand .accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.lang-switcher {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.lang-toggle {
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.lang-toggle.active,
.lang-toggle:hover {
  background: rgba(215,255,63,0.12);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.lead, .intro, .card p, .timeline p, .page-copy, .contact-card p {
  color: var(--muted);
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  transition: 180ms ease;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #060606;
  border-color: var(--accent);
}

.button--primary:hover {
  background: transparent;
  color: var(--accent);
}

.hero-card,
.panel,
.card,
.contact-card,
.timeline-step,
.project-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.hero-card .grid-mark {
  width: 100%;
  height: 220px;
  border: 1px solid rgba(215,255,63,0.28);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.hero-card .grid-mark::before,
.hero-card .grid-mark::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-card .grid-mark::before {
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.55;
}

.hero-card .grid-mark::after {
  inset: 30px;
  border: 1px solid rgba(215,255,63,0.28);
  transform: rotate(45deg);
}

.section {
  padding: 2.2rem 0 3rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.panel {
  padding: 1.3rem;
}

.panel h3 { margin-bottom: 0.45rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-grid div {
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
}

.stat-grid strong {
  display: block;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cards-grid,
.service-grid,
.timeline-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.service-card,
.timeline-step,
.project-card {
  padding: 1.2rem;
}

.service-card .num,
.timeline-step .num,
.project-card .num {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.contact-lines {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.8rem;
  max-width: 30rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-lines a,
.contact-lines span {
  display: block;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.contact-lines a:hover,
.page-footer a:hover {
  color: var(--accent);
}

.contact-card form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.contact-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.contact-card input,
.contact-card textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.contact-card button {
  border: 0;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #060606;
  cursor: pointer;
  font-weight: 700;
}

.form-status {
  min-height: 1.25rem;
  color: var(--accent);
  margin: 0;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.page-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .cards-grid,
  .service-grid,
  .timeline-grid,
  .contact-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    min-height: auto;
    padding: 0.75rem 0;
  }

  .nav-links {
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
  }

  .btn-row,
  .button,
  .button--primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-header .wrap {
    justify-content: center;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }
}

@media (max-width: 760px) {
  .site-header .wrap {
    justify-content: center;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }
}
/* ===== Responsive behavior update: desktop / laptop / tablet / mobile ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.wrap,
.hero-grid,
.section-grid,
.cards-grid,
.service-grid,
.timeline-grid,
.project-grid,
.contact-grid,
.stat-grid,
.site-header .wrap,
.nav-links,
.btn-row,
.page-footer .wrap {
  min-width: 0;
}

.wrap > *,
.hero-grid > *,
.section-grid > *,
.cards-grid > *,
.service-grid > *,
.timeline-grid > *,
.project-grid > *,
.contact-grid > *,
.stat-grid > *,
.site-header .wrap > *,
.nav-links > *,
.btn-row > *,
.page-footer .wrap > * {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
button,
span,
strong,
label,
input,
textarea {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
.page-copy,
.intro,
.lead,
.contact-card p,
.card p,
.timeline p {
  text-wrap: pretty;
}

.site-header .wrap {
  row-gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.brand img,
.brand .logo-mark {
  flex: 0 0 auto;
}

.nav-links {
  flex: 1 1 auto;
  min-width: min(100%, 22rem);
}

.nav-links a,
.lang-toggle,
.button,
.contact-card button {
  min-height: 44px;
}

.lang-switcher {
  flex: 0 0 auto;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
}

.hero-card {
  min-height: clamp(240px, 32vw, 380px);
}

.hero-card .grid-mark {
  height: clamp(190px, 26vw, 300px);
}

.section-grid,
.contact-grid {
  align-items: stretch;
}

.card,
.service-card,
.timeline-step,
.project-card,
.panel,
.contact-card {
  min-width: 0;
}

.cards-grid,
.service-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

@media (min-width: 1440px) {
  :root {
    --max: 1280px;
  }

  .hero {
    padding-block: 5.5rem 4rem;
  }

  .section {
    padding-block: 3rem 4rem;
  }
}

@media (max-width: 1199px) {
  :root {
    --max: 1080px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 2rem));
  }

  .site-header .wrap {
    min-height: 72px;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding-block: 3.75rem 2.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.86fr);
    gap: 1.5rem;
  }

  h1 {
    font-size: clamp(2.15rem, 4.6vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 3.3vw, 2.25rem);
  }
}

@media (max-width: 1023px) {
  :root {
    --max: 920px;
  }

  .site-header .wrap {
    justify-content: center;
    padding-block: 0.85rem;
  }

  .brand {
    margin-inline: auto;
  }

  .nav-links {
    flex-basis: 100%;
    justify-content: center;
    gap: 0.7rem 1rem;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.35rem;
  }

  .hero-card {
    min-height: 260px;
  }

  .hero-card .grid-mark {
    height: 230px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .site-header {
    position: sticky;
  }

  .site-header .wrap {
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding-block: 0.8rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
    font-size: 0.98rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.5rem;
  }

  .nav-links a,
  .lang-switcher {
    justify-content: center;
    text-align: center;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.2rem;
    font-size: 0.78rem;
  }

  .lang-switcher {
    grid-column: span 3;
    display: flex;
    justify-self: center;
  }

  .lang-toggle {
    padding: 0.48rem 0.72rem;
  }

  .hero {
    padding-block: 2.35rem 1.75rem;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
  }

  .eyebrow {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
  }

  .lead,
  .intro,
  .page-copy,
  .card p,
  .timeline p,
  .contact-card p {
    font-size: 0.98rem;
  }

  .btn-row,
  .button,
  .button--primary,
  .contact-card button {
    width: 100%;
  }

  .button,
  .contact-card button {
    justify-content: center;
  }

  .cards-grid,
  .service-grid,
  .timeline-grid,
  .project-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .card,
  .contact-card,
  .timeline-step,
  .project-card {
    border-radius: calc(var(--radius) * 0.75);
  }

  .hero-card,
  .panel,
  .card,
  .service-card,
  .timeline-step,
  .project-card,
  .contact-card {
    padding: 1rem;
  }

  .hero-card {
    min-height: 220px;
  }

  .hero-card .grid-mark {
    height: 190px;
    border-radius: 12px;
  }

  .section {
    padding-block: 1.75rem 2.35rem;
  }

  .contact-card input,
  .contact-card textarea {
    font-size: 16px;
  }

  .page-footer .wrap {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .wrap {
    width: min(100% - 1rem, var(--max));
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-switcher {
    grid-column: span 2;
  }

  .hero {
    padding-block: 2rem 1.4rem;
  }

  h1 {
    font-size: clamp(1.85rem, 13.5vw, 2.55rem);
  }

  .hero-card .grid-mark::after {
    inset: 24px;
  }

  .stat-grid div {
    padding: 0.85rem;
  }
}

@media (max-width: 359px) {
  .nav-links {
    grid-template-columns: 1fr;
  }

  .lang-switcher {
    grid-column: auto;
  }

  h1 {
    font-size: 1.75rem;
  }
}
/* ===== Responsive QA refinements ===== */
@media (max-width: 760px) {
  .site-header .wrap {
    gap: 0.45rem;
  }

  .brand {
    font-size: 0.94rem;
  }

  .nav-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .nav-links a {
    min-height: 36px;
    font-size: 0.72rem;
  }

  .lang-switcher {
    grid-column: 1 / -1;
  }

  .hero {
    padding-block: 2rem 1.5rem;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1.08;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 1rem, var(--max));
  }

  .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(1.65rem, 8.5vw, 2.1rem);
  }
}
/* ===== Final mobile containment pass ===== */
@media (max-width: 760px) {
  [data-reveal],
  [data-reveal].in,
  [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .site-header .wrap,
  .nav-links,
  .wrap,
  .hero-grid,
  .section-grid,
  .cards-grid,
  .service-grid,
  .timeline-grid,
  .project-grid,
  .contact-grid,
  .stat-grid {
    max-width: 100% !important;
    overflow-x: clip;
  }

  .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .nav-links a {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-switcher {
    grid-column: 1 / -1 !important;
    width: 100%;
    justify-content: center;
  }
}
/* ===== Mobile text measure refinement ===== */
@media (max-width: 760px) {
  .lead,
  .intro,
  .page-copy,
  .card p,
  .timeline p,
  .contact-card p {
    max-width: min(100%, 34rem);
    width: 100%;
  }
}

@media (max-width: 420px) {
  .lead,
  .intro,
  .page-copy,
  .card p,
  .timeline p,
  .contact-card p {
    max-width: 31ch;
  }
}
/* ===== EVO-KET photography and visual asset layer ===== */
.hero-card,
.grid-mark,
.project-card,
.card,
.panel {
  isolation: isolate;
}

.hero-card .grid-mark {
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.06);
}

body[data-page='about'] .hero-card .grid-mark {
  background-image: url('assets/images/workshop-production-floor.webp');
}

body[data-page='services'] .hero-card .grid-mark {
  background-image: url('assets/images/workshop-uv-flatbed.webp');
}

body[data-page='process'] .hero-card .grid-mark,
body[data-page='projects'] .hero-card .grid-mark,
body[data-page='contact'] .hero-card .grid-mark {
  background-image: url('assets/images/workshop-indoor-line.webp');
}

.hero-card .grid-mark::before {
  background-image:
    linear-gradient(rgba(215,255,63,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.58;
  mix-blend-mode: screen;
}

.hero-card .grid-mark::after {
  border-color: rgba(215,255,63,0.48);
  background: rgba(10,10,10,0.08);
}

.project-card {
  overflow: hidden;
}

.project-card::before {
  content: '';
  display: block;
  aspect-ratio: 16 / 9;
  margin: -1.2rem -1.2rem 1.2rem;
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.72);
  border-bottom: 1px solid var(--line);
}

.project-grid .project-card:nth-child(1)::before {
  background-image: url('assets/images/workshop-production-floor.webp');
}

.project-grid .project-card:nth-child(2)::before {
  background-image: url('assets/images/workshop-uv-flatbed.webp');
}

.project-grid .project-card:nth-child(3)::before,
.project-grid .project-card:nth-child(4)::before {
  background-image: url('assets/images/workshop-indoor-line.webp');
}

@media (max-width: 767px) {
  .project-card::before {
    margin: -1rem -1rem 1rem;
  }
}
/* ===== Reveal safety for photography-heavy pages ===== */
[data-reveal],
[data-reveal].in,
[data-reveal].is-visible {
  opacity: 1 !important;
  transform: none !important;
}
/* ===== Process language alignment ===== */
html[dir="ltr"] body[data-page="process"] .hero,
html[dir="ltr"] body[data-page="process"] .timeline-step,
html[dir="ltr"] body[data-page="process"] .timeline-step h3,
html[dir="ltr"] body[data-page="process"] .timeline-step p,
html[dir="ltr"] body[data-page="process"] .timeline-step .num {
  direction: ltr;
  text-align: left;
  justify-items: start;
}

html[dir="rtl"] body[data-page="process"] .hero,
html[dir="rtl"] body[data-page="process"] .timeline-step,
html[dir="rtl"] body[data-page="process"] .timeline-step h3,
html[dir="rtl"] body[data-page="process"] .timeline-step p,
html[dir="rtl"] body[data-page="process"] .timeline-step .num {
  direction: rtl;
  text-align: right;
  justify-items: end;
}

html[dir="rtl"] body[data-page="process"] .timeline-grid {
  direction: rtl;
}

html[dir="ltr"] body[data-page="process"] .timeline-grid {
  direction: ltr;
}

/* ===== Phone polish: compact header, safer typography, no horizontal drift ===== */
@media (max-width: 640px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header { position: sticky; top: 0; }
  .site-header .wrap { width: min(100% - 24px, var(--max)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; justify-items: stretch; padding-block: .65rem; }
  .brand { width: auto; justify-content: flex-start; min-width: 0; font-size: .92rem; }
  .brand-mark { width: 22px; height: 22px; }
  .nav-links { display: none !important; }
  .lang-switcher { grid-column: 2; width: auto; justify-content: flex-end; gap: 6px; }
  .lang-toggle { width: 40px; height: 40px; padding: 0; font-size: 11px; }
  .hero { padding-block: 2rem 1.5rem; }
  h1 { font-size: clamp(2.05rem, 13.5vw, 3.35rem); line-height: 1.02; }
  h2 { font-size: clamp(1.6rem, 9vw, 2.35rem); line-height: 1.06; }
  h1, h2, h3, .brand, .card h3, .timeline-step h3 { max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .section { padding-block: 2.15rem; }
  .hero-layout, .section-grid, .cards-grid, .service-grid, .timeline-grid, .project-grid, .contact-grid, .stat-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .hero-card, .panel, .card, .service-card, .timeline-step, .project-card, .contact-card { padding: 1rem; min-height: auto; }
  .hero-card .grid-mark { min-height: 210px; }
  .card p, .timeline p, .intro, .lead, .page-copy { max-width: 100%; }
}
@media (max-width: 380px) {
  .site-header .wrap { width: min(100% - 18px, var(--max)); }
  .lang-toggle { width: 36px; height: 36px; }
  h1 { font-size: clamp(1.85rem, 12.5vw, 2.65rem); }
}

/* ===== Phone visual containment for project media ===== */
@media (max-width: 640px) {
  .project-visual,
  .project-card::before,
  .hero-visual-frame,
  .photo-block {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .project-visual svg,
  .hero-visual svg {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }
  html[dir="rtl"] .project-visual,
  html[dir="rtl"] .project-visual svg {
    transform: none !important;
  }
}

/* ===== Phone width clamp for text panels ===== */
@media (max-width: 640px) {
  .section-head > *,
  .services-head > *,
  .contact-panel,
  .contact-form,
  .footer-lead,
  .footer-contact,
  .contact-lead,
  .contact-big {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .contact-big {
    font-size: clamp(2.05rem, 12vw, 3rem) !important;
    line-height: 1.02 !important;
  }
  .contact-lead,
  .services-intro {
    overflow-wrap: anywhere;
  }
}



/* skip link — hidden with the standard visually-hidden pattern so it never
   sits off-canvas in either writing direction, then shown on focus */
.skip-link{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;width:auto;height:auto;margin:0;overflow:visible;
clip:auto;clip-path:none;inset-block-start:8px;inset-inline-start:12px;z-index:9999;
background:#F5C518;color:#0A0A0A;padding:12px 20px;border-radius:6px;
font-weight:700;text-decoration:none}
