@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* BODY*/

/* Home welcome section */
#welcome {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0); /* optional gradient */
  overflow: hidden;
}

.welcome-content h1 {
  font-size: 6vw; /* large, responsive */
  color: #000;
  margin-bottom: 1rem;
}

/* -------------- ALL PARAGRAPH STYLING ---------------*/
/* Unified typography for paragraphs + lists */
:where(p, ul, ol, li) {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;  /* your "thickness" */
  font-size: clamp(0.95, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
}

/* Make bullet/number weight match text */
:where(ul, ol) ::marker {
  font-weight: inherit;
  color: currentColor;
}

/* Small indent for lists + tidy spacing */
:where(ul, ol) {
  padding-inline-start: 1.25rem;  /* adjust indent here */
  margin: 0 0 .75rem 0;           /* space after list */
}

/* Spacing between paragraphs and lists */
p + p { margin-top: .75rem; }
p + :is(ul, ol), 
:is(ul, ol) + p { margin-top: .75rem; }

/* Optional: small spacing within lists and nested lists */
li { margin: .35em 0; }
:where(li > ul, li > ol) { margin-top: .35em; }


/* ---------------- HEADING STYLING ------------------ */
h1{
    font-weight: 400;
    margin: 20px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
}

h2{
    font-weight: 400;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
}

h3{
    font-weight: 400;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
}

h4{
    font-weight: 400;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1.25rem;
}

h5{
    font-weight: 600;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.39em;
    font-size: 0.8rem;
}

h6{
    font-weight: 400;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    
}

#portfolio{
    width: 1000px;
    margin: auto;
    margin-top: 20px;
    display: flex;
}


.more-link{
    font-style: italic;
}

a{
    text-decoration: none;
}
.my-input, .my-text-area{
    display: block;
    width: 90%;
    margin: 10px;
    padding: 10px 20px;
    border: 1px solid #aaa;
    resize: none;
}

/*------------------------------------------*/
/* Portfolio Grid */
.grid-container {
  display: flex;
  flex-wrap: wrap;
}

.grid-item {
  position: relative;
  width: 33vw;
  height: 33vw;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
  cursor: pointer;
}

/* Hide the text until hover; center & bold it; keep above dimmer */
.grid-item .grid-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: raleway, sans-serif;
  color: #fff;
  opacity: 0;                 /* hidden by default */
  visibility: hidden;         /* prevent accidental flashes */
  transition: opacity .25s ease-in, visibility 0s linear .25s;
  z-index: 2;                 /* above the dim layer */
  pointer-events: none;
  text-align: center;
}

/* Dimmer sits under text */
.grid-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);   /* no dim by default */
  transition: background .25s ease-in;
  z-index: 1;
}

/* Hover state: show text + dim bg image only */
.grid-item:hover .grid-label,
.grid-item:focus-within .grid-label {
  opacity: 1;
  visibility: visible;         /* show immediately when hovering */
  transition-delay: 0s;
}
.grid-item:hover::after,
.grid-item:focus-within::after {
  background: rgba(0,0,0,.4);  /* dim just the background */
}

/* Remove any old filter-based dimming that would affect text */
.grid-item:hover { filter: none !important; }



/*------------------------------------------*/

/* Responsive tweaks */
@media (max-width: 600px) {
  #site-footer .footer-content p {
    font-size: 0.9rem;
  }
}
/* Make the form take up the full viewport height and center it */
.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* full screen height */
    padding: 20px; /* space around on mobile */
    background: #f5f5f5; /* light background */
}

/* Style the form container */
.enquiry-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1000px; /* limit to 1000px */
}

/* Labels and inputs */
.enquiry-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.enquiry-form input,
.enquiry-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* Button */
.enquiry-form button {
    background: #333;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.enquiry-form button:hover {
    background: #555;
}

/* Portfolio Grid */
.grid-container {
  display: flex;
  flex-wrap: wrap;
}

.grid-item {
  position: relative;
  width: 33vw;
  height: 33vw;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
  cursor: pointer;
}


/* Project main hero */
/* ---- Globals / helpers ---- */
html, body { height: 100%; margin: 0; }

