
/* 
███████  ██████  ███    ██ ████████ ███████ 
██      ██    ██ ████   ██    ██    ██      
█████   ██    ██ ██ ██  ██    ██    ███████ 
██      ██    ██ ██  ██ ██    ██         ██ 
██       ██████  ██   ████    ██    ███████ 
*/

/* Lilex Font */
@import url('https://fonts.googleapis.com/css2?family=Lilex:ital,wght@0,100..700;1,100..700&display=swap');


/*  IBM Plex Sans Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');


/*

/* 
██ ███    ███ ██████   ██████  ██████  ████████      ██████ ███████ ███████ 
██ ████  ████ ██   ██ ██    ██ ██   ██    ██        ██      ██      ██      
██ ██ ████ ██ ██████  ██    ██ ██████     ██        ██      ███████ ███████ 
██ ██  ██  ██ ██      ██    ██ ██   ██    ██        ██           ██      ██ 
██ ██      ██ ██       ██████  ██   ██    ██         ██████ ███████ ███████ 
*/

/* ------------------------------- */
/* 🔗 Imported Stylesheets */
/* These are external CSS files that add extra effects to your site. */
/* ------------------------------- */

/* TODO: Delete any stylesheets you don't plan to use on your site. */

/* File for animation effects that make elements move (e.g., flying) */
@import url("make-something-fly.css");

/* File for animation effects that make elements blink */
@import url("make-something-blink.css");

/* File for adding a smooth animated gradient background */
@import url("animated-gradient.css");

/* File for adding a glitch animation to your 404 error page */
@import url("error.css");

/* File for adding text stroke (outline) effect */
@import url("text-stroke.css");

/* File for adding stroke shadow effect around text */
@import url("stroke-shadow.css");

/* File with extra experimental styles (e.g., fun animations or effects) */
@import url("experiments.css");

/* File for adding a scroll-to-top button or effect */
@import url("scroll-to-top.css");

/* File for adding accordion functionality to expand/collapse content sections */
@import url("accordian.css");

/* 
██    ██  █████  ██████  ██  █████  ██████  ██      ███████ ███████ 
██    ██ ██   ██ ██   ██ ██ ██   ██ ██   ██ ██      ██      ██      
██    ██ ███████ ██████  ██ ███████ ██████  ██      █████   ███████ 
 ██  ██  ██   ██ ██   ██ ██ ██   ██ ██   ██ ██      ██           ██ 
  ████   ██   ██ ██   ██ ██ ██   ██ ██████  ███████ ███████ ███████ 
*/

/* ------------------------------- */
/* 🎨 Theme Design Variables */
/* Use CSS variables to quickly change your site's color scheme and typography */
/* ------------------------------- */

/* These design variables store important elements like colours and fonts.
   You can easily change the look and feel of your site by adjusting these values. */

/* TODO: Customize these variables to fit your design. You can add new ones or delete ones you don’t need. */

:root {
  /* Typography */
  --font-family-body: "IBM Plex Sans", sans-serif;
  --font-family-heading: "IBM Plex Sans", sans-serif;
  --font-family-project-title: "IBM Plex Sans", sans-serif;
 
  /* Core Colours */
  --color-text-primary: #28100c;
  --color-text-secondary: #28100c;
  --color-accent-primary: #28100c;
  --color-accent-secondary: #ff057c;
  --color-overlay-primary: rgba(82, 0, 255, 0.5);
  --color-highlight: #B3AB2C;
  --color-fallback: #ff057c; /* Fallback color for glitch effect on 404 page */
  /* Backgrounds */
  --color-bg: #f5f5f5;
  --color-bg-about: #f5f5f5;
  --color-bg-footer: #f5f5f5;
  --color-bg-holding-page: #f5f5f5;
  /* Headings */
  --h1-color: #28100c;
  --h2-color: #28100c;
  --h3-color: #808080;
  --h4-color: #808080;
  --h5-color: #28100c;
  --h6-color: #28100c;
  /* Special Text Colours */
  --color-text-holding-title: #ebedf0;
  --color-text-project-category: #808080;
  --color-text-project-description: #28100c;
  --color-text-project-sidebar: #28100c;
  --color-text-project-title: #28100c;
  --color-text-work-grid-title: #28100c;
  /* Link States */
  --color-link: #E26F1F;
  --color-link-hover: #E26F1F;
  --color-link-visited: #28100c;
  /* Navigation */
  --color-nav-link: #28100c;
  --color-nav-link-hover: #28100c;
  --color-nav-arrow: #5200ff;
  --color-nav-arrow-hover: #000;
  --color-nav-arrow-stroke: #5200ff;
  --color-nav-arrow-stroke-hover: #000;
  /* Components */
  --color-bg-full-width: #f5f5f5;
  --color-bg-project-description: #f5f5f5;
  --color-bg-sidebar-project: orangered;
  --color-bg-sidebar-work: lemonchiffon;
  --color-gradient-hero: linear-gradient(90deg, #ff00ff, #00ffff);
  --color-gradient-project-details: linear-gradient(-225deg, #ff057c 0%, #8d0b93 50%, #321575 100%);
  /* Special Elements */
  --color-icon-heart: #591E21;
  --color-text-holding-footer: #f8f8ff;
  --color-bg-selection: #fffacd;
  --color-shadow-stroke: rgba(0, 0, 0, 0.4);
  /* Assets */
  --image-noise-texture: url(/assets/temp/noise.svg);
  /* Animation Durations */
  --duration-fast: 0.15s; /* Quick interactions (hover states) */
  --duration-normal: 0.3s; /* Standard transitions (button clicks) */
  --duration-slow: 0.75s; /* Prominent animations (page transitions) */
  /* Rounded Corners */
  --radius-sm: 0rem; /* Small interactive elements */
  --radius-md: 0rem; /* Cards/containers */
  --radius-lg: 0rem; /* Large decorative elements */
  --radius-full: 0%; /* Circles/pills */
  /* Padding Scale */
  --padding-tiny: 0.5rem; /* Micro-spacing: icon padding, toggle switches */
  --padding-small: 1rem; /* Compact spacing: mobile buttons, form tags */
  --padding-medium: 2rem; /* Standard spacing: desktop buttons, card content */
  --padding-large: 3rem; /* Section spacing: content blocks, banner padding */
  --padding-jumbo: 4rem; /* Hero elements: full-width containers, page headers */
  --padding-ultra: 2rem; /* Full-bleed spacing: edge-to-edge layouts, super-sized headers */
  /* Flex Gap Scale */
  --gap-tiny: 0.5rem; /* Micro-gap: icon spacing, small button groups */
  --gap-small: 1rem; /* Compact gap: card elements, form fields */
  --gap-medium: 2rem; /* Standard gap: desktop card grids, section items */
  --gap-large: 3rem; /* Section gap: major content blocks, banner spacing */
  --gap-jumbo: 4rem; /* Hero gap: full-width containers, large card spacing */
  --gap-ultra: 8rem; /* Edge-to-edge spacing: mega sections, spacious layouts */
}

/* ======================
   #BASE STYLES
   ====================== */

/* 
███    ███  ██████  ██████  ██ ██      ███████     ███████ ██ ██████  ███████ ████████ 
████  ████ ██    ██ ██   ██ ██ ██      ██          ██      ██ ██   ██ ██         ██    
██ ████ ██ ██    ██ ██████  ██ ██      █████       █████   ██ ██████  ███████    ██    
██  ██  ██ ██    ██ ██   ██ ██ ██      ██          ██      ██ ██   ██      ██    ██    
██      ██  ██████  ██████  ██ ███████ ███████     ██      ██ ██   ██ ███████    ██    
*/

/* ------------------------------- */
/* 📱 Responsive Design for Small Devices (Portrait Phones) */
/* No media query needed for small devices like phones under 576px. This is the default in Bootstrap. */
/* ------------------------------- */

/* Add border-box sizing to make layout easier and enable smooth scrolling behavior */
html {
  box-sizing: border-box; /* Makes sure padding and borders don't add extra width to elements */
  scroll-behavior: smooth; /* Adds smooth scrolling between sections */
}

/* Ensure all elements, including pseudo-elements, follow border-box sizing */
*,
*:before,
*:after {
  box-sizing: inherit; /* Inherits the border-box setting from the html tag */
}

body {
  font-family: var(--font-family-body);
  color: var(--color-text-primary);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ------------------------------- */
/* 🖍️ Text Highlight Styles */
/* This changes the background color when you highlight text (like when you click and drag to select it) */
/* ------------------------------- */

::selection {
  background: var(--color-bg-selection); /* Uses your custom color for highlighted text */
}

/* ---------------------------------------- */
/* 🖼️ Responsive Image Styles */
/* These styles make your images and icons look good on any screen size */
/* ---------------------------------------- */

/* Make all images and SVGs scale nicely */
img,
svg {
  max-width: 100%; /* Keeps the image from getting too big */
  height: auto; /* Keeps the image’s original proportions */
  vertical-align: top; /* Removes little gaps under images (from line-height) */
  object-fit: contain; /* Optional: Makes sure the whole image fits inside its box */
  /* Try 'cover' if you want it to fill the space, or remove this line if not needed */
}



/* ---------------------------------------- */
/* 🎨 Utility Classes for Styling Elements  */
/* Use these helper classes to quickly apply 
   common styles across your portfolio site */
/* ---------------------------------------- */

/* ------------------------ */
/* 📐 Layout & Spacing Tools */
/* ------------------------ */

/* Horizontally centers a block element (must have a defined width) */
.centered-block {
  margin: 0 auto;
}

/* Vertical layout – stacks items in a column (mobile-first) */
.flex-row {
  display: flex;
  flex-direction: column;
}

/* Puts the box on its own line and adds space underneath */
.margin-bottom {
  display: block; /* Makes it a block so it stacks nicely */
  margin-bottom: 1rem; /* Adds space below – helps with layout breathing room */
}

.width-third,
.width-two-thirds {
  width: 100%;
}

/* Adds a dashed border to help you see the box while you're designing */
.border {
  border: 1px dashed var(--color-accent-primary); /* This uses your custom accent color */
  /* TODO: Delete this later – it’s just here to help you see the box while you work */
}

/* ---------------------- */
/* ✍️  Typography Helpers */
/* ---------------------- */

/* Optimal line length for readability (~60 characters) */
.max-text-width {
  max-width: 60ch;
}

/* Centers your text (great for headings or buttons) */
.centered-text {
  text-align: center;
}

/* ------------------------------ */
/* 🌀 Animation & Interaction Tools */
/* ------------------------------ */

/* Smooth transition when applying transformations – improves hover experience */
.rotate {
  transition: transform 0.3s ease;
}

/* Rotates the element slightly on hover – adds a playful effect */
.rotate:hover {
  transform: rotate(4deg);
}

/* ----------------------------- */
/* 📦 Padding Utilities (Mobile First) */
/* ----------------------------- */

.padding-tiny {
  padding: var(--padding-tiny);
}

.padding-small {
  padding: var(--padding-small);
}

.padding-medium {
  padding: var(--padding-small); /* smaller, mobile-safe default */
}

.padding-large {
  padding: var(--padding-small); /* smaller, mobile-safe default */
}

.padding-jumbo {
  padding: var(--padding-small); /* smaller, mobile-safe default */
}

.padding-ultra {
  padding: var(--padding-small); /* smaller, mobile-safe default */
}

/* ----------------------------- */
/* 🧩 Flex Gap Utilities (Mobile First) */
/* ----------------------------- */
.gap-tiny {
  gap: var(--gap-tiny);
}
.gap-small {
  gap: var(--gap-small);
}
.gap-medium {
  gap: var(--gap-small); /* smaller, mobile-safe default */
}
.gap-large {
  gap: var(--gap-small); /* smaller, mobile-safe default */
}
.gap-jumbo {
  gap: var(--gap-small); /* smaller, mobile-safe default */
}
.gap-ultra {
  gap: var(--gap-small); /* smaller, mobile-safe default */
}

/* ------------------------------ */
/* 🧱 Border Radius Shortcuts */
/* ------------------------------ */

/* Small interactive elements (buttons, inputs) */
.rounded-small {
  border-radius: var(--radius-sm);
}

/* Default containers (cards, dropdowns) */
.rounded-medium {
  border-radius: var(--radius-md);
}

/* Large decorative elements (modals, banners) */
.rounded-large {
  border-radius: var(--radius-lg);
}

/* Perfect circles (avatars, icons) */
.rounded-full {
  border-radius: var(--radius-full);
}

/* ---------------------------------------- */
/* 🎥 Responsive Embedded Video Styles      */
/* These styles keep your videos looking sharp and correctly sized on any device */
/* ---------------------------------------- */

/* The container holds the video and maintains a 16:9 aspect ratio */
.project-video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (because 9 ÷ 16 = 0.5625) */
  margin-bottom: 1rem;
}
/* The iframe is absolutely positioned to fill the container */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------- */
/* 🧭 Responsive Navigation (Coming Soon)   */
/* This section is in progress — you'll build a mobile-friendly nav bar here */
/* ---------------------------------------- */

.responsive-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: lightblue;
  padding: var(--padding-small);
}

/* ------------------------------------------------------------------ */
/* 🔤 Global & Mobile Typography                                      */
/* Heading styles that scale nicely for mobile-first, responsive sites */
/* ------------------------------------------------------------------ */

/* 
████████ ██    ██ ██████   ██████   ██████  ██████   █████  ██████  ██   ██ ██    ██ 
   ██     ██  ██  ██   ██ ██    ██ ██       ██   ██ ██   ██ ██   ██ ██   ██  ██  ██  
   ██      ████   ██████  ██    ██ ██   ███ ██████  ███████ ██████  ███████   ████   
   ██       ██    ██      ██    ██ ██    ██ ██   ██ ██   ██ ██      ██   ██    ██    
   ██       ██    ██       ██████   ██████  ██   ██ ██   ██ ██      ██   ██    ██    
*/

/* Heading Styles (h1 - h6) */

h1 {
  font-size: 1.75rem;
  font-family: var(--font-family-heading);
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--h1-color);
  text-transform: uppercase;
  font-weight: 400;
}

