/* Prentzas Development Group */

:root {
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-glow: rgba(59, 130, 246, 0.22);
  --whocalled-purple: #7c3aed;
  --whocalled-glow: rgba(124, 58, 237, 0.25);

  --bg: #071018;
  --bg-surface: #0c1524;
  --bg-raised: #111d30;
  --bg-hover: #16243c;

  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(59, 130, 246, 0.35);

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-body: #cbd5e1;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --content-max: 1140px;
  --content-pad: clamp(16px, 4vw, 28px);
  --content-w: min(var(--content-max), calc(100vw - 2 * var(--content-pad)));
  --nav-h: 76px;
  --ease: 0.22s ease;
  --ease-out: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-blue: 0 16px 40px rgba(37, 99, 235, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.lang-switch__btn:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: var(--text);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--blue-600);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

ul {
  list-style: none;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.container {
  width: var(--content-w);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--content-pad);
  box-sizing: border-box;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, var(--blue-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(29, 78, 216, 0.12), transparent 50%),
    var(--bg);
}

/* Typography */
.label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-intro--with-logo {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 720px;
}

.about-brand-logo {
  flex-shrink: 0;
  width: 110px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
}

.section-intro p:last-child {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* Site header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  isolation: isolate;
  transition: background var(--ease), border-color var(--ease);
}

.site-header:has(.nav.scrolled),
.site-header:has(.nav.nav--menu-open) {
  background: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  z-index: 2;
  width: 100%;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: 100%;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.logo__brand {
  width: auto;
  height: clamp(40px, 6vw, 52px);
  max-width: min(200px, 38vw);
  object-fit: contain;
}

.logo__brand--fallback {
  height: 44px;
  max-width: 44px;
}

.logo-small .logo__brand {
  height: 44px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  margin-left: auto;
  margin-block: 0;
  padding: 0;
  padding-left: clamp(12px, 2vw, 32px);
  list-style: none;
  min-width: 0;
  flex-shrink: 1;
  pointer-events: auto;
}

.nav__links li {
  list-style: none;
  flex-shrink: 0;
}

.nav__links a {
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--ease);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(8px, 1vw, 10px) clamp(12px, 1.5vw, 18px);
  background: var(--blue-600);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem) !important;
  transition: background var(--ease), transform var(--ease);
}

.nav__cta:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 2px;
}

.lang-switch__btn {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn.active {
  background: var(--blue-600);
  color: #fff;
}

.nav__toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.nav-backdrop {
  display: none;
  pointer-events: none;
}

.nav-backdrop[hidden] {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  overscroll-behavior: none;
}

@media (min-width: 769px) {
  .nav__links {
    position: static;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: auto;
    height: auto;
    max-height: none;
    margin-left: auto;
    padding: 0;
    padding-left: clamp(12px, 2vw, 32px);
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    transform: none;
  }

  .nav__links > li > a:not(.nav__cta) {
    display: inline;
    padding: 0;
    white-space: nowrap;
  }

  .nav__links-lang {
    margin: 0;
    padding: 0;
    border: none;
  }

  .nav__links .nav__cta {
    display: inline-flex;
    width: auto;
    margin: 0;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --nav-h: 72px;
  }

  .nav__links {
    gap: 12px;
  }

  .nav__links a {
    font-size: 0.875rem;
  }

  .nav__cta {
    padding: 8px 14px;
    font-size: 0.8125rem !important;
  }

  .lang-switch__btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn img {
  opacity: 0.9;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-large {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-secondary img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(52%) saturate(1200%) hue-rotate(194deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-400);
  margin-top: 4px;
  transition: gap var(--ease), color var(--ease);
}

.text-link:hover {
  color: var(--blue-500);
  gap: 12px;
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 56px) 0 48px;
}

/* What we build */
.build-strip {
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.build-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 18px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.build-strip__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-400);
  flex-shrink: 0;
}

.build-strip__line {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  text-align: center;
  margin: 0;
}

@media (max-width: 600px) {
  .build-strip__inner {
    flex-direction: column;
    gap: 8px;
  }

  .build-strip__line {
    font-size: 0.875rem;
    line-height: 1.55;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero recent project */
.hero-recent__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 12px;
}

.hero-recent__card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-recent__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-recent__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 10px;
}

.hero-recent__icon-logo {
  background: transparent;
  padding: 0;
}

.hero-recent__icon-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hero-recent__top > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.hero-recent__title {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.hero-recent__url {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-400);
}

.hero-recent__url:hover {
  color: var(--blue-500);
}

.hero-recent__top .pill {
  flex-shrink: 0;
}

.hero-recent__summary {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.hero-recent__visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg);
}

