:root {
  --navy-950: #040a18;
  --navy-900: #07162f;
  --navy-850: #0a1d3d;
  --navy-800: #0c244b;
  --blue: #2468ff;
  --cyan: #16c4d8;
  --cyan-soft: #8debf3;
  --orange: #ffae35;
  --ink: #0b1730;
  --text: #344157;
  --muted: #778196;
  --line: #dce3ee;
  --surface: #ffffff;
  --surface-soft: #f3f6fb;
  --page: #f8fafc;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 70px rgba(7, 22, 47, .13);
  --shell: 1560px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 22, 47, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header--home {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--home.is-scrolled {
  position: fixed;
  background: rgba(7, 22, 47, .91);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  border-bottom-color: rgba(255,255,255,.08);
}
.navbar {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #fff;
}
.brand-mark {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 1.5px solid rgba(255,255,255,.78);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.5px;
  background: rgba(255,255,255,.02);
}
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
}
.brand-copy small {
  display: block;
  margin-top: 6px;
  max-width: 230px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.35;
}
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 34px; }
.desktop-nav a {
  position: relative;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  font-weight: 760;
  padding: 12px 0;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transition: right .25s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.header-cta {
  justify-self: end;
  min-height: 56px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 850;
  box-shadow: 0 16px 36px rgba(36,104,255,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(36,104,255,.36); }
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* Buttons */
.button {
  min-height: 56px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 18px 38px rgba(36,104,255,.24); }
.button-ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.22); }
.button-ghost:hover { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.06); }
.button-dark { color: #fff; background: var(--navy-900); }
.button-light { color: var(--navy-900); background: #fff; }
.button-accent { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 18px 40px rgba(36,104,255,.25); }
.text-link, .arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; }
.text-link { color: rgba(255,255,255,.82); padding: 16px 0; }
.arrow-link { margin-top: 28px; color: var(--blue); }

/* Home hero */
.home-hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 32%, rgba(36,104,255,.22), transparent 31%),
    radial-gradient(circle at 34% 70%, rgba(22,196,216,.1), transparent 36%),
    linear-gradient(118deg, var(--navy-950) 0%, var(--navy-900) 56%, #12102c 100%);
  display: flex;
  align-items: center;
  padding: 156px 0 92px;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,235,243,.45), transparent);
}
.hero-orbit { position: absolute; pointer-events: none; border: 1px solid rgba(22,196,216,.11); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: rgba(22,196,216,.25); }
.hero-orbit--left { width: 420px; height: 420px; left: -205px; top: 210px; }
.hero-orbit--left::before { right: 43px; top: 31px; }
.hero-orbit--left::after { right: -4px; top: 185px; }
.hero-orbit--right { width: 520px; height: 520px; right: -260px; bottom: -120px; }
.hero-orbit--right::before { left: 62px; top: 56px; }
.hero-orbit--right::after { left: -4px; top: 225px; }
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: center;
}
.availability-pill {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(22,196,216,.25);
  border-radius: 999px;
  background: rgba(22,196,216,.055);
  color: rgba(255,255,255,.72);
  font-weight: 750;
}
.availability-pill span { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(22,196,216,.09); }
.hero-content h1 {
  margin: 46px 0 0;
  max-width: 1080px;
  font-size: clamp(74px, 7.3vw, 124px);
  line-height: .9;
  letter-spacing: -7px;
  font-weight: 850;
  text-transform: uppercase;
}
.hero-content h1 span, .hero-content h1 strong { display: block; }
.hero-content h1 strong {
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #fff 32%, var(--cyan-soft) 72%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead {
  max-width: 810px;
  margin: 38px 0 0;
  color: rgba(255,255,255,.58);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.62;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 42px; }
