/* =========================================================
   Portfolio – WordPress Developer
   Layout: sticky left sidebar (rail + profile card),
   right column scrolls.
   ========================================================= */

/*===== TOKENS =====*/
:root {
  --bg: #0f1c1b;
  --bg-2: #132321;
  --card: #1a2a28;
  --card-2: #213432;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ffffff;
  --muted: #b3bfbd;
  --accent: #ffb31a;
  --accent-2: #ffc34d;
  --on-accent: #0f1c1b;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Playfair Display", Georgia, serif;

  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 88px;
  --side-top: calc(var(--header-h) + 24px);
  --rail-size: clamp(48px, calc((100vh - var(--side-top) - 24px - 7 * 14px) / 8), 76px);
  --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: dark;
}

/*===== RESET =====*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../img/bg-lines.svg"), radial-gradient(1200px 600px at 80% -10%, rgba(255, 179, 26, .07), transparent 60%);
  background-size: 800px 800px, 100% 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 700; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* icons */
.i, .i-fill { width: 1.25em; height: 1.25em; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 32px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

/* accessibility helpers */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10000;
  padding: 12px 20px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.skip-link:focus { top: 16px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/*===== BUTTONS =====*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.btn-accent:hover { color: var(--bg); }
.btn-accent:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text); transition: background .3s, color .3s;
}
.icon-btn .i { width: 26px; height: 26px; }
.icon-btn:hover { color: var(--accent); }

@keyframes spin { to { transform: rotate(360deg); } }

/*===== CURSOR =====*/
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  border-radius: 50%; opacity: 0; transition: opacity .3s;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent); margin: -4px 0 0 -4px; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--accent);
  transition: opacity .3s, width .3s, height .3s, margin .3s, background .3s;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 179, 26, .12); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/*===== PROGRESS / BACK TO TOP =====*/
.progress-wrap {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: var(--card);
  box-shadow: inset 0 0 0 2px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .3s var(--ease);
}
.progress-wrap.show { opacity: 1; visibility: visible; transform: none; }
.progress-wrap .progress-circle { position: absolute; inset: 0; width: 100%; height: 100%; }
.progress-circle path { fill: none; stroke: var(--accent); stroke-width: 4; }
.progress-wrap .i { width: 20px; height: 20px; }

/*===== HEADER =====*/
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled {
  background: rgba(15, 28, 27, .85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 18px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
}
.logo-mark .i { width: 26px; height: 26px; stroke-width: 2.2; }
.logo-text { font-size: 28px; font-weight: 800; letter-spacing: .02em; }
.logo-text em { color: var(--accent); font-style: normal; }

/*===== OFFCANVAS =====*/
.offcanvas { position: fixed; inset: 0; z-index: 200; visibility: hidden; overflow: hidden; }
.offcanvas.open { visibility: visible; }
.offcanvas-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .4s; }
.offcanvas.open .offcanvas-overlay { opacity: 1; }
.offcanvas-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: min(400px, 90vw);
  background: var(--bg-2); border-left: 1px solid var(--line);
  padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%); transition: transform .5s var(--ease);
}
.offcanvas.open .offcanvas-panel { transform: none; }
.offcanvas-top { display: flex; align-items: center; justify-content: space-between; }
.offcanvas-links li + li { border-top: 1px solid var(--line); }
.offcanvas-links a {
  display: flex; justify-content: space-between; padding: 12px 0;
  font-size: 18px; font-weight: 600; transition: color .3s, padding .3s;
}
.offcanvas-links a:hover, .offcanvas-links a.active { color: var(--accent); padding-left: 8px; }
.offcanvas-heading { font-size: 20px; font-weight: 700; margin-bottom: -8px; }

