/* =============================================================================
   TA-SEEN PORTFOLIO: STYLESHEET (mobile first)
   Normal rules are for PHONES. Wider screens add @media blocks:
     40rem = 640px tablet | 62rem = 992px laptop | 75rem = 1200px desktop

   CONTENTS
    1. Colours and sizes          9. Work showcase
    2. Basic rules               10. Skills cards
    3. Background                11. Mission and vision cards
       3b. Very dark (optional)  12. Footer
    4. Header and menu           13. Contact form
    5. Hero                      14. Highlights (tabs)
    6. Buttons and icons         15. Reduced motion
    7. WhatsApp button
    8. Expertise
   ========================================================================== */


/* ===== 1. COLOURS AND SIZES: change a value here, it changes everywhere ===== */
:root {
  --color-main: #032d2f;      /* dark teal: header, buttons */
  --color-accent: #158f8b;    /* medium teal: borders */
  --color-teal: #006763;      /* email text, whatsapp button */
  --color-mint: #c5ffe3;      /* headings */
  --color-neon: #3fffd5;      /* highlighted words, focus outline */
  --color-green: #00f58b;     /* glow in the skills cards */
  --color-page: #040713;      /* page background */
  --color-white: #fff;
  --font-main: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-height: 5.75rem;   /* phone/tablet: name above menu */
  --side-space: 1rem;         /* gap between content and screen edge */
  --content-width: 64rem;     /* widest block of cards */
  --speed: 0.25s;             /* hover effect speed */
  color-scheme: dark;
}

@media (min-width: 40rem) { :root { --side-space: 2rem; } }
@media (min-width: 62rem) { :root { --header-height: 4.5rem; } }


/* ===== 2. BASIC RULES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--color-page);
  scroll-padding-top: var(--header-height);   /* anchors stop below the header */
  scroll-behavior: smooth;                    /* switched off in section 15 */
  scrollbar-color: #47ff91 #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { color: var(--color-white); font-family: var(--font-main); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--color-neon); outline-offset: 3px; }

/* "Skip to content" link: off screen until reached with the Tab key */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  color: var(--color-main);
  background: var(--color-white);
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Section headings (EXPERTISE, MY SKILLS, ...) */
.section-title {
  padding: 0.625rem 0 1.25rem;
  color: var(--color-mint);
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.section-title--spaced { padding-inline-start: 0.35em; letter-spacing: 0.35em; }


/* ===== 3. BACKGROUND (dots and hexagons are drawn by js/main.js) ===== */
.neon-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgb(0 255 209 / 8%), transparent 28%),
    radial-gradient(circle at 80% 30%, rgb(91 141 255 / 7%), transparent 30%),
    radial-gradient(circle at 50% 80%, rgb(155 81 224 / 6%), transparent 32%),
    linear-gradient(#050816, var(--color-page));
}
#neon-bg { width: 100%; height: 100%; background: rgb(0 0 0 / 78%); }

/* ===== 3b. VERY DARK BACKGROUND (optional)
   Pure black behind the dots and hexagons.
   Do not like it? Delete this whole block (also see "brightness" in js/main.js). ===== */
