/* Same Instrument Sans files (v4) the live Framer site loads; newer Google Fonts builds are slightly wider. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap;
  src: url("https://fonts.gstatic.com/s/instrumentsans/v4/pximypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr-yp2JGEJOH9npSTF-QfwmS0v3_7Y.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500 700; font-display: swap;
  src: url("https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1Q.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-weight: 500 700; font-display: swap;
  src: url("https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0She1YmV.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: rgb(11, 11, 11);
  --surface: rgb(20, 20, 20);
  --surface-hover: rgb(32, 32, 32);
  --text: rgb(255, 255, 255);
  --muted: rgb(134, 134, 134);
  --icon: rgb(131, 131, 131);
  --font: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* ---------- Layout (Desktop ≥ 1200px) ---------- */
.page {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 16px 0;
  overflow: clip;
}

.menu {
  position: sticky;
  top: 16px;
  z-index: 3;
  width: 330px;
  min-width: 330px;
  height: 97vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro { flex: 1; display: flex; flex-direction: column; gap: 16px; }

.logo { display: flex; align-items: center; gap: 8px; height: 42px; }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 999px; overflow: hidden; flex: none; }
.avatar-bg { position: absolute; top: 0; left: 4px; width: 44px; height: 44px; border-radius: 50%; background: rgb(217, 217, 217); }
.avatar img { position: absolute; top: 0; left: -8px; width: 58px; height: 43px; object-fit: cover; }
.logo-text { flex: 1; display: flex; flex-direction: column; }
.name { font-size: 16px; font-weight: 500; line-height: 24px; }
.role { font-size: 14px; line-height: 18px; color: var(--muted); }

.headline { font-size: 18px; font-weight: 600; line-height: 1.3; }
.headline span { display: block; }
.headline .muted { color: var(--muted); }

.bio { font-size: 16px; line-height: 24px; color: var(--muted); }