/*===== SOCIAL LIST =====*/
.social-list { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-list a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: var(--text);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.social-list a .i-fill, .social-list a .i { width: 18px; height: 18px; }
.social-list a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.offcanvas .social-list { justify-content: flex-start; }

/*===== LAYOUT =====*/
.layout {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 56px; padding-top: var(--side-top); padding-bottom: 60px;
  align-items: start; overflow-x: clip;
}
.side {
  position: sticky; top: var(--side-top);
  display: grid; grid-template-columns: var(--rail-size) minmax(0, 1fr); gap: 20px;
  align-items: start;
}

/* icon rail */
.rail { display: flex; flex-direction: column; gap: 14px; }
.rail a {
  position: relative; width: var(--rail-size); height: var(--rail-size);
  display: grid; place-items: center; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.rail a .i { width: 42%; height: 42%; }
.rail a.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rail a::after {
  content: attr(data-label); position: absolute; left: calc(100% + 8px); top: 0;
  width: calc(var(--rail-size) * 2.5); height: 100%;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap; pointer-events: none;
  background: var(--accent); color: var(--on-accent);
  font-size: clamp(16px, calc(var(--rail-size) * .3), 22px); font-weight: 700; letter-spacing: .01em;
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateX(-10px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s; z-index: 5;
}
.rail a:hover::after, .rail a:focus-visible::after { opacity: 1; visibility: visible; transform: none; }
.rail a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: none; }

/* profile card */
.profile-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 22px; text-align: center;
  max-height: calc(100vh - var(--side-top) - 24px); overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.profile-card::-webkit-scrollbar { display: none; }
.profile-img picture { display: contents; }
.profile-img { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; flex-shrink: 0; }
.profile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center center; transition: transform .8s var(--ease); }
@supports not (aspect-ratio: 1 / 1) { .profile-img { height: 0; padding-top: 100%; } .profile-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } }
.profile-card:hover .profile-img img { transform: scale(1.05); }
.status {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(15, 28, 27, .75); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.profile-card .profile-name { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 4px; color: var(--text); }
.profile-card > p { color: var(--muted); font-size: 16px; max-width: 360px; }
.profile-card strong { color: var(--text); }
.profile-card .copy { font-size: 14px; }

/*===== CONTENT & SECTIONS =====*/
.content { min-width: 0; }
.section { padding-bottom: 110px; }
.section-head { margin-bottom: 48px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 600; color: var(--muted); margin-bottom: 18px;
}
.eyebrow .i { color: var(--accent); width: 26px; height: 26px; stroke-width: 2.2; }
.display {
  font-size: clamp(38px, 5.2vw, 76px); font-weight: 600; letter-spacing: -.01em; line-height: 1.12;
}
h2.display { font-size: clamp(34px, 4.4vw, 64px); }
.display .line { display: block; }
.display .line + .line { margin-top: 10px; }
.display .indent { padding-left: clamp(0px, 4vw, 60px); }
.script {
  font-family: var(--font-script); font-style: italic; font-weight: 800; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px;
}

/* generic card */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.card h4 { font-size: 22px; }
.card p { color: var(--muted); }
.icon-box {
  width: 64px; height: 64px; border-radius: var(--radius); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
  background: var(--card-2); color: var(--accent);
  border: 1px solid var(--line); transition: background .35s, color .35s;
}
.icon-box .i { display: block; width: 28px; height: 28px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/*===== HERO =====*/
.hero { padding-top: 0; }
.hero .lead {
  max-width: 560px; margin: 26px 0 0 auto; color: rgba(255, 255, 255, .88); font-size: 17px; font-weight: 500;
}
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 0 32px; flex-wrap: wrap; }

.rotating-badge { position: relative; width: 140px; height: 140px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); }
.badge-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge-text text { fill: var(--text); font-size: 12.5px; font-weight: 700; }
.badge-arrow { width: 36px; height: 36px; color: var(--text); transition: transform .4s var(--ease), color .3s; }
.rotating-badge:hover .badge-arrow { transform: rotate(45deg); color: var(--accent); }

