/* =========================================
   ROWAN SALVERDA — WEBSITE STYLES
   ========================================= */

/* =========================================
   1. COLOURS, FONTS & DESIGN SYSTEM
   ========================================= */

:root {
  /* Neutral colours */
  --cream: #faf7f2;
  --white: #ffffff;
  --ink: #292b2b;
  --muted: #666967;
  --border: #e7e2db;

  /* Homepage colours */
  --blue: #70879d;
  --accent: #70879d;
  --accent-light: #e7edf1;

  /* Typography */
  --heading-font: "Poppins", sans-serif;
  --body-font: "Open Sans", sans-serif;

  /* Design */
  --radius: 20px;
  --shadow: 0 15px 45px rgba(30, 35, 40, 0.07);
}


/* =========================================
   2. PAGE COLOUR THEMES
   ========================================= */

/* Home — Muted Blue */
.theme-home {
  --accent: #70879d;
  --accent-light: #e7edf1;
}

/* Palette Studio — Dusty Pink */
.theme-palette {
  --accent: #c78271;
  --accent-light: #f6e5d6;
}

/* Toby's Tales — Sage Green */
.theme-toby {
  --accent: #7b947b;
  --accent-light: #e8eee4;
}

/* Web Design — Pastel Purple */
.theme-web {
  --accent: #9684b2;
  --accent-light: #f0ebf7;
}

/* Actuel — Soft Golden Yellow */
.theme-actuel {
  --accent: #b69a50;
  --accent-light: #f5eed7;
}


/* =========================================
   3. RESET & GENERAL STYLES
   ========================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font-family: var(--body-font);
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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


/* =========================================
   4. TYPOGRAPHY
   ========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.3rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

p {
  color: var(--muted);
}


/* =========================================
   5. LAYOUT & SPACING
   ========================================= */

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

.section {
  padding-block: clamp(75px, 9vw, 130px);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}


/* =========================================
   6. ACCESSIBILITY
   ========================================= */

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
}

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


/* =========================================
   7. STICKY NAVIGATION
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(250, 247, 242, 0.97);
  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(14px);
}

.nav {
  min-height: 84px;

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

  gap: 25px;
}


/* LOGO */

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}


/* NAVIGATION LINKS */

.nav-links {
  display: flex;
  align-items: center;

  gap: clamp(12px, 2vw, 28px);
}

.nav-item {
  position: relative;
}

.nav-entry {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-item > a,
.nav-entry > a {
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.nav-item a:hover,
.nav-item a[aria-current="page"] {
  color: var(--accent);
}


/* DROPDOWN ARROW */

.submenu-toggle {
  border: none;
  background: transparent;

  color: var(--muted);
  padding: 5px;
  font-size: 1.1rem;
}

.submenu-toggle:hover {
  color: var(--accent);
}


/* DROPDOWN MENU */

.submenu {
  display: none;

  position: absolute;
  top: 100%;
  left: -16px;

  min-width: 190px;
  padding: 12px;

  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow: var(--shadow);
}

.submenu a {
  display: block;

  padding: 9px 12px;
  border-radius: 7px;

  font-size: 0.85rem;
}

.submenu a:hover {
  background: var(--accent-light);
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.submenu-open .submenu {
  display: block;
}


/* CONTACT BUTTON */

.nav-contact {
  padding: 10px 19px;

  border-radius: 100px;

  background: var(--ink);
  color: white;

  font-size: 0.85rem;
  font-weight: 700;

  transition: background 0.2s ease;
}

.nav-contact:hover {
  background: var(--accent);
}


/* MOBILE MENU BUTTON */

.menu-toggle {
  display: none;

  border: none;
  background: transparent;

  padding: 12px;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  margin: 5px 0;

  background: var(--ink);
}


/* =========================================
   8. BUTTONS & LINKS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 12px 23px;

  border-radius: 100px;

  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.88rem;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}


/* PRIMARY BUTTON */

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--ink);
}


/* OUTLINE BUTTON */

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}


/* TEXT LINKS */

.text-link {
  display: inline-block;

  font-size: 0.9rem;
  font-weight: 700;

  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--accent);
}