.cta { display: flex; flex-direction: column; gap: 8px; }
.cta-row { display: flex; gap: 8px; }
.cta-row .btn { flex: 1; }
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  transition: background-color .25s ease;
}
.btn .arrow { width: 24px; height: 24px; color: #fff; transition: transform .25s ease; }
.btn:hover { background: var(--surface-hover); }
.btn:hover .arrow { transform: translateX(3px); }

.menu-footer { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.copy { flex: 1; font-size: 12px; line-height: 24px; color: var(--icon); }
/* Social links: Framer's "rotate swap". Each link holds a 72px layer with two copies of the icon:
   A in the visible spot, B to its right (pre-rotated 90°, hidden). On hover the layer turns -90°
   around its centre (24px below the icon), so A swings out left and fades while B swings up into place.
   The row clips everything outside it, as in Framer. */
.socials { display: flex; gap: 8px; overflow: clip; }
.socials a { position: relative; display: block; width: 40px; height: 40px; border-radius: 8px; }
.socials a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.soc-spin {
  position: absolute;
  left: -16px;
  top: 8px;
  width: 72px;
  height: 72px;
  transition: transform .45s cubic-bezier(.3, .6, .3, 1);
}
.soc-spin svg {
  position: absolute;
  width: 24px;
  height: 24px;
  fill: var(--icon);
  transition: opacity .45s cubic-bezier(.3, .6, .3, 1);
}
.soc-a { left: 24px; top: 0; }
.soc-b { left: 48px; top: 24px; transform: rotate(90deg); opacity: 0; }
@media (hover: hover) {
  .socials a:hover .soc-spin { transform: rotate(-90deg); }
  .socials a:hover .soc-a { opacity: 0; }
  .socials a:hover .soc-b { opacity: 1; }
}
.socials a:focus-visible .soc-spin { transform: rotate(-90deg); }
.socials a:focus-visible .soc-a { opacity: 0; }
.socials a:focus-visible .soc-b { opacity: 1; }

/* ---------- Projects grid ---------- */
.projects {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
  align-items: start;
}
.project { display: flex; flex-direction: column; gap: 16px; }
.thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.166;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate; /* keeps the zoomed cover clipped to the rounded corners in Safari */
  background-color: var(--surface);
}
/* Cover as a real <img> (like Framer): browsers resample <img> more smoothly than CSS backgrounds,
   which looked grainy when a large image is shrunk into the card. It zooms inside the frame on hover. */
.thumb .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Cards marked .no-zoom (Globus Travel) keep a still cover on hover */
.thumb:not(.no-zoom) .cover { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .thumb:not(.no-zoom):hover .cover { transform: scale(1.06); }
}
.thumb:not(.no-zoom):focus-visible .cover { transform: scale(1.06); }
.meta { display: flex; align-items: center; justify-content: space-between; }
.title { font-size: 16px; font-weight: 500; line-height: 24px; }
.tag { font-size: 14px; line-height: 18px; color: var(--muted); }

/* Bulgaria Air gif */
.gif {
  position: absolute;
  top: 9.1%;
  bottom: 8.6%;
  left: 51%;
  transform: translateX(-50%);
  height: 82.3%;
  width: auto;
  border-radius: 16px;
}

/* Globus carousel holder: top 57 / bottom 56 of a 373px tall card */
.dc-holder { position: absolute; left: 0; right: 0; top: 15.3%; bottom: 15%; }

/* ---------- Destinations carousel (port of DestinationsCarousel.tsx) ---------- */
.dc-root{position:relative;width:100%;height:100%;overflow:hidden;outline:none;isolation:isolate;--dc-k:1;--dc-cy:50%;
  --dc-ring:#fff;--dc-arrow:#fff;--dc-arrow-bg:rgba(255,255,255,.15);--dc-arrow-line:rgba(255,255,255,.15)}
.dc-root:focus-visible{outline:2px solid var(--dc-ring);outline-offset:-3px}
.dc-track{position:absolute;inset:0;touch-action:pan-y;cursor:pointer;user-select:none;-webkit-user-select:none}
.dc-track.is-dragging{cursor:grabbing}
.dc-card{position:absolute;left:50%;top:var(--dc-cy);width:250px;height:380px;margin:-190px 0 0 -125px;border-radius:28px;
  overflow:hidden;background:#1b2126;box-shadow:0 26px 44px -26px rgba(0,0,0,.5);will-change:transform,opacity;
  --a:0;--b:0px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.dc-art{position:absolute;inset:0;will-change:transform,filter;filter:blur(var(--b)) brightness(calc(.84 + var(--a)*.16))}
.dc-art img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;user-select:none}
.dc-shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.3) 0,rgba(0,0,0,0) 22%,rgba(0,0,0,0) 56%,rgba(6,10,14,.74) 100%)}
.dc-ring{position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 2.5px var(--dc-ring);opacity:var(--a)}
.dc-tag{position:absolute;left:16px;top:16px;display:flex;align-items:center;gap:8px;color:#fff;font-size:12.5px;font-weight:500;
  line-height:1;letter-spacing:-.005em;text-shadow:0 1px 10px rgba(0,0,0,.35);opacity:calc(.6 + var(--a)*.4)}
.dc-flag{width:22px;height:22px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.55);flex:none}
.dc-flag svg{display:block;width:100%;height:100%}
.dc-price{position:absolute;left:16px;right:16px;bottom:15px;color:#fff;opacity:calc(.6 + var(--a)*.4)}
.dc-price small{display:block;font-size:11px;line-height:1.2;opacity:.92;margin-bottom:3px}
.dc-price b{font-size:23px;font-weight:600;letter-spacing:-.025em;line-height:1}
.dc-price span{font-size:10.5px;margin-left:2px;opacity:.92}
.dc-nav{position:absolute;left:50%;top:calc(var(--dc-cy) + var(--dc-k)*190px + 14px);transform:translateX(-50%);
  display:flex;gap:4px;z-index:300;pointer-events:none}
.dc-arrow{position:relative;width:24px;height:24px}
.dc-face{position:absolute;inset:0;border-radius:50%;display:grid;place-items:center;
  background:var(--dc-arrow-bg);color:var(--dc-arrow);border:1px solid var(--dc-arrow-line);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}

/* ---------- Preloader ---------- */
body.is-loading { overflow: hidden; }
/* Returning to the home page: no splash (see the inline script in index.html) */
.skip-splash .preload { display: none; }
.skip-splash body.is-loading { overflow: visible; }
.preload {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgb(24, 24, 24) 0%, rgb(5, 5, 5) 100%);
  transition: transform .7s cubic-bezier(.76, 0, .24, 1);
}
.preload.is-done { transform: translateY(-100%); }
.preload-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.preload-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}
.preload-stack img.in { transform: translateY(0); }
.preload-count {
  position: absolute;
  right: 0;
  bottom: 16px;
  padding: 0 4px;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.preload-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; }
