/* ==========================================================================
   George Aggelaridis — portfolio design system (plain CSS, no build step)
   ========================================================================== */

:root {
  /* Brand palette (same as George's email signature and LinkedIn images):
     navy #16325C, blue #1793CE, dark blue #0B6A99, text #334155 / #475569 / #64748B,
     border #DCE8F2, soft background #F4F9FD. #1793CE is only for large or decorative
     elements (3.4:1 on white); links and filled buttons use #0B6A99 or the navy. */
  --background: 255 255 255;
  --soft: 244 249 253;
  --surface: 255 255 255;
  --foreground: 51 65 85;
  --heading: 22 50 92;
  --muted: 71 85 105;
  --label: 100 116 139;
  --border: 220 232 242;
  --accent: 11 106 153;
  --accent-2: 22 50 92;
  --accent-3: 23 147 206;
  --success: 24 160 88;
  --danger: 229 72 77;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-brand: Tahoma, "Inter", Verdana, sans-serif;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shell: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .aurora span {
  opacity: 0.34;
}

/* Dark theme: the same blues on a deep navy. */
html.dark {
  --background: 8 18 34;
  --soft: 13 27 48;
  --surface: 16 32 56;
  --foreground: 214 226 238;
  --heading: 244 249 253;
  --muted: 156 175 196;
  --label: 130 150 172;
  --border: 34 56 88;
  --accent: 23 147 206;
  --accent-2: 11 106 153;
  --accent-3: 91 183 232;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: rgb(var(--heading));
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background-color: rgb(var(--accent) / 0.25);
}

:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: rgb(var(--surface));
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ------------------------------- layout ---------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1;
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 42rem;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-top: 1rem;
  text-wrap: balance;
}

.section-head p {
  margin-top: 1rem;
  color: rgb(var(--muted));
}

.section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.muted {
  color: rgb(var(--muted));
}