/* Set how many pixels to subtract from the viewport height (e.g., header height) */
:root { --hero-offset: 60px; } /* ← change this to whatever px you need */

/* ---- Layout ---- */
.hero {
  position: relative;
  width: 100vw;

  /* Height: viewport minus the fixed offset */
  height: calc(100vh - var(--hero-offset));
  /* Mobile-safe unit override (iOS URL bar etc.) */
}
@supports (height: 100dvh) {
  .hero { height: calc(100dvh - var(--hero-offset)); }
}

/* If you have a fixed/sticky header, add .has-fixed-header to <body>
   so the hero starts below it (not hidden underneath). */
.has-fixed-header .hero {
  margin-top: var(--hero-offset);
}

.hero {
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
  cursor: pointer;
  color: #fff; /* make all text inside white by default */
  box-sizing: border-box;
}

/* Readability overlay: left fade + bottom fade */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* bottom fade for text pinned at bottom */
    linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 35%),
    /* existing left-to-right fade */
    linear-gradient(90deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.25) 40%,
      rgba(0,0,0,0.0) 70%
    );
  pointer-events: none;
}

/* Pin the content block to the bottom-left, with a capped left offset */
.hero__inner {
  position: absolute;
  z-index: 1;

  /* Safer bottom spacing on tall/short screens + iOS safe area */
  bottom: max(24px, calc(2vh + env(safe-area-inset-bottom)));

  left: clamp(16px, 8vw, 1000px); /* never further left than 1000px on wide screens */
  right: clamp(16px, 8vw, 160px); /* keep some right breathing room */
  max-width: min(60ch, 90vw);
  text-shadow: 0 2px 12px rgba(0,0,0,.35); /* boost legibility on busy photos */
}

/* push it higher on desktops */
@media (min-width: 1024px) {
  .hero__inner { bottom: clamp(120px, 18vh, 360px); }
}

/* ---- Typography ---- */
.hero__title {
  margin: 0 0 .2em 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 2.5rem, 5rem);
  color: #fff;
  font-family: 'Raleway', sans-serif;
}

.hero__subtitle {
  margin: 0;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.95;
  font-size: clamp(1.1rem, 1rem, 2rem);
  color: #fff;
  font-family: 'Raleway', sans-serif;
}

/* ---- Motion ---- */
/* Slide in from the left by up to 1000px (but less on small screens) */
:root { --slide-from: calc(min(60vw, 1000px) * -1); }

.hero__title,
.hero__subtitle {
  opacity: 0;
  transform: translateX(var(--slide-from));
  will-change: transform, opacity;
  animation: hero-slide-in 0.8s cubic-bezier(.2,.9,.2,1) forwards;
}

.hero__title { animation-delay: .10s; }
.hero__subtitle { animation-delay: .35s; }

@keyframes hero-slide-in {
  from { transform: translateX(var(--slide-from)); opacity: 0; }
  to   { transform: translateX(0);               opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle {
    animation: none;
    transform: none;
    opacity: 1;
  }
}


/* --- COMPONENTS --*/
/* ===== Minimal, dependency-free styles ===== */
.fullbleed-section {
  width: 100%;
  background: var(--bg, #f5f5f5);              /* set via HTML */
  color: var(--fg, inherit);                   /* optional override via HTML */
}

.section__inner {
  max-width: 1300px;                           /* your max content width */
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);      /* safe side padding (fixed) */
  padding-block: var(--pad-block, 120px);       /* set via HTML (optional) */
  box-sizing: border-box;  
}

.section__header > * { margin: 0; }
.section__header > * + * { margin-top: .5rem; }
.section__header { text-align: center; }

.section__104545grid {
  display: grid;
  grid-template-columns: 10fr 45fr 45fr; /* ≈ 10%, 45%, 45% */
  gap: 24px; /* whatever you use */ 
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}

.section__2020202020grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr; /* ≈ 5 equal frames */
  gap: 24px; /* whatever you use */ 
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}