.neon-background { background: #000; }
#neon-bg { background: none; }
/* ===== END OF 3b ===== */


/* ===== 4. HEADER AND MENU ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-main);
  box-shadow: 0 5px 20px rgb(0 0 0 / 45%);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 100%;
  padding-inline: 0.5rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__image { width: 2.5rem; height: 2.5rem; border: 2px solid var(--color-accent); border-radius: 50%; }
.brand__name { font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }

/* Name with a slowly moving colour gradient inside the letters */
.fx-lava {
  color: transparent;
  background:
    radial-gradient(circle at 24% 80%, #67ffb0 0 19%, transparent 22%),
    radial-gradient(circle at 74% 26%, #00f7ff 0 21%, transparent 24%),
    radial-gradient(circle at 50% 58%, #c3f0ff 0 23%, transparent 26%),
    radial-gradient(circle at 12% 30%, #00e5ff 0 17%, transparent 20%),
    linear-gradient(#fff, #fcffa8);
  background-size: 150% 190%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: lava-move 5s ease-in-out infinite;
}
@keyframes lava-move {
  0%, 100% { background-position: 0 0; }
  50%      { background-position: 100% 100%; }
}

.site-nav__list { display: flex; justify-content: center; gap: 0.15rem; }

.site-nav__link {
  display: block;
  padding: 0.35rem 0.4rem;
  border-radius: 2rem;
  font-size: clamp(0.65rem, 3.3vw, 0.75rem);
  font-weight: 800;
  text-transform: uppercase;
  transition: color var(--speed), background-color var(--speed);
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--color-main); background: var(--color-white); }

.site-header__email { display: none; }   /* laptop and wider only */

@media (min-width: 40rem) {
  .site-nav__list { gap: 0.5rem; }
  .site-nav__link { padding-inline: 0.75rem; }
}

@media (min-width: 62rem) {
  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    padding-inline: clamp(1.5rem, 6vw, 6rem);
  }
  .brand__image { width: 3.1rem; height: 3.1rem; }
  .brand__name { font-size: 1.15rem; }

  .site-header__email {
    display: block;
    padding: 0.4rem 0.75rem;
    border: 2px solid var(--color-accent);
    border-radius: 2rem;
    color: var(--color-teal);
    background: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    transition: color var(--speed), background-color var(--speed);
  }
  .site-header__email:hover { color: var(--color-white); background: var(--color-main); }
}


/* ===== 5. HERO: phone = photo above text, laptop = text left, photo right ===== */
.hero { display: flex; justify-content: center; padding: 1.5rem var(--side-space) 2.5rem; }

.hero__inner {
  display: flex;
  flex-direction: column-reverse;   /* photo (second in HTML) goes on top */
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  width: 100%;
  max-width: 78rem;
}

.hero__content { max-width: 43rem; text-align: center; }
.hero__greeting { color: var(--color-mint); font-size: clamp(1.1rem, 4vw, 1.5rem); font-weight: 700; }

.hero__title {
  color: var(--color-mint);
  font-size: clamp(1.6rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

.no-wrap { white-space: nowrap; }

.hero__description {
  margin-top: 1rem;
  line-height: 1.75;
  text-align: left;
  text-shadow: 2px 2px 4px rgb(0 0 0 / 45%);
}
.hero__description strong { color: var(--color-neon); }

.hero__art { position: relative; width: min(72vw, 19rem, 55vh); }   /* phone photo size */

/* Soft green light behind the photo */
.hero__art::before {
  content: "";
  position: absolute;
  inset: 10% -5% 5%;
  border-radius: 50%;
  background: radial-gradient(rgb(0 245 175 / 18%), transparent 70%);
  filter: blur(25px);
}

.hero__art img {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}

@media (min-width: 62rem) {
  .hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    padding: 2rem clamp(2rem, 6vw, 6rem) 0;
  }

  .hero__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 3rem; }
  .hero__content { flex: 1; max-width: none; padding-bottom: 2rem; text-align: left; }
  .hero__title { font-size: clamp(2rem, 3.5vw, 3.25rem); }
  .hero__description { max-width: 35rem; }

  .hero__art { align-self: flex-end; width: min(34vw, 26rem); }   /* laptop photo size */

  .hero__art img {
    max-height: calc(100vh - var(--header-height) - 2rem);
    object-fit: contain;
    object-position: bottom;
  }
}


/* ===== 6. BUTTONS AND SOCIAL ICONS ===== */
.hero__actions,
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin-top: 1.25rem; }
.social-links { gap: 0.6rem; }

.button {
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--color-accent);
  border-radius: 0.4rem;
  background: var(--color-main);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color var(--speed), background-color var(--speed);
}
.button:hover { color: var(--color-neon); background: rgb(0 0 0 / 35%); }

.button--outline { border-color: var(--color-neon); color: var(--color-neon); background: rgb(0 0 0 / 35%); }
.button--outline:hover { color: var(--color-white); background: var(--color-main); }

.social-link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-page);
  font-size: 1.05rem;
  transition: border-color var(--speed), background-color var(--speed);
}
.social-link:hover { border-color: var(--color-green); background: var(--color-main); }

@media (min-width: 62rem) {
  .hero__actions,
  .social-links { justify-content: flex-start; }
}


/* ===== 7. WHATSAPP BUTTON ===== */
.whatsapp-button {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0.6rem 1.25rem rgb(0 0 0 / 55%);
  font-size: 1.5rem;
  transition: background-color var(--speed), transform var(--speed);
}
.whatsapp-button:hover { background: var(--color-accent); transform: translateY(-3px); }

