/* Brandsters redesign v2 — light/navy/blue system inspired by reference UI */
:root {
  --navy: #071a3d;
  --navy-2: #0e2450;
  --navy-3: #132c5c;
  --blue: #0056f9;
  --blue-2: #2f7cff;
  --blue-light: #8ab7ff;
  --ink: #0d1b33;
  --soft: #57647c;
  --bg: #f5f7fb;
  --paper: #ffffff;
  --line: #e5e9f2;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -32px rgba(7,26,61,.28);
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
body.rd { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html { overflow-x: hidden; }
.rd h1, .rd h2, .rd h3 { font-family: Sora, Inter, sans-serif; color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.rd p { margin: 0; line-height: 1.7; color: var(--soft); }
.rd a { text-decoration: none; color: var(--blue); }
.rd a:hover { color: var(--navy); }
.rd img { max-width: 100%; display: block; }
.rd-wrap { width: min(100% - 40px, 1240px); margin-inline: auto; }
.rd-wrap-narrow { width: min(100% - 40px, 880px); margin-inline: auto; }
.grayscale { filter: grayscale(1) contrast(1.02); }

/* ---------- top utility bar ---------- */
.rd-topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: .82rem; }
.rd-topbar-in { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; gap: 16px; flex-wrap: wrap; }
.rd-topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rd-topbar-left a { color: rgba(255,255,255,.78); display: inline-flex; align-items: center; gap: 7px; }
.rd-topbar-left a:hover { color: #fff; }
.rd-topbar-left svg { width: 14px; height: 14px; flex: none; }
.rd-topbar-social { display: flex; align-items: center; gap: 10px; }
.rd-topbar-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.rd-topbar-social a:hover { background: var(--blue); }
.rd-topbar-social svg { width: 13px; height: 13px; }
@media (max-width: 780px) { .rd-topbar-left span:nth-child(3) { display: none; } }
@media (max-width: 560px) { .rd-topbar-in { justify-content: center; } .rd-topbar-left { justify-content: center; } }

/* ---------- nav ---------- */
.rd-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.rd-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.rd-logo { display: inline-flex; align-items: center; gap: 10px; }
.rd-logo img { height: 30px; width: auto; }
.rd-nav-links { display: flex; align-items: center; gap: 34px; font-weight: 700; font-size: .93rem; color: var(--ink); }
.rd-nav-links a { color: var(--ink); position: relative; padding: 4px 0; }
.rd-nav-links a.is-active, .rd-nav-links a:hover { color: var(--blue); }
.rd-nav-actions { display: flex; align-items: center; gap: 16px; }
/* menu trigger (mobile + tablet) */
.rd-burger { display: none; align-items: center; gap: 12px; height: 48px; padding: 0 6px 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); -webkit-tap-highlight-color: transparent; transition: border-color .25s var(--ease), color .25s var(--ease), transform .18s var(--ease); }
.rd-burger-lines { display: grid; place-content: center; gap: 5px; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); transition: background .25s var(--ease); }
.rd-burger-lines i { display: block; width: 15px; height: 2px; border-radius: 2px; background: #fff; }
.rd-burger:hover { border-color: var(--blue); color: var(--blue); }
.rd-burger:hover .rd-burger-lines { background: var(--blue); }
.rd-burger:active { transform: scale(.97); }
.rd-burger:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 1023px) {
  .rd-topbar { display: none; }
  .rd-nav-links { display: none; }
  .rd-burger { display: inline-flex; }
  .rd-nav-actions .rd-btn { display: none; }
  .rd-nav { padding: 12px 0; }
}

/* ---------- staggered mobile/tablet menu ---------- */
body.rd-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.rd-stag { position: fixed; inset: 0; z-index: 200; }
.rd-stag[hidden] { display: none; }
.rd-stag-layers span { position: absolute; inset: 0; transform: translateX(101%); will-change: transform; transition: transform .5s var(--ease); }
.rd-stag-layers span:nth-child(1) { background: var(--blue); }
.rd-stag-layers span:nth-child(2) { background: var(--navy-3); transition-delay: .07s; }
.rd-stag-panel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px); padding: calc(env(safe-area-inset-top) + 16px) clamp(20px, 6vw, 60px) calc(env(safe-area-inset-bottom) + 22px); background: radial-gradient(115% 80% at 100% 0%, rgba(47,124,255,.30), transparent 62%), var(--navy); transform: translateX(101%); will-change: transform; transition: transform .5s var(--ease) .14s; overflow-y: auto; overscroll-behavior: contain; }
.rd-stag.is-open .rd-stag-layers span, .rd-stag.is-open .rd-stag-panel { transform: translateX(0); }
.rd-stag:not(.is-open) .rd-stag-panel { transition-delay: 0s; }
.rd-stag:not(.is-open) .rd-stag-layers span:nth-child(1) { transition-delay: .08s; }
.rd-stag:not(.is-open) .rd-stag-layers span:nth-child(2) { transition-delay: .15s; }

