/* RAMK Company — cinematic dark theme (inspired by retromedia.com) */
:root {
  --bg: #000;
  --bg-2: #0b0b0b;
  --card: #171717;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f5f3;
  --muted: #a6a6a2;
  --dim: #6f6f6c;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: clamp(18px, 5vw, 100px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--text); color: var(--bg); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding-block: clamp(90px, 12vw, 170px); }
.skip { position: fixed; inset-inline-start: 8px; top: 8px; z-index: 300; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 99px; transform: translateY(-150%); transition: transform .3s; }
.skip:focus { transform: none; }

/* ---------- type ---------- */
.h2 { font-weight: 400; font-size: clamp(36px, 5vw, 68px); line-height: 1.04; text-transform: uppercase; letter-spacing: -0.005em; }
.h2 em { font-size: 1.1em; }
.h2--sm { font-size: clamp(30px, 4vw, 54px); }
.lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; margin-bottom: 18px; }
.sub { font-size: clamp(16px, 1.5vw, 20px); margin-top: 18px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); justify-self: start;
}
.text-link { display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s; }
.text-link:hover { border-color: var(--text); }

/* ---------- pills & arrows ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.pill--light { background: var(--text); color: var(--bg); }
.pill--light:hover { background: #fff; transform: translateY(-2px); }
.pill--ghost { border: 1px solid rgba(255, 255, 255, 0.4); }
.pill--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.08); }
.section-pill { margin-top: clamp(56px, 7vw, 90px); }

.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 22px; line-height: 1; display: grid; place-items: center; padding-bottom: 3px;
  transition: background .3s, color .3s, border-color .3s;
}
.arrow:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  animation: curtain 1s var(--ease-in-out) 1.5s forwards;
}
.intro img { height: 74px; width: auto; animation: rise .9s var(--ease) .1s both; }
.intro-word { font-size: 46px; font-weight: 600; letter-spacing: 0.08em; animation: rise .9s var(--ease) .3s both; }
.no-intro .intro { display: none; }
@keyframes curtain { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

/* ---------- cursor bubble ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--text); color: var(--bg); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .35s var(--ease);
}
.cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; gap: 18px;
  padding: 22px var(--gutter); transition: background .4s, padding .4s;
}
.header.is-scrolled { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.header.menu-open { background: transparent; backdrop-filter: none; }
.brand { margin-right: auto; }
.brand img { height: 32px; width: auto; }
.menu-btn { width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease); }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-2);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: 110px var(--gutter) 40px; overflow-y: auto;
  animation: menuIn .7s var(--ease-in-out);
}
.menu[hidden] { display: none; }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu-nav { display: grid; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 2px; white-space: nowrap;
  font-size: clamp(26px, min(5.6vw, 6.6vh), 72px); line-height: 1.06; text-transform: uppercase; font-weight: 400;
  color: var(--muted); transition: color .3s, padding .4s var(--ease);
  animation: rise .8s var(--ease) both;
}
.menu-nav a:hover { color: var(--text); padding-inline-start: 14px; }
.menu-nav a:nth-child(1) { animation-delay: .15s; } .menu-nav a:nth-child(2) { animation-delay: .2s; }
.menu-nav a:nth-child(3) { animation-delay: .25s; } .menu-nav a:nth-child(4) { animation-delay: .3s; }
.menu-nav a:nth-child(5) { animation-delay: .35s; } .menu-nav a:nth-child(6) { animation-delay: .4s; }
.menu-nav a:nth-child(7) { animation-delay: .45s; } .menu-nav a:nth-child(8) { animation-delay: .5s; } .menu-nav a:nth-child(9) { animation-delay: .55s; }
.menu-nav small { font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.menu-side { display: grid; gap: 18px; color: var(--muted); font-size: 15px; justify-items: start; animation: rise .8s var(--ease) .45s both; }
.menu-side strong { color: var(--text); font-weight: 500; }
.menu-side a:hover { color: var(--text); }
.menu-label { text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--dim); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7.5s linear; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { transform: scale(1.02); }
.hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.92) 100%); }
.hero-content { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
.hero-texts { display: grid; width: 100%; }
.hero-text { grid-area: 1 / 1; pointer-events: none; }
.hero-title { font-weight: 400; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; font-size: clamp(48px, 8.4vw, 128px); }
.hero-title em { font-size: 1.08em; }
.ln { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-text.is-active .ln > span { transform: none; }
.hero-text.is-active .ln:nth-child(2) > span { transition-delay: .12s; }
.hero-text:not(.is-active) .ln > span { transform: translateY(-105%); transition-duration: .6s; transition-timing-function: var(--ease-in-out); }
.hero-sub { margin-top: 22px; font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.82); opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-text.is-active .hero-sub { opacity: 1; transform: none; transition-delay: .35s; }
.hero-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.hero-actions .pill { padding: 12px 20px; }
.hero-actions .pill span { font-size: 16px; }
.hero-work-link { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: color .3s; }
.hero-work-link:hover { color: var(--accent); }

.hero-bar {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding-block: 0 34px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-project { display: flex; gap: 22px; align-items: baseline; }
.hero-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-count b { color: var(--text); font-weight: 500; }
.hero-name { font-weight: 500; }
.hero-progress { height: 1px; background: rgba(255,255,255,.22); overflow: hidden; }
.hero-progress span { display: block; height: 100%; width: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }
.hero-progress span.run { animation: progress var(--slide-ms, 6500ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 10px; }

/* ---------- about / backbone ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.split--head { margin-bottom: clamp(44px, 6vw, 80px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  background: var(--card); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; justify-content: space-between;
  min-height: 180px; transition: background .4s;
}
.stat:hover { background: #202020; }
.stat strong { font-weight: 400; font-size: clamp(54px, 5.6vw, 80px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.mv-card { border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 18px; align-content: start; }
.mv-card p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }

/* ---------- collage ---------- */
.collage { padding-block: clamp(20px, 6vw, 80px); overflow: hidden; }
.collage-stage { position: relative; height: clamp(520px, 66vw, 860px); width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; }
.collage .c { position: absolute; object-fit: cover; will-change: transform; box-shadow: 0 40px 90px rgba(0,0,0,.65); filter: brightness(.8); }
.c1 { width: 30%; aspect-ratio: 4/3; left: 4%; top: 18%; --r: rotateY(16deg) rotateZ(-2deg); object-position: 30% 50%; }
.c2 { width: 30%; aspect-ratio: 3/4; left: 35%; top: 3%; z-index: 2; --r: rotateY(-4deg); }
.c3 { width: 14%; aspect-ratio: 1/2; left: 71%; top: 6%; --r: rotateY(-18deg) rotateZ(3deg); object-position: 50% 70%; }
.c4 { width: 33%; aspect-ratio: 16/9; left: 60%; top: 60%; z-index: 3; --r: rotateY(-12deg) rotateX(4deg); }
.c5 { width: 30%; aspect-ratio: 3/1; left: 6%; top: 68%; --r: rotateY(14deg) rotateZ(2deg); object-position: 0% 72%; }
.collage .c { transform: translate3d(0, var(--py, 0px), 0) perspective(1200px) var(--r); }
.collage-title {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 4; pointer-events: none;
  font-size: clamp(44px, 7.2vw, 108px); font-weight: 400; text-transform: uppercase; line-height: 1;
  text-shadow: 0 4px 50px rgba(0,0,0,.8);
}

