/* ==========================================================================
   TEVO — Personal Portfolio
   Design system implemented from the provided high-fidelity Home design.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Kaushan+Script&display=swap');

/* ---- Design tokens -------------------------------------------------------
   Change any value here to re-skin the entire site.
   ---------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  /* [DARK BACKGROUND] page background */
  --color-bg-alt: #0d0d0d;
  /* secondary background band */
  --color-surface: #141414;
  /* [SECONDARY COLOR] card fill */
  --color-surface-raised: #181818;
  /* hovered / raised card fill */
  --color-icon-bg: #101c1b;
  /* icon chip fill */
  --color-border: #22302e;
  /* default hairline border on dark cards */
  --color-border-accent: rgba(0, 230, 211, 0.35);
  /* [BORDER COLOR] teal-tinted border */
  --color-accent: #00e6d3;
  /* [PRIMARY COLOR] electric turquoise */
  --color-accent-dim: #0a413d;
  /* deep teal glow base */
  --color-accent-soft: rgba(0, 230, 211, 0.12);
  --color-text-primary: #ffffff;
  /* [TEXT PRIMARY] */
  --color-text-secondary: #a6adac;
  /* [TEXT SECONDARY] */
  --color-text-muted: #6f7876;
  --color-danger: #ff6b6b;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  /* [FONT FAMILY] */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-script: 'Kaushan Script', cursive;

  --fs-hero: clamp(2.75rem, 5.6vw, 5rem);
  --fs-h1: clamp(2.25rem, 3.6vw, 3.25rem);
  --fs-h2: clamp(1.875rem, 2.8vw, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.8vw, 1.75rem);
  --fs-body-lg: clamp(1.05rem, 1.2vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;

  /* Layout / Grid — [CONTAINER MARGIN: 80px] [GRID GUTTER: 20px] */
  --container-margin: 80px;
  --grid-gutter: 20px;
  --container-max: 1440px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;
}

/* Security_Assets */
.hero__portrait, .portrait-card img, .project-card__media img,
.detail-hero__media img, .case-section img, img[data-protect], [data-protect] img{
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;   /* iOS long-press save menu */
  -webkit-user-drag: none;
}