.section__5050grid {
  display: grid;
  grid-template-columns: 1fr 1fr;              /* two even columns */
  gap: var(--gap, 2rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}

.section__2575grid {
  display: grid;
  grid-template-columns: 1fr 3fr;            /* 25% left column, 75% right column  */
  gap: var(--gap, 1rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}

.section__7525grid {
  display: grid;
  grid-template-columns: 3fr 1fr;            /* 75% left column, 25% right column  */
  gap: var(--gap, 1rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}

.section__3060grid {
  display: grid;
  grid-template-columns: 1fr 2fr;            /* 33% left column, 66% right column  */
  gap: var(--gap, 1rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}

.section__6030grid {
  display: grid;
  grid-template-columns: 2fr 1fr;            /* 66% left column, 33% right column  */
  gap: var(--gap, 1rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
}

.section__100grid {
  display: grid;
  grid-template-columns: 1fr;            /* 100% single column  */
  gap: var(--gap, 1rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: start;
  align-items: stretch; /* ⬅️ instead of start */
  
}

.section__303030grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;              /* three even columns */
  gap: var(--gap, 2rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: stretch; /* ⬅️ instead of start */
}

.section__25252525grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;              /* four even columns */
  gap: var(--gap, 2rem);                     /* small space between them */
  margin-top: clamp(16px, 3vw, 32px);
  align-items: stretch; /* ⬅️ instead of start */
}


.section__col > *:first-child { 
  margin-top: 0;
}

/* ===== Breakpoints ===== */

/* Stack to one column on narrow screens */
@media (max-width: 900px) {
  .section__5050grid, .section__2575grid, .section__25252525grid, .section__7525grid, .section__3060grid, .section__6030grid, .section__303030grid, .section__2020202020grid { grid-template-columns: 1fr; }  /* fixed class name */
}

/* Optional: extra comfy spacing on very large screens */
@media (min-width: 1280px) {
  .section__inner { padding-inline: 48px; }
  .section__5050grid, .section__2575grid, .section__7525grid, .section__3060grid, .section__6030grid, .section__303030grid {
    gap: var(--gap, 1.25rem);   /* was: gap: 1.25rem; */
  }
}

/* Optional: very small phones */
@media (max-width: 380px) {
  .section__inner { padding-inline: 12px; }
}

/*_________PARALLAX HERO _________*/

/* Full-viewport by default; grows taller if content needs it */
.parallax-hero{
  /* layout frame */
  min-height: 100svh;
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: var(--panel-width, 50%) 1fr;  /* panel column + image remainder */
  align-items: center;                                  /* vertical centering when there’s room */
  text-align: left;
  position: relative;
  

  /* never clip top/bottom; give breathing room */
  overflow: visible;
  padding-block: clamp(24px, 6vh, 80px);

  /* Parallax background */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  /* compute a left gutter that aligns to the 1600px frame */
  --gutter-left: max(
    clamp(16px, 4vw, 32px),
    calc((100vw - min(100vw, var(--frame-max, 1200px))) / 2)
  );
}

/* Colour panel as its own element so only that area darkens on hover */
.parallax-hero .panel-overlay{
  --panel-current: var(--panel, rgba(0,0,0,.38));
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--panel-current) 0 var(--panel-width, 50%),
      transparent var(--panel-width, 50%));
  z-index: 0;
  pointer-events: auto;                  /* enables hover on the coloured area */
  transition: filter .2s ease, background .2s ease;
}

/* Darken just the coloured area on hover */
.parallax-hero .panel-overlay:hover{
  filter: brightness(.85);
}

/* Content sits in the panel column and can’t exceed it */
.parallax-inner{
  grid-column: 1 / 2;                    /* lock to the coloured panel column */
  position: relative;
  z-index: 1;                            /* above the panel */
  box-sizing: border-box;

  /* Make the content area fill the panel, but cap to frame width */
  width: 100%;
  max-width: min(100%, var(--frame-max, 1375px));

  /* Horizontal spacing:
     - base inner padding
     - plus a frame-aligned gutter so the left edge lines up with a 1600px frame */
  --inner-pad: clamp(24px, 6vw, 80px);
  padding: var(--inner-pad);             /* top/right/bottom */
  padding-left: calc(var(--inner-pad) + var(--gutter-left));

  /* Ensure the rotated label never gets clipped at the top */
  --label-clearance: 40px;
  padding-top: calc(var(--inner-pad) + var(--label-clearance));

  background: transparent;
  color: var(--panel-fg, #fff);

  /* Keep everything wrapping within the panel area */
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 550px;
}

/* Ensure child text never overflows the panel column */
.project-teaser{
  --accent: #8669E6;
  --gap: .75rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap);
  color: #111;

  /* content wraps within the panel width */
  max-width: 100%;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.parallax-inner > *{ margin: 0 0 .75rem; }
.parallax-inner > *:last-child{ margin-bottom: 0; }

/* Mobile / narrow screens: single column
   - Coloured panel covers the entire section/image
   - Disable fixed background for performance
   - Keep content fully inside the (now full-width) panel */
@media (max-width: 900px){
  .parallax-hero{
    background-attachment: scroll;
    grid-template-columns: 1fr;          /* single column */
    --gutter-left: clamp(16px, 4vw, 32px);/* simple safe gutter on mobile */
  }

  /* Make overlay solid across the whole section on mobile */
  .parallax-hero { --panel-width: 100%; }
  .parallax-hero .panel-overlay{ background: var(--panel); }

  .parallax-inner{
    max-width: 100%;
    padding-left: calc(var(--inner-pad) + var(--gutter-left));
  }
}

/* Vertical rotated label (kept from your styles) */
.subheading-03.homepage{
  display: inline-block;
  font-family: Raleway, sans-serif;
  color: #fff;
  letter-spacing: 3.5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 9px;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: 0 0;
}

/* Extras you already had */
.spacer{ height: 4rem; }
.cta{
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--panel-fg, #fff);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.cta .arrow{ flex: 0 0 auto; }
.cta:hover{ text-decoration-thickness: 2px; }
/* === Mobile top-cut fix (paste below your existing CSS) === */
@media (max-width: 900px){
  .parallax-hero{
    /* keep single-column + performance tweak from your earlier rules */
    background-attachment: scroll;
    grid-template-columns: 1fr;

    /* safe-area aware top padding + consistent bottom padding */
    --safe-top: env(safe-area-inset-top, 0px);
    padding-top: calc(clamp(24px, 6vh, 80px) + var(--safe-top));
    padding-bottom: clamp(24px, 6vh, 80px);

    /* keep simple mobile gutter from your earlier rules */
    --gutter-left: clamp(16px, 4vw, 32px);
  }

  /* full purple overlay on mobile (already in your CSS – kept here for completeness) */
  .parallax-hero{ --panel-width: 100%; }
  .parallax-hero .panel-overlay{ background: var(--panel); }

  .parallax-inner{
    /* widen within the panel and align with the mobile gutter */
    max-width: 100%;
    padding-left: calc(var(--inner-pad) + var(--gutter-left));

    /* EXTRA clearance so the rotated label never touches/cuts off at top */
    --label-clearance: clamp(56px, 10vh, 96px); /* was ~40px on desktop */
    padding-top: calc(var(--inner-pad) + var(--label-clearance));
  }

  /* tiny nudge so the rotated label never visually grazes the top edge */
  .subheading-03.homepage{
    margin-top: 8px;
  }
}



/* ---- UX Laws component (scoped) ---- */
  .ux-laws {
    --ux-gap: 1rem;
    --ux-gap-lg: 1.25rem;
    --ux-maxw: 1100px;
    --ux-text: inherit;
    --ux-muted: color-mix(in oklab, currentColor 70%, transparent);
  }

  .ux-laws__sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

  .ux-laws__grid {
    list-style: none; margin: 0 auto; padding: 0;
    max-width: var(--ux-maxw);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ux-gap-lg) var(--ux-gap);
  }

  @media (max-width: 720px) {
    .ux-laws__grid { grid-template-columns: 1fr; }
  }

  .ux-laws__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    justify-self: stretch;
  }

  .ux-laws__icon {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 6px;
  }

  .ux-laws__text {
    color: var(--ux-text);
    line-height: 1.5;
    flex: 1 1 auto;
  }

  .ux-laws__text strong { font-weight: 600; }

  .ux-laws__sublist {
    margin: .25rem 0 0 1.1rem;
    padding: 0;
  }
  .ux-laws__sublist li + li { margin-top: .25rem; }
  .ux-laws__sublist li { color: var(--ux-text); }
  .ux-laws__sublist li strong { color: var(--ux-muted); font-weight: 600; }


  /* FEATURED PRODUCT IMAGES */
/* Grid: [gutter][600][600][gutter] => content max 1200px */
.section__productfeature{
  display:grid;
  grid-template-columns: 1fr minmax(0,600px) minmax(0,600px) 1fr;
  grid-template-rows: auto auto auto; /* top content | image | bottom content */
  gap: clamp(12px, 2.5vw, 24px);
  width:100%;
  margin:0 auto;
  padding: clamp(12px, 3vw, 28px) 0;
  color: var(--pf-fg,#333);
}

/* Image stays inside the same 1200px center band as the text */
.section__productfeature .pf-image{
  grid-column: 2 / 4; /* columns 2+3 only (max 1200px) */
  grid-row: 2;
  margin:0;
}
.section__productfeature .pf-image img{
  display:block;
  width:100%;   /* fill the 1200px band */
  height:auto;  /* preserve aspect ratio; no cropping */
}

/* Single content card (never overlaps the image because it's on a different row) */
.section__productfeature .pf-card{
  grid-column: 2;                    /* defaults; overridden by data-x */
  grid-row: 1;                       /* defaults; overridden by data-y */
  align-self:center;
  justify-self:start;
  max-width:100%;
  padding: clamp(12px,2.5vw,20px);
  border-radius:16px;
  background: transparent;
}

/* Place the card using the SAME API as your sample */
.section__productfeature[data-y="top"]    .pf-card{ grid-row: 1; }
.section__productfeature[data-y="bottom"] .pf-card{ grid-row: 3; }

.section__productfeature[data-x="left"]  .pf-card{ grid-column: 2; justify-self:start; text-align:left; }
.section__productfeature[data-x="right"] .pf-card{ grid-column: 3; justify-self:end;   text-align:right; }

/* Type */
.pf-kicker{ margin:0 0 .25em; font-size: clamp(.9rem,1.6vw,1rem); color:#4A90E2; }
.pf-title{  margin:.1em 0 .35em; font-size: clamp(1.25rem,2.5vw,2rem); line-height:1.15; }
.pf-text{   margin:0; font-size: clamp(.95rem,1.6vw,1.125rem); line-height:1.45; }

/* Mobile: single column; image still sits between top/bottom content without overlap */
@media (max-width: 768px){
  .section__productfeature{
    grid-template-columns: 1fr minmax(0, min(100%, 1200px)) 1fr;
    grid-template-rows: auto auto auto;
    gap: clamp(10px,3vw,18px);
  }
  .section__productfeature .pf-card{ grid-column: 2; text-align:left; }
  .section__productfeature .pf-image{ grid-column: 2; } /* image also capped to center column */
}


/* INTRODUCTION SPACE */
/* ===== Portfolio Intro Hero ===== */
.pd-hero{
  position: relative;
  width: 100%;
  height: 100dvh;           /* exact screen height */
  min-height: 100vh;        /* fallback */
  overflow: hidden;
  color: var(--fg, #fff);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  isolation: isolate;       /* keep pseudo layers behind content */
}

/* Parallax-ish gradient layers you can tweak via HTML vars */
.pd-hero::before,
.pd-hero::after{
  content:"";
  position:absolute; inset:0;
  z-index:-1;
  background-attachment: fixed;      /* subtle parallax on scroll */
  will-change: transform;
}

/* Main soft gradient */
.pd-hero::before{
  background: linear-gradient(
    var(--angle, 35deg),
    color-mix(in oklab, var(--g1, #6a11cb) 85%, transparent),
    color-mix(in oklab, var(--g2, #2575fc) 85%, transparent),
    color-mix(in oklab, var(--g3, #ADB8FA) 85%, transparent)
  );
}

/* Gentle glows for depth */
.pd-hero::after{
  background:
    radial-gradient(40% 40% at 10% 90%, color-mix(in oklab, var(--g3, #ADB8FA) 22%, transparent) 0%, transparent 70%),
    radial-gradient(60% 60% at 80% 20%, color-mix(in oklab, var(--g2, #2575fc) 25%, transparent) 0%, transparent 60%),
    radial-gradient(40% 40% at 10% 90%, color-mix(in oklab, var(--g1, #6a11cb) 22%, transparent) 0%, transparent 70%);
    
}

/* Centered lockup */
.pd-hero__inner{
  height: 100%;
  max-width: min(92vw, 1000px);
  margin-inline: auto;
  display: grid;
  place-content: center;
  gap: 1rem;
  text-align: center;
  padding: 24px;
}

.pd-hero__kicker{
  letter-spacing:.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .8rem;
  opacity: .9;
  margin: 0;
}
.pd-hero__title{
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2rem, 6vw, 4rem);
}
.pd-hero__subtitle{
  margin: .25rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: .95;
}

/* Pulsating arrow CTA */
.pd-hero__cta{
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 4vh, 36px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.pd-hero__dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: currentColor;
  animation: pd-pulse 1.8s infinite;
}
.pd-hero__cta svg{
  width: 22px; height: 22px;
  animation: pd-bob 1.8s infinite ease-in-out;
}

@keyframes pd-pulse{
  0%,100%{ transform: scale(1); opacity:.7; box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
  60%{ transform: scale(1.15); opacity:1; box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
@keyframes pd-bob{
  0%,100%{ transform: translateY(0); opacity:.85; }
  50%{ transform: translateY(6px); opacity:1; }
}

@media (prefers-reduced-motion: reduce){
  .pd-hero__dot, .pd-hero__cta svg{ animation: none; }
}


.parallax-section {
      height: 100vh; /* Full screen height */
      background: var(--bg) center / cover no-repeat fixed;
    }


.card {
  display: flex;                /* make the card a flex container */
  flex-direction: column;       /* stack image + content vertically */
  height: 100%;                 /* let it stretch to fill the parent */
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.card img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  flex: 1;                      /* ✅ let image grow to fill available space */
  object-fit: cover;            /* ✅ fill without stretching image */
}


/* ===== Carousel styles ===== */
/* Outer frame: scales to container width, keeps 16:9 */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;   /* ✅ cap the size */
  aspect-ratio: 16 / 9;
  margin-inline: auto; /* ✅ keeps it centered within the parent */
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
}

/* Slides strip */
.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
  will-change: transform;
  touch-action: pan-y;
}

/* Each slide fills the frame */
.carousel__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  user-select: none;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* fill entire area */
  object-position: center;
  display: block;
}

/* Edge arrows, centered vertically */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border: 0;
  border-radius: 999px;
  background: var(--arrow-bg);
  color: var(--arrow-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .15s ease;
}
.carousel__btn:hover { background: var(--arrow-bg-hover); }
.carousel__btn:active { transform: translateY(-50%) scale(.96); }
.carousel__btn--prev { left: var(--arrow-pad); }  /* just on the edges */
.carousel__btn--next { right: var(--arrow-pad); }
.carousel__btn span { font-size: 18px; line-height: 1; pointer-events: none; }

/* Optional dots */
.carousel__dots {
  position: absolute;
  inset: auto 0 8px 0;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 1;
}
.carousel__dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.carousel__dot[aria-current="true"] { background: rgba(255,255,255,.9); }

/* Focus outline for a11y */
.carousel:focus-visible,
.carousel__btn:focus-visible {
  outline: 2px solid #5bbcff;
  outline-offset: 2px;
}

/* ===== Float-in headline ===== */
.hero-headline{
  margin: 0 auto;
  max-width: 22ch;
  text-align: center;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(1.6rem, 5vw + 0.4rem, 3.8rem);
  text-wrap: balance;
  display: grid;
  gap: .2em;
}

/* start state */
.float-stagger .line{
  display:block;
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
}

/* visible state (added by JS) */
.float-stagger.is-visible .line{
  animation: floatUp .7s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes floatUp{
  from{ opacity:0; transform: translateY(18px); }
  to  { opacity:1; transform: translateY(0); }
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .float-stagger .line,
  .float-stagger.is-visible .line{
    animation: none; opacity: 1; transform: none;
  }
}