.small {
  font-size: 0.875rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

/* ------------------------------ aurora bg -------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
  animation: float-slow 18s ease-in-out infinite;
}

.aurora span:nth-child(1) {
  top: -12rem;
  left: -8rem;
  width: 34rem;
  height: 34rem;
  background: rgb(var(--accent));
}

.aurora span:nth-child(2) {
  top: 20%;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  background: rgb(var(--accent-2));
  animation-delay: -6s;
}

.aurora span:nth-child(3) {
  bottom: -14rem;
  left: 30%;
  width: 32rem;
  height: 32rem;
  background: rgb(var(--accent-3));
  animation-delay: -12s;
}

/* -------------------------------- navbar --------------------------------- */

/* Floating pill navbar: brand, centred links, separator, CTA pill, round icon buttons. */

:root {
  --nav-ink: 255 255 255; /* text on the solid accent CTA */
}

html.dark {
  --nav-ink: 8 18 34;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 0;
}

.navbar__pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  padding: 0 0.6rem 0 1.5rem;
  border: 1px solid rgb(var(--foreground) / 0.1);
  border-radius: 999px;
  background-color: rgb(var(--surface) / 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 32px -18px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.04);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.navbar.is-scrolled .navbar__pill {
  background-color: rgb(var(--surface) / 0.9);
  box-shadow: 0 16px 40px -18px rgb(0 0 0 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.brand {
  font-family: var(--font-brand);
  font-weight: 700;
  color: rgb(var(--heading));
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* Footer brand keeps the two-tone name. */
.brand span {
  color: rgb(var(--accent-3));
}

.brand--nav {
  flex: none;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}


.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgb(var(--muted));
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-links a:hover {
  color: rgb(var(--foreground));
  background-color: rgb(var(--foreground) / 0.05);
}

.nav-links a.is-active {
  color: rgb(var(--foreground));
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background-color: rgb(var(--accent));
}

/* Services dropdown: opens on hover and on keyboard focus. */
.nav-drop {
  position: relative;
}

.nav-drop > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-drop__chevron {
  transition: transform 0.25s var(--ease);
}

.nav-drop:hover .nav-drop__chevron,
.nav-drop:focus-within .nav-drop__chevron {
  transform: rotate(180deg);
}

.nav-drop__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 17rem;
  padding: 0.5rem;
  border: 1px solid rgb(var(--foreground) / 0.1);
  border-radius: 1.1rem;
  background-color: rgb(var(--surface) / 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

/* Hover bridge over the gap between the link and the panel. */
.nav-drop__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.7rem;
  height: 0.7rem;
}

.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-links .nav-drop__panel a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  font-size: 0.92rem;
  color: rgb(var(--foreground));
  white-space: nowrap;
}

.nav-links .nav-drop__panel a::after {
  display: none;
}

.nav-drop__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: 0.6rem;
  color: rgb(var(--accent));
  background-color: rgb(var(--accent) / 0.1);
}

.nav-drop__icon svg {
  width: 1rem;
  height: 1rem;
}

.nav-links .nav-drop__panel .nav-drop__all {
  margin-top: 0.25rem;
  border-top: 1px solid rgb(var(--border) / 0.7);
  border-radius: 0 0 0.8rem 0.8rem;
  font-weight: 600;
  color: rgb(var(--accent));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-sep {
  display: none;
  width: 1px;
  height: 1.75rem;
  margin: 0 0.4rem 0 0.15rem;
  background-color: rgb(var(--foreground) / 0.12);
}

.nav-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.1rem 0.72rem 1.45rem;
  border-radius: 999px;
  background-color: rgb(var(--accent));
  color: rgb(var(--nav-ink));
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(var(--accent) / 0.35), 0 8px 26px -8px rgb(var(--accent) / 0.65);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgb(var(--accent) / 0.5), 0 12px 32px -8px rgb(var(--accent) / 0.8);
}

.nav-cta__icon {
  transition: transform 0.25s var(--ease);
}

.nav-cta:hover .nav-cta__icon {
  transform: translateX(2px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgb(var(--foreground) / 0.12);
  border-radius: 999px;
  background: transparent;
  color: rgb(var(--foreground));
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  border-color: rgb(var(--accent) / 0.6);
  color: rgb(var(--accent));
  background-color: rgb(var(--accent) / 0.08);
}

/* Theme toggle: sun in dark mode (switch to light), moon in light mode. */
.icon-sun,
html.dark .icon-moon {
  display: none;
}

html.dark .icon-sun {
  display: block;
}

/* Desktop language switch: both languages always visible. */
.lang-switch {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgb(var(--foreground) / 0.12);
  border-radius: 999px;
}

.lang-switch a {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgb(var(--muted));
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.lang-switch a:hover {
  color: rgb(var(--foreground));
}

/* Dark blue to navy, so white text stays above 4.5:1 in both themes. */
.lang-switch a.is-active {
  color: #fff;
  background-image: linear-gradient(120deg, #0b6a99, #16325c);
}

/* Language menu behind the globe button. */
.lang-menu {
  position: relative;
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 5;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  background-color: rgb(var(--surface));
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.5);
}

.lang-menu__list[hidden] {
  display: none;
}

.lang-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  color: rgb(var(--foreground));
}

.lang-menu__list a:hover {
  background-color: rgb(var(--foreground) / 0.06);
}

.lang-menu__list a.is-active {
  color: rgb(var(--accent));
}

.lang-menu__code {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgb(var(--muted));
}

.nav-toggle {
  display: inline-flex;
}

.mobile-menu {
  display: none;
  max-height: calc(100dvh - 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 0.6rem;
  padding: 1.1rem;
  border: 1px solid rgb(var(--foreground) / 0.1);
  border-radius: 1.6rem;
  background-color: rgb(var(--surface) / 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.85rem;
  animation: menu-in 0.28s var(--ease) both;
}

/* The assistant button would sit on top of the open menu. */
html.menu-open .gaa {
  display: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.mobile-menu__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--accent));
}

.mobile-menu__services {
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(var(--border) / 0.8);
  border-radius: 1rem;
  background-color: rgb(var(--soft) / 0.7);
}

.mobile-menu__service {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: rgb(var(--heading));
}

.mobile-menu__service + .mobile-menu__service {
  border-top: 1px solid rgb(var(--border) / 0.6);
}

.mobile-menu__service::after {
  content: "›";
  margin-left: auto;
  font-size: 1.1rem;
  color: rgb(var(--muted));
}

.mobile-menu__service:active {
  background-color: rgb(var(--accent) / 0.08);
}

.mobile-menu__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  color: #fff;
  background-image: linear-gradient(135deg, rgb(var(--accent-3)), rgb(var(--accent)) 55%, rgb(var(--accent-2)));
}

.mobile-menu__icon svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Pages in a 2x2 grid, so the whole menu fits on one phone screen. */
.mobile-menu__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(var(--border) / 0.8);
  border-radius: 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgb(var(--heading));
}

.mobile-menu__links a span {
  color: rgb(var(--accent));
  transition: transform 0.25s var(--ease);
}

.mobile-menu__links a:active span {
  transform: translateX(4px);
}

.mobile-menu__links a.is-active {
  border-color: rgb(var(--accent) / 0.5);
  color: rgb(var(--accent));
}

.mobile-menu .mobile-menu__cta {
  width: 100%;
  min-height: 2.9rem;
  font-size: 1rem;
}

.mobile-menu__contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.mobile-menu__contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(var(--heading));
}