@font-face {
  font-family: 'Brittany Signature';
  src: url('../assets/fonts/BrittanySignature.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Breakpoint-adaptive container margin — [BREAKPOINTS] */
@media (max-width: 1280px) {
  :root {
    --container-margin: 56px;
  }
}

@media (max-width: 834px) {
  :root {
    --container-margin: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-margin: 20px;
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;

}

img,
video,
iframe {
  max-width: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Base ------------------------------------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

::selection {
  background: var(--color-accent);
  color: #001512;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-margin);
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 140px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 96px);
}

.grid {
  display: grid;
  gap: var(--grid-gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-accent);
  color: #001512;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 999;
  transition: top var(--dur-base) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---- Eyebrow / labels ----------------------------------------------------*/
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
}

/* ---- Section headers -----------------------------------------------------*/
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head__desc {
  max-width: 420px;
  color: var(--color-text-secondary);
  font-size: var(--fs-body-lg);
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  min-height: 48px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.btn--primary {
  background: var(--color-accent);
  color: #00201c;
  border: 1px solid var(--color-accent);
  border-radius: 15px;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--color-accent-soft), 0 0 0 4px var(--color-accent-soft);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
}

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

.btn--sm {
  padding: 10px 18px;
  min-height: 38px;
  font-size: 0.85rem;
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn--block {
  width: 100%;
}

/* ---- Navbar ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 22px;
  transition: background var(--dur-base) var(--ease),
    padding var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 14px;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.logo__mark {
  display: block;
  width: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--dur-base) var(--ease);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.is-active {
  color: var(--color-text-primary);
}

.nav-links a.is-active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--color-text-primary);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

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

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .navbar__actions .btn--outline {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mobile-nav a.is-active {
  color: var(--color-accent);
}

body.nav-open {
  overflow: hidden;
}

/* new — add this near your .mobile-nav rules in style.css */
.mobile-nav__socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-nav__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  transition: transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.mobile-nav__socials a:hover,
.mobile-nav__socials a:focus-visible {
  background: var(--color-accent);
  color: #00201c;
  transform: translateY(-3px);
}

.mobile-nav__socials svg {
  width: 20px;
  height: 20px;
}

/* ---- Page loader ---------------------------------------------------------*/
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.loader__dots {
  display: flex;
  gap: 6px;
}

.loader__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: loaderPulse 1s var(--ease) infinite;
}

.loader__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---- Background atmosphere ----------------------------------------------*/
.glow-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-field::before,
.glow-field::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

/* ---- Reveal on scroll ------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal="scale"].is-visible {
  transform: scale(1);
}

[data-reveal-group] [data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}

[data-reveal-group] [data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}

[data-reveal-group] [data-reveal]:nth-child(3) {
  transition-delay: 0.19s;
}

[data-reveal-group] [data-reveal]:nth-child(4) {
  transition-delay: 0.26s;
}

[data-reveal-group] [data-reveal]:nth-child(5) {
  transition-delay: 0.33s;
}

[data-reveal-group] [data-reveal]:nth-child(6) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow: hidden;
}

.hero .glow-field::before {
  width: 620px;
  height: 620px;
  right: 8%;
  top: 10%;
  background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--grid-gutter);
  min-height: 60vh;
}

.hero__content {
  max-width: 640px;
  padding-bottom: 200px;
}

.hero__title {
  font-size: var(--fs-hero);
  margin-bottom: 22px;
}

.hero__title .line {
  display: block;
}

.hero__title .line--muted {
  color: var(--color-text-secondary);
}

.hero__script {
  display: block;
  font-family: 'Brittany Signature', cursive;
  font-weight: 500;
  color: var(--color-accent);
  font-size: 5rem;
  line-height: 1.6;
  margin-top: 2px;
  text-shadow: 0 0 24px rgba(0, 230, 211, 0.35);
  max-width: 100%;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.hero__portrait-wrap {
  position: relative;
  width: min(100%, 560px);
  will-change: transform;
}

.hero__portrait-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 55% 40%, rgba(0, 230, 211, 0.30) 0%, transparent 65%);
  filter: blur(30px);
  z-index: -1;
}

.hero__portrait {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

.hero__badge {
  position: absolute;
  top: 6%;
  right: -2%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 14, 14, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  cursor: default;
  transition: transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease);
}

.hero__badge:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: var(--color-accent);
  background: rgba(10, 14, 14, 0.92);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 34px -4px var(--color-accent-soft);
}

.hero__badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  flex-shrink: 0;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.hero__badge-text {
  font-size: var(--fs-small);
  line-height: 1.3;
}

.hero__badge-text small {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.72rem;
}

.hero__badge-text strong {
  color: var(--color-text-primary);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
  }

  .hero__portrait-wrap {
    width: min(78%, 380px);
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__badge {
    right: 4%;
    top: -3%;
  }
}

@media (max-width: 600px) {
  .hero__visual .hero__portrait-wrap {
    position: relative;
  }

  .hero__visual .hero__badge {
    right: -10px;
    top: -13%;
  }
}

@media (max-width: 768px) {
  .hero__script {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(3.5rem, 9vw, 3.5rem);
    line-height: 1.5;
    text-align: center;
    margin-inline: auto;
  }
}



/* Desktop + landscape-tablet only: bring the hero title above the fold and
   tighten it up. Everything at 1024px and below (tablet-portrait/mobile,
   handled above) is untouched on purpose. */
@media (min-width: 1025px) {
  .hero {
    padding-top: clamp(96px, 8.5vw, 132px);
    padding-bottom: clamp(48px, 6vw, 88px);
  }

  .hero__grid {
    min-height: 50vh;
  }

  .hero__title {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
  }

  .hero .eyebrow {
    white-space: nowrap;
  }
}

/* ========================================
   TEVO — Interactive Brand Philosophy
======================================== */

.tevo-philosophy {
  --tevo-accent: #00D1C3;
  --tevo-bg: #080A0A;
  --tevo-muted: #899391;
  --tevo-text: #F4F7F6;

  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(64px, 9vw, 112px) 24px;
  overflow: hidden;
  background: var(--tevo-bg);
}

.tevo-philosophy__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Eyebrow */

.tevo-philosophy__eyebrow {
  color: var(--tevo-accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-align: center;
}

/* Words layout */

.tevo-philosophy__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(10px, 2vw, 28px);
  row-gap: 12px;
  width: 100%;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(25px, 4.1vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

/* Interactive word */

.tevo-word {
  --pointer-x: 50%;
  --pointer-y: 50%;

  position: relative;
  isolation: isolate;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #626B69;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 280ms ease,
    text-shadow 280ms ease,
    transform 280ms ease;
}

/* Pointer-following glow */

.tevo-word::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12px -18px;
  border-radius: 16px;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
      rgba(0, 209, 195, 0.17),
      rgba(0, 209, 195, 0.055) 38%,
      transparent 72%);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 280ms ease;
  pointer-events: none;
}

/* Highlighted punctuation */

.tevo-word__dot {
  color: #52605D;
  transition:
    color 280ms ease,
    text-shadow 280ms ease;
}

/* Hover, selected and keyboard focus */

.tevo-word:hover,
.tevo-word.is-active,
.tevo-word:focus-visible {
  color: var(--tevo-text);
  text-shadow:
    0 0 12px rgba(0, 209, 195, 0.20),
    0 0 32px rgba(0, 209, 195, 0.10);
}

.tevo-word:hover::before,
.tevo-word.is-active::before,
.tevo-word:focus-visible::before {
  opacity: 1;
}

.tevo-word:hover .tevo-word__dot,
.tevo-word.is-active .tevo-word__dot,
.tevo-word:focus-visible .tevo-word__dot {
  color: var(--tevo-accent);
  text-shadow: 0 0 16px rgba(0, 209, 195, 0.65);
}

.tevo-word:focus-visible {
  outline: 1px solid rgba(0, 209, 195, 0.65);
  outline-offset: 8px;
  border-radius: 4px;
}

/* Supporting hint */

.tevo-philosophy__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--tevo-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.tevo-philosophy__indicator {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--tevo-accent);
  box-shadow: 0 0 12px rgba(0, 209, 195, 0.6);
}

/* Tablet */

@media (max-width: 900px) {
  .tevo-philosophy__words {
    max-width: 720px;
    column-gap: 20px;
    font-size: clamp(26px, 5.2vw, 44px);
  }
}

/* Mobile */

@media (max-width: 600px) {
  .tevo-philosophy {
    padding: 64px 20px;
  }

  .tevo-philosophy__inner {
    gap: 24px;
  }

  .tevo-philosophy__eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .tevo-philosophy__words {
    display: grid;
    justify-content: center;
    align-items: center;
    row-gap: 12px;
    width: 100%;
    font-size: clamp(20px, 5.8vw, 30px);
    letter-spacing: -0.06em;
  }

  .tevo-word {
    padding: 7px 1px;
    justify-self: center;
    white-space: nowrap;
    font-size: clamp(35px, 4.1vw, 58px);
  }

  .tevo-word::before {
    inset: -8px -10px;
  }

  .tevo-philosophy__hint {
    max-width: 280px;
    font-size: 11px;
  }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

  .tevo-word,
  .tevo-word::before,
  .tevo-word__dot {
    transition: none;
  }
}


/* ==========================================================================
   ABOUT (home preview + about page shared bits)
   ========================================================================== */
.about-preview__grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-preview__text h2 {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
}

.about-preview__text p {
  font-size: var(--fs-body-lg);
  max-width: 480px;
  margin-bottom: 32px;
}

.stat-row {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 48px;
  flex-wrap: wrap;
}

.stat-row__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 700;
}

.stat-row__item span {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.about-preview__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-accent);
  box-shadow: 0 0 0 1px rgba(0, 230, 211, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 50px -10px rgba(0, 230, 211, 0.18);
  aspect-ratio: 3 / 4;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-card__signature {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-family: 'Brittany Signature', cursive;
  font-size: 1.9rem;
  color: var(--color-accent);
  text-shadow: 0 0 18px rgba(0, 230, 211, 0.55);
  pointer-events: none;
}

.social-rail {
  position: absolute;
  right: -64px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-accent);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.social-rail a:hover {
  transform: translateY(-3px);
  color: var(--color-text-primary);
}

.social-rail svg {
  width: 22px;
  height: 22px;
}



@media (max-width: 1024px) {
  .about-preview__grid {
    grid-template-columns: 1fr;
  }

  .about-preview__text {
    order: 2;
    text-align: center;
  }

  .about-preview__text p {
    margin-inline: auto;
  }

  .about-preview__visual {
    order: 1;
  }

  .stat-row {
    justify-content: center;
  }

  .social-rail {
    display: none;
  }
}

/* ==========================================================================
   PROJECTS — bento grid
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: var(--grid-gutter);
}

.bento .project-card:nth-child(3),
.bento .project-card:nth-child(4) {
  grid-column: span 1;
}

.bento--home {
  grid-template-columns: repeat(3, 1fr);
}

.bento--home .project-card:nth-child(-n+3) {
  grid-column: span 1;
}

.bento--home .project-card:nth-child(4) {
  grid-column: 1 / span 2;
  grid-row: auto;
}

.bento--home .project-card:nth-child(5) {
  grid-column: 3 / span 1;
  grid-row: auto;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  min-height: 320px;
  padding: 28px;
  isolation: isolate;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}


.project-card:nth-child(5) {
  max-height: fit-content;
}

.project-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
}

.project-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-base) var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.05);
  opacity: 1;
}

.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.92) 82%);
}

.project-card__index {
  position: absolute;
  top: 24px;
  left: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.project-card__logo {
  position: absolute;
  top: 22px;
  right: 24px;
  max-height: 26px;
  max-width: 90px;
  object-fit: contain;
  opacity: 0.9;
}

.project-card__category {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.project-card__title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-card__desc {
  font-size: 0.92rem;
  max-width: 34ch;
  margin-bottom: 18px;
}

.project-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text-primary);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.project-card:hover .project-card__arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #00201c;
  transform: translate(3px, -3px);
}

.project-card__arrow svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {

  .bento,
  .bento--home {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento--home .project-card:nth-child(4) {
    grid-column: span 2;
  }

  .bento--home .project-card:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {

  .bento,
  .bento--home {
    grid-template-columns: 1fr;
  }

  .bento--home .project-card:nth-child(4),
  .bento--home .project-card:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}


/* Mobile project image positioning */
@media (max-width: 768px) {

  .project-card__media {
    overflow: hidden;
  }

  .project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  /* Portfolio project */
  .project-card:nth-child(4) .project-card__media img {
    object-position: 65% center;
  }

}

/* Smaller mobile screens */
@media (max-width: 480px) {

  .project-card__media img {
    object-fit: cover;
  }

  /* Shift image focus horizontally */
  .project-card:nth-child(4) .project-card__media img {
    object-position: 68% center;
  }

}


/* ========================================
   PROJECT CARDS - RESPONSIVE IMAGE POSITION
======================================== */

/* Tablet */
@media (max-width: 768px) {
  .project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .project-card__media img {
    object-position: 75% center;
  }
}

/* Small Mobile */
@media (max-width: 390px) {
  .project-card__media img {
    object-position: 40% 50%;
  }
}


/* =========================================
   TABLET / iPAD BENTO LAYOUT
   ========================================= */

@media (min-width: 769px) and (max-width: 1100px) {

  .bento--home {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reset desktop positioning */
  .bento--home .project-card:nth-child(1),
  .bento--home .project-card:nth-child(2),
  .bento--home .project-card:nth-child(4),
  .bento--home .project-card:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
  }

  /* Shadow Fight — full width */
  .bento--home .project-card:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}

.service-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  background: var(--color-surface-raised);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-icon-bg);
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  margin-bottom: 40px;
}

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

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 20px;
  align-self: flex-start;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.service-card__link svg {
  width: 15px;
  height: 15px;
}