.preload-bar span { display: block; height: 100%; width: 0; margin-left: auto; background: #fff; }

/* ---------- Project pages ---------- */
.p-side {
  position: sticky;
  top: 16px;
  width: 330px;
  min-width: 330px;
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.p-head { display: flex; flex-direction: column; gap: 24px; }
/* Back button (Framer "Back" component): a 42px circle with an arrow that grows into a 90px
   "← Home" pill on hover. The arrow stays in place; the label fades in beside it. */
.back {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 42px;
  height: 42px;
  padding-left: 14px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
  transition: width .4s cubic-bezier(.22, 1, .36, 1);
}
.back svg { flex: none; }
.back-label {
  font-size: 14px;
  line-height: 17px;
  color: #fff;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .back:hover { width: 90px; }
  .back:hover .back-label { opacity: 1; transform: none; transition-delay: .05s; }
}
.back:focus-visible { width: 90px; outline: 2px solid #fff; outline-offset: 3px; }
.back:focus-visible .back-label { opacity: 1; transform: none; }
.p-logo { display: block; width: 80px; height: 80px; }
/* The Framer page sets titles in Neue Haas Grotesk Display Pro but never loads it, so it renders in the system sans-serif. */
.p-title { font-family: "Neue Haas Grotesk Display Pro", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; }
.p-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.p-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.p-meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.3; }
.p-meta div { display: block; }
.p-meta dt, .p-meta dd { display: inline; }
.p-meta dt { color: rgb(122, 131, 144); }
.p-meta dd { color: #fff; font-weight: 600; }
.p-meta a:hover { text-decoration: underline; }

.p-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
.shot { margin: 0; width: 100%; border-radius: 8px; overflow: hidden; background: var(--surface); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.p-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 56px 0; }
.p-text + .p-text { margin-top: -80px; }
.p-text h2 { font-size: 12px; font-weight: 400; line-height: 1.5; text-transform: uppercase; }
.p-body { font-size: 16px; line-height: 1.4; color: var(--muted); }
.p-body ul { padding-left: 1.5em; }
.p-text.is-loose .p-body { line-height: 1.6; color: rgb(102, 102, 102); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- About page ---------- */
.about { display: flex; align-items: flex-start; gap: 32px; padding: 16px 16px 32px; overflow: clip; }
.ab-side { position: sticky; top: 16px; z-index: 3; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 60px; }

/* Photo + RevealCurtain (color rgb(11,11,11), top to bottom, 1s, 0.5s delay, Quart In-Out, at 30% in view) */
.ab-photo { position: relative; margin: 0; }
.ab-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
/* Desktop: the photo column stays in place while scrolling, so keep the photo within the screen
   (16px top + 42px back button + 24px gap + 16px bottom). On very short windows, trim the bottom, never the face. */
@media (min-width: 1200px) {
  .ab-photo img { max-height: calc(100vh - 98px); object-fit: cover; object-position: top; }
}
.curtain {
  position: absolute;
  inset: -1px; /* overhang hides anti-aliased corner pixels; it's the page color so it's invisible */
  border-radius: 9px;
  background: var(--bg);
  clip-path: inset(0% 0% 0% 0% round 9px);
  transition: clip-path 1s cubic-bezier(.76, 0, .24, 1) .5s;
  will-change: clip-path;
  pointer-events: none;
}
.ab-photo.is-revealed .curtain { clip-path: inset(100% 0% 0% 0% round 9px); }

.ab-intro { display: flex; flex-direction: column; gap: 24px; }
.ab-label { font-size: 16px; line-height: 1.3; color: rgb(130, 130, 130); }
.ab-lead { font-size: 26px; font-weight: 600; line-height: 1.3; }
.ab-position { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.ab-role { color: rgb(130, 130, 130); }
.ab-company { display: flex; align-items: center; gap: 8px; }
.ab-company svg { flex: none; }

.ab-panel {
  position: relative;
  height: 450px;
  border-radius: 8px;
  background: rgb(35, 35, 35);
  overflow: clip;
  display: grid;
  place-items: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
}
.ab-panel button { font: inherit; }
.ab-step { display: flex; flex-direction: column; gap: 16px; }
.ab-step h2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.ab-step p { font-size: 16px; line-height: 1.4; color: var(--muted); }

/* Icon_1 — Competitor Analysis pill */
.cap-wrap { position: relative; height: 40px; width: max-content;
  --cap-bg: rgb(54, 54, 54); --cap-bg-hi: rgb(64, 64, 64); --cap-ink: rgb(220, 220, 220); --cap-ink-hi: #fff; }
.cap-halo { position: absolute; inset: 0; border-radius: 999px; pointer-events: none; border: 1px solid rgba(255,255,255,.2); animation: cap-halo 4.4s ease-out infinite; }
@keyframes cap-halo { 0% { transform: scale(1); opacity: .5 } 65%, 100% { transform: scale(1.35, 1.9); opacity: 0 } }
.cap-pill { position: relative; display: block; height: 40px; padding: 0 26px; border: 0; border-radius: 999px; overflow: hidden;
  background: var(--cap-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); white-space: nowrap; cursor: pointer; line-height: 40px;
  transition: transform .5s cubic-bezier(.34,1.4,.64,1), background .3s; }
.cap-pill:hover { background: var(--cap-bg-hi); transform: scale(1.05); }
.cap-pill:active { transform: scale(.96); }
.cap-pill:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.cap-txt { display: block; color: var(--cap-ink); }
.cap-ch { position: relative; display: inline-block; height: 40px; overflow: hidden; vertical-align: top; }
.cap-sp { width: .3em; }
.cap-ch > span { display: block; height: 40px; line-height: 40px; transition: transform .55s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i) * 20ms); }
.cap-ch > .b { position: absolute; left: 0; top: 100%; color: var(--cap-ink-hi); }
.cap-pill:hover .cap-ch > span, .cap-pill:focus-visible .cap-ch > span, .cap-pill.is-play .cap-ch > span { transform: translateY(-100%); }
.cap-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.2), transparent); transform: translateX(-130%); }

/* Icon_2 — Stacked cards */
.stk { position: relative; display: block; width: 232px; height: 150px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; margin-top: 30px;
  --stk-top: rgb(73, 73, 73); --stk-bot: rgb(54, 54, 54); --stk-ink: rgb(180, 180, 180); --stk-tab: rgba(255, 255, 255, .55); }
.stk:focus-visible { outline: 2px solid #fff; outline-offset: 8px; border-radius: 14px; }
.stk-card { --p: 0; position: absolute; inset: 0; display: block; border-radius: 12px;
  background: radial-gradient(120% 90% at 50% 100%, rgba(255,255,255,.07), transparent 60%), linear-gradient(180deg, var(--stk-top), var(--stk-bot));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.35);
  transform-origin: 50% 100%;
  transform: translateY(calc(var(--p) * -7px)) scale(calc(1 - var(--p) * .05));
  filter: brightness(calc(1 - var(--p) * .07));
  z-index: calc(10 - var(--p));
  transition: transform .75s cubic-bezier(.34,1.4,.64,1) calc(var(--p) * 35ms), opacity .45s ease .12s;
  animation: stk-breathe 6s ease-in-out infinite; animation-delay: calc(var(--p) * -1.1s); }
@keyframes stk-breathe { 0%, 100% { translate: 0 0 } 50% { translate: 0 calc(var(--p) * -1.5px) } }
.stk-label { position: absolute; inset: 0; display: grid; place-items: center; color: var(--stk-ink); transition: opacity .35s; }
.stk-card[data-front="false"] .stk-label { opacity: 0; }
.stk-tab { position: absolute; top: 5px; left: 14px; font-size: 12px; line-height: 1.3; color: var(--stk-tab); opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .5s cubic-bezier(.22,1,.36,1); }
.stk:hover .stk-card, .stk:focus-visible .stk-card { transform: translateY(calc(var(--p) * -26px)) scale(calc(1 - var(--p) * .025)); }
.stk:hover .stk-card[data-front="false"] .stk-tab, .stk:focus-visible .stk-card[data-front="false"] .stk-tab { opacity: 1; transform: translateY(0); transition-delay: calc(var(--p) * 60ms + 120ms); }
.stk:active .stk-card[data-front="true"] { transform: translateY(6px) scale(.985); }
.stk-card.is-out { opacity: 0 !important; transform: translateY(70px) scale(.94) !important; transition: transform .32s ease-in, opacity .25s ease-in !important; }

/* Icon_3 — Ready for Dev orb */
.dev-root { width: 100%; height: 100%; display: grid; place-items: center;
  --dev-sq: rgb(27, 27, 27); --dev-line: rgb(74, 74, 74); --dev-line-hi: rgb(124, 124, 124);
  --dev-disc-a: rgb(51, 51, 51); --dev-disc-b: color-mix(in srgb, rgb(51, 51, 51) 85%, #000); --dev-ink: rgb(180, 180, 180); --dev-ink-hi: #f0f0f0; }
.dev-tilt { position: relative; width: 168px; height: 168px;
  transform: perspective(800px) rotateX(calc(var(--ny, 0) * -9deg)) rotateY(calc(var(--nx, 0) * 11deg)); transition: transform .4s ease-out; }
.dev-sq { position: relative; display: block; width: 100%; height: 100%; padding: 0; cursor: pointer;
  border-radius: 34px; border: 2px solid var(--dev-line); background: var(--dev-sq); transition: border-color .5s; }
.dev-sq:hover { border-color: var(--dev-line-hi); }
.dev-sq:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }
.dev-burst { position: absolute; inset: -2px; border-radius: 36px; pointer-events: none; border: 1.5px solid rgba(255,255,255,.4); opacity: 0; }
.dev-disc { position: absolute; left: 50%; top: 50%; width: 146px; height: 146px; margin: -73px 0 0 -73px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, var(--dev-disc-a), var(--dev-disc-b)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transform: translate(calc(var(--nx, 0) * 5px), calc(var(--ny, 0) * 5px)); transition: transform .4s ease-out; }
.dev-ring, .dev-orbit, .dev-wave { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.dev-ring { border: 1px solid rgba(255,255,255,.07); transition: scale .9s cubic-bezier(.34,1.4,.64,1); }
.dev-r1 { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.dev-r2 { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: rgba(255,255,255,.05); }
.dev-sq:hover .dev-r1 { scale: 1.16; }
.dev-sq:hover .dev-r2 { scale: 1.35; }
.dev-wave { width: 146px; height: 146px; margin: -73px 0 0 -73px; border: 1px solid rgba(255,255,255,.16); opacity: 0; animation: dev-wave 4s ease-out infinite; }
.dev-w2 { animation-delay: 2s; }
@keyframes dev-wave { 0% { transform: scale(.18); opacity: .7 } 100% { transform: scale(1); opacity: 0 } }
.dev-orbit { width: 92px; height: 92px; margin: -46px 0 0 -46px; animation: dev-spin 14s linear infinite; transition: scale .9s cubic-bezier(.34,1.4,.64,1); }
.dev-sq:hover .dev-orbit { scale: 1.16; }
.dev-orbit i { position: absolute; top: -2.5px; left: 50%; margin-left: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #eee; opacity: .5; box-shadow: 0 0 8px rgba(255,255,255,.5); transition: opacity .4s; }
.dev-sq:hover .dev-orbit i { opacity: .95; }
@keyframes dev-spin { to { transform: rotate(360deg) } }
.dev-label { position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap; color: var(--dev-ink);
  transform: translate(calc(var(--nx, 0) * 2px), calc(var(--ny, 0) * 2px)); transition: transform .4s ease-out, color .4s; }
.dev-sq:hover .dev-label { color: var(--dev-ink-hi); }

/* ---------- Tablet (810–1199px) ---------- */
@media (max-width: 1199.98px) {
  .page { flex-direction: column; }
  .menu { position: relative; top: 0; width: 100%; min-width: 0; height: auto; gap: 32px; }
  .projects { width: 100%; }

  .p-side { position: relative; top: 0; width: 100%; min-width: 0; height: auto; justify-content: flex-start; }
  .p-content { width: 100%; }
  .p-text { grid-template-columns: 1fr; gap: 16px; }

  .about { flex-direction: column; align-items: stretch; }
  .ab-side { position: relative; top: 0; }
  .ab-main { padding-top: 32px; }
}

/* ---------- Phone (< 810px) ---------- */
@media (max-width: 809.98px) {
  .projects { grid-template-columns: 1fr; }
  .p-content { gap: 8px; }
  .pair { gap: 8px; }
  .p-text { padding: 72px 0; }
  .p-text + .p-text { margin-top: -96px; }

  .ab-main { padding-top: 0; }
  .ab-lead { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .preload, .preload-stack img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .thumb:not(.no-zoom) .cover { transition: none; }
  .back, .back-label { transition: none; }
  .soc-spin, .soc-spin svg { transition: none; }
  .thumb:not(.no-zoom):hover .cover, .thumb:not(.no-zoom):focus-visible .cover { transform: none; }
  .cap-halo, .dev-wave { display: none; }
  .dev-orbit, .stk-card { animation: none; }
  .cap-ch > span, .stk-card, .dev-tilt, .dev-disc, .dev-label { transition-duration: .01ms !important; }
}