/* ---------- services ---------- */
#services { position: relative; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 70px 1.1fr 1fr 40px; gap: 24px; align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); cursor: default;
  transition: padding .5s var(--ease), color .4s;
}
.service-no { font-size: 13px; color: var(--dim); letter-spacing: 0.1em; }
.service h3 { font-weight: 400; font-size: clamp(22px, 2.5vw, 34px); text-transform: uppercase; line-height: 1.1; }
.service p { color: var(--muted); max-width: 420px; }
.service-arrow { font-size: 22px; color: var(--dim); transition: transform .5s var(--ease), color .3s; justify-self: end; }
.services:hover .service { color: var(--dim); }
.services:hover .service:hover { color: var(--text); padding-inline: 14px; }
.service:hover .service-arrow { transform: rotate(45deg); color: var(--text); }
.service-preview {
  position: fixed; left: 0; top: 0; z-index: 5; width: 300px; aspect-ratio: 4/3; object-fit: cover; pointer-events: none;
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(.85) rotate(-3deg);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.service-preview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1) rotate(-3deg); }

/* ---------- projects ---------- */
.carousel-arrows { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.carousel {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 46px var(--gutter) 56px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.project { flex: 0 0 min(80vw, 600px); scroll-snap-align: center; text-align: left; display: grid; gap: 14px; }
.project-img { overflow: hidden; display: block; }
.project img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 1s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project-meta { display: grid; gap: 2px; }
.project-meta strong { font-weight: 400; font-size: 19px; }
.project-meta small { color: var(--muted); font-size: 13px; }

/* ---------- showcase ---------- */
.showcase .muted { font-size: 16px; }
.show { position: relative; height: min(84vh, 760px); min-height: 440px; overflow: hidden; }
.show-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.show-slide.is-active { opacity: 1; }
.show-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.show-slide.is-active img { transform: scale(1); }
.show::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.15), rgba(0,0,0,.65)); pointer-events: none; }
.show-ui { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.show-nav { font-size: 40px; width: 60px; height: 60px; display: grid; place-items: center; opacity: .75; transition: opacity .3s, transform .3s; }
.show-nav:hover { opacity: 1; transform: scale(1.15); }
.show-center { display: grid; justify-items: center; gap: 28px; }
.show-title { font-size: clamp(20px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
.show-open { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.show-open span { width: 14px; height: 14px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease); }
.show-open:hover { transform: scale(1.12); background: rgba(255,255,255,.1); }
.show-open:hover span { transform: scale(1.4); }

/* ---------- partners ---------- */
.partner-row { display: flex; justify-content: center; align-items: center; gap: clamp(50px, 12vw, 160px); flex-wrap: wrap; margin: clamp(50px, 7vw, 90px) 0; }
.partner-row img { height: clamp(56px, 6.5vw, 86px); width: auto; opacity: .85; transition: opacity .4s, transform .4s var(--ease); }
.partner-row img:hover { opacity: 1; transform: scale(1.05); }
.partner-row .logo-square { height: clamp(100px, 11vw, 150px); }

/* ---------- vision statement ---------- */
.statement { text-align: center; display: grid; justify-items: center; gap: 30px; border-top: 1px solid var(--line); }
.statement-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; filter: grayscale(1); }
.statement-text { max-width: 860px; font-size: clamp(19px, 2vw, 26px); line-height: 1.55; font-weight: 300; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.member { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--card); }
.member img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter .7s var(--ease), transform .9s var(--ease); }
.member:hover img { filter: grayscale(0); transform: scale(1.05); }
.member::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88), rgba(0,0,0,0) 48%); }
.member-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; display: grid; gap: 3px; }
.member-info strong { font-weight: 500; font-size: 16px; line-height: 1.25; }
.member-info small { color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.join {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 14px; padding: 26px 30px; border: 1px solid var(--line); font-size: 17px; color: var(--muted); transition: background .4s;
}
.join strong { color: var(--text); font-weight: 500; }
.join:hover { background: var(--card); }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-note { margin-top: 24px; max-width: 360px; }
.form { display: grid; gap: 26px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form label { display: grid; gap: 4px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.form input, .form select, .form textarea {
  font: 400 16px/1.5 var(--sans); color: var(--text); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.55); border-radius: 0; padding: 8px 0; transition: border-color .3s;
}
.form select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f5f5f3' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.form select option { background: var(--card); }
.form textarea { resize: vertical; min-height: 90px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: #fff; border-bottom-width: 2px; }
.form [aria-invalid="true"] { border-bottom-color: #ff7b72; }
.form-error { color: #ff7b72; font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.footer { padding-top: 70px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.3fr 1fr; gap: 40px; padding-bottom: 46px; font-size: 15px; }
.footer-about { max-width: 330px; font-size: 14px; }
.footer-nav { display: grid; gap: 4px; align-content: start; }
.footer-nav a { font-size: 19px; text-transform: uppercase; transition: color .3s; }
.footer-nav a:hover { color: var(--muted); }
.footer-addr, .footer-phones { display: grid; gap: 4px; align-content: start; text-transform: uppercase; color: var(--muted); }
.footer-addr strong { color: var(--text); font-weight: 600; }
.footer-phones { justify-items: end; text-transform: none; }
.footer-phones a:hover, .footer-base a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.5);
  padding-block: 22px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
}
.footer-word {
  font-size: clamp(90px, 27vw, 420px); font-weight: 600; line-height: .78; letter-spacing: -0.03em; text-align: center;
  color: #141414; user-select: none; margin-bottom: -0.06em;
}

/* ---------- lightbox ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .45s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.dialog-close {
  position: fixed; top: 18px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; z-index: 2;
  border: 1px solid rgba(255,255,255,.35); font-size: 26px; line-height: 1; display: grid; place-items: center; background: rgba(0,0,0,.5);
}
.dialog-close:hover { background: var(--text); color: var(--bg); }
.lightbox { width: min(92vw, 1400px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox p { text-align: center; margin-top: 16px; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .team { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-phones { justify-items: start; }
}
@media (max-width: 860px) {
  .split, .contact-grid, .mv, .menu { grid-template-columns: 1fr; }
  .menu { align-items: start; align-content: space-between; }
  .service { grid-template-columns: 44px 1fr 28px; }
  .service p { grid-column: 2; grid-row: 2; }
  .service-arrow { grid-column: 3; grid-row: 1; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(42px, 13vw, 58px); line-height: .98; }
  .hero-title .ln { display: block; width: max-content; max-width: 100%; }
  .hero-actions { gap: 16px; margin-top: 22px; }
  .hero-actions .pill { padding: 10px 15px; font-size: 11px; }
  .hero-work-link { font-size: 10px; letter-spacing: .08em; }
  .hero-bar { grid-template-columns: 1fr auto; }
  .hero-progress { display: none; }
  .hero-project { flex-direction: column; gap: 4px; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 26px; }
  .team { grid-template-columns: 1fr 1fr; }
  .member-info { padding: 12px; }
  .member-info strong { font-size: 14px; }
  .member-info small { font-size: 9.5px; letter-spacing: 0.05em; }
  .form .row { grid-template-columns: 1fr; }
  .collage-stage { height: 125vw; }
  .c1 { width: 52%; left: 0; top: 8%; } .c2 { width: 44%; left: 50%; top: 0; } .c3 { width: 30%; left: 66%; top: 46%; }
  .c4 { width: 62%; left: 6%; top: 70%; } .c5 { width: 38%; left: 2%; top: 44%; }
  .show { height: auto; min-height: 0; aspect-ratio: 4/5; }
  .show-nav { font-size: 32px; width: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (hover: none) { .cursor, .service-preview { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .intro { display: none; }
}

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 22px 30px; background: var(--card); display: grid; gap: 12px; align-content: start; min-height: 250px; transition: background .4s, transform .5s var(--ease); }
.step:hover { background: #202020; transform: translateY(-6px); }
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
[dir="rtl"] .step::before { transform-origin: right; }
.step:hover::before { transform: scaleX(1); }
.step-no { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; color: var(--muted); }
.step h3 { font-weight: 400; font-size: 20px; text-transform: uppercase; margin-top: auto; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step h3 { margin-top: 0; } }

/* ---------- location card ---------- */
.location {
  position: relative; display: grid; gap: 4px; margin-top: 36px; max-width: 420px; padding: 28px 28px 26px;
  border: 1px solid var(--line); overflow: hidden; color: var(--muted); transition: border-color .4s, background .4s;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.location:hover { border-color: rgba(255,255,255,.4); background-color: var(--bg-2); }
.location strong { color: var(--text); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1.2; }
.location-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.location-link { margin-top: 18px; justify-self: start; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: 99px; }
.location-pin { position: absolute; inset-inline-end: 28px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.location-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--text); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); box-shadow: 0 12px 30px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- language switcher ---------- */
/* Hidden until the Kurdish & Arabic texts are approved — delete this rule to switch it on. */
.lang { display: none !important; }
.lang { display: flex; gap: 4px; }
.lang button { font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 99px; color: var(--muted); transition: color .3s, background .3s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); background: rgba(255,255,255,.12); }
.menu-side .lang { margin-bottom: 8px; }
@media (max-width: 640px) { .header-lang { display: none !important; } }

/* ---------- right-to-left (Kurdish / Arabic) ---------- */
[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--sans); }
[dir="rtl"] em { font-family: "Noto Naskh Arabic", var(--serif); font-style: normal; font-weight: 600; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .hero-title, [dir="rtl"] .h2, [dir="rtl"] .contact-title, [dir="rtl"] .collage-title, [dir="rtl"] .menu-nav a { line-height: 1.3; }
[dir="rtl"] .ln { padding-block: .12em; margin-block: -.12em; }
[dir="rtl"] .hero-progress span { transform-origin: right; }
[dir="rtl"] .arrow, [dir="rtl"] .show-nav { scale: -1 1; }
[dir="rtl"] .service-arrow { scale: -1 1; }
[dir="rtl"] .form select { background-position: left 4px center; }
[dir="rtl"] .footer-word, [dir="rtl"] .intro-word { font-family: var(--sans); }

/* =====================================================================
   Additions inspired by bestvetgroup.com — eyebrows, badges, thumbnails,
   CEO words, why-us, news, CTA banner, social links
   ===================================================================== */
:root { --accent: #c9a26b; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow--center { justify-content: center; }

/* about badges */
.badges { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 13px; color: var(--text);
}
.badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* hero thumbnails */
.hero-thumbs { position: relative; display: flex; gap: 12px; padding-bottom: 22px; }
.hero-thumb {
  position: relative; width: 170px; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; text-align: start;
  opacity: .55; outline: 1px solid rgba(255,255,255,.25); outline-offset: -1px; transition: opacity .4s, outline-color .4s, transform .4s var(--ease);
}
.hero-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 65%); }
.hero-thumb span { position: absolute; inset-inline: 10px; bottom: 8px; z-index: 1; font-size: 11.5px; font-weight: 500; line-height: 1.3; }
.hero-thumb:hover { opacity: .9; transform: translateY(-3px); }
.hero-thumb.is-active { opacity: 1; outline: 2px solid var(--accent); }
@media (max-width: 1024px) { .hero-thumbs { display: none; } }

/* why RAMK */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.why-item { padding: 34px 26px 10px 0; display: grid; gap: 12px; align-content: start; border-inline-end: 1px solid var(--line); padding-inline-start: 26px; }
.why-item:first-child { padding-inline-start: 0; }
.why-item:last-child { border-inline-end: 0; }
.why-no { color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.why-item h3 { font-weight: 400; font-size: 21px; text-transform: uppercase; line-height: 1.2; }
.why-item p { color: var(--muted); font-size: 15px; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } .why-item { border: 0; padding-inline: 0 20px; border-bottom: 1px solid var(--line); padding-bottom: 28px; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* CEO words */
.ceo { background: var(--bg-2); border-block: 1px solid var(--line); }
.ceo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.ceo-quote {
  margin: 30px 0 22px; padding-inline-start: 26px; border-inline-start: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3;
}
.ceo-sign { display: grid; gap: 2px; margin-top: 26px; }
.ceo-sign strong { font-weight: 500; font-size: 18px; }
.ceo-sign span { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ceo-photo { margin: 0; position: relative; }
.ceo-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--accent); opacity: .5; }
[dir="rtl"] .ceo-photo::before { inset: 22px 22px -22px -22px; }
.ceo-photo img, .ceo-photo .statement-img { position: relative; width: 100%; height: auto; border-radius: 0; aspect-ratio: 4/5; object-fit: cover; object-position: top; filter: grayscale(.25); }
@media (max-width: 860px) { .ceo-grid { grid-template-columns: 1fr; } .ceo-photo { max-width: 420px; } }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: grid; gap: 14px; text-align: start; align-content: start; }
.news-img { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--card); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-meta { display: grid; gap: 6px; }
.news-meta small { color: var(--accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.news-meta strong { font-weight: 400; font-size: 20px; line-height: 1.3; }
.news-excerpt { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.lightbox-text { max-width: 760px; margin: 14px auto 0; text-align: center; color: var(--muted); line-height: 1.7; white-space: pre-line; }

/* CTA banner */
.cta {
  position: relative; overflow: hidden; padding-block: clamp(90px, 13vw, 170px); text-align: center;
  background: #0b0b0b center / cover no-repeat;
}
.cta-inner { display: grid; justify-items: center; gap: 4px; }
.cta .h2 { font-size: clamp(42px, 7vw, 100px); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta-actions .pill { padding: 12px 22px; }

/* social links */
.social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.social:empty { display: none; }
.menu-side .social a { color: var(--muted); }
.menu-side .social a:hover { color: var(--text); }

/* editor preview: show everything immediately */
.embed .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.embed { scroll-behavior: auto; }

/* ---------- engineering tool ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.tool-text { margin-top: 22px; max-width: 480px; }
.tool-btn { margin-top: 30px; padding: 12px 22px; }
.tool-preview { position: relative; display: block; padding: 40px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .4s, transform .6s var(--ease); }
.tool-preview:hover { border-color: rgba(255,255,255,.4); transform: translateY(-4px); }
.tool-preview svg { width: 100%; height: auto; display: block; }
.tool-status { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(76,195,138,.15); color: #4cc38a; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- menu as a side panel (page stays visible behind) ---------- */
.menu {
  inset: 0 0 0 auto; width: min(480px, 100vw);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 104px 44px 36px; background: #0d0d0d; border-inline-start: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55);
  animation: drawerIn .55s var(--ease);
}
[dir="rtl"] .menu { inset: 0 auto 0 0; }
@keyframes drawerIn { from { transform: translateX(100%); } }
[dir="rtl"] .menu { animation-name: drawerInRtl; }
@keyframes drawerInRtl { from { transform: translateX(-100%); } }
.menu-nav a { font-size: clamp(22px, min(3.4vw, 4.6vh), 36px); line-height: 1.15; padding-block: 5px; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.menu-nav a:hover { padding-inline-start: 10px; }
.menu-nav small { font-size: 11px; min-width: 18px; }
.menu-side { gap: 12px; font-size: 14px; }
.header.menu-open .brand { opacity: .35; transition: opacity .3s; }
@media (max-width: 860px) { .menu { align-items: stretch; } }
@media (max-width: 520px) { .menu { padding: 92px 24px 28px; } }

/* ---------- side panel, Retromedia style: white panel, page fully visible ---------- */
.menu {
  width: clamp(340px, 32vw, 600px); background: #fff; color: #111; border: 0; box-shadow: none;
  justify-content: center; gap: 56px; padding: 110px clamp(28px, 2.6vw, 44px) 40px;
}
.menu-nav a { color: #111; border-bottom: 0; font-size: clamp(24px, min(3.2vw, 5.6vh), 52px); line-height: 1.12; padding-block: 2px; }
.menu-nav a:hover, .menu-nav a.is-current { color: #b0472b; }
.menu-nav small { display: none; }
.menu-side { color: #333; font-size: 14px; text-transform: uppercase; }
.menu-side strong { color: #111; font-weight: 700; }
.menu-side a:hover { color: #b0472b; }
.menu-label { color: #111; font-weight: 700; letter-spacing: 0; font-size: 18px; }
.menu-side .pill--light { background: #111; color: #fff; }
.menu-side .social a { color: #333; text-transform: none; }
.header.menu-open .brand { opacity: 1; }
.header.menu-open .menu-btn span { background: #111; }
.header.menu-open .header-cta { background: #111; color: #fff; }
@media (max-width: 640px) { .menu { width: 100vw; } }
.menu { align-items: stretch; }
.menu-side { justify-items: start; }
.menu:focus { outline: none; }
@media (max-width: 640px) {
  .header.menu-open { background: #fff; }
  .header.menu-open .brand img { filter: invert(1); }
}

/* =====================================================================
   Inner pages (about / services / projects / team) — Retromedia style
   ===================================================================== */
.page-top { padding-top: clamp(110px, 12vw, 160px); padding-bottom: clamp(60px, 8vw, 110px); }
.page-title { font-size: clamp(42px, 6vw, 88px); }
.page-sub { max-width: 760px; margin-inline: auto; }
.page-intro { margin: clamp(40px, 6vw, 80px) 0; align-items: start; }
.page-photo { margin: 0; overflow: hidden; aspect-ratio: 21/9; background: var(--card); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; }

/* vision & mission cards: white + grey like Retromedia */
.mv--split { grid-template-columns: 1fr 1.3fr; margin-top: 16px; }
.mv-card--light { background: #f4f2ee; color: #111; border: 0; }
.mv-card--grey { background: #3c3c3a; border: 0; }
.mv-card h2 { font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.mv-card--light p { color: #333; }

/* service tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px; }
.tile { display: grid; gap: 10px; align-content: start; }
.tile-img { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--card); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) grayscale(.3); transition: transform 1s var(--ease), filter .6s; }
.tile:hover .tile-img img { transform: scale(1.06); filter: brightness(.75) grayscale(0); }
.tile-no { position: absolute; top: 14px; inset-inline-start: 16px; font-family: var(--serif); font-style: italic; font-size: 34px; }
.tile-arrow { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 26px; transition: transform .5s var(--ease); }
.tile:hover .tile-arrow { transform: rotate(45deg); }
.tile h3 { font-weight: 400; font-size: 21px; text-transform: uppercase; margin-top: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
@media (max-width: 1024px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }

/* projects page */
.banner { position: relative; height: min(72vh, 680px); min-height: 420px; overflow: hidden; display: flex; align-items: center; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); }
.banner-text { position: relative; }
.banner .h2 { font-size: clamp(36px, 5.4vw, 80px); max-width: 15ch; }
.works-head { display: flex; align-items: baseline; gap: 18px 40px; flex-wrap: wrap; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.filter { font-size: 14px; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { color: var(--text); border-color: var(--text); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 18px; }
.project-card { flex: none; }
.project-card[hidden] { display: none; }
@media (max-width: 1024px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

/* team page */
.team--big { grid-template-columns: repeat(4, 1fr); }
.join-big .h2 { font-size: clamp(30px, 4.4vw, 64px); }
.join-big .text-link { font-size: 18px; text-transform: none; letter-spacing: 0; }
@media (max-width: 1100px) { .team--big { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .team--big { grid-template-columns: 1fr 1fr; } }
.photo-credits { margin-top: 34px; font-size: 11.5px; line-height: 1.7; color: var(--dim); }
.photo-credits a { text-decoration: underline; }
.photo-credits:empty { display: none; }
.tile-img img { filter: brightness(.8); }
.tile:hover .tile-img img { filter: brightness(1); }