/* =========================================
   9. HERO SECTION
   ========================================= */

.hero {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: clamp(35px, 6vw, 90px);
  align-items: center;

  padding-block: 85px 110px;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero-copy > p {
  max-width: 520px;
}

.hero-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 25px;

  margin-top: 35px;
}


/* HERO IMAGE */

.hero-visual {
  position: relative;
}

.photo-frame {
  aspect-ratio: 5 / 4;

  padding: 12px;

  background: var(--accent-light);

  border-radius: 48% 48% 20px 20px;

  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: inherit;
}


/* PHOTO CAPTION */

.photo-note {
  position: absolute;

  right: -15px;
  bottom: -22px;

  background: white;

  padding: 14px 20px;

  border-radius: 100px;

  box-shadow: var(--shadow);

  font-size: 0.8rem;
  font-weight: 600;

  transform: rotate(-5deg);
}


/* =========================================
   10. ABOUT ME SECTION
   ========================================= */

.intro-band {
  background: #e8edf0;

  padding: 95px 0;

  text-align: center;
}

.intro-inner {
  max-width: 850px;
}

.intro-inner p {
  max-width: 730px;

  margin: 0 auto 30px;

  font-size: 1.08rem;
}

.interest-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 12px;
}

.interest-tags span {
  background: rgba(255, 255, 255, 0.7);

  padding: 9px 17px;

  border-radius: 100px;

  font-size: 0.85rem;
  font-weight: 600;
}


/* =========================================
   11. SECTION HEADINGS
   ========================================= */

.section-heading {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  gap: 0;

  margin-bottom: 38px;
}

.section-heading > div {
  width: 100%;
}

.section-heading h2 {
  max-width: 100%;
  margin-bottom: 0;
}


/* =========================================
   12. BUSINESS CARDS
   ========================================= */

.venture-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 18px;
}

.venture-card {
  min-height: 350px;

  display: flex;
  flex-direction: column;

  padding: 30px 25px;

  border-radius: var(--radius);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.venture-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}


/* INDIVIDUAL BUSINESS COLOURS */

.venture-card.palette {
  background: #f2dcd5;
}

.venture-card.toby {
  background: #e1eadb;
}

.venture-card.web {
  background: #e9e1f1;
}

.venture-card.actuel {
  background: #f4ebcf;
}


/* BUSINESS CARD CONTENT */

.venture-symbol {
  font-size: 2.6rem;
  line-height: 1;

  margin-bottom: 40px;
}

.venture-meta,
.card-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.venture-card h3 {
  margin: 10px 0;

  font-size: 1.45rem;
}

.venture-card p {
  font-size: 0.87rem;
  color: #454545;
}

.venture-arrow {
  margin-top: auto;
  padding-top: 25px;

  font-size: 0.85rem;
  font-weight: 700;
}


/* =========================================
   13. TRAVEL SECTION
   ========================================= */

.travel-section {
  background: #f2eee8;
}

.travel-list {
  display: flex;
  flex-direction: column;

  gap: 90px;
}

.travel-story {
  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: clamp(30px, 7vw, 100px);
}


/* ALTERNATING IMAGE POSITIONS */

.travel-story:nth-child(even) .travel-image {
  order: 2;
}


/* TRAVEL IMAGES */

.travel-image {
  aspect-ratio: 1.3 / 1;

  overflow: hidden;

  border-radius: 18px;

  background: #dce4e8;
}

.travel-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.travel-story:hover .travel-image img {
  transform: scale(1.035);
}


/* TRAVEL TEXT */

.travel-copy h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);

  margin: 10px 0;
}

.travel-date {
  font-size: 0.84rem;
  font-weight: 700;

  color: var(--accent);
}

.travel-copy > p:not(.travel-date) {
  max-width: 460px;

  margin-bottom: 25px;
}

.center-action {
  text-align: center;

  margin-top: 65px;
}


/* =========================================
   14. HOBBIES CAROUSEL
   ========================================= */

.carousel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;

  color: var(--muted);
  font-size: 0.85rem;
}