.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.portrait-frame {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: .79;
  border-radius: 42px 42px 20px 20px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  overflow: hidden;
}
.portrait-frame::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(141,235,243,.34); border-radius: 34px 34px 14px 14px; z-index: 1; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; border-radius: 32px 32px 12px 12px; filter: saturate(.92) contrast(1.03); }
.portrait-label {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 17px 18px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.portrait-label span { display: block; color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; font-weight: 900; }
.portrait-label strong { display: block; margin-top: 5px; line-height: 1.35; }
.visual-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 14px;
  background: rgba(7,22,47,.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.visual-note b { color: var(--cyan); font-size: 12px; }
.visual-note span { color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.25; }
.visual-note--top { top: 38px; right: -30px; }
.visual-note--bottom { bottom: 46px; left: -42px; }

/* Stats */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 35px 38px; border-right: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 1px solid var(--line); }
.stats-grid strong { display: block; color: var(--navy-900); font-size: clamp(32px, 3vw, 48px); line-height: 1; letter-spacing: -2px; }
.stats-grid span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }

/* Sections */
.section { padding: 116px 0; }
.section-muted { background: var(--surface-soft); border-block: 1px solid var(--line); }
.section-kicker { display: inline-block; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: 2.3px; text-transform: uppercase; }
.section-heading h2, .about-dark h2, .cta-card h2, .contact-details h2 {
  margin: 18px 0 0;
  color: var(--navy-900);
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -3.2px;
}
.section-heading p { max-width: 620px; margin: 24px 0 0; color: var(--text); font-size: 18px; }
.section-heading--row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 54px; }
.section-heading--row > div { max-width: 980px; }
.section-split { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 8vw, 130px); align-items: start; }
.services-section { background: var(--page); }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 50px;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease, background .25s ease;
}
.service-row:hover { padding-left: 18px; background: rgba(36,104,255,.025); }
.service-number { color: var(--blue); font-size: 13px; font-weight: 900; }
.service-row h3 { margin: 0; color: var(--navy-900); font-size: clamp(25px, 2.2vw, 36px); line-height: 1.1; letter-spacing: -1px; }
.service-row p { margin: 10px 0 0; max-width: 690px; color: var(--muted); }
.service-arrow { color: var(--blue); font-size: 24px; justify-self: end; }