.mobile-menu__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(var(--border) / 0.7);
}

.mobile-menu__langs {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background-color: rgb(var(--soft));
}

.mobile-menu__langs a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--muted));
}

.mobile-menu__langs a.is-active {
  color: #fff;
  background-color: rgb(var(--accent));
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu.is-open {
    animation: none;
  }
}

/* Thin reading progress line at the very top of the window. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 41;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background-image: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent-2)), rgb(var(--accent-3)));
  transition: transform 0.15s linear;
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .navbar__pill {
    height: 3.5rem;
    gap: 0.5rem;
    padding: 0 0.4rem 0 1rem;
  }

  .brand--nav {
    font-size: 1rem;
  }

  .nav-actions {
    gap: 0.3rem;
  }

  .icon-btn {
    width: 2.35rem;
    height: 2.35rem;
  }
}

/* Phones and tablets: the quote button stays in the bar, smaller. */
.nav-actions .nav-cta {
  display: inline-flex;
}

.nav-cta__short {
  display: none;
}

@media (max-width: 1099px) {
  .nav-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.85rem;
  }

  .nav-cta__icon {
    display: none;
  }
}

@media (max-width: 479px) {
  .nav-cta__long {
    display: none;
  }

  .nav-cta__short {
    display: inline;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .navbar__pill {
    padding-left: 1.1rem;
  }
}

/* Short phones (iPhone SE and the like): tighter menu, still all on one screen. */
@media (max-height: 720px) {
  .mobile-menu.is-open {
    gap: 0.6rem;
    padding: 0.9rem;
  }

  .mobile-menu__label {
    margin-bottom: 0.4rem;
  }

  .mobile-menu__service {
    padding: 0.3rem 0.75rem;
  }

  .mobile-menu__links a,
  .mobile-menu .mobile-menu__cta {
    min-height: 2.6rem;
  }
}

/* Small phones: the theme and language buttons move into the menu. */
@media (max-width: 479px) {
  .navbar__pill [data-theme-toggle],
  .navbar__pill .lang-menu {
    display: none;
  }

  .mobile-menu__tools {
    display: flex;
  }
}

@media (min-width: 900px) {
  .shell {
    padding: 0 2rem;
  }
}

/* Full bar only where every link and the CTA fit (Greek labels are the longest). */
@media (min-width: 1100px) {
  .nav-links,
  .nav-sep {
    display: flex;
  }

  .nav-actions .nav-cta,
  .lang-switch {
    display: inline-flex;
  }

  .navbar__pill .lang-menu,
  .nav-toggle,
  .mobile-menu,
  .mobile-menu.is-open {
    display: none;
  }
}

/* Narrow desktops: tighter spacing so the links, CTA and language switch fit. */
@media (min-width: 1100px) and (max-width: 1279px) {
  .navbar__pill {
    gap: 0.6rem;
    padding-left: 1.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0.7rem;
  }

  .nav-cta {
    padding: 0.7rem 0.95rem 0.7rem 1.2rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }
}

/* ------------------------------- buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  color: #fff;
  background-image: linear-gradient(
    120deg,
    #0b6a99,
    #16325c,
    #0b6a99
  );
  background-size: 300% 100%;
  animation: gradient-pan 8s linear infinite;
  box-shadow: 0 12px 30px -12px rgb(var(--accent) / 0.6);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgb(var(--accent) / 0.7);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgb(var(--border));
  color: rgb(var(--foreground));
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--accent));
  color: rgb(var(--accent));
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

/* -------------------------------- cards ---------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  background-color: rgb(var(--surface) / 0.8);
  backdrop-filter: blur(6px);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card--hover:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--accent) / 0.55);
  box-shadow: 0 24px 50px -24px rgb(var(--accent) / 0.45);
}

.card h3,
.card .card__title {
  font-size: 1.05rem;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  font-size: 1.2rem;
  color: #fff;
  background-image: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2)));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgb(var(--accent) / 0.3);
  border-radius: 999px;
  /* Opaque surface under the tint, so the aurora never lowers the text contrast. */
  background: linear-gradient(rgb(var(--accent) / 0.07), rgb(var(--accent) / 0.07)), rgb(var(--surface));
  color: rgb(var(--accent));
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  font-size: 0.75rem;
  color: rgb(var(--muted));
}