h2 {
  font-size: 1.5rem; 
  font-family: var(--font-family-heading);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--h2-color);
  Font-weight: 300;
  text-transform: uppercase;
}

h3 {
  font-size: 1.325rem;
  margin-bottom: 0rem;
  line-height: 1.2;
  color: var(--h3-color);
}

h4 {
  font-size: 0.875rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--h4-color);
  text-transform: uppercase;
  font-weight:300;
}

h5 {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--h5-color);
}

h6 {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--h6-color);
}


/* Footer purpose only */
h6.footer-tag {
  font-family: "IBM Plex Sans", sans-serif;
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1rem, 12vw, 10rem);
  font-weight: 500;
  line-height: 1;
  color: #E26F1F;
  pointer-events: none;
}

@media (max-width: 600px) {
  h6.footer-tag {
    white-space: normal;
    font-size: clamp(5rem, 12vw, 5rem);
  }
}

/* ------------------------------------------------------------------ */
/* 📝 Paragraph and Text Styles                                       */
/* Base text styles for body copy, bold, italic, and fine print       */
/* ------------------------------------------------------------------ */

p {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 300;
}

strong {
  font-weight: 600; /* Makes text bold */
}

em {
  font-style: italic; /* Adds emphasis with italic style */
}

sup {
  font-size: 0.6em; /* smaller than the surrounding text */
  vertical-align: super; /* ensures it sits above the baseline */
  font-weight: normal; /* optional: adjust weight */
}

/* ------------------------------------------------------------------ */
/* 🎨 Custom Class Styles for Headlines, Projects, and Highlights     */
/* Use these utility classes to style key text elements across pages  */
/* ------------------------------------------------------------------ */

/* Main hero headline — usually sits in the intro section */
.hero-headline {
  color: var(--color-accent-primary); /* Uses your brand's dominant color */
  max-width: 40ch; /* Optimal line length for readability (~40 characters) */
  text-wrap: balance; /* Prevents awkward line breaks (like elegant typography) */
  margin-inline: 0; /* Horizontally centers the text in its container */
}
.hero-greeting-word {
  display: inline;
  transition: opacity 0.35s ease, transform 0.35s ease; /* Smooth transition for hover effects */
}


.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease-out;
}


/* Large project title — appears on individual project pages */
.project-title {
  font-size: 3.625rem;
  font-family: var(--font-family-project-title);
  color: var(--color-text-project-title);
  margin-bottom: 1rem;
}

/* Project description text — pairs with the project title */
.project-description {
  font-size: 1rem;
  color: #28100c;
}

.project-description-hero{
  font-size: 1rem;
  color: #f5f5f5;
  text-transform: uppercase;
}

/* 🧱 Full-width headings — useful in layouts that span edge-to-edge */
.h1-full-width,
.h2-full-width {
  width: 100%;
  padding: var(--padding-small);
}

/* ✨ Highlighted text — great for emphasis */
.highlight-primary {
  color: var(--color-accent-secondary);
}

.highlight-gradient {
  background: var(--color-gradient-hero);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
}

/* 📂 Project grid title — used in grid view (like a portfolio gallery) */
.work-grid-project-title {
  font-size: 1.5rem;
  color: #27100C;
  text-wrap: balance;
  font-weight: 400;
  position:relative;
  display:inline-block;
  margin-top:12px;
}

.work-grid-project-title span {
  position: relative;
  z-index: 1;
}

/* Underline that grows in on hover */
.work-grid-project-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 100%;
  background-color: #98B2C9;
  transition: width 0.35s ease;
  z-index: 0;
}