/* Portfolio */
.portfolio-section { background: #fff; }
.featured-work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work-card { grid-column: span 4; min-width: 0; }
.work-card--large { grid-column: span 8; grid-row: span 2; }
.work-media { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-900); aspect-ratio: 1.08; }
.work-card--large .work-media { aspect-ratio: 1.55; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover .work-media img { transform: scale(1.035); }
.work-category { position: absolute; left: 18px; top: 18px; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(7,22,47,.75); backdrop-filter: blur(8px); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.2px; }
.work-copy { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 19px 3px 4px; }
.work-copy h3 { margin: 0; color: var(--navy-900); font-size: 23px; line-height: 1.15; }
.work-copy p { margin: 9px 0 0; color: var(--muted); }
.work-copy > span { color: var(--blue); font-size: 24px; }
.work-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 70px; background: radial-gradient(circle at 30% 30%, rgba(22,196,216,.35), transparent 34%), linear-gradient(135deg, var(--navy-900), #17103c); }

/* About home */
.about-home { background: var(--surface-soft); }
.about-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-dark { padding: clamp(42px, 5vw, 78px); border-radius: var(--radius-lg); color: #fff; background: radial-gradient(circle at 80% 20%, rgba(36,104,255,.25), transparent 32%), var(--navy-900); box-shadow: var(--shadow); }
.about-dark h2 { color: #fff; }
.about-dark p { margin: 24px 0 0; color: rgba(255,255,255,.64); font-size: 17px; }
.about-dark .button { margin-top: 34px; }
.skills-panel { padding: clamp(38px, 5vw, 70px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.skills-list { margin-top: 26px; border-top: 1px solid var(--line); }
.skills-list li { min-height: 56px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); color: var(--navy-900); font-weight: 750; }
.skills-list li span { color: var(--blue); font-size: 11px; font-weight: 900; }

/* CTA */
.cta-section { padding: 0 0 116px; background: var(--page); }
.cta-card { padding: clamp(38px, 5vw, 74px); border-radius: var(--radius-lg); display: flex; justify-content: space-between; align-items: center; gap: 42px; color: #fff; background: radial-gradient(circle at 68% 24%, rgba(22,196,216,.2), transparent 35%), linear-gradient(115deg, var(--navy-950), #10133a); overflow: hidden; }
.cta-card h2 { max-width: 1050px; color: #fff; font-size: clamp(38px, 4.4vw, 68px); }
.cta-card .button { flex: 0 0 auto; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 25%, rgba(36,104,255,.2), transparent 30%), linear-gradient(120deg, var(--navy-950), #10122d); }
.page-hero::before { content: ""; position: absolute; right: -180px; bottom: -280px; width: 600px; height: 600px; border: 1px solid rgba(22,196,216,.12); border-radius: 50%; }
.page-hero-inner { position: relative; z-index: 1; max-width: var(--shell); padding-top: 130px; padding-bottom: 112px; }
.page-hero-inner h1 { max-width: 1180px; margin: 22px 0 0; color: #fff; font-size: clamp(54px, 6vw, 96px); line-height: .98; letter-spacing: -5px; }
.page-hero-inner p { max-width: 800px; margin: 30px 0 0; color: rgba(255,255,255,.58); font-size: 19px; }
.page-hero-inner--center { text-align: center; }
.page-hero-inner--center h1, .page-hero-inner--center p { margin-inline: auto; }
.page-hero-inner--center .hero-actions { justify-content: center; }

/* About page */
.about-page-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(46px, 7vw, 110px); align-items: center; }
.about-portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); }
.about-portrait img { width: 100%; aspect-ratio: .86; object-fit: cover; object-position: center 20%; }
.about-portrait > div { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 19px; border-radius: 16px; background: rgba(255,255,255,.94); }
.about-portrait span { display: block; color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 900; }
.about-portrait strong { display: block; margin-top: 4px; }
.about-story h2 { margin: 18px 0 0; color: var(--navy-900); font-size: clamp(42px, 4vw, 68px); letter-spacing: -3px; line-height: 1.02; }
.about-story p { margin: 24px 0 0; color: var(--text); font-size: 18px; }
.language-row { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.language-row b { margin-right: 10px; }
.language-row span { padding: 8px 12px; border-radius: 999px; color: var(--navy-900); background: var(--surface-soft); border: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.timeline-list { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 90px 1fr; gap: 34px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.timeline-row > span { color: var(--blue); font-size: 13px; font-weight: 900; }
.timeline-row small { color: var(--cyan); font-weight: 850; text-transform: uppercase; letter-spacing: 1.3px; }
.timeline-row h3 { margin: 9px 0 0; color: var(--navy-900); font-size: clamp(28px, 3vw, 46px); line-height: 1.08; }
.timeline-row p, .timeline-row li { color: var(--text); }
.timeline-row ul { margin-top: 16px; display: grid; gap: 7px; }
.timeline-row li::before { content: "—"; margin-right: 10px; color: var(--blue); }

/* Services page */
.service-page-list { border-top: 1px solid var(--line); }
.service-page-row { display: grid; grid-template-columns: 58px 64px minmax(220px,.55fr) minmax(300px,1fr) 54px; gap: 26px; align-items: center; min-height: 180px; padding: 34px 6px; border-bottom: 1px solid var(--line); }
.service-page-row > span { color: var(--blue); font-size: 12px; font-weight: 900; }
.service-page-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: var(--navy-900); font-size: 22px; }
.service-page-row h2 { margin: 0; color: var(--navy-900); font-size: clamp(27px, 2.8vw, 44px); line-height: 1.06; letter-spacing: -1.7px; }
.service-page-row p { margin: 0; color: var(--muted); }
.service-page-row > a { justify-self: end; color: var(--blue); font-size: 26px; }

/* Portfolio page */
.portfolio-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter-button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); background: #fff; font-weight: 800; cursor: pointer; }
.filter-button.active, .filter-button:hover { color: #fff; border-color: var(--navy-900); background: var(--navy-900); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 24px; }
.portfolio-item--wide { grid-column: span 2; }
.portfolio-media { position: relative; aspect-ratio: 1.35; border-radius: var(--radius-md); overflow: hidden; background: var(--navy-900); }
.portfolio-item--wide .portfolio-media { aspect-ratio: 2.15; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.portfolio-item:hover .portfolio-media img { transform: scale(1.035); }
.portfolio-media > span { position: absolute; top: 18px; left: 18px; padding: 8px 12px; border-radius: 999px; color: #fff; background: rgba(7,22,47,.78); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 1.1px; }
.portfolio-copy { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-top: 18px; }
.portfolio-copy h2 { margin: 0; color: var(--navy-900); font-size: clamp(26px, 2.8vw, 42px); line-height: 1.05; }
.portfolio-copy p { margin: 10px 0 0; color: var(--muted); }
.portfolio-copy b { color: var(--blue); font-size: 24px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 8vw, 130px); align-items: start; }
.contact-details h2 { margin-top: 18px; }
.contact-details > p { max-width: 520px; margin: 24px 0 0; color: var(--text); font-size: 18px; }
.contact-links { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-links a { min-height: 92px; display: grid; grid-template-columns: 42px 1fr 28px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.contact-links > a > span { color: var(--blue); font-size: 12px; font-weight: 900; }
.contact-links small { display: block; color: var(--muted); }
.contact-links strong { display: block; margin-top: 3px; color: var(--navy-900); overflow-wrap: anywhere; }
.contact-links b { color: var(--blue); }
.contact-form { padding: clamp(28px, 4vw, 54px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.contact-form label { display: block; margin-bottom: 21px; }
.contact-form label > span { display: block; margin-bottom: 8px; color: var(--navy-900); font-size: 13px; font-weight: 850; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--ink); padding: 15px 16px; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input:focus, textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36,104,255,.1); }
textarea { min-height: 170px; resize: vertical; }
.form-submit { width: 100%; border: 0; }
.honeypot { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.notice { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 750; }
.notice.success { color: #0a6a43; background: #e7f9f0; border: 1px solid #b9e8d1; }
.notice.error { color: #9c2424; background: #fff0f0; border: 1px solid #f0c3c3; }

/* Footer */
.site-footer { color: #fff; background: var(--navy-950); }
.footer-main { display: grid; grid-template-columns: 1.45fr .6fr .8fr 1fr; gap: 70px; padding-top: 82px; padding-bottom: 68px; }
.brand--footer { margin-bottom: 24px; }
.footer-intro p { max-width: 440px; color: rgba(255,255,255,.52); }
.footer-column h3 { margin: 0 0 20px; color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; }
.footer-column a { display: block; width: fit-content; margin-top: 12px; color: rgba(255,255,255,.75); font-weight: 650; }
.footer-column a:hover { color: var(--cyan); }
.footer-action p { color: rgba(255,255,255,.55); }
.footer-action .button { margin-top: 12px; }
.footer-bottom { min-height: 76px; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: rgba(255,255,255,.43); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: #fff; }

.empty-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--muted); background: #fff; text-align: center; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1180px) {
  .shell { width: min(var(--shell), calc(100% - 40px)); }
  .navbar { grid-template-columns: 250px auto 190px; gap: 22px; }
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 14px; }
  .header-cta { padding-inline: 18px; }
  .hero-layout { grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 40px; }
  .hero-content h1 { font-size: clamp(68px, 8vw, 100px); letter-spacing: -5px; }
  .visual-note--top { right: -5px; }
  .visual-note--bottom { left: -12px; }
  .section-split { grid-template-columns: 1fr 1.35fr; gap: 56px; }
  .footer-main { gap: 36px; }
}

/* Mobile navigation / tablet layout */
@media (max-width: 960px) {
  .shell { width: min(var(--shell), calc(100% - 32px)); }
  .site-header, .site-header--home { position: absolute; width: 100%; background: transparent; border-bottom: 0; }
  .site-header.is-scrolled, .site-header--home.is-scrolled { position: fixed; background: rgba(7,22,47,.94); }
  .navbar { min-height: 78px; display: flex; justify-content: space-between; gap: 18px; }
  .brand-mark { width: 46px; height: 46px; font-size: 13px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 9px; margin-top: 4px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 15px;
    display: grid;
    place-content: center;
    gap: 7px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
  }
  .menu-toggle span { width: 21px; height: 2px; border-radius: 999px; background: #fff; }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    width: 100vw;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    color: #fff;
    background: radial-gradient(circle at 85% 12%, rgba(36,104,255,.22), transparent 32%), var(--navy-950);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    overflow-y: auto;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
  .menu-close { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; color: #fff; background: transparent; font-size: 34px; line-height: 1; cursor: pointer; }
  .mobile-menu nav { margin-top: 52px; border-top: 1px solid rgba(255,255,255,.12); }
  .mobile-menu nav a { min-height: 70px; display: grid; grid-template-columns: 42px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.74); font-size: clamp(27px, 7vw, 42px); font-weight: 800; letter-spacing: -1px; }
  .mobile-menu nav a span { color: var(--cyan); font-size: 11px; letter-spacing: 0; }
  .mobile-menu nav a.active { color: #fff; }
  .mobile-menu-footer { margin-top: auto; padding-top: 38px; }
  .mobile-menu-footer p { color: rgba(255,255,255,.48); }
  .mobile-menu-footer .button { width: 100%; margin-top: 14px; }

  .home-hero { min-height: auto; padding: 132px 0 78px; }
  .hero-layout { grid-template-columns: 1fr; gap: 62px; }
  .hero-content h1 { max-width: 850px; font-size: clamp(66px, 12vw, 102px); }
  .hero-lead { max-width: 720px; }
  .hero-visual { min-height: auto; }
  .portrait-frame { width: min(100%, 510px); aspect-ratio: .92; }
  .visual-note--top { right: calc(50% - 285px); }
  .visual-note--bottom { left: calc(50% - 285px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { border-bottom: 1px solid var(--line); }
  .stats-grid > div:nth-child(2n+1) { border-left: 1px solid var(--line); }
  .section { padding: 86px 0; }
  .section-split, .about-home-grid, .about-page-grid, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .service-row { grid-template-columns: 58px 1fr 36px; }
  .featured-work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card--large { grid-column: auto; grid-row: auto; }
  .work-card--large { grid-column: span 2; }
  .cta-card { align-items: flex-start; flex-direction: column; }
  .page-hero-inner { padding-top: 142px; }
  .service-page-row { grid-template-columns: 50px 56px 1fr 34px; }
  .service-page-row p { grid-column: 3 / 5; }
  .footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-action { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
}

/* Phones */
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .navbar { min-height: 70px; }
  .brand { gap: 9px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { max-width: 155px; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { width: 42px; height: 42px; border-radius: 13px; }

  .home-hero { padding: 112px 0 60px; }
  .availability-pill { padding: 9px 12px; font-size: 10px; letter-spacing: .55px; text-transform: uppercase; }
  .availability-pill span { width: 6px; height: 6px; }
  .hero-content h1 { margin-top: 26px; font-size: clamp(47px, 15.5vw, 67px); line-height: .91; letter-spacing: -3px; }
  .hero-lead { margin-top: 22px; font-size: 15px; line-height: 1.55; }
  .hero-actions { margin-top: 27px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .button { width: 100%; min-height: 49px; border-radius: 13px; }
  .hero-actions .text-link { justify-content: center; padding: 9px 0; font-size: 13px; }
  .hero-layout { gap: 42px; }
  .hero-visual { width: 100%; }
  .portrait-frame { width: 100%; aspect-ratio: .88; border-radius: 29px 29px 16px 16px; }
  .portrait-frame::before { inset: 12px; border-radius: 22px 22px 9px 9px; }
  .portrait-frame img { border-radius: 21px 21px 8px 8px; }
  .portrait-label { left: 20px; right: 20px; bottom: 20px; padding: 13px 14px; }
  .portrait-label strong { font-size: 12px; }
  .visual-note { display: none; }
  .hero-orbit { opacity: .55; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid > div { min-height: 112px; padding: 24px 18px; }
  .stats-grid strong { font-size: 30px; letter-spacing: -1px; }
  .stats-grid span { font-size: 10px; }

  .section { padding: 68px 0; }
  .section-heading h2, .about-dark h2, .contact-details h2 { font-size: clamp(36px, 11vw, 49px); letter-spacing: -2px; }
  .section-heading p { font-size: 15px; }
  .section-heading--row { align-items: flex-start; flex-direction: column; gap: 24px; margin-bottom: 32px; }
  .section-heading--row .button { width: 100%; }
  .section-split { gap: 36px; }
  .service-row { grid-template-columns: 38px 1fr 25px; gap: 12px; min-height: 126px; padding: 22px 0; }
  .service-row h3 { font-size: 24px; }
  .service-row p { font-size: 13px; line-height: 1.5; }
  .featured-work-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
  .work-card, .work-card--large { grid-column: auto; }
  .work-card--large .work-media, .work-media { aspect-ratio: 1.15; }
  .work-copy h3 { font-size: 22px; }
  .about-dark, .skills-panel { padding: 31px 24px; border-radius: 24px; }
  .skills-list li { grid-template-columns: 36px 1fr; font-size: 13px; }
  .cta-section { padding-bottom: 68px; }
  .cta-card { padding: 34px 24px; border-radius: 24px; gap: 25px; }
  .cta-card h2 { font-size: clamp(34px, 10vw, 46px); letter-spacing: -2px; }
  .cta-card .button { width: 100%; }

  .page-hero-inner { padding-top: 116px; padding-bottom: 70px; }
  .page-hero-inner h1 { margin-top: 16px; font-size: clamp(44px, 13vw, 62px); line-height: .96; letter-spacing: -3px; }
  .page-hero-inner p { margin-top: 20px; font-size: 15px; }
  .about-page-grid { gap: 34px; }
  .about-story h2 { font-size: 42px; }
  .about-story p { font-size: 15px; }
  .timeline-row { grid-template-columns: 36px 1fr; gap: 14px; padding: 34px 0; }
  .timeline-row h3 { font-size: 27px; }
  .timeline-row p, .timeline-row li { font-size: 14px; }
  .service-page-row { grid-template-columns: 34px 48px 1fr 24px; gap: 10px; padding: 28px 0; }
  .service-page-icon { width: 46px; height: 46px; border-radius: 13px; }
  .service-page-row h2 { font-size: 25px; }
  .service-page-row p { grid-column: 2 / 5; font-size: 14px; padding-top: 4px; }
  .portfolio-toolbar { gap: 7px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: none; }
  .portfolio-toolbar::-webkit-scrollbar { display: none; }
  .filter-button { white-space: nowrap; padding: 9px 13px; font-size: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 34px; }
  .portfolio-item--wide { grid-column: auto; }
  .portfolio-media, .portfolio-item--wide .portfolio-media { aspect-ratio: 1.12; }
  .portfolio-copy h2 { font-size: 27px; }
  .contact-layout { gap: 38px; }
  .contact-form { padding: 24px 18px; border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-links a { min-height: 78px; grid-template-columns: 32px 1fr 20px; gap: 10px; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px 22px; padding-top: 56px; padding-bottom: 48px; }
  .footer-intro { grid-column: span 2; }
  .footer-action { grid-column: span 2; align-items: stretch; flex-direction: column; gap: 12px; }
  .footer-action .button { width: 100%; }
  .footer-bottom { min-height: auto; padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Hero composition refinement: portrait higher on desktop, before actions on phones */
.hero-layout {
  grid-template-areas:
    "content visual"
    "actions visual";
  grid-template-rows: auto auto;
  align-items: start;
  row-gap: 0;
}
.hero-content { grid-area: content; }
.hero-visual {
  grid-area: visual;
  align-self: start;
  margin-top: -28px;
}
.hero-actions {
  grid-area: actions;
  align-self: start;
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-areas:
      "content"
      "actions"
      "visual";
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .hero-visual { margin-top: 44px; }
}

@media (max-width: 640px) {
  .hero-layout {
    grid-template-areas:
      "content"
      "visual"
      "actions";
    gap: 0;
  }
  .hero-visual {
    margin-top: 28px;
    width: 100%;
    justify-self: center;
  }
  .portrait-frame {
    width: min(76vw, 285px);
    aspect-ratio: .84;
    margin-inline: auto;
    border-radius: 25px 25px 14px 14px;
  }
  .portrait-frame::before {
    inset: 10px;
    border-radius: 19px 19px 8px 8px;
  }
  .portrait-frame img {
    border-radius: 18px 18px 7px 7px;
  }
  .portrait-label {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 11px;
  }
  .portrait-label span { font-size: 8px; letter-spacing: 1.3px; }
  .portrait-label strong { font-size: 10px; }
  .hero-actions {
    margin-top: 24px;
    width: 100%;
  }
}

/* Final balanced homepage hero adjustment */
.hero-content h1 {
  margin-top: 0;
}

@media (min-width: 961px) {
  .home-hero {
    min-height: 720px;
    padding-top: 116px;
    padding-bottom: 48px;
    align-items: flex-start;
  }

  .hero-layout {
    min-height: 556px;
    align-content: start;
  }

  .hero-content h1 {
    font-size: clamp(68px, 6.2vw, 106px);
    line-height: .9;
  }

  .hero-lead {
    max-width: 810px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.68);
    font-size: clamp(17px, 1.2vw, 20px);
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 14px;
  }

  .hero-visual {
    margin-top: -35px;
  }

  .portrait-frame {
    width: min(100%, 360px);
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .home-hero {
    min-height: 670px;
    padding-top: 102px;
    padding-bottom: 34px;
  }

  .hero-layout {
    min-height: 510px;
  }

  .hero-content h1 {
    font-size: clamp(62px, 5.8vw, 94px);
  }

  .hero-lead {
    max-width: 760px;
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-visual {
    margin-top: -20px;
  }

  .portrait-frame {
    width: min(100%, 330px);
  }
}

/* Final portrait refinement: keep the frame in place and resize only the photo inside it */
.portrait-frame {
  display: grid;
  place-items: center;
}

.portrait-frame > img {
  width: 66%;
  height: 51%;
  margin: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 27px 27px 11px 11px;
}

@media (max-width: 640px) {
  .portrait-frame > img {
    width: 84%;
    height: 70%;
    object-position: center center;
    border-radius: 17px 17px 7px 7px;
  }
}

/* Final visual-note position requested */
.visual-note--top {
  top: 78px;
  right: -30px;
  left: auto;
}

.visual-note--bottom {
  bottom: 377px;
  left: -42px;
  right: auto;
}

@media (max-width: 1180px) {
  .visual-note--top {
    right: 47px;
  }

  .visual-note--bottom {
    left: 45px;
  }
}