.tag--accent {
  border-color: rgb(var(--accent) / 0.3);
  background-color: rgb(var(--accent) / 0.08);
  color: rgb(var(--accent));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gradient-text {
  background-image: linear-gradient(
    100deg,
    rgb(var(--accent)),
    rgb(var(--accent-2)),
    rgb(var(--accent-3)),
    rgb(var(--accent))
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 9s linear infinite;
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 950px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin-top: 1.25rem;
  text-wrap: balance;
}

.hero__role {
  display: block;
  min-height: 1.2em;
}

.hero__intro {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: rgb(var(--muted));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__photo {
  position: relative;
}

.gradient-ring {
  position: relative;
  padding: 3px;
  border-radius: 2rem;
  background-image: conic-gradient(
    from var(--angle, 0deg),
    rgb(var(--accent)),
    rgb(var(--accent-2)),
    rgb(var(--accent-3)),
    rgb(var(--accent))
  );
  animation: spin-slow 12s linear infinite;
}

.gradient-ring > * {
  border-radius: calc(2rem - 3px);
  overflow: hidden;
  background-color: rgb(var(--surface));
}

.gradient-ring picture {
  display: block;
  height: 100%;
}

.gradient-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gradient-ring:hover img {
  transform: scale(1.05);
}

.photo-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background-color: rgb(var(--surface));
  box-shadow: 0 20px 40px -25px rgb(0 0 0 / 0.5);
  font-size: 0.8rem;
}

.photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.stats {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.stat {
  padding: 1.25rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background-color: rgb(var(--surface) / 0.7);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgb(var(--muted));
}

/* ------------------------------- marquee --------------------------------- */

.marquee {
  overflow: hidden;
  /* Opaque strip so the muted names keep their contrast over the aurora. */
  background-color: rgb(var(--background));
  border-top: 1px solid rgb(var(--border));
  border-bottom: 1px solid rgb(var(--border));
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
}

.marquee__track span {
  font-size: 0.85rem;
  color: rgb(var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Paused by the mouse, by keyboard focus, or by a tap / Enter / Space (main.js). */
.marquee:hover .marquee__track,
.marquee:focus-visible .marquee__track,
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

.marquee:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: -2px;
}

/* ------------------------------- portfolio ------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.5rem 0 2rem;
}

.portfolio-group--past {
  margin-top: 5rem;
}

.portfolio-group__head {
  margin-bottom: 2rem;
}

.portfolio-group__head h3 {
  margin-top: 0.7rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.filter {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgb(var(--border));
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: rgb(var(--muted));
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.filter:hover {
  color: rgb(var(--foreground));
  border-color: rgb(var(--accent) / 0.5);
}

.filter.is-active {
  color: #fff;
  border-color: transparent;
  background-image: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent-2)));
}

[data-tab-panel][hidden] {
  display: none;
}

.project[hidden] {
  display: none;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background-color: rgb(var(--surface));
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--accent) / 0.55);
  box-shadow: 0 24px 48px -30px rgb(var(--accent) / 0.55);
}

.project--static:hover {
  transform: none;
}

.project__frame {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgb(var(--border));
  background-image: linear-gradient(120deg, rgb(var(--accent) / 0.16), rgb(var(--accent-2) / 0.12), rgb(var(--accent-3) / 0.16));
}

.project__dots {
  display: inline-flex;
  gap: 0.3rem;
  flex: none;
}

.project__dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgb(var(--muted) / 0.55);
}

.project__url {
  flex: 1;
  min-width: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: rgb(var(--background) / 0.75);
  font-size: 0.72rem;
  color: rgb(var(--muted));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgb(var(--border));
  background-color: rgb(var(--background) / 0.6);
}

.project__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project:hover .project__shot img {
  transform: scale(1.04);
}

.project__shot--empty {
  background-image: linear-gradient(140deg, rgb(var(--accent) / 0.18), rgb(var(--accent-3) / 0.16));
}

.project__status {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--border));
  background-color: rgb(var(--background) / 0.85);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgb(var(--muted));
}

.project--closed .project__shot img {
  filter: grayscale(1);
  opacity: 0.7;
}

.project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.35rem;
}

.project__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project h3 {
  margin-top: 0.85rem;
  font-size: 1rem;
  word-break: break-word;
}

.project p {
  margin-top: 0.5rem;
  flex: 1;
  font-size: 0.875rem;
  color: rgb(var(--muted));
}

.project__link {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(var(--accent));
  transition: transform 0.3s var(--ease);
}

.project:hover .project__link {
  color: rgb(var(--accent-2));
}

/* --------------------------------- blog ---------------------------------- */

.posts {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

.post-card {
  overflow: hidden;
  padding: 0;
}

.post-card[hidden] {
  display: none;
}

.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card__media {
  position: relative;
  aspect-ratio: 1200 / 630; /* the article covers are 1200x630 with text, so nothing is cropped */
  flex: 0 0 auto;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgb(var(--accent) / 0.25), rgb(var(--accent-3) / 0.25));
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.06);
}

.post-card__body {
  flex: 1 1 auto;
  padding: 1.4rem;
}

.post-card h2,
.post-card h3 {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.post-card p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: rgb(var(--muted));
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: rgb(var(--muted));
}

.contact-turnstile {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.15rem;
}

.article {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.article h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-top: 1rem;
}

.article__hero {
  margin: 2.5rem 0;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgb(var(--border));
}

.article__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgb(var(--foreground) / 0.9);
}

.prose h2,
.prose h3 {
  margin: 2rem 0 0.75rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem 1.25rem;
  color: rgb(var(--foreground) / 0.9);
}

.prose a {
  color: rgb(var(--accent));
  text-decoration: underline;
}

.prose code {
  padding: 0.15rem 0.4rem;
  border-radius: 0.4rem;
  background-color: rgb(var(--accent) / 0.1);
  font-size: 0.9em;
}

/* --------------------------------- forms --------------------------------- */

.form {
  display: grid;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--muted));
}