.carousel-buttons {
  display: flex;
  gap: 10px;
}


/* CAROUSEL ARROWS */

.round-button {
  width: 44px;
  height: 44px;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: white;

  transition: background 0.2s ease;
}

.round-button:hover {
  background: var(--accent-light);
}

.round-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* CAROUSEL TRACK */

.hobby-track {
  display: flex;

  gap: 18px;

  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 8px 0 20px;

  scrollbar-width: thin;
}


/* HOBBY CARDS */

.hobby-card {
  position: relative;

  flex: 0 0 clamp(235px, 29vw, 340px);

  height: 390px;

  overflow: hidden;

  border: none;
  border-radius: 18px;

  padding: 0;

  background: var(--hobby-bg, #dce4e8);

  text-align: left;

  scroll-snap-align: start;
}

.hobby-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

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


/* HOBBY TEXT OVERLAY */

.hobby-overlay {
  position: absolute;

  inset: auto 0 0;

  display: flex;
  flex-direction: column;

  gap: 7px;

  padding: 55px 24px 25px;

  background: linear-gradient(
    transparent,
    rgba(20, 25, 25, 0.82)
  );

  color: white;
}

.hobby-overlay > span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.hobby-overlay strong {
  font-family: var(--heading-font);

  font-size: 1.7rem;
  line-height: 1.2;
}

.hobby-overlay small {
  font-size: 0.85rem;
}

.carousel-hint {
  text-align: center;

  font-size: 0.8rem;

  margin-top: 10px;
}


/* =========================================
   15. WORK EXPERIENCE & EDUCATION
   ========================================= */

.background-section {
  background: #e9edf0;
}

.education-section {
  background: var(--cream);
}


/* RESUME CARDS */

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resume-card {
  display: flex;
  align-items: center;
  gap: 25px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 22px 28px;

  transition: box-shadow 0.2s ease;
}

.resume-card:hover {
  box-shadow: var(--shadow);
}


/* ORGANIZATION LOGOS */

.resume-logo {
  flex: 0 0 76px;

  width: 76px;
  height: 76px;

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

  background: #f7f7f5;
  border-radius: 12px;
  padding: 10px;
}

.resume-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* JOB & EDUCATION DETAILS */

.resume-details {
  flex: 1;
  min-width: 0;
}

.resume-details h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 5px;
}

.resume-organization {
  color: var(--ink);
  font-size: 0.91rem;
  margin: 0 0 4px;
}

.resume-date {
  color: var(--muted);
  font-size: 0.83rem;
  margin: 0;
}


/* MORE BUTTON */

.resume-more {
  flex-shrink: 0;
  min-width: 95px;
}


/* FULL CV LINK */

.resume-cv-link {
  text-align: center;
  margin-top: 35px;
}


/* =========================================
   16. CONTACT SECTION
   ========================================= */

.contact-section {
  background: #e7edf1;
}

.contact-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: center;
}


/* CONTACT CARD */

.contact-card {
  background: white;

  border-radius: 20px;

  padding: clamp(25px, 4vw, 50px);
}

.contact-email {
  display: block;

  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;

  overflow-wrap: anywhere;

  margin: 20px 0;
}

.contact-email:hover {
  color: var(--accent);
}


/* =========================================
   17. FOOTER
   ========================================= */

.site-footer {
  background: #282b2c;
  color: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-block: 22px;

  font-size: 0.8rem;
}

.footer-inner a:hover {
  color: #bdd0dd;
}


/* =========================================
   18. HOBBY POP-UPS / MODALS
   ========================================= */

.hobby-dialog {
  width: min(760px, calc(100% - 30px));

  max-height: min(85vh, 900px);

  padding: 0;

  border: none;
  border-radius: 20px;

  background: var(--cream);
  color: var(--ink);

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);

  overflow-y: auto;
}


/* MODAL BACKDROP */

.hobby-dialog::backdrop {
  background: rgba(24, 30, 34, 0.7);

  backdrop-filter: blur(4px);
}


/* MODAL CONTENT */

.dialog-inner {
  padding: 0 35px 35px;
}