.service-card:hover .service-card__link {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #00201c;
  transform: translate(2px, -2px);
}

.service-card--soon {
  opacity: 0.55;
}

.service-card--soon:hover {
  transform: none;
  border-color: var(--color-border);
  background: var(--color-surface);
}

.service-card__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
  position: relative;
}

.contact-section .glow-field::before {
  width: 700px;
  height: 500px;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--color-accent-dim) 0%, transparent 70%);
  opacity: 0.4;
}

.contact-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.contact-intro h2 {
  font-size: var(--fs-h1);
  margin-bottom: 16px;
  white-space: nowrap;
}

.contact-intro h2 .accent {
  color: var(--color-accent);
}

.contact-intro p {
  font-size: var(--fs-body-lg);
}

/* Tablet */
@media (max-width: 1024px) {
  .contact-intro h2 {
    white-space: normal;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .contact-intro h2 {
    white-space: normal;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.1;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--grid-gutter);
  position: relative;
  z-index: 1;
}

.panel {
  border: 1px solid var(--color-border);
  background: rgba(20, 20, 20, 0.6);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
}

.panel__label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: block;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--color-danger);
  margin-top: 6px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-danger);
}

.field.has-error .field-error {
  display: block;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: 16px;
}

.form-note svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.form-status {
  margin-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--color-accent);
}