.hero-recent__visual img {
  width: 100%;
  height: auto;
}

.hero-recent__card {
  border-color: rgba(124, 58, 237, 0.3);
}

/* Projects list */
.projects {
  padding: 88px 0;
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--ease);
}

.project-entry.is-open {
  border-color: var(--border-strong);
}

.project-entry__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
}

.project-entry__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg-raised);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.project-entry__icon img {
  filter: brightness(0) saturate(100%) invert(70%) sepia(8%) saturate(400%) hue-rotate(180deg);
}

.project-entry__icon-logo {
  background: #000;
  border-color: rgba(124, 58, 237, 0.4);
  padding: 4px;
}

.project-entry__icon-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.project-entry__icon-fm {
  background: #0a0a0f;
  border-color: rgba(220, 38, 38, 0.35);
  padding: 2px;
}

.pill-fm {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
}

.project-entry__info {
  flex: 1;
  min-width: 0;
}

.project-entry__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.project-entry__row h3 {
  margin-bottom: 0;
}

.project-entry__title {
  color: var(--text);
  text-decoration: none;
  transition: color var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.project-entry__title:hover {
  color: var(--blue-400);
}

.project-entry__tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.read-more-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-400);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.read-more-btn:hover {
  background: rgba(37, 99, 235, 0.22);
  color: var(--text);
}

.read-more-btn__close {
  display: none;
}

.project-entry.is-open .read-more-btn__open {
  display: none;
}

.project-entry.is-open .read-more-btn__close {
  display: inline;
}

.project-entry__body {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
}

.project-entry__body[hidden] {
  display: none;
}

.project-entry__body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.project-entry__features {
  margin: 16px 0 18px;
  padding-left: 20px;
  list-style: disc;
}

.project-entry__features li {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

/* About */
.about {
  padding: 88px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease);
}

.about-card:hover {
  border-color: var(--border-strong);
}

.about-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  margin-bottom: 16px;
}

.about-card__icon img {
  filter: brightness(0) saturate(100%) invert(58%) sepia(52%) saturate(1200%) hue-rotate(194deg);
}

.about-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Founder */
.founder {
  margin-top: 48px;
}

.founder-card {
  padding: 36px;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-raised));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.founder-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.founder-card__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0;
}

.founder-card__bio {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 28px;
}

.founder-card__skills h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 16px;
}

.lang-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}

.lang-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.lang-chip:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lang-chip img {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.lang-chip span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
  flex: 1;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--blue-400);
}

.pill-whocalled {
  background: rgba(124, 58, 237, 0.22);
  color: #c4b5fd;
}

/* Contact */
.contact {
  padding: 88px 0 100px;
}