/* STICKY MODAL HEADER */

.dialog-header {
  position: sticky;
  top: 0;

  z-index: 2;

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

  background: var(--cream);

  padding: 25px 0 15px;

  border-bottom: 1px solid var(--border);
}

.dialog-header .eyebrow {
  margin: 0;
}


/* MODAL CLOSE BUTTON */

.dialog-close {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: var(--accent-light);
  color: var(--ink);

  font-size: 1.8rem;
  line-height: 1;
}

.dialog-close:hover {
  background: #d9d9d9;
}


/* MODAL BODY */

#modal-content {
  padding-top: 25px;
}

#modal-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}


/* MODAL PHOTO GALLERY */

.modal-gallery {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

  margin: 25px 0;
}

.modal-gallery img {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  border-radius: 12px;

  background: var(--accent-light);
}


/* MODAL STORIES */

.modal-stories {
  margin-top: 30px;
}

.modal-stories section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.modal-stories h3,
.language-section h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.modal-stories p {
  margin-bottom: 0;
}


/* =========================================
   19. LANGUAGE PROFICIENCY GRAPHIC
   ========================================= */

.language-section {
  margin-top: 30px;
}

.language-list {
  display: grid;

  gap: 15px;

  margin: 25px 0;
}

.language-row {
  display: grid;

  grid-template-columns: 90px 1fr;

  gap: 15px;

  align-items: center;

  font-weight: 600;
}

.language-bar {
  height: 12px;

  border-radius: 100px;

  background: #e2e3e0;

  overflow: hidden;
}

.language-bar span {
  display: block;

  height: 100%;

  border-radius: inherit;

  background: var(--accent);
}


/* =========================================
   20. WORK EXPERIENCE POP-UPS
   ========================================= */

.work-dialog {
  width: min(680px, calc(100% - 30px));
  max-height: 85vh;

  border: none;
  border-radius: 20px;
  padding: 0;

  background: var(--cream);
  color: var(--ink);

  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);

  overflow-y: auto;
}


/* BACKDROP */

.work-dialog::backdrop {
  background: rgba(24, 30, 34, 0.7);
  backdrop-filter: blur(4px);
}


/* DIALOG INNER */

.work-dialog-inner {
  padding: 0 35px 35px;
}


/* STICKY HEADER */

.work-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;

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

  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 22px 0 15px;
}

.work-dialog-header .eyebrow {
  margin: 0;
}


/* CLOSE BUTTON */

.work-dialog-close {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: var(--accent-light);
  color: var(--ink);

  font-size: 1.8rem;
  line-height: 1;
}

.work-dialog-close:hover {
  background: #d9d9d9;
}


/* POP-UP CONTENT */

#work-modal-content {
  padding-top: 25px;
}

#work-modal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.work-modal-organization {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.work-modal-date {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.work-modal-description {
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 22px;
}


/* =========================================
   21. TABLET RESPONSIVENESS
   ========================================= */

@media (max-width: 1050px) {

  .venture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    gap: 12px;
  }

  .nav-item > a,
  .nav-entry > a {
    font-size: 0.8rem;
  }

}


/* =========================================
   22. MOBILE NAVIGATION & TABLETS
   ========================================= */

@media (max-width: 850px) {

  /* MOBILE MENU BUTTON */

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    min-height: 72px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }


  /* MOBILE NAVIGATION PANEL */

  .nav-links {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    max-height: calc(100dvh - 72px);

    overflow-y: auto;

    background: var(--cream);

    border-bottom: 1px solid var(--border);

    padding: 20px 24px 35px;

    flex-direction: column;
    align-items: stretch;

    gap: 5px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-item > a,
  .nav-entry > a {
    font-size: 1rem;
  }

  .nav-item > a,
  .nav-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 48px;
  }


  /* MOBILE DROPDOWN BUTTON */

  .submenu-toggle {
    min-width: 44px;
    min-height: 44px;
  }


  /* MOBILE SUBMENUS */

  .submenu {
    position: static;

    box-shadow: none;
    border: none;

    background: var(--accent-light);

    margin-bottom: 10px;
  }


  /* MOBILE CONTACT BUTTON */

  .nav-contact {
    text-align: center;
    margin-top: 15px;
  }


  /* HERO */

  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero-visual {
    max-width: 650px;
    width: 100%;
    margin: auto;
  }


  /* CONTACT */

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

}