.form-status.is-error {
  color: var(--color-danger);
}

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: border-color var(--dur-base) var(--ease);
}

.info-card:hover {
  border-color: var(--color-border-accent);
}

.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-icon-bg);
  color: var(--color-accent);
  flex-shrink: 0;
}

.info-card__icon svg {
  width: 20px;
  height: 20px;
}

.info-card__body {
  flex-grow: 1;
  min-width: 0;
}

.info-card__body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.info-card__body span {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  word-break: break-word;
}

.info-card__action {
  flex-shrink: 0;
}

.info-card__socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.info-card__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border-accent);
  color: var(--color-accent);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.info-card__socials a:hover {
  background: var(--color-accent);
  color: #00201c;
}

.info-card__socials svg {
  width: 16px;
  height: 16px;
}

.info-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---- More ways to work together (profile cards) ------------------------ */
.profile-cards {
  grid-template-columns: repeat(2, 1fr);
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.profile-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
}

.profile-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.profile-card__body strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.profile-card__body .handle {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.profile-card__body p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.profile-card__body a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-card__body a svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 640px) {
  .profile-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PAGE HERO (About / Projects / Services / Contact interior pages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: clamp(140px, 14vw, 190px);
  padding-bottom: clamp(48px, 6vw, 88px);
  text-align: center;
  overflow: hidden;
}

.page-hero .glow-field::before {
  width: 560px;
  height: 400px;
  left: 50%;
  top: -10%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--color-accent-dim) 0%, transparent 70%);
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  transition: color var(--dur-fast) var(--ease);
}

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