.rd-stag-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; }
.rd-stag-logo img { height: 28px; width: auto; }
.rd-stag-close { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; cursor: pointer; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; transition: background .25s var(--ease), border-color .25s var(--ease), transform .18s var(--ease); }
.rd-stag-close svg { width: 15px; height: 15px; }
.rd-stag-close:hover { background: var(--blue); border-color: var(--blue); }
.rd-stag-close:active { transform: scale(.97); }
.rd-stag-close:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

.rd-stag-body { flex: 1; display: flex; flex-direction: column; gap: clamp(22px, 4vh, 44px); justify-content: center; }
.rd-stag-nav { display: flex; flex-direction: column; }
.rd-stag-nav a { display: flex; align-items: center; gap: clamp(14px, 4vw, 26px); padding: clamp(9px, 1.5vh, 15px) 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.11); opacity: 0; transform: translateY(20px); transition: opacity .42s var(--ease), transform .42s var(--ease), color .22s var(--ease); transition-delay: calc(.2s + var(--i) * .05s); }
.rd-stag.is-open .rd-stag-nav a { opacity: 1; transform: none; }
.rd-stag-nav .num { flex: none; width: 2.1em; font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: .74rem; letter-spacing: .12em; color: var(--blue-light); opacity: .55; }
.rd-stag-nav .lbl { flex: 1; font-family: Sora, Inter, sans-serif; font-weight: 800; line-height: 1.06; letter-spacing: -.02em; font-size: clamp(1.55rem, min(7.6vw, 4.4vh), 2.9rem); }
.rd-stag-nav a svg { flex: none; width: 17px; height: 17px; color: var(--blue-2); opacity: 0; transform: translateX(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.rd-stag-nav a.is-active { color: #fff; }
.rd-stag-nav a.is-active .num { color: var(--blue-2); opacity: 1; }
.rd-stag-nav a.is-active .lbl { color: var(--blue-2); }
.rd-stag-nav a.is-active svg { opacity: 1; transform: none; }
.rd-stag-nav a:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; }
@media (hover: hover) {
  .rd-stag-nav a:hover { color: #fff; }
  .rd-stag-nav a:hover .lbl { color: var(--blue-2); transform: translateX(8px); }
  .rd-stag-nav a:hover svg { opacity: 1; transform: none; }
  .rd-stag-nav .lbl { transition: transform .28s var(--ease), color .22s var(--ease); }
}
.rd-stag-nav a:active .lbl { color: var(--blue-2); }

.rd-stag-aside { display: flex; flex-direction: column; gap: 18px; opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease) .5s, transform .45s var(--ease) .5s; }
.rd-stag.is-open .rd-stag-aside { opacity: 1; transform: none; }
.rd-stag:not(.is-open) .rd-stag-aside { transition-delay: 0s; }
.rd-stag-kicker { display: flex; align-items: center; gap: 9px; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0; }
.rd-stag-kicker svg { width: 14px; height: 14px; color: var(--blue-2); }
.rd a.rd-stag-cta, .rd-stag-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 360px); padding: 16px 24px; border-radius: 999px; background: var(--blue); color: #fff; font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: .95rem; box-shadow: 0 18px 38px -18px rgba(0,86,249,.7); transition: background .25s var(--ease), transform .2s var(--ease); }
.rd-stag-cta svg { width: 15px; height: 15px; }
.rd a.rd-stag-cta:hover, .rd-stag-cta:hover { background: var(--blue-2); color: #fff; }
.rd-stag-cta:active { transform: scale(.98); }
.rd-stag-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rd-stag-contact { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.rd-stag-contact a, .rd-stag-contact span { color: rgba(255,255,255,.68); }
.rd-stag-contact a:hover { color: #fff; }
.rd-stag-social { display: flex; align-items: center; gap: 10px; }
.rd-stag-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .25s var(--ease), border-color .25s var(--ease); }
.rd-stag-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.rd-stag-social svg { width: 16px; height: 16px; }
.rd-stag-spark { position: absolute; top: clamp(84px, 13vh, 150px); right: clamp(18px, 5vw, 54px); width: 26px; height: 26px; color: var(--blue-2); opacity: 0; transition: opacity .5s var(--ease) .42s; pointer-events: none; }
.rd-stag.is-open .rd-stag-spark { opacity: .5; }
@media (min-width: 720px) {
  .rd-stag-body { flex-direction: row; align-items: flex-end; gap: clamp(32px, 6vw, 72px); }
  .rd-stag-nav { flex: 1.15; }
  .rd-stag-aside { flex: .85; max-width: 330px; gap: 22px; }
  .rd-stag-nav a { transition-delay: calc(.2s + var(--i) * .06s); }
}
@media (max-width: 360px) {
  .rd-stag-panel { gap: 14px; }
  .rd-stag-contact { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-stag-layers span, .rd-stag-panel, .rd-stag-nav a, .rd-stag-aside, .rd-stag-spark, .rd-stag-nav .lbl { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ---------- buttons ---------- */
.rd-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .92rem; font-family: Sora, Inter, sans-serif; cursor: pointer; border: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease); white-space: nowrap; }
.rd-btn svg { width: 15px; height: 15px; }
.rd a.rd-btn-primary, .rd-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 16px 34px -16px rgba(0,86,249,.55); }
.rd a.rd-btn-primary:hover, .rd-btn-primary:hover { background: #0048d6; transform: translateY(-2px); color: #fff; }
.rd a.rd-btn-outline, .rd-btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.rd a.rd-btn-outline:hover, .rd-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.rd a.rd-btn-outline-dark, .rd-btn-outline-dark { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.rd a.rd-btn-outline-dark:hover, .rd-btn-outline-dark:hover { border-color: var(--blue-2); background: rgba(0,86,249,.16); color: #fff; }
.rd a.rd-link-arrow, .rd-link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-family: Sora, Inter, sans-serif; font-size: .92rem; color: var(--ink); }
.rd-link-arrow svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.rd-link-arrow:hover svg { transform: translate(3px,-3px); }

/* ---------- eyebrow badge ---------- */
.rd-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.rd-eyebrow-dot { display: inline-flex; width: 22px; height: 11px; border-radius: 999px; overflow: hidden; flex: none; }
.rd-eyebrow-dot span:first-child { width: 55%; background: var(--navy); }
.rd-eyebrow-dot span:last-child { width: 45%; background: var(--blue-2); }
.rd-eyebrow.on-dark { color: #fff; }
.rd-eyebrow.on-dark .rd-eyebrow-dot span:first-child { background: #fff; }

/* ---------- section basics ---------- */
.rd-section { padding: 96px 0; }
.rd-section.tight { padding: 76px 0; }
.rd-section.dark { background: var(--navy); }
.rd-head { max-width: 640px; margin-bottom: 52px; }
.rd-head.center { margin-inline: auto; text-align: center; }
.rd-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 14px; }
.rd-head p { font-size: 1.02rem; }
.rd-head.on-dark p { color: rgba(255,255,255,.66); }
.rd-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }
.rd-head-row .rd-head { margin-bottom: 0; }

/* ---------- marquee ribbon ---------- */
.rd-marquee { background: var(--navy); overflow: hidden; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.rd-marquee-track { display: flex; gap: 40px; width: max-content; animation: rd-scroll 32s linear infinite; }
.rd-marquee-track span { display: inline-flex; align-items: center; gap: 40px; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: #fff; white-space: nowrap; }
.rd-marquee-track span i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); display: inline-block; font-style: normal; }
@keyframes rd-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.rd-hero { padding: 64px 0 40px; overflow: hidden; }
.rd-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.rd-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.rd-hero p.lede { font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }
.rd-hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.rd-crumb { font-size: .84rem; font-weight: 700; color: var(--soft); margin-bottom: 18px; }
.rd-crumb a { color: var(--soft); }
.rd-crumb a:hover { color: var(--blue); }

.rd-collage { position: relative; min-height: 460px; }
.rd-collage img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.rd-collage-a { position: absolute; left: 0; top: 30px; width: 46%; height: 260px; z-index: 2; }
.rd-collage-b { position: absolute; right: 4%; top: 0; width: 40%; height: 200px; z-index: 1; }
.rd-collage-c { position: absolute; right: 0; bottom: 0; width: 50%; height: 230px; z-index: 3; }
.rd-collage-badge { position: absolute; left: 40%; top: 46%; width: 84px; height: 84px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; z-index: 4; box-shadow: 0 20px 40px -16px rgba(0,86,249,.6); }
.rd-collage-badge svg { width: 34px; height: 34px; color: #fff; animation: rd-spin 10s linear infinite; }
@keyframes rd-spin { to { transform: rotate(360deg); } }
.rd-collage-spark { position: absolute; color: var(--blue-2); z-index: 4; }
.rd-collage-spark svg { width: 26px; height: 26px; }
@media (max-width: 1060px) {
  .rd-hero-grid { grid-template-columns: 1fr; }
  .rd-collage { min-height: 340px; margin-top: 20px; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .rd-collage-a { width: 55%; height: 190px; }
  .rd-collage-b { width: 48%; height: 150px; }
  .rd-collage-c { width: 58%; height: 170px; }
}

/* ---------- stat row ---------- */
.rd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.rd-stat { text-align: center; }
.rd-stat strong { display: block; font-family: Sora, Inter, sans-serif; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); }
.rd-stat span { font-size: .86rem; color: var(--soft); font-weight: 600; }
@media (max-width: 780px) { .rd-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- services 3-up (home) ---------- */
.rd-svc3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rd-svc3-card { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.rd-svc3-card:hover { transform: translateY(-6px); }
.rd-svc3-card.is-featured { background: var(--blue); border-color: var(--blue); }
.rd-svc3-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.rd-svc3-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.rd-svc3-card .bd { padding: 22px 22px 26px; }
.rd-svc3-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.rd-svc3-card p { font-size: .9rem; margin-bottom: 14px; }
.rd-svc3-card.is-featured h3, .rd-svc3-card.is-featured p { color: #fff; }
.rd-svc3-card.is-featured .rd-link-arrow { color: #fff; }

/* ---------- services grid (services.html) ---------- */
.rd-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rd-svc-tile { border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 40px -30px rgba(7,26,61,.2); }
.rd-svc-tile .ph { aspect-ratio: 4/3; overflow: hidden; }
.rd-svc-tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.rd-svc-tile .bd { padding: 20px 22px 24px; }
.rd-svc-tile h3 { font-size: 1.08rem; margin-bottom: 6px; }
.rd-svc-tile p { font-size: .88rem; margin-bottom: 12px; }
@media (max-width: 980px) { .rd-svc3, .rd-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rd-svc3, .rd-svc-grid { grid-template-columns: 1fr; } }

/* ---------- why choose us (icon grid) ---------- */
.rd-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.rd-why-images { position: relative; min-height: 380px; }
.rd-why-images img { border-radius: var(--radius); box-shadow: var(--shadow); position: absolute; object-fit: cover; }
.rd-why-images .i1 { left: 0; top: 0; width: 58%; height: 240px; z-index: 2; }
.rd-why-images .i2 { right: 0; bottom: 0; width: 55%; height: 200px; z-index: 1; }
.rd-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rd-reason { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 24px; }
.rd-reason .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.rd-reason .ic svg { width: 20px; height: 20px; color: #fff; }
.rd-reason h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.rd-reason p { color: rgba(255,255,255,.62); font-size: .88rem; }
@media (max-width: 900px) {
  .rd-why-grid { grid-template-columns: 1fr; gap: 32px; }
  .rd-why-images { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 100%; margin-inline: 0; }
  .rd-why-images img { position: static; width: 100%; height: 100%; aspect-ratio: 4 / 5; }
  .rd-why-images .i1, .rd-why-images .i2 { width: auto; height: auto; }
}
@media (max-width: 560px) { .rd-reasons { grid-template-columns: 1fr; } .rd-why-images img { aspect-ratio: 1 / 1; } }

/* ---------- process ---------- */
.rd-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rd-process-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 24px; }
.rd-process-card h3 { color: #fff; font-size: 1.1rem; margin: 12px 0 8px; }
.rd-process-card p { color: rgba(255,255,255,.62); font-size: .88rem; margin-bottom: 20px; }
.rd-process-step { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: .06em; padding: 8px 16px; border-radius: 999px; }
@media (max-width: 980px) { .rd-process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rd-process { grid-template-columns: 1fr; } }

/* ---------- work grid ---------- */
.rd-work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rd-work-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.rd-work-card .ph { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.rd-work-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rd-work-card:hover .ph img { transform: scale(1.06); }
.rd-work-tag { position: absolute; left: 16px; bottom: 16px; background: var(--blue); color: #fff; font-family: Sora, Inter, sans-serif; font-weight: 800; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }
.rd-work-body { padding: 18px 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd-work-body h3 { font-size: 1rem; }
.rd-work-arrow { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: background .25s var(--ease), transform .25s var(--ease); }
.rd-work-arrow svg { width: 14px; height: 14px; }
.rd-work-card:hover .rd-work-arrow { background: var(--blue); color: #fff; transform: rotate(45deg); }
@media (max-width: 780px) { .rd-work-grid { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.rd-testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rd-testi-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 18px 44px -32px rgba(7,26,61,.22); }
.rd-testi-stars { display: flex; gap: 3px; color: var(--blue); margin-bottom: 14px; }
.rd-testi-stars svg { width: 15px; height: 15px; }
.rd-testi-card p.quote { color: var(--ink); font-size: 1rem; margin-bottom: 20px; }
.rd-testi-who { display: flex; align-items: center; gap: 12px; }
.rd-testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: Sora, Inter, sans-serif; font-weight: 800; flex: none; }
.rd-testi-who strong { display: block; font-size: .92rem; }
.rd-testi-who span { font-size: .8rem; color: var(--soft); }
@media (max-width: 700px) { .rd-testi-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.rd-faq-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.rd-faq-item { border-bottom: 1px solid var(--line); }
.rd-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.rd-faq-item summary::-webkit-details-marker { display: none; }
.rd-faq-item .plus { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: none; }
.rd-faq-item .plus::before, .rd-faq-item .plus::after { content: ""; position: absolute; background: var(--ink); left: 50%; top: 50%; transform: translate(-50%,-50%); }
.rd-faq-item .plus::before { width: 10px; height: 1.6px; }
.rd-faq-item .plus::after { width: 1.6px; height: 10px; transition: opacity .2s; }
.rd-faq-item[open] .plus::after { opacity: 0; }
.rd-faq-item[open] .plus { border-color: var(--blue); background: var(--blue); }
.rd-faq-item[open] .plus::before, .rd-faq-item[open] .plus::after { background: #fff; }
.rd-faq-body { padding: 0 30px 22px 4px; font-size: .92rem; color: var(--soft); }
.rd-faq-side { background: var(--navy); border-radius: var(--radius); padding: 30px; }
.rd-faq-side .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.rd-faq-side .ic svg { width: 20px; height: 20px; color: #fff; }
.rd-faq-side h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.rd-faq-side p { color: rgba(255,255,255,.62); font-size: .88rem; margin-bottom: 18px; }
@media (max-width: 900px) { .rd-faq-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.rd-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.rd-field { margin-bottom: 18px; }
.rd-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.rd-field input, .rd-field select, .rd-field textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper); font-family: Inter, sans-serif; font-size: .94rem; color: var(--ink); }
.rd-field input:focus, .rd-field select:focus, .rd-field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.rd-field textarea { min-height: 120px; resize: vertical; }
.rd-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .rd-field-row { grid-template-columns: 1fr; } }
.rd-contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.rd-contact-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: var(--shadow); }
.rd-contact-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rd-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.rd-info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: 0 16px 40px -32px rgba(7,26,61,.2); }
.rd-info-card .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin: 0 auto 14px; }
.rd-info-card .ic svg { width: 20px; height: 20px; color: #fff; }
.rd-info-card h3 { font-size: .98rem; margin-bottom: 6px; }
.rd-info-card p { font-size: .86rem; }
@media (max-width: 900px) { .rd-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .rd-info-cards { grid-template-columns: 1fr; } }

/* ---------- service detail ---------- */
.rd-detail-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 48px; aspect-ratio: 21/9; }
.rd-detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.rd-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 64px; }
.rd-check-list { display: grid; gap: 12px; margin-top: 20px; }
.rd-check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.rd-check-list svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.rd-detail-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 64px; }
.rd-detail-photos img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.rd-expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.rd-expertise-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 16px 40px -32px rgba(7,26,61,.2); }
.rd-expertise-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-family: Sora, Inter, sans-serif; font-weight: 800; margin-bottom: 16px; }
.rd-expertise-card h3 { font-size: 1rem; margin-bottom: 8px; }
.rd-expertise-card p { font-size: .88rem; }
.rd-metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 64px; }
.rd-metric { background: var(--navy); border-radius: var(--radius); padding: 26px; text-align: center; }
.rd-metric strong { display: block; font-family: Sora, Inter, sans-serif; font-size: 1.7rem; color: #fff; margin-bottom: 4px; }
.rd-metric span { font-size: .82rem; color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .rd-detail-grid, .rd-detail-photos { grid-template-columns: 1fr; } .rd-expertise-grid { grid-template-columns: 1fr 1fr; } .rd-metric-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rd-expertise-grid, .rd-metric-row { grid-template-columns: 1fr; } }

/* ---------- newsletter band ---------- */
.rd-newsletter { background: var(--bg); padding: 64px 0; text-align: center; }
.rd-newsletter h2 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 22px; }
.rd-newsletter-form { display: inline-flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; max-width: 460px; width: 100%; }
.rd-newsletter-form input { flex: 1; border: none; background: transparent; padding: 12px 16px; font-size: .92rem; outline: none; }
.rd-newsletter-form button { border: none; background: var(--blue); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px; cursor: pointer; font-family: Sora, Inter, sans-serif; }
.rd-newsletter-form button:hover { background: #0048d6; }

/* ---------- footer ---------- */
.rd-footer { background: var(--navy); color: rgba(255,255,255,.62); padding: 64px 0 26px; }
.rd-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rd-footer-logo { height: 30px; margin-bottom: 16px; }
.rd-footer p { color: rgba(255,255,255,.58); font-size: .92rem; margin-bottom: 18px; }
.rd-footer h3 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.rd-footer a { display: block; color: rgba(255,255,255,.62); margin-bottom: 9px; font-size: .9rem; }
.rd-footer a:hover { color: #fff; }
.rd-footer-social { display: flex; gap: 10px; }
.rd-footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.rd-footer-social a:hover { background: var(--blue); }
.rd-footer-social svg { width: 15px; height: 15px; }
.rd-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .84rem; }
@media (max-width: 900px) { .rd-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rd-footer-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.rd-cta-band { background: var(--blue); padding: 64px 0; text-align: center; }
.rd-cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.rd-cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 24px; text-align: center; }
.rd-cta-band .rd-hero-actions { justify-content: center; margin-top: 26px; }
.rd-cta-band .rd-btn-outline-dark:hover { background: rgba(255,255,255,.15); }

/* ---------- brand pattern texture ---------- */
.rd-hero, .rd-section.dark, .rd-cta-band, .rd-footer { position: relative; overflow: hidden; }
.rd-wrap, .rd-wrap-narrow { position: relative; z-index: 1; }
.rd-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("assets/patterns/brand-pattern-blue-small.png");
  background-size: 260px auto; background-repeat: repeat; opacity: .07;
  -webkit-mask-image: linear-gradient(120deg, transparent 0%, transparent 38%, #000 68%);
  mask-image: linear-gradient(120deg, transparent 0%, transparent 38%, #000 68%);
}
.rd-section.dark::before, .rd-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("assets/patterns/brand-pattern-white-small.png");
  background-size: 280px auto; background-repeat: repeat; opacity: .08;
}
.rd-cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("assets/patterns/brand-pattern-white-small.png");
  background-size: 230px auto; background-repeat: repeat; opacity: .12;
}

/* reveal-on-scroll (simple) */
.rd-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rd-reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- team grid ---------- */
.rd-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rd-team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 40px -30px rgba(7,26,61,.2); transition: transform .3s var(--ease); }
.rd-team-card:hover { transform: translateY(-6px); }
.rd-team-card .ph { aspect-ratio: 4/5; }
.rd-team-card .bd { padding: 16px 18px 20px; }
.rd-team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.rd-team-card .bd span { font-size: .86rem; color: var(--soft); font-weight: 600; }
@media (max-width: 780px) { .rd-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rd-team-grid { grid-template-columns: 1fr; } }

/* ---------- interactive photo gallery (drag-to-spin reel) ---------- */
.rd-gallery-section { overflow: visible; }
.rd-gallery { position: relative; height: 380px; perspective: 1400px; margin-top: 20px; touch-action: pan-y; cursor: grab; }
.rd-gallery.is-dragging { cursor: grabbing; }
.rd-gallery-ring { position: absolute; inset: 0; margin: auto; width: 240px; height: 300px; transform-style: preserve-3d; transition: transform .12s linear; }
.rd-gallery-ring.is-settling { transition: transform .5s var(--ease); }
.rd-gallery-item { position: absolute; inset: 0; margin: auto; width: 220px; height: 290px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); backface-visibility: hidden; }
.rd-gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.rd-gallery-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(7,26,61,.92); display: none; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; }
.rd-gallery-lightbox.is-open { display: flex; }
.rd-gallery-lightbox img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); filter: grayscale(1); }
.rd-gallery-lightbox-close { position: absolute; top: 26px; right: 30px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.rd-gallery-lightbox-close:hover { background: rgba(255,255,255,.12); }
@media (max-width: 620px) {
  .rd-gallery { height: 300px; }
  .rd-gallery-ring { width: 180px; height: 230px; }
  .rd-gallery-item { width: 165px; height: 220px; }
}

/* form status */
.rd-form-status { margin-top: 14px; font-size: .88rem; font-weight: 600; color: var(--blue); }


/* ---------- PDF deck lightbox ---------- */
.rd-deck{position:fixed;inset:0;z-index:1200;display:none;flex-direction:column;background:rgba(7,26,61,.96);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.rd-deck.is-open{display:flex}
.rd-deck-bar{display:flex;align-items:center;gap:16px;padding:18px 22px;border-bottom:1px solid rgba(255,255,255,.12)}
.rd-deck-title{font-weight:650;font-size:15px;letter-spacing:-.01em;color:#fff;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-deck-count{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-light);font-variant-numeric:tabular-nums}
.rd-deck-close{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.rd-deck-close svg{width:18px;height:18px}
.rd-deck-close:hover{background:var(--blue);border-color:var(--blue);transform:rotate(90deg)}
.rd-deck-close:focus-visible{outline:2px solid var(--blue-2);outline-offset:2px}
.rd-deck-stage{flex:1;min-height:0;display:flex;align-items:stretch;gap:14px;padding:22px}
.rd-deck-frame{flex:1;min-width:0;min-height:0;display:grid;place-items:center;position:relative;overflow:hidden}
.rd-deck-canvas{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:var(--radius-sm);box-shadow:0 40px 90px -40px rgba(0,0,0,.7);background:#fff;transition:opacity .18s}
.rd-deck-img{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:auto;height:auto;border-radius:var(--radius-sm);box-shadow:0 40px 90px -40px rgba(0,0,0,.7);background:#fff;transition:opacity .18s}
.rd-deck.is-loading .rd-deck-canvas,.rd-deck.is-loading .rd-deck-img{opacity:.25}
.rd-deck-spin{position:absolute;top:50%;left:50%;margin:-17px 0 0 -17px;width:34px;height:34px;border-radius:999px;border:2px solid rgba(255,255,255,.2);border-top-color:var(--blue-2);opacity:0;animation:rd-deck-spin .7s linear infinite}
.rd-deck.is-loading .rd-deck-spin{opacity:1}
@keyframes rd-deck-spin{to{transform:rotate(360deg)}}
.rd-deck-nav{flex:none;align-self:center;display:grid;place-items:center;width:52px;height:52px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;transition:background .18s,border-color .18s,opacity .18s}
.rd-deck-nav svg{width:22px;height:22px}
.rd-deck-nav:hover:not(:disabled){background:var(--blue);border-color:var(--blue)}
.rd-deck-nav:disabled{opacity:.25;cursor:default}
.rd-deck-nav:focus-visible{outline:2px solid var(--blue-2);outline-offset:2px}
.rd-deck-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;padding:0 22px 22px}
.rd-deck-dots button{width:26px;height:4px;border:0;border-radius:999px;background:rgba(255,255,255,.22);cursor:pointer;padding:0;transition:background .18s}
.rd-deck-dots button:hover{background:rgba(255,255,255,.45)}
.rd-deck-dots button.is-on{background:var(--blue-2)}
.rd-deck-dots button:focus-visible{outline:2px solid var(--blue-2);outline-offset:3px}
@media (max-width:760px){
  .rd-deck-stage{padding:14px;gap:8px}
  .rd-deck-nav{width:42px;height:42px}
  .rd-deck-dots button{width:16px}
}


/* ---------- hero: rotating word (index) ---------- */
.rd-hero h1 .rd-rot { position: relative; display: inline-grid; vertical-align: baseline; overflow: hidden; padding: .1em 0 .2em; margin: -.1em 0 -.2em; }
.rd-hero h1 .rd-rot-sizer { visibility: hidden; grid-area: 1 / 1; white-space: nowrap; }
.rd-hero h1 .rd-rot-word { grid-area: 1 / 1; white-space: nowrap; color: var(--blue); opacity: 0; transform: translateY(0.62em); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rd-hero h1 .rd-rot-word.is-in { opacity: 1; transform: none; }
.rd-hero h1 .rd-rot-word.is-out { opacity: 0; transform: translateY(-0.62em); }
@media (prefers-reduced-motion: reduce) {
  .rd-hero h1 .rd-rot-word { transition-duration: .2s; transform: none; }
  .rd-hero h1 .rd-rot-word.is-out { transform: none; }
}

/* ---------- hero: dedicated tablet + mobile composition (index) ---------- */
@media (max-width: 1023px) {
  .rd-hero { padding: 40px 0 44px; }
  .rd-hero .rd-collage { display: none; }
  .rd-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .rd-hero .rd-eyebrow { margin-bottom: 18px; }
  .rd-hero h1 { font-size: clamp(2.05rem, 8.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 18px; }
  .rd-hero p.lede { font-size: 1.02rem; line-height: 1.6; max-width: 34ch; margin-bottom: 30px; }
  .rd-hero-actions { gap: 14px; }
  .rd-hero .rd-hero-actions .rd-btn-primary { min-height: 54px; padding: 0 26px; font-size: .96rem; }
  .rd-hero .rd-hero-actions .rd-link-arrow { min-height: 54px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .96rem; }
  .rd-hero-spark { position: absolute; z-index: 0; color: var(--blue-2); pointer-events: none; }
  .rd-hero-spark svg { display: block; width: 100%; height: 100%; }
  .rd-hero-spark.a { top: 12px; right: 6%; width: 30px; height: 30px; opacity: .5; }
  .rd-hero-spark.b { bottom: 34px; right: 14%; width: 16px; height: 16px; color: var(--navy); opacity: .35; }
}
@media (min-width: 561px) and (max-width: 1023px) {
  .rd-hero { padding: 52px 0 60px; }
  .rd-hero p.lede { max-width: 46ch; font-size: 1.06rem; }
  .rd-hero-actions { gap: 18px; }
}
@media (max-width: 560px) {
  .rd-hero .rd-hero-actions { flex-direction: column; align-items: stretch; }
  .rd-hero .rd-hero-actions .rd-btn-primary,
  .rd-hero .rd-hero-actions .rd-link-arrow { width: 100%; justify-content: center; }
  .rd-hero-spark.a { width: 24px; height: 24px; right: 5%; }
}
@media (max-width: 380px) {
  .rd-hero h1 { font-size: 1.92rem; }
  .rd-hero p.lede { font-size: .96rem; }
}