/* =========================================
   23. SMALL MOBILE SCREENS
   ========================================= */

@media (max-width: 650px) {

  .shell {
    width: min(100% - 32px, 1180px);
  }

  .section {
    padding-block: 65px;
  }


  /* SECTION HEADINGS */

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    max-width: 100%;
    margin-top: 15px;
  }


  /* BUSINESS CARDS */

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

  .venture-card {
    min-height: 270px;
  }

  .venture-symbol {
    margin-bottom: 22px;
  }


  /* TRAVEL */

  .travel-list {
    gap: 60px;
  }

  .travel-story {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .travel-story:nth-child(even) .travel-image {
    order: 0;
  }

  .travel-image {
    aspect-ratio: 4 / 3;
  }


  /* HOBBIES */

  .hobby-card {
    flex-basis: 78vw;
    height: 360px;
  }


  /* ABOUT */

  .intro-band {
    padding: 70px 0;
  }


  /* RESUME CARDS */

  .resume-card {
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
  }

  .resume-logo {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .resume-details {
    flex-basis: calc(100% - 75px);
  }

  .resume-details h3 {
    font-size: 1rem;
  }

  .resume-more {
    margin-left: 75px;
  }


  /* HOBBY MODAL */

  .dialog-inner {
    padding-inline: 20px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }


  /* WORK MODAL */

  .work-dialog-inner {
    padding-inline: 20px;
  }


  /* FOOTER */

  .footer-inner {
    flex-wrap: wrap;
  }

}


/* =========================================
   24. VERY SMALL MOBILE SCREENS
   ========================================= */

@media (max-width: 380px) {

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .photo-note {
    right: 0;
    font-size: 0.7rem;
  }

  .contact-email {
    font-size: 0.95rem;
  }

}


/* =========================================
   25. REDUCED MOTION ACCESSIBILITY
   ========================================= */

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

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

}


/* =========================================
   END OF STYLESHEET
   ========================================= */

/* =========================================
   STAY IN TOUCH — SOCIAL LINKS
   ========================================= */
.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}
.social-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: #70879d;
  color: white;
  transition: transform .2s ease, background .2s ease;
}
.social-button svg { width: 24px; height: 24px; }
.social-button:hover, .social-button:focus-visible {
  background: #52647b;
  transform: translateY(-3px);
}
.social-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: .72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.social-button:hover .social-tooltip,
.social-button:focus-visible .social-tooltip { opacity: 1; }
/* Contact icons and fixed right-hand shortcuts */
.social-contact {
  margin-top: 32px;
}
.social-floating {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.social-floating .social-button {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 9px 0 0 9px;
  justify-content: flex-end;
  pointer-events: auto;
  transition: width .2s ease, background .2s ease;
}
.social-floating .social-button svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
}
.social-floating .social-button:hover,
.social-floating .social-button:focus-visible {
  width: 142px;
  transform: none;
}
.social-floating .social-button:hover svg,
.social-floating .social-button:focus-visible svg {
  transform: scale(1.12);
}
.social-floating .social-tooltip {
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: transparent;
  padding: 0;
  font-size: .8rem;
  font-weight: 600;
}
@media (max-width: 850px), (max-height: 420px) {
  .social-floating { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .social-button, .social-floating .social-button,
  .social-floating .social-button svg { transition: none; }
}
.social-dialog { width: min(500px, calc(100% - 30px)); }
.social-dialog-content { padding-top: 24px; }
.social-dialog-content h2 { font-size: 1.8rem; }
.social-account-list { display: grid; gap: 10px; }
.social-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.social-account:hover { background: var(--accent-light); }
.social-account strong, .social-account small { display: block; }
.social-account small { color: var(--muted); overflow-wrap: anywhere; }
.social-account > span:first-child { min-width: 0; }