.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: var(--fs-h1);
  max-width: 760px;
  margin-inline: auto;
}

.page-hero p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 18px auto 0;
  font-size: var(--fs-body-lg);
}

/* ==========================================================================
   ABOUT PAGE CONTENT
   ========================================================================== */
.about-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.about-hero__visual {
  position: relative;
}

.about-hero__text h1 {
  font-size: var(--fs-h1);
  margin-bottom: 20px;
}

.about-hero__text p {
  font-size: var(--fs-body-lg);
  margin-bottom: 16px;
  max-width: 56ch;
}

@media (max-width: 1024px) {
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero__text p {
    margin-inline: auto;
  }
}

.content-block {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.content-block__label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  position: sticky;
  top: 120px;
  align-self: start;
}

.content-block__label span {
  color: var(--color-accent);
}

.content-block__body p {
  font-size: var(--fs-body-lg);
  max-width: 66ch;
  margin-bottom: 16px;
}

.content-block__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .content-block {
    grid-template-columns: 1fr;
  }

  .content-block__label {
    position: static;
  }
}


.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 520px;
  min-width: 0;
}

.tool-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  max-width: 100%;
  padding: 12px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tool-chip__dot {
  flex: 0 0 7px;
}

/* Small screens */
@media (max-width: 360px) {
  .tool-grid {
    gap: 8px;
  }

  .tool-chip {
    padding: 10px 8px;
    font-size: 12px;
  }
}



.tool-chip:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-2px);
}