.field {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: 0.9rem;
  background-color: rgb(var(--background) / 0.6);
  color: rgb(var(--foreground));
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field:focus {
  outline: none;
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 4px rgb(var(--accent) / 0.15);
}

textarea.field {
  min-height: 9rem;
  resize: vertical;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgb(var(--border));
  font-size: 0.875rem;
}

.notice--success {
  border-color: rgb(var(--success) / 0.4);
  background-color: rgb(var(--success) / 0.1);
  color: rgb(5 150 105);
}

.notice--error {
  border-color: rgb(var(--danger) / 0.4);
  background-color: rgb(var(--danger) / 0.1);
  color: rgb(225 29 72);
}

html.dark .notice--success {
  color: rgb(110 231 183);
}

html.dark .notice--error {
  color: rgb(253 164 175);
}

/* --------------------------------- about --------------------------------- */

/* Block editor preview of the About block. */
.about__grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about__intro {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__photo {
  width: 100%;
  max-width: 24rem;
  justify-self: center;
}

.about__cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.about__col {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

@media (min-width: 950px) {
  .about__intro {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
  }

  .about__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgb(var(--border));
}

.detail-list dt {
  color: rgb(var(--muted));
}

.detail-list dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.stack-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.stack-group__title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--muted));
  margin-bottom: 0.7rem;
}