.work-grid-project-title:hover::before {
  width: 100%;
}

/* 🏷️ Project category label — displays the type or role of the project */
.work-grid-project-category {
  color: var(--color-text-project-category);
}

/*

██   ██ ██    ██ ██████  ███████ ██████  ██      ██ ███    ██ ██   ██ ███████ 
██   ██  ██  ██  ██   ██ ██      ██   ██ ██      ██ ████   ██ ██  ██  ██      
███████   ████   ██████  █████   ██████  ██      ██ ██ ██  ██ █████   ███████ 
██   ██    ██    ██      ██      ██   ██ ██      ██ ██  ██ ██ ██  ██       ██ 
██   ██    ██    ██      ███████ ██   ██ ███████ ██ ██   ████ ██   ██ ███████ 

*/

/* -------------------------------------------------------------------------- */
/* 🔗 Hyperlink Styles — LVHFA                                                */
/* LVHFA = Link, Visited, Hover, Focus, Active                                */
/* These are the five main states a hyperlink can be in                       */
/* -------------------------------------------------------------------------- */

/* Unvisited link */
a:link {
  color: var(--color-link);
  text-decoration: none; /* Removes underline */
}

/* Visited link — after a user clicks and returns */
a:visited {
  color: var(--color-link-visited);
}

/* Hover — when a user hovers their mouse over the link */
a:hover {
  color: var(--color-link-hover);
}

/* Focus — when a link is focused (keyboard navigation) */
a:focus {
  outline: 1px solid var(--color-accent-primary);
}

/* Active — when the link is actively being clicked or tapped */
a:active {
  color: var(--color-link-hover);
  /* Useful for mobile tap interactions */
}

/* -------------------------------------------------------------------------- */
/* 🧭 Hyperlink Class Styles                                                  */
/* These are custom styles for specific types of navigation links             */
/* -------------------------------------------------------------------------- */

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

.nav-link-primary,
.footer-item a {
  position: relative;
  display: inline-block;
}

.nav-link-primary span,
.footer-item a span {
  position: relative;
  z-index: 1;
}

.nav-link-primary::before,
.footer-item a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 100%;
  background-color: #98B2C9;
  transition: width 0.35s ease;
  z-index: 0;
}

.nav-link-primary:hover::before,
.footer-item a:hover::before {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* 🧭 Previous & Next Project Navigation Arrows                               */
/* These styles are for the left and right arrows used to move between       */
/* individual project pages in your portfolio. Includes stroke effect styles.*/
/* -------------------------------------------------------------------------- */

/* Default and visited state for navigation arrows */

.navigation-arrow:link,
.navigation-arrow:visited {
  color: var(--color-nav-arrow);
}

/* Hover and active (clicked) states — makes arrows feel interactive */
.navigation-arrow:active,
.navigation-arrow:hover {
  color: var(--color-nav-arrow-hover);
}

/* 🖋️ Optional stroke effect for a bold, outlined arrow look */

.stroke:link,
.stroke:visited {
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--color-nav-arrow-stroke);
}

.stroke:active,
.stroke:hover {
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--color-nav-arrow-stroke-hover);
}

/* 

██   ██ ███████ ██████   ██████  
██   ██ ██      ██   ██ ██    ██ 
███████ █████   ██████  ██    ██ 
██   ██ ██      ██   ██ ██    ██ 
██   ██ ███████ ██   ██  ██████  
                                 
*/

/* -------------------------------------------------------------------------- */
/* 🦸 Hero Section Layout                                                     */
/* Full-page intro area with logo, headline, icon, and footer nav            */
/* Great place for first impression and personal branding                    */
/* -------------------------------------------------------------------------- */

.hero {
  width: 100%;
  min-height: 80vh; /* Takes up most of the screen height */
  display: flex;
  flex-direction: column;
}
.hero-header {
  min-height: 6rem; /* Space reserved for logo + nav */
}

.nav-branding {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: var(--padding-medium);
  align-items: center;
}

.nav-branding-group {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
  gap: var(--gap-small);
}

.nav-branding-item {
  padding-bottom: var(--padding-tiny);
  padding-top: var(--padding-tiny);
  text-transform: uppercase;
}

.nav-branding-logo {
  width: 3rem;
  /* TODO: Adjust the width of the logo on mobile devices here */
}

.hero-headline-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
  padding-top: 5rem;
  padding-bottom: 6rem;
  padding-left: var(--padding-ultra);
  padding-right: var(--padding-ultra);
  text-align: center;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  font-size: 4rem;
}

.hero-footer {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.hero-footer-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: var(--padding-small);
}

/*NEW STYLES FOR PROJECT PAGE HERO IMAGE*/

.project-page-wrapper {
  position: relative;
}

.project-page-wrapper .hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  min-height: auto; /* overrides the 6rem reserved space above, since it now floats over the image */
}

.project-hero-image {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: calc(-1 * var(--padding-small));
  height: 600px;
  overflow: hidden;
}

.project-hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*

 ██████  ██████  ███    ███ ██████   ██████  ███    ██ ███████ ███    ██ ████████ ███████ 
██      ██    ██ ████  ████ ██   ██ ██    ██ ████   ██ ██      ████   ██    ██    ██      
██      ██    ██ ██ ████ ██ ██████  ██    ██ ██ ██  ██ █████   ██ ██  ██    ██    ███████ 
██      ██    ██ ██  ██  ██ ██      ██    ██ ██  ██ ██ ██      ██  ██ ██    ██         ██ 
 ██████  ██████  ██      ██ ██       ██████  ██   ████ ███████ ██   ████    ██    ███████ 
                                                                                          
*/

/* -------------------------------------------------------------------------- */
/* 🔧 Full-Width Section Components                                             */
/* These components create flexible, full-screen sections for your portfolio   */
/* Perfect for highlighting key information and projects                      */
/* -------------------------------------------------------------------------- */

.full-width-section {
  width: 100%;
  min-height: 80vh; /* Takes up most of the screen height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-full-width); /* Background color for full-width sections */
  margin-bottom: 1rem;
}

.full-width-headline-wrapper {
  width: 100%;
  min-height: 60vh; /* Ensures the headline takes up a good portion of the screen */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--padding-small);
  text-align: center; /* Keeps the text centered */
}

.section-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--padding-small);
  margin-bottom: 1rem;
}
.section-item {
  padding: var(--padding-small);
  margin: 1rem;
}

/* 

██     ██  ██████  ██████  ██   ██     ██████   █████   ██████  ███████ 
██     ██ ██    ██ ██   ██ ██  ██      ██   ██ ██   ██ ██       ██      
██  █  ██ ██    ██ ██████  █████       ██████  ███████ ██   ███ █████   
██ ███ ██ ██    ██ ██   ██ ██  ██      ██      ██   ██ ██    ██ ██      
 ███ ███   ██████  ██   ██ ██   ██     ██      ██   ██  ██████  ███████ 

*/

/* -------------------------------------------------------------------------- */
/* 🔲 Work Page Layout Components                                               */
/* These styles create the layout for your work portfolio and project pages    */
/* The goal is to showcase your projects and provide a responsive, clean UI  */
/* -------------------------------------------------------------------------- */

/* Work wrapper (takes up available space) */
.main-work-section {
  flex: 1;
}

/* Padding around work grid and project page */
.portfolio,
.project-wrapper,
.work-sidebar-wrapper {
  padding: var(--padding-tiny); /* Padding to keep content from touching edges */
}

/* Work Sidebar on Mobile */
.work-sidebar {
  width: 100%;
  background: var(--color-bg-sidebar-work); /* Background color for the sidebar */
}

/* Main Work Area with Sidebar on Mobile */
.work-details {
  width: 100%;
}

/* Defining the work page grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  grid-gap: 1rem;
}

/* Individual Work Grid Item */
.work-page-grid-item,
.overlay-container {
  width: 100%;
  height: auto;
  position: relative; /* Needed to position the overlay */
}
/* Experimenting Here */
.work-page-grid-item a {
  text-decoration: none;
  display:block;
}
.work-page-grid-item a:hover .work-grid-project-title {
  color: #27100C;; /* pick your accent color */
}

.work-page-grid-item a:hover .work-grid-project-title::before {
  width: 100%;
}


/* Masonry Overlay Text */
.overlay-container:hover .overlay {
  opacity: 1;
}

/* Project container for background and padding */
.project-container {
  background: var(--color-accent-primary); /* Set project background color */
  padding: var(--padding-medium);
}

/* Overlay (appears on hover) */
.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Initially invisible */
  transition: var(--duration-slow) ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: var(--padding-small);
  background-color: var(--color-overlay-primary); /* Background color of the overlay */
  transition:
    opacity var(--duration-normal),
    visibility var(--duration-normal);
}