.tool-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.skill-bar__head span:last-child {
  color: var(--color-accent);
  font-weight: 600;
}

.skill-bar__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-accent-dim), var(--color-accent));
  width: 0;
  transition: width 1.1s var(--ease);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 32px;
  border-left: 1px solid var(--color-border);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.timeline-item time {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin: 4px 0 6px;
}

.timeline-item p {
  font-size: 0.92rem;
}

/* ==========================================================================
   PROJECTS PAGE — category groups
   ========================================================================== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.category-nav button {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all var(--dur-fast) var(--ease);
}

.category-nav button:hover {
  border-color: var(--color-border-accent);
  color: var(--color-text-primary);
}

.category-nav button.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #00201c;
}

.category-group {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.category-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
}

.category-group__head h2 {
  font-size: var(--fs-h3);
}

.category-group__head span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   SERVICE / PROJECT DETAIL PAGES
   ========================================================================== */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.detail-hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag-chip {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.detail-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: 18px;
}

.detail-hero p {
  font-size: var(--fs-body-lg);
  max-width: 52ch;
}

.detail-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
}

.detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detail-hero__meta {
    justify-content: center;
  }

  .detail-hero p {
    margin-inline: auto;
  }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gutter);
}

.process-step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.process-step:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
}

.process-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.case-section img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-top: 20px;
}

/* =========================================
   CASE SECTION — VIDEO
   ========================================= */

.case-section--video {
  position: relative;
}

.case-section-video {
  position: relative;
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid rgba(0, 209, 195, 0.22);
  border-radius: 18px;
  background: #080a0a;
  box-shadow:
    0 0 0 1px rgba(0, 209, 195, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Subtle mint glow behind the video */

.case-section-video::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center,
      rgba(0, 209, 195, 0.10),
      transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Video */

.case-section-video video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050606;
}

/* =========================================
   CENTER PLAY BUTTON
   ========================================= */

.case-video-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;

  width: 76px;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(0, 209, 195, 0.55);
  border-radius: 50%;

  background: rgba(0, 209, 195, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: #00D1C3;
  cursor: pointer;

  box-shadow:
    0 0 0 8px rgba(0, 209, 195, 0.04),
    0 0 35px rgba(0, 209, 195, 0.18);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.case-video-play svg {
  width: 25px;
  height: 25px;
  margin-left: 3px;
}

.case-video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);

  background: rgba(0, 209, 195, 0.18);

  box-shadow:
    0 0 0 10px rgba(0, 209, 195, 0.05),
    0 0 50px rgba(0, 209, 195, 0.30);
}

.case-video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.case-section-video video {
  cursor: pointer;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

  .case-section-video {
    margin-top: 28px;
    border-radius: 14px;
  }

  .case-video-play {
    width: 58px;
    height: 58px;
  }

  .case-video-play svg {
    width: 20px;
    height: 20px;
  }

}

.case-section {
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-section h2 {
  font-size: var(--fs-h3);
  margin-bottom: 16px;
}

.case-section p {
  font-size: var(--fs-body-lg);
  max-width: 70ch;
  margin-bottom: 14px;
}

/* ---- FAQ accordion ------------------------------------------------------ */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}

.faq-item__icon svg {
  width: 14px;
  height: 14px;
}

.faq-item[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-accent);
  color: #00201c;
}

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item__panel p {
  padding: 0 4px 22px;
  font-size: 0.95rem;
  max-width: 65ch;
}


.section-head--center {
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}


.form-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}



/* ---- Final CTA banner ---------------------------------------------------*/
.cta-banner {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-accent);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px);
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 230, 211, 0.10) 0%, transparent 70%), var(--color-surface);
  overflow: hidden;
}

.cta-banner h2 {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: var(--fs-body-lg);
  margin-inline: auto 14px;
  margin-bottom: 28px;
}


/* ---- Utility spacing ------------------------------------------------------ */
.mt-0 {
  margin-top: 0 !important;
}

.text-center {
  text-align: center;
}

.max-w-content {
  max-width: 720px;
  margin-inline: auto;
}

/* ---- launch-badge -------------------------------------------------------------- */
.launch-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px auto 18px;
}

