:root {
  --bg: #0e0e0d;
  --bg-2: #161614;
  --bg-card: #141412;
  --ink: #f2eee8;
  --muted: #9a958c;
  --line: rgba(242, 238, 232, .14);
  --accent: #c8b28f;
  --serif: "Jost", system-ui, sans-serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(20px, 5vw, 80px);
}

[data-theme="light"] {
  --bg: #f8f6f2;
  --bg-2: #ffffff;
  --bg-card: #ffffff;
  --ink: #181715;
  --muted: #6e6a63;
  --line: rgba(24, 23, 21, .12);
  --accent: #a37c4d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.6; overflow-x: hidden; transition: background-color .4s ease, color .4s ease; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--accent); }

h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.15; font-weight: 300; letter-spacing: -.02em; }

.section { padding: clamp(64px, 9vw, 110px) var(--pad); }
.section__label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section__label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; transition: background .4s, color .4s, border-color .4s; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); }
.btn--line { border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.link-arrow { display: inline-block; margin-top: 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 6px; }
.link-arrow::after { content: " →"; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px var(--pad); transition: background .4s, padding .4s, box-shadow .4s; }
.nav.is-scrolled { background: rgba(14, 14, 13, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav__logo img { height: 32px; width: auto; filter: invert(1); transition: filter .3s; }
.nav__links { display: flex; gap: clamp(14px, 1.8vw, 28px); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; align-items: center; }
.nav__links a { position: relative; white-space: nowrap; color: #ffffff; transition: color .3s; }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__end { display: flex; align-items: center; gap: 14px; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.nav__cta-wrap { display: flex; align-items: center; gap: 10px; }
.nav__cta { padding: 10px 18px; font-size: 12px; white-space: nowrap; }

.nav__lang,
.nav__theme-toggle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(14, 14, 13, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all .25s var(--ease);
}
.nav__theme-toggle { font-size: 14px; }
.nav.is-scrolled .nav__lang,
.nav.is-scrolled .nav__theme-toggle {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.nav__lang:hover,
.nav__theme-toggle:hover {
  background: var(--accent);
  color: #0e0e0d;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.nav__lang:focus-visible,
.nav__theme-toggle:focus-visible,
.nav__burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: inline-block; }
:root:not([data-theme="light"]) .theme-icon-light { display: inline-block; }
:root:not([data-theme="light"]) .theme-icon-dark { display: none; }

.nav__burger { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(14, 14, 13, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; z-index: 60; cursor: pointer; padding: 0; transition: all .3s; }
.nav.is-scrolled .nav__burger { background: transparent; border-color: var(--line); }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: #ffffff; transition: transform .35s var(--ease), top .35s var(--ease), background .3s; }
.nav.is-scrolled .nav__burger span { background: var(--ink); }
.nav__burger span:first-child { top: 12px; }
.nav__burger span:last-child { top: 20px; }
body.menu-open .nav__burger { border-color: var(--line); background: transparent; }
body.menu-open .nav__burger span { background: var(--ink) !important; }
body.menu-open .nav__burger span:first-child { top: 16px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 16px; transform: rotate(-45deg); }

/* Menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(76px + clamp(18px, 3vh, 36px)) var(--pad) clamp(24px, 4vh, 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__nav {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.menu a {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.5vw, 22px);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 500;
  color: var(--ink);
  padding: clamp(10px, 1.6vh, 16px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
[data-theme="light"] .menu a { border-bottom-color: rgba(0, 0, 0, 0.08); }
.menu a:hover,
.menu a:focus-visible { color: var(--accent); transform: translateX(8px); }
[dir="rtl"] .menu a:hover,
[dir="rtl"] .menu a:focus-visible { transform: translateX(-8px); }
.menu__num { font-family: var(--serif); font-size: clamp(13px, 1.4vw, 16px); font-style: italic; color: var(--accent); opacity: .85; min-width: 26px; }
.menu__link--track { color: var(--accent) !important; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(90px, 14vh, 140px); }
.hero__media { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { display: contents; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease-out; }
.hero__slide.is-active img { transform: scale(1.12); }
.hero__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(10,10,9,.65) 0%, rgba(10,10,9,.3) 25%, rgba(10,10,9,.72) 65%, rgba(10,10,9,.94) 100%); pointer-events: none; }

.hero__content { position: relative; z-index: 3; width: 100%; min-width: 0; max-width: 980px; }
.hero .eyebrow { color: var(--accent) !important; text-shadow: 0 1px 4px rgba(0,0,0,.75); }
.hero__title { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.08; font-weight: 300; letter-spacing: -.02em; margin: 18px 0 20px; color: #ffffff !important; text-shadow: 0 2px 18px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.9); }
.hero__title em { font-size: 1.05em; color: var(--accent) !important; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.hero__lead { font-size: clamp(15px, 1.2vw, 17px); color: rgba(245,242,237,.94) !important; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.hero__actions { margin-top: 30px; }
.hero__actions > span { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--solid { background: var(--accent) !important; color: #0e0e0d !important; border-color: var(--accent) !important; font-weight: 600; box-shadow: 0 4px 18px rgba(200,178,143,.35); }
.hero .btn--solid:hover { background: #dfc299 !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,178,143,.5); }
.hero .btn--line { background: rgba(14,14,13,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(255,255,255,.45) !important; color: #ffffff !important; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero .btn--line:hover { background: #ffffff !important; color: #0e0e0d !important; border-color: #ffffff !important; transform: translateY(-2px); }
.hero .btn--line[href*="track.html"] { border-color: var(--accent) !important; color: var(--accent) !important; }
.hero .btn--line[href*="track.html"]:hover { background: var(--accent) !important; color: #0e0e0d !important; }

/* Hero audio/video controls in corner */
.hero__controls { position: absolute; inset-inline-end: var(--pad); bottom: 34px; z-index: 10; display: flex; align-items: center; gap: 12px; }
.hero__ctrl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: 16px; background: rgba(14,14,13,.65); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #ffffff; transition: all .3s; }
.hero__ctrl-btn:hover { background: #ffffff; color: #0e0e0d; border-color: #ffffff; transform: scale(1.08); }

.hero__meta { position: absolute; inset-inline-start: var(--pad); bottom: 34px; display: flex; align-items: center; gap: 16px; z-index: 10; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.hero__counter b { color: #ffffff; font-weight: 600; }
.hero__progress { width: 64px; height: 1.5px; background: rgba(255,255,255,.2); overflow: hidden; position: relative; }
.hero__progress span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); }
.hero__progress span.run { animation: heroBar 6s linear infinite; }
@keyframes heroBar { from { width: 0; } to { width: 100%; } }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75); padding-bottom: 46px; z-index: 10; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px; background: rgba(255,255,255,.75); transform-origin: top; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Line reveal (hero) */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
body.is-loaded .reveal-line > span { transform: none; }
.hero__title .reveal-line:nth-child(2) > span { transition-delay: .12s; }
.hero__lead > span { transition-delay: .25s; }
.hero__actions > span { transition-delay: .35s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 32px; align-items: center; animation: marquee 32s linear infinite; font-size: clamp(14px, 1.6vw, 20px); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--accent); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Studio */
.studio__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.studio__title { font-size: clamp(38px, 5.5vw, 80px); }
.studio__text p { color: var(--muted); font-size: 15px; }
.studio__text p + p { margin-top: 18px; }
.stats { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding-top: 34px; padding-inline-end: 24px; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.stat b, .stat span { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); font-weight: 400; line-height: 1; }
.stat span { color: var(--accent); }
.stat p { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .05em; }

/* Work */
.work { background: var(--bg-2); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 40px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: all .3s; }
.filters button:hover, .filters button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.project { position: relative; }
.project.is-hidden { display: none; }
.project__img { overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: var(--bg); }
.project__slides { position: relative; height: 100%; }
.project__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s ease, transform 5s ease-out; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.project__slides img.is-active { opacity: 1; transform: scale(1); }
/* Story-style progress bars */
.project__bars { position: absolute; top: 12px; left: 14px; right: 14px; z-index: 5; display: flex; gap: 4px; pointer-events: none; }
.project__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
/* Soft dark shade at the top so the bars show on bright photos */
.project__img:has(.project__bars)::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 72px; z-index: 4; pointer-events: none; background: linear-gradient(rgba(10,10,9,.6), transparent); }
.project__bars i { display: block; width: 0; height: 100%; background: #fff; }
.project__bars span.is-done i { width: 100%; }
.project__bars span.is-on i { animation: storyBar 4s linear forwards; animation-play-state: paused; }
.project__img.is-playing .project__bars span.is-on i { animation-play-state: running; }
.project__img:not(.is-playing) .project__bars span.is-on i { animation: none; width: 100%; }
.project__bars--one i { transition: width .5s var(--ease); }
@keyframes storyBar { from { width: 0; } to { width: 100%; } }
[dir="rtl"] .project__bars { flex-direction: row; }
.project__arrow { position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: rgba(14,14,13,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #f2eee8; font-size: 24px; line-height: 1; display: grid; place-items: center; transition: background .3s, color .3s; }
.project__arrow:hover { background: var(--accent); color: #0e0e0d; }
.project__arrow--prev { inset-inline-start: 12px; }
.project__arrow--next { inset-inline-end: 12px; }
.project__info { padding-top: 16px; }
.project__info h3 { display: inline-block; font-size: 16px; font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--accent); }
.project__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.project__row .project__type { min-width: 0; }
.project__data { flex: none; }
.project__type { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project__data { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.project__data i { font-style: normal; color: var(--muted); }
.project__loc { display: flex; align-items: center; gap: 6px; }
.project__loc::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.project__date { color: var(--accent); white-space: nowrap; }

/* Reels */
.reels { background: #11110f; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reels__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.reels__sub { margin-top: 14px; max-width: 520px; font-size: 14px; color: var(--muted); }
.reels__controls { display: flex; align-items: center; gap: 12px; }
.reels__controls .link-arrow { margin: 0 12px 0 0; }
.reels__arrow { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; line-height: 1; transition: background .3s, color .3s, transform .2s; }
.reels__arrow:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.reels__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 22vw, 310px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 20px; scroll-padding: 0 var(--pad); }
.reels__track::-webkit-scrollbar { display: none; }

.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; cursor: pointer; scroll-snap-align: start; background: var(--bg-2); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.reel:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 18px 45px rgba(0,0,0,.6); }
.reel video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.reel:hover video { transform: scale(1.05); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,13,.2) 0%, transparent 40%, rgba(14,14,13,.9) 100%); pointer-events: none; }

.reel__badge { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: rgba(14,14,13,.75); backdrop-filter: blur(8px); color: var(--accent); border: 1px solid var(--line); }
.reel__play { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(242,238,232,.22); backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .3s, transform .3s; }
.reel:hover .reel__play { background: var(--accent); transform: scale(1.1); }
.reel__play::before { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); margin-left: 2px; }
.reel:hover .reel__play::before { border-color: transparent transparent transparent #0e0e0d; }

.reel__info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.reel__info h3 { font-size: 15px; font-weight: 500; line-height: 1.35; margin-bottom: 4px; color: var(--ink); }
.reel__info span { font-size: 12px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }

/* Reel Modal */
.reel-modal { position: fixed; inset: 0; z-index: 95; background: rgba(8, 8, 7, .96); backdrop-filter: blur(14px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s ease; padding: 20px; }
.reel-modal.is-open { opacity: 1; pointer-events: auto; }
.reel-modal__dialog { position: relative; display: flex; flex-direction: column; align-items: center; max-height: 94vh; }
.reel-modal video { height: min(84vh, 840px); max-width: 92vw; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.8); border: 1px solid var(--line); }

.reel-modal__meta { margin-top: 14px; text-align: center; color: var(--ink); }
.reel-modal__title { font-size: 17px; font-weight: 600; }
.reel-modal__sub { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.reel-modal__sub a { color: var(--accent); border-bottom: 1px solid var(--accent); }

.reel-modal__close { position: absolute; top: 16px; inset-inline-end: 24px; font-size: 40px; line-height: 1; color: var(--ink); z-index: 100; transition: color .2s, transform .2s; }
.reel-modal__close:hover { color: var(--accent); transform: scale(1.1); }

.reel-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14,14,13,.75); backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 24px; color: var(--ink); cursor: pointer; transition: all .3s; z-index: 10; }
.reel-modal__nav:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reel-modal__prev { left: -72px; }
.reel-modal__next { right: -72px; }

@media (max-width: 820px) {
  .reel-modal__prev { left: 12px; }
  .reel-modal__next { right: 12px; }
}

/* Services */
.services__wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.services__list { list-style: none; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding .5s var(--ease); }
.service__num { font-family: var(--serif); font-size: 18px; color: var(--accent); grid-row: span 2; }
.service h3 { font-size: clamp(19px, 1.9vw, 26px); font-weight: 300; letter-spacing: -.01em; line-height: 1.25; transition: color .4s; }
.service p { color: var(--muted); font-size: 14px; max-width: 460px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .6s, margin .6s; }
.service.is-current { padding-inline-start: 14px; }
.service.is-current h3 { color: var(--accent); }
.service.is-current p { max-height: 120px; opacity: 1; margin-top: 12px; }
.services__preview { position: sticky; top: 120px; aspect-ratio: 4 / 5; overflow: hidden; }
.services__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.2s var(--ease); }
.services__preview img.swap { opacity: 0; transform: scale(1.06); }

/* Process */
.process { background: var(--bg-2); }
.process__steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { border-top: 1px solid var(--line); padding-top: 26px; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent); transition: width 1.4s var(--ease) .3s; }
.step.is-in::before { width: 100%; }
.step span { font-family: var(--serif); font-size: 36px; color: var(--accent); line-height: 1; }
.step h3 { font-size: 17px; font-weight: 600; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* Founder */
.founder { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.founder__img { overflow: hidden; aspect-ratio: 1; border-radius: 50%; width: min(100%, 340px); justify-self: center; border: 1px solid var(--accent); box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--line); }
.founder__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder blockquote { font-weight: 300; font-family: var(--serif); font-size: clamp(21px, 2.3vw, 32px); line-height: 1.35; font-style: italic; }
.founder__slogan { display: inline-block; font-family: var(--serif); font-size: clamp(14px, 1.8vw, 19px); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 500; font-style: italic; }
[dir="rtl"] .founder__slogan { letter-spacing: .12em; }
.founder__name { margin-top: 26px; font-weight: 600; font-size: 16px; }
.founder__role { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 13, .82); }
.contact__inner { position: relative; }
.contact__title { font-size: clamp(28px, 4vw, 52px); line-height: 1.15; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 44px 0 36px; font-size: 15px; }
.contact__h { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.contact__grid a:hover { color: var(--accent); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer img { height: 28px; width: auto; filter: invert(1); opacity: .8; }

/* WhatsApp */
.wa { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 45; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .3s var(--ease), box-shadow .3s; }
.wa svg { width: 26px; height: 26px; }
.wa:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,.4); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 7, .96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: 88vw; }
.lightbox { cursor: zoom-out; }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 16px; text-align: center; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.lightbox__close { position: absolute; top: 18px; right: 26px; font-size: 44px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 36px; padding: 10px 18px; color: var(--muted); }
.lightbox__nav:hover { color: var(--ink); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

/* Arabic / RTL */
[dir="rtl"] body,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
}
[dir="rtl"] em { font-family: "Cairo", system-ui, sans-serif; font-style: normal; font-weight: 600; }
[dir="rtl"] h2, [dir="rtl"] .hero__title, [dir="rtl"] .service h3, [dir="rtl"] .menu a { letter-spacing: 0; line-height: 1.4; }
[dir="rtl"] .eyebrow, [dir="rtl"] .section__label, [dir="rtl"] .btn, [dir="rtl"] .nav__links, [dir="rtl"] .link-arrow,
[dir="rtl"] .filters button, [dir="rtl"] .project__type, [dir="rtl"] .contact__h, [dir="rtl"] .founder__role,
[dir="rtl"] .hero__scroll, [dir="rtl"] .stat p, [dir="rtl"] .lightbox figcaption { letter-spacing: 0; }
[dir="rtl"] .eyebrow, [dir="rtl"] .section__label { font-size: 13px; }
[dir="rtl"] .btn { font-size: 13px; }
[dir="rtl"] .nav__links { font-size: 14px; }
[dir="rtl"] .link-arrow::after { content: " ←"; }
[dir="rtl"] .founder blockquote { font-family: "Cairo", system-ui, sans-serif; font-style: normal; line-height: 1.7; font-weight: 400; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .reels__controls .link-arrow { margin: 0 0 0 12px; }
[dir="rtl"] .lightbox__prev { left: auto; right: 10px; }
[dir="rtl"] .lightbox__next { right: auto; left: 10px; }

/* Light Mode Overrides */
[data-theme="light"] .nav.is-scrolled {
  background: rgba(248, 246, 242, .95);
  box-shadow: 0 1px 0 var(--line);
}
[data-theme="light"] .nav.is-scrolled .nav__logo img,
[data-theme="light"] body.menu-open .nav__logo img,
[data-theme="light"] .footer img {
  filter: none;
}
[data-theme="light"] .nav:not(.is-scrolled) .nav__logo img {
  filter: invert(1);
}
[data-theme="light"] .nav:not(.is-scrolled) .nav__links a {
  color: #ffffff;
}
[data-theme="light"] .nav:not(.is-scrolled) .nav__burger span {
  background: #ffffff;
}
[data-theme="light"] body.menu-open .nav:not(.is-scrolled) .nav__burger span {
  background: var(--ink);
}
[data-theme="light"] .menu {
  background: var(--bg);
}
[data-theme="light"] .hero__shade {
  background: linear-gradient(180deg, rgba(10, 10, 9, .68) 0%, rgba(10, 10, 9, .32) 25%, rgba(10, 10, 9, .75) 65%, rgba(10, 10, 9, .95) 100%);
}
[data-theme="light"] .step {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .marquee {
  background: #ffffff;
  border-color: var(--line);
}

/* Responsive */
@media (max-width: 1120px) {
  .nav__cta-wrap { display: none; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta-wrap { display: none; }
  .nav__end { gap: 8px; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
  .studio__grid, .services__wrap, .founder { grid-template-columns: 1fr; }
  .services__preview { display: none; }
  .service p { max-height: 120px; opacity: 1; margin-top: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .process__steps, .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 14px var(--pad); }
  .nav__logo img { height: 26px; }
  .nav__tools { gap: 6px; }
  .nav__lang, .nav__theme-toggle { width: 34px; height: 34px; min-width: 34px; min-height: 34px; font-size: 11px; }
  .nav__burger { width: 34px; height: 34px; }
  .hero { padding-bottom: 104px; }
  .hero__scroll { display: none; }
  .hero__actions > span {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 480px;
  }
  .hero__actions .btn {
    width: 100%;
    padding: 12px 6px;
    font-size: 13px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
  }
  .wa {
    width: 46px;
    height: 46px;
    inset-inline-end: 14px;
    bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
  .wa svg {
    width: 22px;
    height: 22px;
  }
  .reels__track { grid-auto-columns: 68vw; }
  .work__grid, .process__steps, .contact__grid { grid-template-columns: 1fr; }
  .stat { padding-inline-end: 12px; }
  .stat + .stat { padding-inline-start: 14px; }
  .service { grid-template-columns: 44px 1fr; padding-inline-end: 8px; }
}
@media (max-width: 380px) {
  .nav { padding-left: 12px; padding-right: 12px; }
  .nav__tools { gap: 4px; }
  .nav__lang, .nav__theme-toggle { width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 10px; }
  .nav__burger { width: 32px; height: 32px; }
  .hero__actions .btn { font-size: 12px; padding: 11px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Social icons */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .3s; }
.socials a svg { width: 19px; height: 19px; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #0e0e0d !important; transform: translateY(-2px); }
.socials--sm a { width: 34px; height: 34px; }
.socials--sm a svg { width: 16px; height: 16px; }
.contact .socials a { border-color: rgba(242, 238, 232, .3); color: #f2eee8; }
@media (max-width: 640px) {
  .footer { justify-content: center; text-align: center; }
}

/* Design vs Reality comparison */
.compare__sub { margin-top: 12px; max-width: 520px; font-size: 14px; color: var(--muted); }
.comparison { position: relative; margin-top: 36px; aspect-ratio: 16 / 9; max-height: 78vh; overflow: hidden; cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--bg-2); }
.comparison__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.comparison__clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.comparison__label { position: absolute; bottom: 20px; padding: 8px 16px; background: rgba(248, 246, 242, .92); color: #181715; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; pointer-events: none; transition: opacity .2s; }
.comparison__label--l { left: 20px; }
.comparison__label--r { right: 20px; }
.comparison__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); outline: none; }
.comparison__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #1d4ed8; display: grid; place-items: center; font-size: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.comparison__handle:focus-visible span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .comparison { aspect-ratio: 4 / 5; } .comparison__label { bottom: 12px; padding: 6px 10px; font-size: 10px; } .comparison__label--l { left: 12px; } .comparison__label--r { right: 12px; } }
[dir="rtl"] .comparison__label { font-family: "Cairo", sans-serif; letter-spacing: 0; font-size: 12px; }

/* Hero slide indicator bars */
.hero__dots { position: absolute; inset-inline-start: var(--pad); bottom: clamp(34px, 6vh, 56px); z-index: 10; display: flex; gap: 10px; }
.hero__dots button { width: clamp(44px, 6vw, 72px); height: 18px; display: flex; align-items: center; }
.hero__dots button span { display: block; position: relative; width: 100%; height: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero__dots button span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero__dots button span::after { transform-origin: right; }
.hero__dots button.is-active span::after { transform: scaleX(1); }
.hero__dots button.run span::after { animation: heroDot 6s linear forwards; }
@keyframes heroDot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.project__count { position: absolute; top: 24px; inset-inline-start: 14px; z-index: 4; pointer-events: none; padding: 4px 10px; border-radius: 20px; background: rgba(14,14,13,.72); backdrop-filter: blur(6px); color: #f2eee8; font-size: 11px; letter-spacing: .08em; }

/* Reviews */
.reviews { background: var(--bg-2); }
.reviews__sub { margin-top: 12px; font-size: 14px; color: var(--muted); }
.review__stars { color: var(--accent); letter-spacing: .15em; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.review { border: 1px solid var(--line); padding: 28px; background: var(--bg-card); display: flex; flex-direction: column; gap: 18px; }
.review blockquote { font-size: 16px; line-height: 1.8; font-family: "Cairo", system-ui, sans-serif; font-weight: 400; flex: 1; text-align: start; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review figcaption b { display: block; font-weight: 500; }
.review figcaption small { color: var(--muted); font-size: 12px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #0e0e0d; display: grid; place-items: center; font-weight: 500; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 960px) { .reviews__grid { grid-template-columns: 1fr; } }

/* Contact form */
.cform { max-width: 760px; margin: 0 0 36px; padding: clamp(22px, 3vw, 36px); background: #f0ece6; color: #181715; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.cform h3 { grid-column: 1 / -1; font-size: clamp(18px, 2vw, 24px); font-weight: 400; margin-bottom: 4px; }
.cform label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #5a564f; }
.cform__wide { grid-column: 1 / -1; }
.cform input, .cform select, .cform textarea { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 300; padding: 13px 14px; background: #fff; border: 1px solid #ddd5c9; color: #181715; border-radius: 0; width: 100%; }
.cform input::placeholder, .cform textarea::placeholder { color: #9a958c; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cform input.is-invalid { border-color: #c0392b; }
.cform__send { grid-column: 1 / -1; justify-content: center; background: #181715; color: #f8f6f2; border: 0; cursor: pointer; }
.cform__send:hover { background: var(--accent); color: #0e0e0d; }
[dir="rtl"] .cform label { letter-spacing: 0; font-size: 13px; }
@media (max-width: 640px) { .cform { grid-template-columns: 1fr; } }

/* Contact info row: even columns, social icons on one line */
.contact__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; align-items: start; }
.contact .socials { flex-wrap: nowrap; gap: 8px; }
.contact .socials a { width: 38px; height: 38px; flex: none; }
.contact .socials a svg { width: 17px; height: 17px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .contact__grid { grid-template-columns: 1fr; } }

/* Hero buttons: two equal columns, nothing cut off on phones */
@media (max-width: 640px) {
  .hero__actions > span { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .hero__actions .btn { min-width: 0; min-height: 48px; padding: 10px 8px; font-size: 11px; letter-spacing: .08em; white-space: normal; line-height: 1.3; }
}
[dir="rtl"] .hero__actions .btn { letter-spacing: 0; }

/* Contact sits on a dark photo: keep its text light in light mode too */
.contact { color: #f2eee8; --ink: #f2eee8; --muted: #b9b4aa; --accent: #c8b28f; --line: rgba(242, 238, 232, .22); }
.contact .btn--solid { background: #f2eee8; color: #181715; }
.contact .btn--solid:hover { background: var(--accent); }

/* Corner-bracket frame around photos, reels and the comparison slider */
.project__img::before, .reel::before, .comparison::before, .services__preview::before {
  content: ""; position: absolute; inset: 14px; z-index: 3; pointer-events: none; opacity: .9;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 1px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 1px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 1px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 1px 22px no-repeat;
  transition: inset .5s var(--ease), opacity .4s;
}
.reel:hover::before { inset: 8px; }
.services__preview { position: sticky; }
.social-behance[hidden] { display: none !important; }
.social-behance svg text { letter-spacing: -.3px; }

/* Owl logo in a circle sitting on the top edge of the contact form */
.cform { position: relative; margin-top: 56px; padding-top: calc(clamp(22px, 3vw, 36px) + 34px); }
.cform__logo { position: absolute; top: 0; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; overflow: hidden; background: #f0eeea; border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(14, 14, 13, .55), 0 10px 30px rgba(0, 0, 0, .35); }
.cform__logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* First reel: wide video + "rotate your phone" intro */
.reel-modal.is-wide video { aspect-ratio: auto; width: min(92vw, 1100px); height: auto; max-height: 80vh; object-fit: contain; }
@media (orientation: landscape) and (max-height: 520px) {
  .reel-modal.is-wide { padding: 0; }
  .reel-modal.is-wide video { width: 100vw; height: 100vh; max-height: 100vh; max-width: 100vw; border-radius: 0; border: 0; }
  .reel-modal.is-wide .reel-modal__meta, .reel-modal.is-wide .reel-modal__nav { display: none; }
}
.reel-rotate { position: absolute; inset: 0; z-index: 20; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: rgba(8, 8, 7, .97); color: #f2eee8; }
.reel-rotate.is-on { display: flex; }
.reel-rotate__phone { width: 56px; height: 96px; border: 2px solid var(--accent); border-radius: 12px; position: relative; margin-bottom: 18px; animation: reelRotate 2.4s var(--ease) infinite; }
.reel-rotate__phone span { position: absolute; left: 50%; bottom: 7px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--accent); }
.reel-rotate__title { font-size: 22px; font-weight: 500; }
.reel-rotate__sub { max-width: 280px; font-size: 14px; color: #b9b4aa; }
.reel-rotate__skip { margin-top: 10px; padding: 10px 18px; border: 1px solid rgba(242, 238, 232, .3); border-radius: 40px; font-size: 13px; color: #f2eee8; }
@keyframes reelRotate { 0%, 25% { transform: rotate(0); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* Form send button: dark so it stands out on the light form (the .contact button rule made it light) */
.contact .cform .cform__send { background: #181715; color: #f8f6f2; }
.contact .cform .cform__send:hover { background: var(--accent); color: #0e0e0d; }
/* Keep the floating WhatsApp button from covering the footer icons on phones */
@media (max-width: 640px) { .footer { padding-bottom: 84px; } }

/* Designs: first 9 projects, then "View all" */
.project.is-more { display: none; }
.work__more { display: flex; justify-content: center; margin-top: 40px; }
.work__more .btn b { font-weight: 600; color: var(--accent); }

/* Design vs Reality: one tab per project */
.compare__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.compare__tabs[hidden] { display: none; }
.compare__tabs button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 40px; font-size: 12px; letter-spacing: .06em; color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.compare__tabs button:hover { border-color: var(--accent); color: var(--ink); }
.compare__tabs button.is-active { background: var(--accent); border-color: var(--accent); color: #0e0e0d; }
.compare .comparison { margin-top: 18px; aspect-ratio: 3 / 2; max-height: 82vh; }
@media (max-width: 640px) {
  .compare__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .compare__tabs::-webkit-scrollbar { display: none; }
  .compare__tabs button { flex: none; }
  .compare .comparison { aspect-ratio: 1 / 1; }
}
[dir="rtl"] .compare__tabs button { letter-spacing: 0; font-size: 13px; }

/* Our Process: a photo above every step */
.step__img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--bg-card); }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.step:hover .step__img img { transform: scale(1.05); }

/* Footer credit */
.footer__credit { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.footer__credit a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__credit a:hover { border-bottom-color: var(--accent); }
.compare .comparison { max-height: none; width: min(100%, calc(80vh * 1.5)); margin-inline: auto; }
@media (max-width: 640px) { .compare .comparison { width: 100%; } }
@media (min-width: 641px) { .compare__tabs { justify-content: center; } }

/* The hero line above the slogan is the page H1: same small look */
.hero h1.eyebrow { font-weight: 400; }

/* Phones: no slow zoom on the hero photo, it keeps the screen busy and costs battery */
@media (max-width: 640px) {
  .hero__slide img, .hero__slide.is-active img { transform: none; transition: none; }
}