/* Hover effect on work page grid items */
.work-page-grid-item:hover .overlay {
  visibility: visible; /* Make overlay visible on hover */
  opacity: 1; /* Set opacity on hover */
}

/* Optional container for future overlay customization */
.project-details-overlay {
  /* Placeholder: no custom styles yet */
}

/*

███████ ██ ██████  ███████ ██████   █████  ██████  
██      ██ ██   ██ ██      ██   ██ ██   ██ ██   ██ 
███████ ██ ██   ██ █████   ██████  ███████ ██████  
     ██ ██ ██   ██ ██      ██   ██ ██   ██ ██   ██ 
███████ ██ ██████  ███████ ██████  ██   ██ ██   ██ 
                                                   
                                                   
*/

/* -------------------------------------------------------------------------- */
/* 🗂️ Sidebar Navigation Styles                                                 */
/* This section contains styles for the sidebar navigation on the portfolio    */
/* website. The aim is to create a simple and clean sidebar for better access. */
/* -------------------------------------------------------------------------- */

/* Sidebar navigation list styles */
.sidebar-nav-list {
  padding: var(--padding-small); /* Adds padding around the navigation list */
}

/* Individual navigation item styles */
.sidebar-nav-item {
  margin-bottom: 1rem; /* Space between each navigation item */
}

/* 

 █████  ██████   ██████  ██    ██ ████████ 
██   ██ ██   ██ ██    ██ ██    ██    ██    
███████ ██████  ██    ██ ██    ██    ██    
██   ██ ██   ██ ██    ██ ██    ██    ██    
██   ██ ██████   ██████   ██████     ██    
                                           
*/

/* -------------------------------------------------------------------------- */
/* 📚 About Page Grid Styles                                                   */
/* These styles structure the layout of the "About" page using a grid system.  */
/* The grid has 3 main sections: an image, text, and footer.                   */
/* -------------------------------------------------------------------------- */

/* Grid container for the About section */
.about-grid {
  display: grid; /* Set to grid layout */
  grid-template-columns: 1fr; /* Single column layout for mobile and smaller screens */
  grid-gap: 2rem; /* Space between grid items */
  background: var(--color-bg-about); /* Background color for the section */
  padding: var(--padding-small); /* Padding around the grid */
  flex: 1; /* Flex-grow to take up available space */
}

.about-grid-text-top,
.about-grid-image,
.about-grid-text-bottom {
  grid-column: 1 / 2; /* mobile: everything stacked in one column */
}

/* Desktop: three columns, text pinned top/bottom around the image */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr 1fr;
    padding: var(--padding-jumbo); /* three equal columns */
  }

/* Text section in the About page grid */
.about-grid-text-top {
  grid-column: 1 / 2; /* Text spans the first column */
  grid-row: 1 / 3; /* Text spans the first row */
  align-self: start; 
}

/* Image section in the About page grid */
.about-grid-image {
  grid-column: 2 / 3; /* Image spans the first column */
  grid-row: 1 / 3; /* Image spans the first row */
  align-self: stretch;
}


  .about-grid-text-bottom {
    grid-column: 3 / 4;
    grid-row: 1 / 3; /* spans full height so it can align to bottom */
    align-self: end; /* pins content to the bottom, matching image's bottom */
  }
}

/* 

███████  ██████   ██████  ████████ ███████ ██████  
██      ██    ██ ██    ██    ██    ██      ██   ██ 
█████   ██    ██ ██    ██    ██    █████   ██████  
██      ██    ██ ██    ██    ██    ██      ██   ██ 
██       ██████   ██████     ██    ███████ ██   ██ 
                                                   
*/

/* -------------------------------------------------------------------------- */
/* 📱 MOBILE FOOTER LAYOUT                                                    */
/* Designed with mobile-first approach using CSS Grid                          */
/* -------------------------------------------------------------------------- */

.footer-global {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 2rem;;
  min-height: auto;
  background: var(--color-bg-footer);
  padding: var(--padding-small);
}

/* -------------------------------------------------------------------------- */
/* 🧩 FOOTER SECTION PLACEMENT                                                */
/* Each component stacks vertically in mobile view                             */
/* -------------------------------------------------------------------------- */