.employers { display: flex; gap: 32px; flex-wrap: wrap; }
.employers > div { padding-left: 16px; border-left: 2px solid var(--accent); }
.employers dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.employers dd { font-size: 20px; font-weight: 700; line-height: 1.3; }
.employers dd span { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.employers dd a, .tl-item p a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.employers dd a:hover, .tl-item p a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.cta-box {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 44px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  font-size: clamp(28px, 3.8vw, 58px); font-weight: 600; transition: background .4s, border-color .4s;
}
.cta-arrow {
  width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px); border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--card-2); transition: background .4s, color .4s, transform .4s var(--ease);
}
.cta-arrow .i { width: 40%; height: 40%; stroke-width: 2.4; }
.cta-box:hover { border-color: var(--accent); }
.cta-box:hover .cta-arrow { background: var(--accent); color: var(--on-accent); transform: rotate(45deg); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stat { padding: 24px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(28px, 3vw, 40px); color: var(--accent); line-height: 1.1; }
.stat > span { color: var(--muted); font-size: 14px; font-weight: 500; }

/*===== ABOUT =====*/
.about-main { margin-bottom: 24px; }
.about-main h4 { font-size: 28px; margin-bottom: 16px; }
.about-main strong { color: var(--text); }
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature h4 { margin-bottom: 10px; font-size: 20px; }
.feature:hover, .service:hover, .info:hover { border-color: var(--accent); }
.feature:hover .icon-box, .service:hover .icon-box, .info:hover .icon-box { background: var(--accent); color: var(--on-accent); }

.timeline-wrap { margin-top: 64px; }
.sub-title { font-size: 30px; margin-bottom: 24px; }
.timeline { display: grid; gap: 28px; margin-bottom: 24px; }
.tl-item { position: relative; padding-left: 22px; border-left: 2px solid var(--line-2); }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl-date {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 12px;
}
.tl-item h4 { font-size: 20px; margin-bottom: 6px; }
.stay h4 { margin-bottom: 18px; }
.location { display: flex; align-items: center; gap: 18px; }
.location h4 { font-size: 20px; margin-bottom: 4px; }

/*===== SERVICES =====*/
.service-list { display: grid; gap: 20px; }
.service {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px;
}
.service h4 { margin-bottom: 8px; }

/*===== SKILLS =====*/
.skill-tiers { display: grid; gap: 20px; }
.tier { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 32px; align-items: center; }
.tier-head h3 { font-size: 24px; margin-bottom: 6px; }
.tier-head p { font-size: 15px; }
.tier:first-child { border-color: var(--accent); }
.tier:first-child .tier-head h3 { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
  border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2);
  font-size: 16px; font-weight: 600;
}
.chips .i { width: 20px; height: 20px; color: var(--accent); }
.tools-title { margin-top: 56px; margin-bottom: 0; font-size: 24px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-cloud li {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--card); transition: all .3s;
}
.tag-cloud li:hover { border-color: var(--accent); color: var(--accent); }
.tag-cloud.small { margin-top: 18px; }
.tag-cloud.small li { padding: 5px 14px; font-size: 13px; }

/*===== PORTFOLIO =====*/
.section-lead { max-width: 640px; margin-top: 22px; color: var(--muted); font-size: 17px; }

/* browser chrome shared by case studies and tiles */
.browser-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: var(--card-2); border-bottom: 1px solid var(--line);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-bar i:first-child { background: #ff6b6b; }
.browser-bar i:nth-child(2) { background: var(--accent); }
.browser-bar i:nth-child(3) { background: #3ddc84; }
.browser-bar span {
  flex: 1; min-width: 0; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* featured case studies */
.cases { display: grid; gap: 28px; }
.case {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .35s;
}
.case:hover { border-color: var(--accent); }
.case-shot { position: relative; display: block; padding: 0 22px 26px 0; }
.browser { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); box-shadow: var(--shadow); }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .9s var(--ease); }
.case-phone {
  position: absolute; right: 0; bottom: 0; width: 26%; height: auto; aspect-ratio: 390 / 740; object-fit: cover; object-position: top;
  border: 4px solid #0a1312; border-radius: 16px; background: var(--bg); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  transition: transform .6s var(--ease);
}
.case-shot:hover .browser img { transform: scale(1.03); }
.case-shot:hover .case-phone { transform: translateY(-8px) rotate(-2deg); }
.case-body h3 { font-size: 28px; }
.case-what { color: var(--muted); margin-top: 6px; }

.scores { display: flex; gap: 22px; margin: 24px 0; }
.score {
  --c: #3ddc84;
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--s) * 1%), var(--line) 0);
}
.score.mid { --c: var(--accent); }
.score::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.score b { position: relative; margin-top: -10px; font-size: 26px; line-height: 1; color: var(--c); }
.score small { position: absolute; bottom: 17px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line-2); }
.case-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--accent); font-weight: 700; }
.case-link .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.case-link:hover .i { transform: translate(2px, -2px); }
.cases-note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* all sites grid */
.more-title { margin-top: 72px; margin-bottom: 20px; }
.site-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 600;
  transition: background .3s, color .3s, border-color .3s;
}
.filter-btn .n { color: var(--muted); font-size: 12px; transition: color .3s; }
.filter-btn:hover { border-color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-btn[aria-pressed="true"] .n { color: var(--on-accent); }

.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site a {
  display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); transition: border-color .35s, transform .35s var(--ease);
}
.site .browser-bar { height: 26px; padding: 0 10px; }
.site .browser-bar i { width: 7px; height: 7px; }
.site .browser-bar span { font-size: 11px; }
.site img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.site-info { display: grid; gap: 2px; padding: 16px 16px 10px; }
.site-info strong { font-size: 17px; transition: color .3s; }
.site-info span { color: var(--muted); font-size: 14px; }
.site-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 0 16px 16px; }
.site-tags span { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line-2); }
.site-tags .tag-dev { color: var(--accent); border-color: rgba(255, 179, 26, .4); }
.site a:hover { border-color: var(--accent); transform: translateY(-4px); }
.site a:hover .site-info strong { color: var(--accent); }
.site-more { margin-top: 28px; text-align: center; }