@media (min-width: 40rem) {
  .whatsapp-button { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; }
}


/* ===== 8. EXPERTISE ===== */
.expertise-section {
  padding: 3rem var(--side-space);
  background: #003d3986;
  box-shadow: inset 0 5px 10px -5px #017b50fd;
}

.section-container { max-width: 72rem; margin-inline: auto; }
.expertise-grid { display: grid; gap: 1.25rem; margin-block: 1.5rem; }

.expertise-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.25rem;
  border: 2px solid var(--color-white);
  border-radius: 1.125rem;
  font-size: 0.95rem;
  text-align: center;
  transition: transform var(--speed), filter var(--speed);
}
.expertise-card:hover { filter: brightness(1.3); transform: translateY(-3px); }
.expertise-card img { width: auto; height: 4.375rem; object-fit: contain; }
.expertise-card h3 { margin-bottom: 0.5rem; font-size: 1.35rem; line-height: 1.35; text-transform: uppercase; }

.expertise-card--research    { background: #01744e; }
.expertise-card--leadership  { background: #93011e; }
.expertise-card--development { background: #00556f; }
.expertise-card--software    { background: #481866; }

.skill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

.skill-list li {
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  color: var(--color-main);
  background: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  transition: color var(--speed), background-color var(--speed);
}
.skill-list li:hover { color: var(--color-white); background: var(--color-accent); }

@media (min-width: 40rem) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== 9. WORK SHOWCASE ===== */
.showcase {
  padding: 3rem var(--side-space);
  color: var(--color-mint);
  background:
    radial-gradient(ellipse 55% 75% at 100% 50%, rgb(56 172 255 / 38%) 0%, rgb(56 172 255 / 22%) 25%, rgb(56 172 255 / 8%) 50%, transparent 100%),
    radial-gradient(ellipse 55% 75% at 0% 50%, rgb(67 255 227 / 34%) 0%, rgb(67 255 227 / 19%) 25%, rgb(67 255 227 / 7%) 50%, transparent 100%),
    #0f011758;
}

.showcase__head,
.showcase__grid { max-width: 82rem; margin-inline: auto; }

.showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.showcase__title { font-size: 2rem; font-weight: 700; line-height: 1.2; }

.showcase__pill {
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  color: var(--color-teal);
  background: var(--color-white);
  box-shadow: 0 8px 24px -10px #1f7f8c59;
  font-weight: 700;
}

.showcase__grid { display: grid; gap: 1.25rem; }

.showcase__item {
  padding: 0.25rem;
  border-radius: 1.4rem;
  background: var(--color-mint);
  box-shadow: 0 14px 34px -14px #09122440;
  transition: transform var(--speed), box-shadow var(--speed);
}
.showcase__item:hover { box-shadow: 0 22px 44px -14px rgb(31 127 140 / 40%); transform: translateY(-5px); }

.showcase__item img {
  width: 100%;
  aspect-ratio: 16 / 10;       /* every picture gets the same shape */
  border-radius: 1rem;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 40rem) { .showcase__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75rem) { .showcase__grid { grid-template-columns: repeat(4, 1fr); } }


/* ===== 10. SKILLS CARDS: rotating border + a green light moving around each card ===== */

/* An angle the browser can animate (used by sections 10 and 11) */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes light-travel { to { offset-distance: 100%; } }

.experience-section {
  padding: 4rem var(--side-space);
  background: rgb(13 11 23 / 48%);
  box-shadow: inset 0 5px 10px -5px #017b50fd;
}

.experience-wrap { max-width: var(--content-width); margin-inline: auto; }
.experience-grid { display: grid; gap: 1.25rem; }
.experience-extra { margin-top: 4rem; }   /* heading + picture under the cards */

.experience-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 9.5rem;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 1.2rem;
  background:
    linear-gradient(#14131e, #14131e) padding-box,
    conic-gradient(from var(--angle), #242331, #4b4859, #242331, #242331) border-box;
  box-shadow: 0 12px 28px rgb(0 0 0 / 16%);
  animation: spin var(--t, 20s) linear infinite var(--dir, normal) var(--delay, 0s);
  transition: scale var(--speed);
}
.experience-card:hover { scale: 1.03; }

/* The moving green light */
.experience-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-green);
  filter: blur(23px);
  opacity: 0.55;
  offset-path: inset(0 round 1.2rem);
  animation: light-travel var(--t, 18s) linear infinite var(--dir, normal) var(--delay, 0s);
}

/* Different speeds and directions so the cards don't move together */
.experience-card:nth-child(2) { --t: 25s; --dir: reverse; }
.experience-card:nth-child(3) { --t: 22s; --delay: -10s; }
.experience-card:nth-child(4) { --t: 29s; --dir: reverse; --delay: -5s; }

.experience-visual,
.experience-copy { position: relative; z-index: 1; }   /* in front of the green light */

.experience-visual { flex: 0 0 4.5rem; }
.experience-visual img { width: 100%; }
.experience-visual--small img { transform: scale(0.85); }

.experience-copy { flex: 1; min-width: 0; }
.experience-copy h3 { margin-bottom: 0.4rem; font-size: 1.1rem; line-height: 1.3; }
.experience-copy p { color: rgb(255 255 255 / 88%); font-size: 0.875rem; }

@media (min-width: 40rem) { .experience-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 75rem) {
  .experience-grid { gap: 2rem; }
  .experience-card { gap: 1.75rem; padding: 1.6rem 1.9rem; }
  .experience-visual { flex-basis: 6.5rem; }
}


/* ===== 11. MISSION AND VISION CARDS ===== */
.info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem var(--side-space);
  background:
    radial-gradient(circle at 10% 15%, #000000a2, transparent 40%),
    radial-gradient(circle at 90% 85%, #210a6024, transparent 45%),
    rgb(14 13 27 / 22%);
  box-shadow: inset 0 -10px 10px -5px #01527baa;
}

.info-grid { display: grid; gap: 1.25rem; width: 100%; max-width: var(--content-width); }

.info-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 11rem;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid #ffffff12;
  border-radius: 1.5rem;
  background: #000000af;
}

/* ::before is the sharp line, ::after is the soft glow */
.info-card::before,
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 20%, #00ccff) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box;
  mask-composite: exclude;
  pointer-events: none;
  animation: spin 10s linear infinite var(--delay, 0s);
}
.info-card::after { border-width: 5px; filter: blur(16px); opacity: 0.45; }

.info-card:nth-child(2) { --delay: -7s; }
.info-card:nth-child(3) { --delay: -3s; }
.info-card:nth-child(4) { --delay: -10s; }

.info-icon { flex: 0 0 3.5rem; font-size: 2.5rem; text-align: center; }
.info-text { min-width: 0; }
.info-text h3 { margin-bottom: 0.5rem; font-size: 1.1rem; line-height: 1.3; }
.info-text p { color: rgb(255 255 255 / 88%); font-size: 1rem; }

@media (min-width: 40rem) {
  .info-card { gap: 1.5rem; padding: 2rem; }
  .info-icon { flex-basis: 4.5rem; font-size: 3rem; }
}

@media (min-width: 62rem) {
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* js/main.js adds "is-paused" to sections 10 and 11 while they are off screen */
.is-paused *,
.is-paused ::before,
.is-paused ::after { animation-play-state: paused; }


/* ===== 12. FOOTER ===== */
.site-footer { background: #01110fd8; font-size: 0.95rem; box-shadow: inset 0 10px 10px -5px #017b67aa; }

.site-footer__main {
  display: grid;
  gap: 2rem;
  max-width: 82rem;
  margin-inline: auto;
  padding: 3rem var(--side-space);
}

.site-footer__column { min-width: 0; }
.site-footer__column p { max-width: 20rem; }
.site-footer__title { margin: 0.625rem 0; font-size: 1.35rem; }
.site-footer__list { text-transform: capitalize; }
.site-footer__signature { width: 8rem; margin-top: 0.75rem; }
.site-footer__contact { display: grid; gap: 0.5rem; }

.site-footer__contact a {
  overflow-wrap: anywhere;     /* a long email may break onto two lines */
  transition: color var(--speed);
}
.site-footer__contact a:hover { color: var(--color-neon); }

.social-links--footer { justify-content: flex-start; }

.site-footer__bottom {
  padding: 1.25rem var(--side-space);
  background: var(--color-main);
  font-size: 0.8rem;
  text-align: center;
}

@media (min-width: 40rem) { .site-footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .site-footer__main { grid-template-columns: repeat(3, 1fr); } }


/* ===== 13. CONTACT FORM: phone = one column, 51.25rem+ = text left, form right ===== */
.ts-contact {
  --ts-error: #d93a3a;
  --ts-success: #1f9d55;
  --ts-radius: 10px;
  padding: 2.5rem 1rem;
}

/* The card */
.ts-contact__inner {
  display: grid;
  gap: 1rem;
  max-width: 38.75rem;
  margin: 0 auto;
  padding: 1.25rem;
  background: rgb(3 143 78 / 5.8%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid rgb(128 128 128 / 45%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.ts-contact__head { text-align: center; }

.ts-contact__title,
.ts-contact__info-title { margin-bottom: 0.3rem; font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.2; }

.ts-contact__lead,
.ts-contact__info-text { font-size: 0.95rem; line-height: 1.5; opacity: 0.85; }

/* Side text: hidden on phones and small tablets */
.ts-contact__info { display: none; }
.ts-contact__info-title { margin-bottom: 0.5rem; }
.ts-contact__info-text { margin-bottom: 0.75rem; }
.ts-contact__info-text:last-child { margin-bottom: 0; }

.ts-contact__form { display: grid; gap: 0.7rem; }

/* ---------- Fields ---------- */
.ts-field { display: grid; gap: 0.25rem; }
.ts-field label { font-size: 0.85rem; font-weight: 600; }
.ts-field__optional { font-weight: 400; opacity: 0.6; }

.ts-field input,
.ts-field textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgb(128 128 128 / 50%);
  border-radius: var(--ts-radius);
  color: inherit;
  background: rgb(255 255 255 / 2.7%);
  font: inherit;
  font-size: 1rem;              /* 16px stops iPhone zoom on focus */
  transition: border-color var(--speed), box-shadow var(--speed);
}

.ts-field textarea { min-height: 6rem; resize: vertical; }

.ts-field input:hover,
.ts-field textarea:hover { border-color: var(--color-teal); }

.ts-field input:focus-visible,
.ts-field textarea:focus-visible {
  border-color: var(--color-teal);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-teal) 30%, transparent);
}

.ts-field.has-error input,
.ts-field.has-error textarea { border-color: var(--ts-error); }

.ts-field__error { color: var(--ts-error); font-size: 0.8rem; }

/* Spam trap: real visitors never see it */
.ts-contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Button and messages ---------- */
.ts-contact__button {
  justify-self: start;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--color-teal);
  border-radius: var(--ts-radius);
  color: var(--color-white);
  background: var(--color-main);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow var(--speed), filter var(--speed);
}
.ts-contact__button:hover { box-shadow: 0 6px 18px rgb(0 0 0 / 18%); filter: brightness(1.08); }
.ts-contact__button:disabled { opacity: 0.6; cursor: progress; }

.ts-contact__status { padding: 0.6rem 0.8rem; border-radius: var(--ts-radius); font-size: 0.9rem; }
.ts-contact__status.is-success {
  border: 1px solid var(--ts-success);
  background: color-mix(in srgb, var(--ts-success) 15%, transparent);
}
.ts-contact__status.is-error {
  border: 1px solid var(--ts-error);
  background: color-mix(in srgb, var(--ts-error) 12%, transparent);
}

/* Name and email side by side from 32.5rem (520px) */
@media (min-width: 32.5rem) {
  .ts-contact__form { grid-template-columns: 1fr 1fr; }
  .ts-contact__form > :nth-child(n + 3) { grid-column: 1 / -1; }   /* everything after name + email */
}

/* Two columns from 51.25rem (820px): text left, form right */
@media (min-width: 51.25rem) {
  .ts-contact__inner { grid-template-columns: 1fr 1.2fr; column-gap: 2rem; max-width: 61.25rem; }
  .ts-contact__info { display: block; grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .ts-contact__head { grid-column: 2; grid-row: 1; }
  .ts-contact__form { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; }
}


/* ===== 14. HIGHLIGHTS (tabs): the menu sticks under the header inside this section.
   Needs --header-height (section 1) and no parent with overflow hidden/auto/scroll. ===== */
.hl-section {
  --hl-radius: 1.75rem;
  --hl-speed: 0.3s;

  /* At least one screen tall (minus the header). Taller tabs just grow. */
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: 2rem var(--side-space) 3rem;
  background: rgb(4 7 19 / 55%);
  box-shadow: inset 0 5px 10px -5px #017b50fd;
}

/* Colour helpers: they only set --c (an R G B triple), everything else reads it */
.hl-violet { --c: 149 117 240; }
.hl-orange { --c: 236 155 120; }
.hl-green  { --c: 98 201 160; }
.hl-blue   { --c: 111 155 242; }
.hl-pink   { --c: 240 121 184; }
.hl-gold   { --c: 236 196 95; }

.hl-wrap { max-width: 64rem; margin-inline: auto; }

/* 1px marker above the menu: the script watches it to know when the menu is stuck */
.hl-sentinel { height: 1px; margin-bottom: -1px; pointer-events: none; }

/* ---------- Menu (sticky) ---------- */
.hl-nav {
  position: sticky;
  top: calc(var(--header-height) + 0.5rem);   /* just under the header */
  z-index: 50;                                /* below the header (100) */
  display: flex;
  gap: 0.25rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0.4rem;
  border-radius: 2rem;
  background: rgb(20 23 42 / 85%);
  overflow-x: auto;                /* scrolls sideways on small phones */
  scrollbar-width: none;
  transition: box-shadow var(--hl-speed), background-color var(--hl-speed);
}
.hl-nav::-webkit-scrollbar { display: none; }

/* Added by the script while the menu is stuck under the header */
.hl-nav.is-stuck {
  background: rgb(14 17 34 / 96%);
  box-shadow: 0 0.6rem 1.5rem rgb(0 0 0 / 45%), 0 0 0 1px rgb(255 255 255 / 8%);
}

.hl-tab {
  display: flex;
  flex: none;
  align-items: center;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 2rem;
  color: rgb(var(--c));
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--hl-speed), background-color var(--hl-speed), box-shadow var(--hl-speed);
}
.hl-tab:hover { background: rgb(var(--c) / 12%); }
.hl-tab[aria-selected="true"] {
  color: var(--color-white);
  background: rgb(var(--c) / 22%);
  box-shadow: inset 0 0 0 1px rgb(var(--c) / 70%), 0 0 1.25rem rgb(var(--c) / 30%);
}

/* ---------- Panel ---------- */
.hl-panel { display: flex; flex-direction: column; gap: 1rem; }
.hl-panel[hidden] { display: none; }

/* ---------- Card ---------- */
.hl-card {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  border-radius: var(--hl-radius);
  animation: hl-rise 0.45s ease backwards;   /* replays on every tab change */
}
@keyframes hl-rise { from { opacity: 0; transform: translateY(0.75rem); } }

/* Outline around the card */
.hl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: rgb(var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.hl-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--hl-radius);
  background: linear-gradient(180deg, rgb(var(--c) / 10%), rgb(var(--c) / 85%));
  box-shadow: inset 0 0 0 1.5px rgb(var(--c) / 90%);
}

.hl-date { color: rgb(255 255 255 / 60%); font-size: 0.9rem; }
.hl-name { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.25; }
.hl-sub { font-size: 0.9rem; }

.hl-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem 1.35rem;
  color: #d6d9ea;
  line-height: 1.6;
}

/* A real link, or a plain status label such as "In progress" */
.hl-link,
.hl-status { align-self: flex-start; padding-bottom: 2px; border-bottom: 1px solid rgb(var(--c)); font-size: 0.875rem; }

.hl-link { color: var(--color-white); transition: color var(--hl-speed); }
.hl-link:hover { color: rgb(var(--c)); }
.hl-status { color: rgb(var(--c)); border-bottom-style: dashed; }

/* Tablet and wider: head on the left, text on the right */
@media (min-width: 40rem) {
  .hl-section { --hl-radius: 3rem; }
  .hl-card { grid-template-columns: 5fr 7fr; }
  .hl-card::before { background: linear-gradient(90deg, rgb(var(--c) / 5%) 0%, rgb(var(--c)) 42%); }

  .hl-head {
    padding: 1.4rem 2.25rem;
    background: linear-gradient(95deg, rgb(var(--c) / 0%) 0%, rgb(var(--c) / 15%) 35%, rgb(var(--c)) 100%);
  }

  .hl-body { padding: 1.25rem 2.5rem 1.25rem 2rem; }
}


/* ===== 15. REDUCED MOTION: visitors who ask their device for less motion get none ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}