.footer-tagline {
  grid-column: 1 / 2; /* Full width (single column) */
  grid-row: 1 / 2;
  padding: var(--padding-small);
}
.footer-highlights {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.footer-contact-social {
  grid-column: 2 / 2;
  grid-row: 3 / 4;
  padding: var(--padding-small);
}

.footer-explore {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  padding: var(--padding-small);
}

/* -------------------------------------------------------------------------- */
/* 🌊 FULL-WIDTH BOTTOM SECTION                                               */
/* Typically used for copyright/legal information                             */
/* -------------------------------------------------------------------------- */


.footer-bottom {
  grid-column: 1 / 4;   /* spans all 3 columns */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;             /* small, independent spacing */
  text-align: center;
}

/* ------------------------------- */
/* 📜 Reusable footer list styles */
/* ------------------------------- */
.footer-list {
  margin-bottom: 0.85rem;
}
.footer-awards-list {
  margin-bottom: 2rem;
}
.footer-works-list {
  margin-bottom: 2rem;
}
.footer-socials-list {
  display: flex;
  flex-direction:column;
  justify-content: flex-end;
  text-align: right;
}
.footer-socials-list-explore {
  display: flex;
  flex-direction:column;
  justify-content: flex-start;
  text-align: left;
}

/* -------------------------------------------------------------------------- */
/* 📏 Footer Item Spacing                                                     */
/* -------------------------------------------------------------------------- */

/* Apply this class to ALL list items (awards, works, social, bullets) */
.footer-item {
  line-height: 1.2; /* Consistent line height for footer items to improve spacing */
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

/* ------------------------------- */
/* ▪️ Bullet List Style */
/* Square bullets with compact spacing */
/* ------------------------------- */

.footer-bullet-list {
  list-style-type: square;
  list-style-position: inside;
  margin-bottom: 1rem;
}

.footer-bullet-list .footer-item {
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
  text-indent: -0.5rem; /* Pulls text back toward bullet */
}

/* -------------------------------------------------------------------------- */
/* ✨ Footer Special Elements                                                 */
/* -------------------------------------------------------------------------- */

/* Heart icon for copyright/love notes */
.heart {
  color: var(--color-icon-heart); /* Color for heart icon */
}

.footer-fineprint {
  font-size: 0.85rem; /* Slightly smaller for disclaimers or captions */
  text-transform: uppercase;
  color:#28100c; /* Themed color */
  padding: var(--padding-small);
}

/* New item badges */
.badge-new {
  background: var(--color-highlight);
  padding: 0.1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 🌐 MINIMAL FOOTER (ALTERNATIVE VERSION)                                    */
/* A simpler alternative to the CSS Grid footer - ideal for beginners          */
/* -------------------------------------------------------------------------- */

.footer-global-wrapper {
  padding: var(--padding-small);
}

/* 

██████  ██████   ██████       ██ ███████  ██████ ████████     ██████   █████   ██████  ███████ 
██   ██ ██   ██ ██    ██      ██ ██      ██         ██        ██   ██ ██   ██ ██       ██      
██████  ██████  ██    ██      ██ █████   ██         ██        ██████  ███████ ██   ███ █████   
██      ██   ██ ██    ██ ██   ██ ██      ██         ██        ██      ██   ██ ██    ██ ██      
██      ██   ██  ██████   █████  ███████  ██████    ██        ██      ██   ██  ██████  ███████ 
                                                                                               
*/

/* ---------------------------------------------------------------------------------- */
/* Project Page Layout - This section contains the layout for project pages,         */
/* including the project image, description, sidebar, and navigation arrows.         */
/* ---------------------------------------------------------------------------------- */

/* Wrapper for the main project section and sidebar */
.project-wrapper,
.work-sidebar-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Full-width wrapper for the project section */
.project-wrapper-full-width {
  width: 100%;
  padding: var(--padding-small);
}

/* Container for the project content with full-width display */
.project-full-width {
  width: 100%;
  margin-bottom: 2rem;
}

/* Sidebar Styles */
.project-aside {
  width: 100%;
  padding: var(--padding-small);
  display: flex;
  flex-direction: column;
  color: var(--color-text-project-sidebar);
  background: var(--color-bg-sidebar-project);
}

/* Container for project images with center alignment */
.project-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}

/* Container for project description */
.project-description-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  width: 100%;
  padding-top: var(--padding-small);
  padding-bottom: var(--padding-small);
}

/* Column styles for one-column, two-column and four-column layouts (mobile-first) */
.col-1,
.col-2,
.col-4 {
  width: 100%;
  padding: var(--padding-small);
}

/* Project image styling */
.project-image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
/* Project details section */
.project-details {
  width: 100%;
  padding-bottom: var(--padding-small);
  
  padding-right: var(--padding-small);
}

/* Previous/Next Arrow Styles */

.project-navigation {
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

/* Styling for left and right arrows */
.arrow-left,
.arrow-right {
  width: 50%;
}
.arrow-right {
  text-align: right;
}

.arrow {
  padding: 0;
}

/* ------------------------------- */
/* 📜 Project info list styles */
/* ------------------------------- */

.project-info-list {
}

.project-item {
  font-family: "ibm-plex-sans", sans-serif;
  font-size: 1rem;
  line-height: 1.2; /* Consistent line height for project items to improve spacing */
  font-weight: 300;
}

/*

██████  ██       ██████   ██████      ██ ██████  ███████ ███████ ██    ██ ███    ███ ███████ 
██   ██ ██      ██    ██ ██          ██  ██   ██ ██      ██      ██    ██ ████  ████ ██      
██████  ██      ██    ██ ██   ███   ██   ██████  █████   ███████ ██    ██ ██ ████ ██ █████   
██   ██ ██      ██    ██ ██    ██  ██    ██   ██ ██           ██ ██    ██ ██  ██  ██ ██      
██████  ███████  ██████   ██████  ██     ██   ██ ███████ ███████  ██████  ██      ██ ███████ 
                                                                                             
*/

/* Blog and Resume page styles */

.text-section {
  width: 100%;
  background: var(--color-bg);
  padding: var(--padding-small);
}
.list-item {
  line-height: 1.3;
  list-style-type: disc;
  margin-left: 1.2rem;
}

/* 

██   ██  ██████  ██      ██████  ██ ███    ██  ██████  
██   ██ ██    ██ ██      ██   ██ ██ ████   ██ ██       
███████ ██    ██ ██      ██   ██ ██ ██ ██  ██ ██   ███ 
██   ██ ██    ██ ██      ██   ██ ██ ██  ██ ██ ██    ██ 
██   ██  ██████  ███████ ██████  ██ ██   ████  ██████  
                                                       
*/

/* ----------------------------------------------------------------
   Holding Page Styles
   ----------------------------------------------------------------
   Includes layout, typography, and visual effects for the demo
   landing page (index.html).

   Related files:
     • CSS: styles/interactive-blobs.css
     • JS:  js/interactive-blobs.js
---------------------------------------------------------------- */


.holding-page-animation {
  width: 10rem;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.holding-page-title {
  font-size: 1.5rem;
  color: var(--color-text-holding-title);
}

.holding-page-footer {
  display: grid;
  place-items: center;
  min-height: 10vh;
  width: 100%;
  padding: var(--padding-small);
}

.holding-page-copyright {
  font-size: 0.8rem; /* Smaller font size for copyright text */
  color: var(--color-text-holding-footer); /* Custom color for the footer text */
  margin-bottom: 0; /* Removes default margin from the bottom of the copyright text */
}

/*
███████ ██████  ██████   ██████  ██████  
██      ██   ██ ██   ██ ██    ██ ██   ██ 
█████   ██████  ██████  ██    ██ ██████  
██      ██   ██ ██   ██ ██    ██ ██   ██ 
███████ ██   ██ ██   ██  ██████  ██   ██ 
*/

/* TODO: Customize your 404 Error Page */

/* A great 404 page is a chance to leave a memorable impression when visitors land on a page that doesn't exist. Consider customizing this page to be more engaging, humorous, or on-brand with your site. Check out error.css for the gradient and glitch effect. */

.error-headline-wrapper {
  width: 85%;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: var(--padding-small);
  text-align: center;
  margin: 0 auto;
}

.error-page-animation {
  width: 25rem;
}

/*

██████  ██       █████  ██    ██ 
██   ██ ██      ██   ██  ██  ██  
██████  ██      ███████   ████   
██      ██      ██   ██    ██    
██      ███████ ██   ██    ██    
*/

/* Play Page Styles
––––––––––––––––––––––––––––––––––––––––––––––––––
Custom styles specific to the "Play" page layout and content.

✅ Masonry layout is defined separately in masonry.css  
✅ Lightbox functionality is handled via Lightbox2 (in /lightbox2 folder)  
✅ Rotate and other utility classes are already included in the base styles (this file)

Use this section to style elements that are *unique to the Play page*.
For common layout or effects, continue using the base utility classes
to keep your styles reusable and consistent.
*/

.play-page {
  /* Add page-specific layout or container styles here */
}

/*

███████ ██   ██ ███████ ████████  ██████ ██   ██ ██████   ██████   ██████  ██   ██ 
██      ██  ██  ██         ██    ██      ██   ██ ██   ██ ██    ██ ██    ██ ██  ██  
███████ █████   █████      ██    ██      ███████ ██████  ██    ██ ██    ██ █████   
     ██ ██  ██  ██         ██    ██      ██   ██ ██   ██ ██    ██ ██    ██ ██  ██  
███████ ██   ██ ███████    ██     ██████ ██   ██ ██████   ██████   ██████  ██   ██ 

*/

/* Sketchbook Page Styles */

.sketchbook-page {
  display: grid;
  place-items: center;
}

/*

███    ███ ███████ ██████  ██  █████       ██████  ██    ██ ███████ ██████  ██ ███████ ███████ 
████  ████ ██      ██   ██ ██ ██   ██     ██    ██ ██    ██ ██      ██   ██ ██ ██      ██      
██ ████ ██ █████   ██   ██ ██ ███████     ██    ██ ██    ██ █████   ██████  ██ █████   ███████ 
██  ██  ██ ██      ██   ██ ██ ██   ██     ██ ▄▄ ██ ██    ██ ██      ██   ██ ██ ██           ██ 
██      ██ ███████ ██████  ██ ██   ██      ██████   ██████  ███████ ██   ██ ██ ███████ ███████ 

*/

/* Media Queries for Layout Adjustments */

/* Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {
  /* TODO: Adjust  layout for tablets */
}

/* Large devices (desktops, 992px and up) */

/* Switch from mobile to desktop navigation */

@media (min-width: 992px) {
  /* TODO: Add or adjust styles here for large devices. */

  .flex-row {
    flex-direction: row; /* Changes to row layout on larger screens */
  }

  .width-third {
    width: 33.333%;
  }
  .width-two-thirds {
    width: 66.666%;
  }
  .holding-page-title {
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.625rem;
  }

  .h1-full-width,
  .h2-full-width {
    width: 70%;
    padding: var(--padding-small);
  }

  /* ----------------------------- */
  /* 📦 Padding Utilities (Desktop) */
  /* ----------------------------- */
  .padding-large {
    padding: var(--padding-large);
  }
  .padding-jumbo {
    padding: var(--padding-jumbo);
  }
  .padding-ultra {
    padding: var(--padding-ultra);
  }

  /* ----------------------------- */
  /* 🧩 Flex Gap Utilities (Desktop) */
  /* ----------------------------- */

  .gap-medium {
    gap: var(--gap-medium);
  }
  .gap-large {
    gap: var(--gap-large);
  }
  .gap-jumbo {
    gap: var(--gap-jumbo);
  }
  .gap-ultra {
    gap: var(--gap-ultra);
  }

  .nav-branding {
    flex-direction: row;
  }

  .nav-branding-logo {
    width: 3rem;
   
  }

  .hero {
    min-height: 100vh;
  }

  .error-headline-wrapper {
    padding-top: var(--padding-small);
    padding-bottom: var(--padding-small);
    padding-left: var(--padding-ultra);
    padding-right: var(--padding-ultra);
  }

  .error-404 {
    font-size: 5rem;
  }

  /* Work Page Grid for Large Devices */

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    grid-gap: 1rem;
  }

  /* Padding around work grid and project page */

  .portfolio,
  .project-wrapper,
  .work-sidebar-wrapper {
    padding: var(--padding-medium);
  }

  /* Project Page Flex Direction on Large Devices */

  .project-wrapper,
  .work-sidebar-wrapper {
    flex-direction: row;
  }

  /* Project Full Width Styles */

  .project-wrapper-full-width {
    padding-left: var(--padding-jumbo);
    padding-right: var(--padding-jumbo);
    padding-top: var(--padding-jumbo);
  }

  /* Sidebar on Large Devices */

  .project-aside {
    width: 35%;
    height: 80vh;
    position: -webkit-sticky;
    position: sticky;
    top: 8rem;
    padding-right: 2rem;
  }

  /* Main Project Image Area on Large Devices */

  .project-details {
    width: 65%;
  }

  .project-image-container,
  .project-description-container {
    flex-direction: row;
    margin-top: 12px;
  }

  .section-container {
    width: 80%; /* Adjust this width for larger screens if needed */
    flex-direction: row;
  }

  /* Column styles for two-column and four-column layouts (desktop) */
  .col-2 {
    width: 50%;
  }
  .col-4 {
    width: 25%;
  }

  .project-navigation {
    justify-content: flex-start;
  }

  .arrow {
    padding-right: 1rem;
  }

 

  /* ------------------------------- */
  /* 🖥️ FOOTER GRID - DESKTOP LAYOUT */
  /* ------------------------------- */



  /* Column 1: Tagline/Message */
  .footer-tagline {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  /* Column 2: Awards & Works */
  .footer-highlights {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
  }

  /* Column 3: Contact & Social */
  .footer-contact-social {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
  }
  
  .footer-explore {
     grid-row: 1 / 2;
    grid-column: 1 / 4;
  }

  /* ------------------------------- */
  /* 📏 FULL-WIDTH BOTTOM SECTION */
  /* ------------------------------- */
.footer-bottom {
  grid-column: 1 / 4;   /* spans all 3 columns */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;             /* small, independent spacing */
  text-align: center;
}

  /* Work Sidebar on Large Devices */

  .work-sidebar {
    width: 25%;
    height: 80vh;
    position: -webkit-sticky;
    position: sticky;
    top: 1rem;
  }

  /* Main Work Area on Large Devices */

  .work-details {
    width: 75%;
  }
}

/* X-Large devices (large desktops, 1200px and up)*/

@media (min-width: 1200px) {
  /* TODO: Add styles here for X-large devices. */

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */

@media (min-width: 1400px) {
  /* TODO: Add styles here for XX-large devices. */

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

/* NEWLY ADDED */

.hero-divider {
  border: none;
  height: 0.5px;
  background-color: #808080;
}

.footer-divider {
  margin-top: 0rem;
  margin-bottom: 1rem;
}

.about-image {
  padding: var(--padding-small)
}

.uppercase-heading {
  text-transform: uppercase;
  text-align: center;
  color: #a8a6a6;
  font-size: 1em;
}

/* Grayscale filter with full-colour on hover and tap */

.work-page-grid-item a.grayscale img,
.-footer a.grayscale img {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.work-page-grid-item > a.grayscale:active img,
.work-page-grid-item > a.grayscale:hover img,
.work-page-grid-item-footer > a.grayscale:active img,
.work-page-grid-item-footer > a.grayscale:hover img {
  filter: grayscale(0%);
}

.work-page-grid-item {
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
}

.work-page-grid-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .work-page-grid-item {
    transition: none;
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom cursor styles */

html, body {
  cursor: none;
}

a, a:hover, button, .grayscale {
  cursor: none;
}

.lightbox, .lightbox * {
  cursor: auto; /* let the lightbox plugin behave normally */
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: #E26F1F;
  pointer-events: none;
  z-index: 9999;
  transform: translate(0%, 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s cubic-bezier(.2,.8,.2,1),
              height 0.25s cubic-bezier(.2,.8,.2,1),
              padding 0.25s ease;
}

#cursor.hovering {
  width: auto;
  height: auto;
  padding: 10px 16px;
}

#cursor .info {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #F7F2DC;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease 0.1s;
}

#cursor.hovering .info {
  opacity: 1;
}

/* ============================================================== */
/* FOOTER CLOSER — Social + Explore                                */
/* ============================================================== */
.footer-closer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.85rem;
  padding-right: var(--padding-small);
  padding-left: var(--padding-small);
  padding-top: var(--padding-small);
  list-style: none;
}

.footer-explore        { order: 1; }
.footer-contact-social { order: 2; }

@media (min-width: 992px) {
  .footer-closer {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-explore {
    grid-column: 1 / 2;
    order: initial;
  }

  .footer-contact-social {
    grid-column: 3 / 4;
    order: initial;
  }
}


.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.footer-fineprint,
.footer-scroll-top {
  margin: 0;
}

.footer-scroll-top {
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: var(--padding-small);
}

/* Make the hero figure the positioning context */
.project-hero-image {
  position: relative;
  overflow: hidden;
}

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

/* Dark gradient rising from the bottom */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 25%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none; /* lets clicks pass through to the image if needed */
}

/* Two-column text sitting on top of the gradient */
.hero-text-columns {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  padding: var(--padding-small);
  color: #F7F2DC;
  z-index: 2;
}

.hero-text-col {
  width: 25%;  
  flex-shrink: 0;
}

/* About me page hero */
.hero-split {
  position: relative;
  width: 100%;
  height: 700px;
  display: flex;
  overflow: hidden;
}

.hero-about {
  width: 40%;
  padding-left: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-about-top h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.hero-about-top p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #371E12;
  max-width: 90%;
}

.hero-about-bottom .hero-label {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #371E12;;
}

.hero-about-bottom .hero-value {
  margin: 4px 0 0;
  font-size: 13px;
  color: #371E12;
}

.hero-photo-block {
  width: 60%;
  position: relative;
  overflow: hidden;
}

.hero-photo-item {
  position: absolute;
  border-radius: 0; /* rectangles, no rounding */
  cursor: grab;
  overflow: hidden;
}

.hero-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* so drag grabs the wrapper, not the image */
}

.hero-photo-item:active {
  cursor: grabbing;
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    height: auto; /* let content determine height instead of a fixed 700px */
  }

  .hero-about {
    width: 100%;
  }

  .hero-photo-block {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-photo-block {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding: var(--padding-small);
  }

  .hero-photo-item {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    pointer-events: none;
  }

  .hero-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.footer-tag-svg {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
}

.footer-tag-wrapper {
  position:relative;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


.lets-connect {
  display: block;
  width: 90%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}

.lets-connect path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.lets-connect.is-visible path {
  animation: draw 0.4s cubic-bezier(0.35, 0, 0.42, 1) forwards;
  animation-delay: var(--d);
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lets-connect path { stroke-dashoffset: 0; animation: none; }
}

/* BACKROOMS 404 */

:root {
  --br-photo: url("../assets/404/crescille-buyuccan--backrooms--image.jpg");
  --br-field: url("../assets/404/crescille-buyuccan--backrooms--field.jpg"); 
  --br-w: 210px;
}


html:has(.br-page), .br-page { overflow-x: clip; }
.br-page { background: #fff; color: #000; }

/* Sky + grass behind the whole 404 page */
.br-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #fff center / cover no-repeat;
}

.br-stage {
  position: relative;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--padding-medium);
  padding-bottom: var(--padding-medium);
  text-align: center;
  font-family: "IBM Plex Sans", sans-serif;
}

.br-tag {
  font-size: clamp(14px, 1.4vw, 18px);
  word-spacing: .25em;
  margin: 0 0 clamp(16px, 2.5vw, 28px);
}

/* ---- photo + fluorescent flicker ---- */
.br-photo {
  position: relative;
  width: min(640px, 88vw);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  background:
    var(--br-photo) center / cover no-repeat,
    repeating-linear-gradient(90deg, rgba(90,80,20,.08) 0 3px, transparent 3px 16px),
    linear-gradient(#e2dba0, #b3a85e);
  animation: br-hum 7s infinite;
}
.br-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.br-photo.br-burst::after { animation: br-burst .45s steps(1); }

@keyframes br-hum {
  0%, 100% { filter: brightness(1); }
  3%  { filter: brightness(.86); }
  4%  { filter: brightness(1.04); }
  5%  { filter: brightness(1); }
  78% { filter: brightness(1); }
  79% { filter: brightness(.9); }
  80% { filter: brightness(1); }
}
@keyframes br-burst {
  0% { opacity: .55; } 20% { opacity: 0; } 40% { opacity: .4; }
  60% { opacity: .1; } 80% { opacity: .5; } 100% { opacity: 0; }
}

/* ---- giant 404/404/404 ---- */
.br-big {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -0.45em;
  font-weight: 500;
  font-size: 28vw;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .br-big {
    font-size: 22vw;
    margin-top: -0.6em;
  }
}

/* ---- doors ---- */
.br-doors {
  position: relative;
  z-index: 7;    
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5em;
}
.br-doors a { color: inherit; text-decoration: none; font-size: 1em; font-weight: 300; }
.br-doors a u { text-decoration: underline; text-underline-offset: 3px; }

.br-doors a:hover,
.br-doors a:focus-visible {
  background: #0000a8;
  color: #fff; 
}

/* ---- Windows 95 dialogs ---- */
.br-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

.br-win {
  position: absolute;
  width: var(--br-w);
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  text-align: left;
  pointer-events: auto;
  animation: br-pop .18s steps(3);
}
.br-win.br-static { position: relative; margin: 20px auto 0; }
.br-win.br-shake { animation: br-shake .3s steps(6); }
.br-title {
  display: flex; align-items: center; justify-content: space-between;
  background: #0000a8; color: #fff;
  font-weight: medium; font-size: 11px;
  padding: 2px 3px 2px 4px;
}
.br-tbtns { display: flex; gap: 2px; }
.br-tbtn {
  position: relative;
  width: 16px; height: 14px; padding: 0;
  background: #c0c0c0; color: #000;
  border: 1px solid; border-color: #fff #000 #000 #fff;
  box-shadow: inset -1px -1px #808080;
  font: "IBM Plex Sans", sans-serif;
  cursor: pointer;
}
.br-tbtn::before { content: ""; position: absolute; inset: -8px; } /* bigger tap target */
.br-tbtn:active { border-color: #000 #fff #fff #000; box-shadow: inset 1px 1px #808080; }
.br-wbody { display: flex; align-items: center; gap: 12px; padding: 12px 14px 18px; }

.br-ic-err,
.br-ic-pc {
  flex: none;
  width: 64px;
  height: 64px;
  background: center / contain no-repeat;
}
.br-ic-err { background-image: url("../assets/404/icon-error.png"); }
.br-ic-pc  { background-image: url("../assets/404/icon-computer.png"); }

@keyframes br-pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes br-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

@media (max-width: 600px) {
  :root { --br-w: 165px; }
  .br-win { font-size: 11px; }
  .br-wbody { padding: 10px 10px 14px; gap: 9px; }
  .br-ic-err, .br-ic-pc { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .br-photo, .br-photo.br-burst::after, .br-win, .br-win.br-shake { animation: none; }
}




/* ---- popping console text ---- */
.br-console {
  position: absolute;
  z-index: 6;
  left: 3%;
  top: 17%;
  width: min(270px, calc(100% - 32px));
  font: 12px/1.5 "IBM Plex Sans", sans-serif;
  text-align: left;
  white-space: pre-wrap;
  pointer-events: none;
}
.br-console > div {
  width: fit-content;
  max-width: 100%;
  background: #dfdfdf;
  padding: 0 4px;
}
.br-console .br-cursor {
  display: inline-block;
  width: .55em; height: 1em;
  background: currentColor;
  vertical-align: text-bottom;
  animation: br-blink 1s steps(1) infinite;
}
@keyframes br-blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .br-console {
    left: 16px;
    top: 13%;
    width: min(240px, calc(100% - 32px));
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (max-width: 600px) {
  .br-console {
    z-index: 4;
    top: 98px;
    left: 22px;
    width: auto;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-console .br-cursor { animation: none; }
}

/* ---- second console: right side, middle ---- */
.br-console-right {
  left: auto;
  right: 3%;
  top: 33%;
}
@media (max-width: 900px) {
  .br-console-right { left: auto; right: 16px; top: 34%; }
}
@media (max-width: 600px) {
  .br-console-right {
  display: block;
  z-index: 6;
  left: auto;
  right: 22px;
  top: calc(max(48px, 10vw) + 32px + 54vw);
  width: auto;
}
}

.project-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr; 
}

.project-image-pair figure {
  margin: 0; 
}

.project-image-pair img {
  display: block;
  width: 100%;
  height: auto;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .project-image-pair {
    grid-template-columns: 1fr;
  }
}

.project-full-width .project-image {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-full-width .project-image.is-visible {
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 12px;
}

/* ======================
   AUTO SLIDER
   ====================== */
.slider {
  position: relative;
  width: 100%;
  max-width: 900px; /* lower this number to make it smaller */ 
  user-select: none;
  margin-bottom: 12px;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-slide {
  flex: 0 0 100%;
}

.slider-slide img {
  width: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Clickable edges — the middle 30% is the gap */
.slider-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: none;
  border: none;
  padding: 0;
  cursor: none;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-zone:focus { outline: none; }

/* Outline only for keyboard users */
.slider-zone:focus-visible {
  outline: 1px solid var(--color-accent-primary);
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
}


.project-work-section {
  flex: 1;
}


.grid-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  grid-gap: 1rem;
}

.grid-work {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    grid-gap: 1rem;
  }



@media (min-width: 1200px) {
  /* TODO: Add styles here for X-large devices. */

  .grid-work {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

@media (min-width: 1400px) {
  /* TODO: Add styles here for XX-large devices. */

  .grid-work {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

/* ---- Prev / Next arrows ---- */
.project-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

a.project-nav__link {
  display: inline-flex;
  text-decoration: none;
  color: var(--color-nav-link);
  transition: color 0.35s ease;
}

a.project-nav__link:hover {
  color: var(--color-nav-link-hover);
}

.project-nav__arrow {
  transition: transform 0.35s ease;
}

/* Resting: diagonal */
.project-nav__next .project-nav__arrow { transform: rotate(0deg); }    /* ↗ */
.project-nav__prev .project-nav__arrow { transform: rotate(-90deg); }  /* ↖ */

/* Hover: rotates to point straight */
.project-nav__next:hover .project-nav__arrow { transform: rotate(45deg); }   /* → */
.project-nav__prev:hover .project-nav__arrow { transform: rotate(-135deg); } /* ← */

.grid-work-footer {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
}

.work-page-grid-item-footer {
  flex: 1;              /* three cards share the row equally */    /* the largest the card + image will get */
  
}

.grid-work-footer figure {
  margin: 0;
}

.grid-work-footer img,
.grid-work-footer object {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Stack on mobile */
@media (max-width: 600px) {
  .grid-work-footer {
    flex-direction: column;
    align-items: center;
  }

  .work-page-grid-item {
    width: 100%;
  }
}

/* WORK VERSION 2 EXPERIMENT */

.work-accordion-heading {
  text-align: center;
  margin-bottom: 1rem;
}

.work-accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.75px solid #808080;
}

.work-accordion-item {
  border-bottom: 0.75px solid #808080;
}


.work-accordion-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
}

.work-accordion-num {
  transition: color 0.35s ease;
  color: #808080;
}

.work-accordion-arrow {
  transition: transform 0.35s ease, color 0.35s ease;
  grid-column: -2;
}

/* List rows (More Works, Achievements, Work list): hover colours the row and turns the arrow */
.work-accordion-head:hover,
.work-accordion-head:hover .work-accordion-num {
  color: var(--color-nav-link-hover, #e26f1f);
}

.work-accordion-head:hover .work-accordion-arrow {
  transform: rotate(45deg);
}

/* Open state: orange number + arrow turns to point right */
.work-accordion-item.is-open,
.work-accordion-item.is-open .work-accordion-arrow {
  color: var(--color-nav-link-hover, #e26f1f);
}

.work-accordion-item.is-open .work-accordion-arrow {
  transform: rotate(45deg);
}

/* The expanding panel */
.work-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.work-accordion-item.is-open .work-accordion-panel {
  grid-template-rows: 1fr;
}

.work-accordion-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.work-accordion-body {
  display: grid;
  grid-template-columns: 80px minmax(0, 520px) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 36px;
}

.work-accordion-image {
  grid-column: 2;
  margin: 0;
}

.work-accordion-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.work-accordion-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding-right: 40px;
}

.work-accordion-text p {
  line-height: 1.5;
  max-width: 460px;
}

.work-accordion-link {
  padding: 4px;
  align-self: flex-start;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
  border-bottom: 1px solid;
  transition: opacity 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.work-accordion-link:hover {
  opacity: 1;
  color: var(--color-nav-link-hover, #e26f1f);
  
}


/* Scroll reveal */
.work-accordion-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.work-accordion-item.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile: stack everything */
@media (max-width: 700px) {
  .work-accordion-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px 16px;
    padding: 20px 0;
  }

  .work-accordion-head .work-grid-project-category {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .work-accordion-body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }

  .work-accordion-image {
    grid-column: auto;
  }

  .work-accordion-text {
    padding-right: 0;
  }
}
.work-accordion-head .work-grid-project-title {
  justify-self: start;
}

.work-accordion-head .work-grid-project-category {
  margin: 0;
  padding: 0;
}

/* ---- Grid / List switch ---- */
.work-view-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.work-view-btn {
  padding: 4px;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.5;
  border-bottom: 1px solid transparent;
  transition: opacity 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.work-view-btn:hover {
  opacity: 1;
  color: var(--color-nav-link-hover, #e26f1f);
}

.work-view-btn[aria-current="page"] {
  opacity: 1;
  border-bottom-color: currentColor;
}

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

.footer-tag-wrapper {
  position: relative;
  width: 100%;
  height: min(300px, 60vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-tag-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(300px, 60vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  h6.footer-tag {
    font-size: 14vw;
  }
}

@media (max-width: 600px) {
  .hero-headline-wrapper .hero-headline {
    font-size: 1.75rem;
    line-height: 1.15;
    overflow-wrap: break-word;
  }
}

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

/* Hide the custom cursor on phones and tablets */
@media (hover: none), (pointer: coarse) {
  #cursor {
    display: none;
  }
}


/* ABOUT ME VERSION 2 */

/* ---- Drag canvas (About page) ---- */
.about-canvas {
  --about-safe-top: 100px;      /* space kept clear for your header (logo + nav) */
  --about-safe-bottom: 72px;    /* space kept clear for the button at the bottom */
  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(100vh - 140px); /* shorter than the screen so the next section peeks in below */
  min-height: 560px;
  background: #f5f5f5;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.about-canvas.is-dragging { cursor: grabbing; }
.about-canvas:focus { outline: none; }
.about-canvas:focus-visible { outline: 1px solid #1f1d1b; outline-offset: -1px; }

.about-world {
  transition: none !important; /* never let site-wide transitions make the board lag */
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  will-change: transform;
}

.about-card {
  position: absolute;
  margin: 0;
  border: 1px solid #1f1d1b;
  border-radius: 0;
  overflow: hidden;
  background: #e8e8e8;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .7s cubic-bezier(.4,0,.2,1),
              transform .7s cubic-bezier(.4,0,.2,1),
              box-shadow .25s;
}
.about-card.is-in { opacity: 1; transform: scale(1); }
.about-card.no-anim { transition: box-shadow .25s, transform .25s; } /* copies that appear mid-drag: no pop */
.about-card.is-in:hover {
  transform: scale(1.06) rotate(var(--tilt));
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.35);
  z-index: 5;
  cursor: pointer;
}
.about-canvas.is-dragging .about-card.is-in:hover {
  transform: scale(1);
  box-shadow: none;
  cursor: grabbing;
}
.about-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.about-hint {
  position: absolute;
  left: 24px;
  bottom: calc(24px + var(--about-bottom, 0px));
  z-index: 10;
  padding: 6px 12px;
  border: 1px solid #1f1d1b;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .6s;
}

/* Enlarged view when a photo is clicked */
.about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20,18,16,.6);
  cursor: zoom-out;
}
.about-lightbox.is-open { display: flex; }
.about-lightbox img {
  max-width: 86vw;
  max-height: 86vh;
  border: 1px solid #1f1d1b;
  border-radius: 0;
  animation: about-pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes about-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* About me box in the middle of the canvas */
.about-center {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 48px));
  z-index: 20;
  padding: 12px 16px;
  box-sizing: border-box;
  background: #f5f5f5;
  color: #371E12;
  text-align: center;
}
/* Centre everything inside, even if other styles on your site set text-align */
.about-center,
.about-center h1,
.about-center h2,
.about-center p,
.about-center a { text-align: center !important; }
.about-center p { max-width: none; margin-left: auto; margin-right: auto; }

.about-center h1 { margin: 0 0 16px; font-size: 32px; }
.about-center p { margin: 0; font-size: 14px; line-height: 1.6; }
.about-center p + p { margin-top: 1em; }
.about-center .work-accordion-link {
  display: inline-block;
  margin-top: 20px;
  color: #371E12;
  font-size: 14px;
}
.about-center .hero-about-bottom { margin-top: 28px; }
.about-center .hero-label {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.about-center .hero-value { margin: 4px 0 0; font-size: 13px; }

/* "Scroll for more" button at the bottom of the canvas */
.about-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(24px + var(--about-bottom, 0px));
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #1f1d1b;
  border-radius: 0;
  background: #f5f5f5;
  color: #1f1d1b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.about-scroll:hover { background: #ebebeb; }
.about-scroll .arrow { display: inline-block; animation: about-bob 1.6s ease-in-out infinite; }
@keyframes about-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .about-scroll .arrow { animation: none; } }

/* Touch screens: swiping up/down scrolls the page, swiping sideways moves the canvas */
@media (pointer: coarse) {
  .about-canvas { touch-action: pan-y; }
}

@media (max-width: 768px) {
  .about-center { padding: 12px 18px; }
  .about-hint { display: none; }
  .about-center h1 { font-size: 26px; }
  .about-center p { font-size: 13px; }
}

/* Header sits on top of the canvas so they feel like one surface.
   Only applies on pages that have the drag canvas. */
body:has(.about-canvas) .hero-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  pointer-events: none;        /* empty header space lets you drag the canvas */
}
body:has(.about-canvas) .hero-header a,
body:has(.about-canvas) .hero-header img {
  pointer-events: auto;        /* logo and nav links still clickable */
}

/* "Back to about" button: shows once you drag away from the text */
.about-home {
  position: absolute;
  right: 24px;
  bottom: calc(24px + var(--about-bottom, 0px));
  z-index: 30;
  padding: 9px 16px;
  border: 1px solid #1f1d1b;
  border-radius: 0;
  background: #f5f5f5;
  color: #1f1d1b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.about-home.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.about-home:hover { background: #ebebeb; }
@media (max-width: 768px) {
  /* on phones it sits just above "Scroll for more" */
  .about-home { right: 50%; transform: translate(50%, 12px); bottom: calc(72px + var(--about-bottom, 0px)); }
  .about-home.is-visible { transform: translate(50%, 0); }
}

/* ---- Hover video on work grid ---- */
.work-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
}

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

.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.work-video.is-playing {
  opacity: 1;
}

.work-media {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.work-media img {
  display: block;
  width: 100%;
  height: auto;
}

.work-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.work-page-grid-item a:hover .work-media video {
  opacity: 1;
}

/* Play section */

.play-filters {
  flex-wrap: wrap;
}

button.work-view-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  color: inherit;
}

/* Same underline as the Grid / List switch */
.work-view-btn[aria-pressed="true"] {
  opacity: 1;
  border-bottom-color: currentColor;
}

/* ---- Masonry grid: images keep their own shape ---- */
.play-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 4 220px;
  column-gap: 1rem;
}

.play-item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.play-item[hidden] {
  display: none;
}

.play-media {
  position: relative;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #e8e8e8;
}

.play-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Motion pieces: plain video, plays on its own, full shape, no crop */
.play-grid .play-media video {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: none;
  pointer-events: none;
}

/* Small play badge so motion pieces read as video on phones too */
.play-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 6px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Caption: (01) Title (Year) + label ---- */
.play-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.play-caption .work-grid-project-title {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.play-num {
  color: #808080;
}

.play-year {
  flex-shrink: 0;
  font-size: 1em;
  line-height: 1.2;
  color: #808080;
  white-space: nowrap;
}


.play-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-small);
  padding: var(--padding-large) 0 var(--padding-medium);
  margin-bottom: var(--padding-medium);
}

.play-hero-title {
  margin: 0;
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.play-hero-count {
  margin-left: 0.15em;
  font-size: 0.5em;
  font-weight: 300;
  letter-spacing: 0;
  color: #808080;
  vertical-align: top;
}

.play-hero-text {
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==============================================================
   PROJECT POP-UP
   Mobile: images, then info stacked below.
   Desktop (992px+): images on the left, info on the right.
   ============================================================== */

html.play-modal-open {
  overflow: hidden;
}

.play-modal {
  position: fixed;
  inset: 0;
  z-index: 1000; /* under the custom cursor (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-tiny);
}

.play-modal[hidden] {
  display: none;
}

.play-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.6); /* same as the about lightbox */
}

.play-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1240px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--color-bg);
  border: 1px solid #1f1d1b;
  border-radius: 0;
  animation: about-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); /* keyframes from style.css */
}

.play-modal-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-small);
  align-content: start;
  padding: var(--padding-small);
}

.play-modal-media img,
.play-modal-media video {
  display: block;
  width: 100%;
  height: auto;
}

.play-modal-info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
  padding: var(--padding-small);
}

.play-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #1f1d1b;
  border-radius: 0;
  background: var(--color-bg);
  color: #1f1d1b;
}

.play-close:hover {
  background: #ebebeb;
}

.play-modal-num {
  margin: 0;
}

.play-modal-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.play-modal-body p {
  line-height: 1.5;
}

.play-modal-body .project-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0.75px solid #808080;
}

.play-modal-body .project-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 0.75px solid #808080;
}

.play-modal-body .project-item span:first-child {
  color: #808080;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.play-modal-nav {
  margin: auto 0 0;
  padding-top: var(--padding-small);
}

.play-modal-nav .project-nav__link {
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .play-modal {
    padding: var(--padding-medium);
  }

  .play-modal-dialog {
    flex-direction: row;
    height: min(820px, 100%);
    overflow: hidden;
  }

  .play-modal-media {
    flex: 1 1 62%;
    min-width: 0;
    overflow-y: auto;
    padding: var(--padding-medium);
  }

  .play-modal-info {
    flex: 0 0 38%;
    max-width: 440px;
    overflow-y: auto;
    border-top: 0;
    padding: var(--padding-medium);
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-modal-dialog {
    animation: none;
  }
}

.play-modal-media > :first-child {
  grid-column: 1 / -1;     /* takes the full row */
  justify-self: center;    /* centered */
  width: auto;
  max-width: 100%;
}


.play-modal-media > .play-modal-vimeo {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
}

/* Extras with class="play-wide" take a full row instead of half */
.play-modal-media > .play-wide {
  grid-column: 1 / -1;
}

.play-media--vimeo {
  aspect-ratio: 16 / 9;
}

.play-media--vimeo iframe,
.play-modal-vimeo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;   /* clicks go to the link, so the pop-up still opens */
}