/*===== PROCESS =====*/
.process { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.step { padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-no {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 20px; font-weight: 800;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); }

/*===== TESTIMONIALS =====*/
.testi-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.testi { display: flex; flex-direction: column; gap: 20px; }
.testi-top { display: flex; justify-content: space-between; align-items: center; }
.stars { display: flex; gap: 4px; color: var(--accent); }
.stars .i-fill { width: 18px; height: 18px; }
.quote { width: 34px; height: 28px; color: var(--accent); opacity: .9; }
.testi blockquote { font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .9); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi figcaption img { width: 56px; height: 56px; border-radius: 50%; }
.testi figcaption strong { display: block; font-size: 18px; }
.testi figcaption span { color: var(--muted); font-size: 14px; }
.testi:hover { border-color: var(--accent); }

/*===== CONTACT =====*/
.contact-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.info { display: flex; align-items: center; gap: 16px; padding: 22px; }
.info .icon-box { width: 54px; height: 54px; }
.info div > span { display: block; color: var(--muted); font-size: 14px; }
.info a, .info p { font-weight: 700; color: var(--text); word-break: break-word; }
.info a:hover { color: var(--accent); }

.contact-form h3 { font-size: 30px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 16px 20px; border-radius: var(--radius);
  background: var(--card-2); border: 1px solid var(--line); outline: none; color: var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23ffb31a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.contact-form select option { background: var(--card); color: var(--text); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form ::placeholder { color: var(--muted); opacity: .85; }
.contact-form :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 179, 26, .15); }
.contact-form .invalid { border-color: #ff6b6b !important; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.2em; margin-top: 14px; }
.form-msg.ok { color: #3ddc84; }
.form-msg.err { color: #ff6b6b; }
.contact-form button[disabled] { opacity: .65; cursor: wait; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding: 28px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.site-footer p { color: var(--muted); }
#contact.section { padding-bottom: 20px; }

body.no-scroll { overflow: hidden; }

/*===== REVEAL ANIMATIONS =====*/
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(50px); }
[data-reveal="right"] { transform: translateX(-50px); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].in { opacity: 1; transform: none; }
.card[data-reveal].in:hover { transition-delay: 0s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/*===== RESPONSIVE =====*/
@media (max-width: 1399px) {
  .layout { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 1199px) {
  .layout { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 36px; }
  .contact-info { grid-template-columns: 1fr; }
  .grid-2:not(.timeline-wrap) { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  :root { --header-h: 76px; }
  .container { padding-inline: 20px; }
  .layout { grid-template-columns: 1fr; gap: 60px; }
  .side { position: static; grid-template-columns: 1fr; }
  .rail { display: none; }
  .case { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .site-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-card { max-height: none; max-width: 520px; margin-inline: auto; width: 100%; }
  .grid-2:not(.timeline-wrap) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding-bottom: 90px; }
  .header-actions .btn-accent { padding: 11px 20px; }
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(30px); }
}

@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testi-grid { grid-template-columns: 1fr; }
  .span-7, .span-5 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .tier { grid-template-columns: 1fr; gap: 18px; }
  .step { padding: 24px; }
  .card { padding: 24px; }
  .cta-box { padding: 32px 20px; gap: 18px; }
  .hero .lead { margin-left: 0; }
  .display .indent { padding-left: 0; }
  .eyebrow { font-size: 16px; }
  .site-footer { justify-content: center; text-align: center; }
  .progress-wrap { right: 16px; bottom: 16px; }
}

@media (max-width: 575px) {
  .container { padding-inline: 16px; }
  .header-actions { gap: 10px; }
  .header-actions .btn-accent { display: none; }
  .logo-text { font-size: 24px; }
  .chips li { font-size: 15px; padding: 8px 14px 8px 12px; }

  .feature { flex-direction: column; }
  .hero-meta { justify-content: flex-start; }
  .employers { gap: 20px; }
  .rotating-badge { width: 120px; height: 120px; }
  .testi blockquote { font-size: 16px; }
  .site-grid { grid-template-columns: 1fr; }
  .case-body h3 { font-size: 24px; }
  .scores { gap: 16px; }
}