.contact-panel {
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-panel h2 {
  margin-bottom: 12px;
}

.contact-panel > p {
  max-width: 480px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.footer {
  padding: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 48px 56px;
  padding: 48px 0 40px;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer__logo {
  display: block;
  line-height: 0;
}

.footer__logo .logo__brand {
  display: block;
  width: auto;
  height: 56px;
  max-width: 160px;
  object-fit: contain;
}

.footer__logo .logo__brand--fallback {
  height: 48px;
  max-width: 48px;
}

.footer__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.footer__brand-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color var(--ease);
  overflow-wrap: anywhere;
}

.footer__links a:hover {
  color: var(--blue-400);
}

.footer__bottom {
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__legal {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  opacity: 0.85;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__copy {
    order: 1;
  }

  .hero-recent {
    order: 2;
  }
}

@media (max-width: 900px) {
  .project-entry__head {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "icon info"
      "action action";
    gap: 12px 14px;
    align-items: start;
  }

  .project-entry__icon {
    grid-area: icon;
  }

  .project-entry__info {
    grid-area: info;
    min-width: 0;
  }

  .read-more-btn {
    grid-area: action;
    width: 100%;
    margin: 0;
  }

  .project-entry__body {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 68px;
  }

  body {
    font-size: 16px;
  }

  :root {
    --content-pad: clamp(14px, 4.5vw, 22px);
  }

  .logo__brand {
    height: 38px;
  }

  .nav__inner {
    gap: 8px;
  }

  .section-intro--with-logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-brand-logo {
    width: 88px;
    max-height: 88px;
  }

  .nav__inner {
    position: relative;
    z-index: 1;
  }

  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    transition: background var(--ease);
    position: relative;
    z-index: 3;
    pointer-events: auto;
  }

  .nav__toggle.active {
    background: var(--bg-raised);
  }

  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 8, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.28s ease;
  }

  .nav-backdrop:not([hidden]).is-visible {
    opacity: 1;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 8px var(--content-pad) max(20px, env(safe-area-inset-bottom, 0px));
    padding-left: max(var(--content-pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--content-pad), env(safe-area-inset-right, 0px));
    width: 100%;
    flex-shrink: 0;
    background: rgba(10, 18, 30, 0.98);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links.open > li {
    animation: navItemIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .nav__links.open > li:nth-child(1) { animation-delay: 0.04s; }
  .nav__links.open > li:nth-child(2) { animation-delay: 0.08s; }
  .nav__links.open > li:nth-child(3) { animation-delay: 0.12s; }
  .nav__links.open > li:nth-child(4) { animation-delay: 0.16s; }
  .nav__links.open > li:nth-child(5) { animation-delay: 0.2s; }
  .nav__links.open > li:nth-child(6) { animation-delay: 0.24s; }

  @keyframes navItemIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav__links li {
    width: 100%;
    flex-shrink: 0;
  }

  .nav__links > li > a:not(.nav__cta) {
    display: block;
    padding: 14px 16px;
    margin: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    text-align: left;
    white-space: normal;
    transition: background var(--ease), color var(--ease);
  }

  .nav__links > li > a:not(.nav__cta):active,
  .nav__links > li > a:not(.nav__cta):hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--text);
  }

  .nav__links-lang {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .nav__links .lang-switch {
    margin: 0;
    width: 100%;
    justify-content: center;
    padding: 4px;
  }

  .nav__links .lang-switch__btn {
    flex: 1;
    padding: 10px;
  }

  .nav__links .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 4px 0 0;
    padding: 14px 20px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px);
    padding-bottom: 32px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero-recent__card {
    padding: 18px;
  }

  .build-strip {
    padding-bottom: 28px;
  }

  .build-strip__inner {
    padding: 14px 16px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .lang-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lang-chip {
    padding: 10px 12px;
    gap: 8px;
  }

  .lang-chip img {
    width: 28px;
    height: 28px;
  }

  .lang-chip span {
    font-size: 0.8125rem;
  }

  .lang-chip--js span {
    font-size: 0.75rem;
    letter-spacing: -0.02em;
  }

  .founder-card {
    padding: 20px;
  }

  .founder-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project-entry__head {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "icon info"
      "action action";
    gap: 12px 14px;
    align-items: start;
    padding: 16px;
  }

  .project-entry__icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
  }

  .project-entry__info {
    grid-area: info;
    min-width: 0;
  }

  .project-entry__tagline {
    overflow-wrap: anywhere;
  }

  .read-more-btn {
    grid-area: action;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
  }

  .project-entry__body {
    padding: 16px;
  }

  .contact-panel {
    padding: 32px 20px;
  }

  .contact-panel__actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-panel__actions .btn {
    width: 100%;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 28px;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer__brand-tagline {
    max-width: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__col {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .footer__heading {
    margin-bottom: 12px;
  }

  .footer__links {
    gap: 4px;
  }

  .footer__links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .footer__links a:active,
  .footer__links a:hover {
    background: rgba(37, 99, 235, 0.1);
  }

  .footer__bottom {
    padding: 20px 0 28px;
    text-align: center;
    align-items: center;
  }

  .footer__legal {
    font-size: 0.8125rem;
    text-align: center;
  }

  .footer__copy {
    text-align: center;
    line-height: 1.5;
  }

  .hero,
  .projects,
  .about,
  .contact {
    padding-block: 56px;
  }

  .read-more-btn,
  .btn {
    min-height: 44px;
  }

  .lang-switch__btn {
    min-height: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__col {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
  }

  .footer__links a {
    width: auto;
    padding: 0;
  }

  .footer__links a:hover {
    background: none;
  }
}

@media (max-width: 480px) {
  :root {
    --content-pad: clamp(12px, 5vw, 18px);
  }

  .logo__brand {
    max-width: min(160px, 52vw);
  }

  .footer__logo .logo__brand {
    height: 48px;
  }

  .footer__brand-name {
    font-size: 0.9375rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .lang-list {
    grid-template-columns: 1fr;
  }

  .lang-chip,
  .lang-chip--js {
    width: 100%;
  }

  .lang-chip span,
  .lang-chip--js span {
    font-size: 0.875rem;
    white-space: normal;
  }

  .project-entry__row h3 {
    font-size: 1rem;
  }

  .hero-recent__top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-recent__top .pill {
    margin-left: auto;
  }
}

@media (max-width: 360px) {
  .lang-chip img {
    width: 24px;
    height: 24px;
  }

  .build-strip__line {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .nav__links,
  .nav-backdrop:not([hidden]) {
    transition: none;
  }

  .nav__links.open > li {
    animation: none;
  }
}