.launch-badge img {
  max-width: 100%;
  height: auto;
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);

  background-color: #060e0d;
  background-image: url('../assets/images/footer-bk.webp');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}


.footer-top {
  width: 100%;
  padding: 56px 0 0;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin: 0 auto 32px;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 28px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  gap: 40px;

  margin: 0 auto 36px;
  padding: 0;
}

.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;

  color: var(--color-text-primary);
  text-decoration: none;

  white-space: nowrap;

  transition:
    color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease);
}

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

.footer-divider {
  width: 100%;
  height: 1px;

  margin: 0;
  padding: 0;

  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

.footer-legal {
  width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 48px max(7vw, 32px) 42px;

  font-size: var(--fs-small);
  line-height: 1.2;

  color: #00e6d3;
}

.footer-legal span,
.footer-legal a {
  color: #00e6d3;
  text-decoration: none;

  white-space: nowrap;

  transition: color var(--dur-fast) var(--ease);
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-cta {
  display: block;

  width: 100%;
  max-width: 100%;

  box-sizing: border-box;

  margin: 0;
  padding: 0 0 10px;

  text-align: center;

  font-family: var(--font-display);
  font-weight: 700;

  letter-spacing: -0.075em;
  line-height: 0.82;

  /*
    Smaller maximum size prevents horizontal scrolling
    while keeping the oversized cinematic look.
  */
  font-size: clamp(3.5rem, 11.5vw, 10rem);

  white-space: nowrap;

  overflow: hidden;
  user-select: none;

  /*
    Fully opaque gradient.
    No transparent rgba values.
  */
  background: linear-gradient(180deg,
      #00e6d3 0%,
      #00cfc0 50%,
      #009f96 100%);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* -------------------------------------------------------------------------- */
/* Tablet                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 900px) {

  .footer-top {
    padding-top: 48px;
  }

  .footer-nav {
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer-legal {
    padding: 40px 32px 36px;
  }

  .footer-cta {
    font-size: clamp(3.2rem, 11.5vw, 7.0rem);
  }
}


/* -------------------------------------------------------------------------- */
/* Mobile                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 640px) {

  .footer-top {
    padding-top: 42px;
  }

  .footer-logo {
    margin-bottom: 28px;
  }

  .footer-logo img {
    height: 26px;
  }

  .footer-nav {
    gap: 22px;

    flex-wrap: wrap;

    margin-bottom: 32px;
    padding-inline: 24px;
  }

  .footer-nav a {
    font-size: 0.95rem;
  }

  .footer-legal {
    padding: 32px 24px 30px;

    gap: 12px;
  }

  .footer-cta {
    /*
      Allow the CTA to break naturally on small screens.
    */
    white-space: normal;

    padding: 0 16px 18px;

    font-size: clamp(3rem, 16vw, 5.5rem);
    line-height: 0.86;

    overflow: visible;
  }
}


/* -------------------------------------------------------------------------- */
/* Very Small Screens                                                         */
/* -------------------------------------------------------------------------- */

@media (max-width: 480px) {

  .footer-nav {
    gap: 18px 24px;
  }

  .footer-legal {
    padding-inline: 20px;
  }

  .footer-legal span,
  .footer-legal a {
    font-size: 0.82rem;
  }

  .footer-cta {
    font-size: clamp(2.7rem, 15.5vw, 4.5rem);
  }
}

@media (max-width: 640px) {
  .footer-cta {
    white-space: normal;
    line-height: 0.95;
  }
}

@media (max-width: 1024px) {
  .footer-cta {
    font-size: clamp(3.2rem, 10.5vw, 7.0rem);
  }
}


@media (max-width: 560px) {
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
  }

  .footer-legal {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding-block: clamp(56px, 22vw, 120p) 24px;
  }
}


/* ==========================================================================
   RESPONSIVE
   Every @media rule in the file lives here, ordered widest → narrowest.
   Nothing above this line should have its own @media block anymore —
   base rules stay base rules, breakpoints stay down here.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---- Laptop / small desktop (≤1280px) ------------------------------------ */
@media (max-width: 1280px) {
  :root {
    --container-margin: 56px;
  }
}

/* ---- Small laptop + landscape tablet (1025–1366px) ------------------------
   Badge sat too close to the head in this exact range before — more
   clearance here specifically, independent from the ≥1367px desktop rule
   and the ≤1024px stacked-layout rule below. */
@media (min-width: 1025px) and (max-width: 1366px) {
  .hero__badge {
    top: -4%;
    right: 5%;
  }
}

/* ---- Tablet landscape / small laptop (≤1024px) ---------------------------- */
@media (max-width: 1024px) {

  /* Hero */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
  }

  .hero__portrait-wrap {
    width: min(78%, 380px);
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
    padding-bottom: 0;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__badge {
    right: 4%;
    top: -3%;
  }

  /* About preview */
  .about-preview__grid {
    grid-template-columns: 1fr;
  }

  .about-preview__text {
    order: 2;
    text-align: center;
  }

  .about-preview__text p {
    margin-inline: auto;
  }

  .about-preview__visual {
    order: 1;
  }

  .stat-row {
    justify-content: center;
  }

  .social-rail {
    right: 50%;
    top: auto;
    bottom: -40px;
    transform: translateX(50%);
    flex-direction: row;
  }

  /* Projects bento (home + category pages) */
  .bento,
  .bento--home {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento--home .project-card:nth-child(4) {
    grid-column: span 2;
  }

  .bento--home .project-card:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact heading */
  .contact-intro h2 {
    white-space: normal;
  }

  /* About page */
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero__text p {
    margin-inline: auto;
  }

  /* Service/project detail process steps */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Tablet portrait (≤900px) ---------------------------------------------- */
@media (max-width: 900px) {

  /* Navbar switches to hamburger */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Contact form + detail hero stack */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .detail-hero__meta {
    justify-content: center;
  }

  .detail-hero p {
    margin-inline: auto;
  }

  /* Footer */
  .footer-top {
    padding-top: 48px;
  }

  .footer-nav {
    gap: 28px;
    margin-bottom: 32px;
  }

  .footer-legal {
    padding: 40px 32px 36px;
  }
}

/* ---- Tablet portrait, narrower (≤834px) ------------------------------------ */
@media (max-width: 834px) {
  :root {
    --container-margin: 32px;
  }
}

/* ---- iPad-ish content blocks (≤800px) -------------------------------------- */
@media (max-width: 800px) {
  .content-block {
    grid-template-columns: 1fr;
  }

  .content-block__label {
    position: static;
  }
}

/* ---- Large phones landscape / phablets (≤640px) ---------------------------- */
@media (max-width: 640px) {

  .bento,
  .bento--home {
    grid-template-columns: 1fr;
  }

  .bento--home .project-card:nth-child(4),
  .bento--home .project-card:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .profile-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact heading, phones (≤600px) -------------------------------------- */
@media (max-width: 600px) {
  .contact-intro h2 {
    white-space: normal;
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.1;
  }
}

/* ---- Phone breakpoint — stack things (≤560px) ------------------------------
   This is the single point everything switches from "row" to "column".
   Only one rule per element now — no duplicate/conflicting overrides. */
@media (max-width: 560px) {
  .navbar__actions .btn--outline {
    display: none;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
  }

  .footer-legal {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 32px 24px 30px;
  }
}

/* ---- Small-to-mid phones — iPhone XR/11 (414px), Pro Max (428–430px),
   most Android (360–412px) (≤480px) ----------------------------------------- */
@media (max-width: 480px) {
  :root {
    --container-margin: 20px;
  }

  .hero__portrait-wrap {
    width: 68%;
  }

  .hero__badge {
    right: 4%;
    top: -6%;
  }

  .footer-nav {
    gap: 18px 24px;
  }

  .footer-legal span,
  .footer-legal a {
    font-size: 0.82rem;
  }
}

/* ---- Every project/service grid, any card count: never leave an odd
   trailing card stranded half-width — span it full-width instead.
   This is the fix for the 3rd card (Shadow Fight) sitting oddly on its
   own row: it now stretches to fill the row instead of floating left. */
@media (max-width: 1024px) {
  .bento:not(.bento--home) .project-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}