.stack-group .tag-list {
  gap: 0.5rem;
}

.timeline-list {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.timeline {
  position: relative;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background-image: linear-gradient(rgb(var(--accent)), rgb(var(--accent-3)));
}

.timeline__dot {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background-image: linear-gradient(135deg, rgb(var(--accent)), rgb(var(--accent-2)));
}

/* ---------------------------------- cta ---------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--accent) / 0.25);
  background-image: linear-gradient(120deg, rgb(var(--accent) / 0.15), rgb(var(--accent-2) / 0.12), rgb(var(--accent-3) / 0.15));
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.cta p {
  margin: 1rem auto 2rem;
  max-width: 34rem;
  color: rgb(var(--muted));
}

/* -------------------------------- footer --------------------------------- */

.footer {
  margin-top: 4rem;
  border-top: 1px solid rgb(var(--border));
  padding: 3rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--muted));
  margin-bottom: 0.9rem;
}

.footer a {
  color: rgb(var(--muted));
  transition: color 0.3s var(--ease);
}

.footer a:hover {
  color: rgb(var(--accent));
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--border));
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgb(var(--muted));
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__legal a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: rgb(var(--foreground));
}

/* ------------------------------ animations ------------------------------- */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin-slow {
  to {
    --angle: 360deg;
  }
}

@keyframes gradient-pan {
  to {
    background-position: 300% 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(3%, -4%, 0) scale(1.06);
  }
  66% {
    transform: translate3d(-3%, 3%, 0) scale(0.96);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-fade-up {
  animation: fade-up 0.7s var(--ease) both;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.role-switch {
  display: inline-block;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.role-switch.is-out {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* -------------------------------- services ------------------------------- */

.card__icon svg {
  display: block;
}

.service-card {
  color: inherit;
  text-decoration: none;
}

.service-card p {
  margin-top: 0.6rem;
}

.service-card__more {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--accent));
}

.service-card__more span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card__more span {
  transform: translateX(4px);
}

/* Services page: "which service fits you" panel. */
.guide {
  padding: 2rem;
  border: 1px solid rgb(var(--border));
  border-radius: 1.5rem;
  background-color: rgb(var(--surface));
}

.guide h2 {
  font-size: 1.4rem;
}

.guide__list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.guide__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background-color: rgb(var(--soft));
}

.guide__q {
  color: rgb(var(--foreground));
}

.guide__arrow {
  color: rgb(var(--accent));
}

.guide__a {
  font-weight: 700;
  color: rgb(var(--accent));
}

.guide__a:hover {
  text-decoration: underline;
}

/* Service pages: the related article as one wide card, and the closing line. */
@media (min-width: 800px) {
  .service-article .post-card > a {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }
}

.service-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgb(var(--border));
  border-radius: 1.5rem;
  background-color: rgb(var(--surface));
}

.service-close p {
  max-width: 40rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgb(var(--heading));
}

/* ------------------------------ case studies ------------------------------ */

.case-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background-color: rgb(var(--surface));
  color: inherit;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--accent) / 0.55);
  box-shadow: 0 24px 48px -30px rgb(var(--accent) / 0.55);
}

.case-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: rgb(var(--soft));
}

.case-card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background-color: rgb(var(--accent-2) / 0.92);
  box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5);
}

.case-intro {
  max-width: 42rem;
  margin-top: 3rem;
}

.case-intro h2 {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.case-intro p {
  margin-top: 0.6rem;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}

.case-card:hover .case-card__media img {
  transform: scale(1.03);
}

.case-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem 1.5rem 1.6rem;
}

.case-card__client {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--accent));
}

.case-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgb(var(--muted));
}

.case-card h2,
.case-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.case-card__more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgb(var(--accent));
}

.case-card__more span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.case-card:hover .case-card__more span {
  transform: translateX(4px);
}

@media (min-width: 900px) {
  .case-card--wide h2,
  .case-card--wide h3 {
    font-size: 1.35rem;
  }
}

/* Long lists below the first screen: the browser lays them out only when they come near. */
.portfolio-group,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.portfolio-head {
  margin-top: 4.5rem;
}

/* Case study page. */
.case-hero .section-head {
  max-width: 48rem;
}

.case-hero__meta {
  font-size: 0.95rem;
  font-weight: 600;
}

.case-shots {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .case-shots--two {
    grid-template-columns: 1fr 1fr;
  }
}

.case-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  background-color: rgb(var(--surface));
  box-shadow: 0 30px 60px -36px rgb(var(--accent-2) / 0.45);
}

.case-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.case-body {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 950px) {
  .case-body {
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
  }

  .case-body__side {
    position: sticky;
    top: 6.5rem;
  }
}

.case-body__main {
  display: grid;
  gap: 2.75rem;
}

.case-block h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.case-block p {
  margin-top: 0.9rem;
  color: rgb(var(--foreground));
}

.case-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgb(var(--border));
  border-radius: 1rem;
  background-color: rgb(var(--surface));
}

.case-list strong {
  color: rgb(var(--heading));
}

.case-side__title {
  font-size: 1.1rem;
}

.case-details {
  margin-top: 1rem;
}

.case-details dd {
  text-align: right;
}

/* Clients strip title. */
.marquee-title {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--muted));
}

/* How we work: five numbered steps joined by a line. */
.process {
  display: grid;
  gap: 1.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.process__step {
  position: relative;
  padding-left: 3.75rem;
}

.process__step h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.05rem;
}

.process__step p {
  margin: 0;
}

.process__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background-color: rgb(var(--accent));
}

/* The line between the numbers (mobile: vertical). */
.process__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 2.9rem;
  bottom: -1.5rem;
  width: 2px;
  background-image: linear-gradient(rgb(var(--accent) / 0.45), rgb(var(--accent) / 0.08));
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .process__step {
    padding-left: 0;
    padding-top: 3.6rem;
  }

  .process__step:not(:last-child)::before {
    left: 3.1rem;
    right: -1.2rem;
    top: 1.3rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background-image: linear-gradient(90deg, rgb(var(--accent) / 0.45), rgb(var(--accent) / 0.08));
  }
}

/* Service pages. */
.service-hero {
  padding-bottom: 2rem;
}

.service-hero .section-head {
  max-width: 46rem;
}

.service-hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
}

.service-hero__icon {
  margin: 0;
}

.service-hero__intro {
  font-size: 1.1rem;
}

.service-list {
  margin-top: 2rem;
}

.service-list .card p {
  margin-top: 0.5rem;
}

.service-list__check {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background-color: rgb(var(--accent) / 0.14);
  color: rgb(var(--accent));
  font-weight: 700;
}

.service-why {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgb(var(--accent) / 0.25);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(120deg, rgb(var(--accent) / 0.1), rgb(var(--accent-2) / 0.08), rgb(var(--accent-3) / 0.1));
}

.service-why h2,
.service-faq h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.service-why ol {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: why;
}

@media (min-width: 900px) {
  .service-why ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-why li {
  counter-increment: why;
}

.service-why li::before {
  content: "0" counter(why);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background-image: linear-gradient(120deg, rgb(var(--accent)), rgb(var(--accent-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.service-why strong {
  display: block;
  margin-bottom: 0.35rem;
}

.service-faq {
  max-width: 48rem;
}

.service-faq h2 {
  margin-bottom: 1.25rem;
}

.service-faq details {
  border-bottom: 1px solid rgb(var(--border));
}

.service-faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.service-faq summary::-webkit-details-marker {
  display: none;
}

.service-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: rgb(var(--accent));
  transition: transform 0.3s var(--ease);
}

.service-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.service-faq details p {
  padding-bottom: 1.15rem;
}

.service-others {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.75rem;
}

.service-others__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  background-color: rgb(var(--surface) / 0.8);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-others__item:hover {
  border-color: rgb(var(--accent) / 0.55);
  transform: translateY(-2px);
}

.service-others__item .card__icon {
  width: 2.3rem;
  height: 2.3rem;
  margin: 0;
  border-radius: 0.7rem;
}

.service-others__item .card__icon svg {
  width: 18px;
  height: 18px;
}

/* Titles inside the About cards were h4: h3 now for a correct outline, same size as before. */
.timeline h3,
h3.stack-group__title {
  font-size: 1em;
}
