@charset "utf-8";
/* ================== VARIABLES ================== */
:root{
  --bg:#0f0f11;
  --ink:#121316;
  --ink-2:#1f2125;
  --paper:#efefef;
  --paper-2:#f8f8f8;
  --accent:#7D3BE0;
  --muted:#a8a8a8;

  /* space to clear the left rail */
  --rail-safe: 88px; /* adjusts at tablet below */
}

/* ================== GLOBAL ================== */
*{ box-sizing:border-box; }

/* Prevent bounce chaining on touch and give us control */
html, body { overscroll-behavior: none; }

/* stop horizontal scrolling without hiding vertical overflow */
html, body { width: 100%; overflow-x: clip; }   /* use clip instead of hidden */


/* Stop accidental text selection while dragging */
body.is-rail-dragging {
  user-select: none;
  cursor: grabbing;
}

html {
  scroll-behavior: smooth;
}

html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:#fff;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.4;
}


/* ============== HERO (clean) ============== */

/* soft vignette */
.hero{
  position: relative;
  min-height: 100svh;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(140% 90% at 15% 50%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 45%),
    radial-gradient(120% 100% at 85% 60%, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 65%);
  pointer-events:none; z-index:0;
}

.hero-inner{
  width: min(1280px, 94vw);
  margin: 0 auto;
  position: relative;
}

/* --- Base: phones first (card above dino, centered) --- */
.hero-inner{
  display: grid;
  grid-template-rows: auto auto;         /* 1) text card  2) dino */
  justify-items: center;
  align-content: center;                  /* vertical centering of the group */
  row-gap: clamp(12px, 4vh, 28px);
  padding: clamp(12px, 4vh, 22px) 16px clamp(24px, 7vh, 48px);
  min-height: 100svh;
}

.hero-center{
  min-height: auto;
  display: grid;
  place-items: center;                    /* centers the dino */
  text-align: left;
  position: relative;
  z-index: 1;                             /* under the card overlay on desktop */
}

.dino-center{
  width: clamp(260px, 78vw, 520px);
  height:auto;
  opacity:.92;
  filter: grayscale(100%) contrast(1.08);
  user-select:none; pointer-events:none;
}
@keyframes slowSway { 0%,100%{transform:translateY(0) rotate(.1deg)} 50%{transform:translateY(3px) rotate(-.15deg)} }
.dino-center{ animation: slowSway 9s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce){ .dino-center{ animation:none; } }

.hero-aside{
  position: static;                       /* in flow on mobile */
  text-align: center;
  display: grid; gap: 8px;
  width: 100%;
  max-width: 560px;
  padding: clamp(10px, 3vw, 14px) clamp(12px, 4vw, 18px);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15,16,18,.28), rgba(15,16,18,.18));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
}

.hero-subtitle{
  margin:0;
  font-family:'Red Hat Display',sans-serif;
  font-weight:300;
  font-size: clamp(18px, 5.6vw, 24px);
  letter-spacing:.02em;
  color:#e9e9e9;
}
.tagline{
  margin:2px 0 0 0;
  font-family:"filmotype-lacrosse",cursive,sans-serif;
  font-weight:400;
  font-size: clamp(16px, 4.6vw, 20px);
  line-height:1.2;
  color:#a37cf0;
  text-shadow:0 1px 0 rgba(0,0,0,.35);
}
.tagline::after{
  content:"";
  display:block;
  width: clamp(52px, 22vw, 96px);
  height:2px;
  margin: clamp(6px, .8vw, 10px) auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius:2px;
  opacity:.8;
}

/* --- 481–900px: tablet “soft center” --- */
@media (min-width:481px) and (max-width:900px){
  .hero-inner{
    min-height: 92svh;
    row-gap: clamp(10px, 3vh, 22px);
    padding: clamp(16px, 5vh, 28px) 24px clamp(20px, 6vh, 36px);
  }
  .dino-center{ width: clamp(420px, 72vw, 740px); }
}

/* --- ≥901px: desktop — dino pinned left, card bottom-right --- */
@media (min-width:901px){
  .hero-inner{
    display: block;                       /* free the absolute card */
    min-height: 100dvh;
  }
  .hero-center{
    display: grid;
    align-items: center;
    justify-items: start;                 /* stick left */
    min-height: inherit;
    padding-left: calc(48px + var(--rail-safe));  /* clear the rail */
    padding-right: clamp(24px, 5vw, 48px);
  }
  .dino-center{
    width: clamp(640px, 54vw, 1080px);
    max-width: none;
  }
  .hero-aside{
    position: absolute;
    left: auto;                           /* ensure not shifted by old rules */
    right: clamp(28px, 7vw, 90px);
    bottom: clamp(40px, 12vh, 120px);
    text-align: right;
    max-width: min(520px, 40vw);
    padding: clamp(10px, 1.2vw, 16px) clamp(12px, 1.6vw, 18px);
    background: linear-gradient(180deg, rgba(15,16,18,.32), rgba(15,16,18,.22));
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 16px 32px rgba(0,0,0,.28);
    backdrop-filter: blur(3px);
  }
}

/* --- Polite entrance (uses your .reveal toggling if you keep it) --- */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform:translateY(10px); filter:blur(2px);
           transition:opacity .6s ease, transform .6s ease, filter .6s ease; }
  .reveal.is-in{ opacity:1; transform:none; filter:none; }
}

/* safety: no horizontal overflow from hero pieces */
.hero, .hero-inner, .hero-aside, .hero-center{ overflow-x: clip; }
/* ==== HERO: final, win-the-cascade overrides (add at very end) ==== */
@media (min-width:901px){
  /* pin dino left and give rail breathing room */
  .hero .hero-center{
    display: grid !important;
    justify-items: start !important;
    align-items: center !important;
    min-height: 100dvh !important;

    padding-right: clamp(24px, 5vw, 48px) !important;
  }

  /* consistent desktop scale for the logo/dino */
  .hero .dino-center{
    width: clamp(640px, 54vw, 1080px) !important;
    height: auto !important;
    max-width: none !important;
  }

  /* glass card back on bottom-right */
  .hero .hero-aside{
    position: absolute !important;
    left: auto !important;
    right: clamp(28px, 7vw, 90px) !important;
    bottom: clamp(40px, 12vh, 120px) !important;
    text-align: right !important;
    max-width: min(520px, 40vw) !important;
    padding: clamp(10px, 1.2vw, 16px) clamp(12px, 1.6vw, 18px) !important;
    background: linear-gradient(180deg, rgba(15,16,18,.32), rgba(15,16,18,.22)) !important;
    border: 1px solid rgba(255,255,255,.06) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(3px) !important;
    border-radius: 12px !important;
  }

  /* restore big desktop type */
  .hero .hero-subtitle{ font-size: clamp(42px, 4.8vw, 56px) !important; }
  .hero .tagline{       font-size: clamp(24px, 2.8vw, 34px) !important; }
}

/* tablet tune so the card sits a bit lower than the top */
@media (min-width:641px) and (max-width:900px){
  .hero .hero-inner{
    align-content: center !important;
    row-gap: clamp(12px, 3vh, 24px) !important;
    padding-top: clamp(14px, 6vh, 40px) !important;
  }
}

/* ensure hero never creates side-scroll */
.hero, .hero-inner, .hero-center, .hero-aside{ overflow-x: clip !important; }

/* ===== HERO — final, opinionated patch ===== */

/* Desktop: pin dino left, card bottom-right */
@media (min-width:901px){
  .hero-inner{ width:100% !important; min-height:100dvh !important; position:relative !important; }

  .hero .hero-center{
    display:grid !important;
    justify-items:start !important;      /* stick to the left */
    align-items:center !important;
    min-height:inherit !important;
    padding-left: calc(24px + var(--rail-safe)) !important; /* rail breathing room */
    padding-right: clamp(24px, 5vw, 64px) !important;
    z-index:1 !important;                /* under the card */
  }

  .hero .dino-center{
    width: clamp(620px, 52vw, 1060px) !important;
    height:auto !important;
    max-width:none !important;
    opacity:.92 !important;
  }

  .hero .hero-aside{
    position:absolute !important;
    left:auto !important;                /* kill any old "left:52%" tricks */
    right: clamp(28px, 7vw, 90px) !important;
    bottom: clamp(28px, 10vh, 120px) !important;
    transform:none !important;
    z-index:3 !important;                /* above the dino */
    text-align:right !important;
    max-width:min(560px, 42vw) !important;
    padding: clamp(12px, 1.2vw, 16px) clamp(14px, 1.6vw, 18px) !important;
    background: linear-gradient(180deg, rgba(15,16,18,.38), rgba(15,16,18,.26)) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.32) !important;
    backdrop-filter: blur(6px) !important;
    border-radius: 12px !important;
  }

  /* confident desktop type scale */
  .hero .hero-subtitle{ font-size: clamp(44px, 4.6vw, 58px) !important; }
  .hero .tagline{       font-size: clamp(22px, 2.2vw, 30px) !important; }
}

/* Tablet: stack, centered */
@media (min-width:641px) and (max-width:900px){
  .hero-inner{
    width:min(1280px, 94vw) !important;
    min-height:92svh !important;
    display:grid !important;
    grid-template-rows:auto auto !important;  /* 1) card  2) dino */
    justify-items:center !important;
    align-content:center !important;
    row-gap: clamp(12px, 3vh, 22px) !important;
    padding: clamp(16px, 5vh, 28px) 24px clamp(20px, 6vh, 36px) !important;
  }
  .hero .hero-aside{
    position:static !important;
    margin: 0 auto !important;
    text-align:center !important;
    max-width:min(620px, 86vw) !important;
    z-index:2 !important;
  }
  .hero .hero-center{
    min-height:auto !important;
    display:grid !important;
    place-items:center !important;
    padding: 0 24px !important;
  }
  .hero .dino-center{ width: clamp(420px, 70vw, 740px) !important; }
}

/* Phones: centered group */
@media (max-width:480px){
  .hero-inner{
    width:100% !important;
    min-height:100svh !important;
    display:grid !important;
    grid-template-rows:auto auto !important;
    justify-items:center !important;
    align-content:center !important;
    row-gap: clamp(12px, 4vh, 24px) !important;
    padding: clamp(10px, 4vh, 20px) 16px clamp(20px, 7vh, 40px) !important;
  }
  .hero .hero-center{
    min-height:auto !important;
    display:grid !important;
    place-items:center !important;
    padding: 0 !important;
  }
  .hero .dino-center{ width: clamp(260px, 80vw, 520px) !important; }
  .hero .hero-aside{
    position:static !important;
    text-align:center !important;
    max-width:560px !important;
  }
}

/* Safety: never side-scroll from hero pieces */
.hero, .hero-inner, .hero-center, .hero-aside{ overflow-x: clip !important; }











/* ===== RAIL — clarity + affordance ===== */
.rail{
	 --rail-top-offset: 20px; 
  position: fixed;
  top: 0; bottom: 0; left: 8px;
  width: 72px;                                 /* a bit wider */
  display: flex; flex-direction: column; align-items: center;
  z-index: 12;
  pointer-events: none;                         /* re-enable on focusables below */
}

/* Track with subtle gradient & ticks */
.rail-track{
  position: relative;
  margin-top: 10px;
  width: 4px;                                   /* thicker */
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(180deg,#3a2079 0%, #5c2dab 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* tiny ticks for “timeline” vibe */
.rail-track::before{
  content:"";
  position:absolute; left:50%; top:0; bottom:0;
  width: 10px; transform: translateX(-50%);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 24px,
      rgba(255,255,255,.10) 24px 25px
    );
  pointer-events:none;
}

/* equivalent alternatives */
.rail-track::before{ opacity: 0; pointer-events: none; }
 /* or */
.rail-track::before{ display: none; }

/* Scroll progress */
.rail-fill{
  width: 100%;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, #a884ff 100%);
  box-shadow: 0 0 12px rgba(125,59,224,.6);
}

/* The “jump” button at the top */
.rail-dot{
  pointer-events: auto;
  cursor: pointer;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 3px rgba(125,59,224,.25),
    0 0 16px rgba(125,59,224,.6);
  margin-top: 72px;
  position: relative;
  border: 2px solid rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.rail-dot:hover,
.rail-dot:focus-visible{
  transform: scale(1.12);
  box-shadow:
    0 0 0 4px rgba(125,59,224,.35),
    0 0 22px rgba(125,59,224,.8);
  outline: none;
}

/* chevron drag handle — compact pill + crisp double chevrons */
.rail-chev{
  position: absolute;
	left: 50%;
  transform: translateX(-50%);
  width: 22px;                   /* slim look */
  height: 36px;
  background: #cbb9f5;           /* filled pill like before */
  border: 2px solid rgba(0,0,0,.35);
  border-radius: 12px;
  cursor: grab;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  touch-action: none;            /* we handle dragging */
  -webkit-user-select: none; user-select: none;
	z-index: 2;   
}

/* crisp, centered double-chevron glyph */
.rail-chev::after{
  content:"";
  position:absolute; inset:0;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='12' height='18' viewBox='0 0 12 18' fill='none' stroke='%231b0f36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='2,6 6,2 10,6'/>\
<polyline points='2,12 6,8 10,12'/>\
</svg>") center / 12px 18px no-repeat;
  pointer-events:none;
  opacity:.95;
}

.rail-chev:hover,
.rail-chev:focus-visible{
  background:#e1d6ff;
  box-shadow: 0 6px 14px rgba(0,0,0,.32);
}
.rail-chev.is-dragging{
  cursor: grabbing;
  transform: translateX(-50%) scale(0.98);
}


/* Blinking / pulsing attention dot */
@keyframes railPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
    box-shadow:
      0 0 0 3px rgba(125,59,224,.25),
      0 0 12px rgba(125,59,224,.6);
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
    box-shadow:
      0 0 0 5px rgba(125,59,224,.35),
      0 0 20px rgba(125,59,224,.8);
  }
}

.rail-dot {
  animation: railPulse 1.8s ease-in-out infinite;
}

@keyframes chevNudge {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%     { transform: translateX(-50%) translateY(6px); opacity: .85; }
}
.rail-chev.is-idle {
  animation: chevNudge 2.2s ease-in-out infinite;
}


/* Label pill: clearer & readable */
.rail-label{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 800;
  letter-spacing: .28em;
  font-size: .72rem;
  color: #1b0f36;
  margin-bottom: 24px;
  opacity: 1;
  background: #cbb9f5;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 10px 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* Optional tooltip for the dot */
.rail-dot[data-tip]::before{
  content: attr(data-tip);
  position:absolute; left: 22px; top: -6px;
  font: 600 11px/1.2 'Montserrat', sans-serif;
  background: rgba(15,16,18,.85);
  color:#fff; padding:6px 8px; border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  transform: translateY(-8px);
  opacity:0; pointer-events:none; transition: .18s ease;
}
.rail-dot:hover::before,
.rail-dot:focus-visible::before{
  opacity:1; transform: translateY(0);
}

/* allow only dot & chevron to take input */
.rail { pointer-events: none; }
.rail * { pointer-events: none; }
.rail-dot, .rail-chev { pointer-events: auto; }

/* Only the jump dot is clickable */
.rail-dot,
.rail-dot * { pointer-events: auto; touch-action: manipulation; }

.rail-dot { width: 14px; height: 14px; }

/* Chevron hint must not capture gestures */
.rail-dot::after { pointer-events: none; }

/* Track explicitly inert too (belt & suspenders) */
.rail-track,
.rail-fill { pointer-events: none; }


@media (hover: none) {
  .rail { touch-action: pan-y; }
}












/* ======== WORK SECTION ======== */
.work{
  position:relative;
  background: linear-gradient(180deg, var(--ink-2), #26292f);
  color:#fff;
  padding: 72px 0 96px;           /* top/bottom breathing room */
}

.work-inner{
  width:min(1280px, 92vw);
  margin:0 auto;
}

/* header row */
.work-head{
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  margin-bottom:28px;
}
.work-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 2px rgba(125,59,224,.25);
  margin-left:2px;
}
.work-title{
  margin:0;
  font-family:'Red Hat Display', sans-serif;
  font-weight:900;
  letter-spacing:.04em;
  font-size: clamp(20px, 3.2vw, 32px);
}
.work-title span{ color:var(--accent); }
.work-meta{
  justify-self:end;
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#cbb9f5;
  opacity:.9;
}

/* grid */
.work-grid{
  --gap: 36px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

/* card base */
.work-card{
  position:relative;
  display:block;
  aspect-ratio: 16 / 9;
  border-radius:22px;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  background:#3a3e45;
  box-shadow: 0 18px 38px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.03) inset;
  transform: translateZ(0);

  /* NEW: enables container query units (cqi) */
  container-type: inline-size;
}

.work-front{
  position:absolute; inset:0;
  display:grid;
  grid-template-rows: var(--logo-box-h) auto;   /* logo area + text area */
  align-content:center;
  justify-items:center;
  gap: clamp(6px, 2cqi, 12px);
  padding: var(--pad);
  z-index:2;
  transition: opacity .35s ease, transform .35s ease;

  /* NEW tokens that scale with card width */
  --pad: clamp(14px, 4cqi, 24px);
  --logo-box-h: clamp(76px, 28cqi, 160px);     /* consistent logo area */
}
/* the fixed “logo frame” */
.work-logo-box{
  align-self:center;
  inline-size: 100%;
  block-size: 100%;               /* equals --logo-box-h */
  display:flex;
  align-items:center;
  justify-content:center;
}



/* text block: uniform sizing + wrapping */
.work-front p{
  margin:0;
  font-weight:800;
  font-size: clamp(14px, 3.2cqi, 18px);
  line-height: 1.2;
  text-align:center;
  text-wrap: balance;             /* nicer breaks where supported */

  /* optional: limit to 2 lines to avoid messy cards */
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* hover image layer */
.work-hover{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  opacity:0;
  transition: opacity .4s ease;
  filter: saturate(1.02) contrast(1.02);
}

/* subtle gradient to help text legibility when the image fades in */
.work-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.22) 100%);
  opacity:0; transition: opacity .4s ease; z-index:1;
}

/* interaction */
.work-card:hover .work-hover,
.work-card:focus-visible .work-hover{ opacity:1; }
.work-card:hover::after,
.work-card:focus-visible::after{ opacity:1; }
.work-card:hover .work-front{ opacity:0; transform: translateY(-4px); }

/* color themes per card (match your comp tones) */
.work-card.cedar   { background:#d9dadc; color:#111; }
.work-card.sacred  { background:#dfe4df; color:#111; }
.work-card.pathways{ background:#efefef; color:#111; }
.work-card.miarts  { background:#6c3be0; }
.work-card.svsu    { background:#bfc2c7; color:#111; }
.work-card.other   { background:#6b7a88; } /* purple tile */


/* Let front layer stack logo + text cleanly */
.work-front{ 
	align-items: center;     /* was flex-start */
  text-align: center;/* left-align stack */
}

/* Logo sizing: responsive, non-distorting */
.work-logo{
  max-inline-size: 100%;
  max-block-size: 100%;
  width:auto; height:auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}


/* Optional: center logos on narrow cards if you want */
@media (max-width: 640px){
  .work-front{ align-items: center; text-align:center; }
  .work-subtitle{ margin-left: 0; }
}

/* Scale down logo + text on tablets/phones */
@media (max-width: 680px) and (min-width: 480px){
  .work-logo{
    max-width: clamp(180px, 60%, 300px); /* smaller cap */
    margin-bottom: 8px;
  }

  .work-front p,
  .work-front h3{
    font-size: clamp(16px, 3vw, 20px);    /* shrink slightly */
  }
}


/* Extra tightening below 480px */
@media (max-width: 480px){
  .work-logo{
     max-width: clamp(150px, 55%, 240px); /* tighter fit */
  }

  .work-front p,
  .work-front h3{
    font-size: clamp(14px, 4vw, 18px);
  }
}


/* -------- 680px → 480px: make cards' text smaller -------- */
@media (max-width: 680px) and (min-width: 480px){
  /* section title */
  .work-title{
    font-size: clamp(18px, 2.6vw, 24px);
  }
  /* per-card text */
  .work-front p,
  .work-front h3{
    font-size: clamp(12px, 2.3vw, 16px);
    line-height: 1.2;
  }
}

/* -------- 480px → 420px: a bit smaller again -------- */
@media (max-width: 480px) and (min-width: 420px){
  .work-title{
    font-size: clamp(16px, 3.6vw, 22px);
  }
  .work-front p,
  .work-front h3{
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.2;
  }
}

/* Subtitle under the logo */
.work-subtitle{
  margin: 10px 0 0 2px;
  font-family:'Montserrat', sans-serif;
  font-weight:800;
  font-size: clamp(20px, 1vw, 16px);
  color:#e8e8e8;
  opacity:.95;
}

/* If you keep a small heading under the logo instead of a <p> */
.work-title-inline{
  margin: 12px 0 0 2px;
  font-weight:800;
  font-size: clamp(16px, 1.2vw, 20px);
  letter-spacing:.01em;
}

/* Keep your existing hover behavior — it will fade this whole block out */






/* ========== CONTACT (clean) ========== */
.contact{
  position: relative;
  background: var(--paper);
  color: #111;
  padding: 60px 0 96px;      /* trimmed top padding since banner is gone */
  overflow: hidden;
}

.contact-inner{
  width: min(1280px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;                /* content above watermark */
}

/* Large watermark: stack “CONTACT” and “ME” */
.contact-watermark{
  position: absolute;
  inset: 0 0 auto 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  display: grid;             /* allow multi-line layout */
  row-gap: .05em;
  white-space: normal;       /* no forced single line */
  font-size: clamp(96px, 20vw, 220px);
  line-height: .88;
  color: var(--ink);
  opacity: .10;
  padding-top: 12px;
}
.contact-watermark span{ opacity: .17; display:block; }

/* Intro + form */
.contact-intro,
.contact-form{ position: relative; z-index: 2; }

.contact-intro{
  margin: 18px 0 28px 0;
  padding-left: 84px;
  max-width: 820px;
}
.contact-intro h3{
  margin: 0 0 6px 0;
  font-weight: 800;
  color: var(--accent);
  font-size: clamp(18px, 2vw, 26px);
}
.contact-intro p{
  margin: 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: #222;
}

/* Form grid */
.contact-form{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 48px;
  row-gap: 28px;
  padding: 6px 84px 0 84px;
}
.field{ display: flex; flex-direction: column; }
.field.two-col{ grid-column: span 6; }
.field.full{ grid-column: 1 / -1; }

.field label{
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .78rem;
  color: #111;
  margin-bottom: 12px;
}
.field input,
.field textarea{
  background: transparent;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.4;
  border: none;
  border-bottom: 2px solid #222;
  padding: 10px 2px 12px 2px;
  outline: none;
  resize: vertical;
  caret-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder{ color:#3f3833; opacity:.55; }
.field input:focus-visible,
.field textarea:focus-visible{
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 0 var(--accent);
}
.field textarea{ min-height: 160px; }

/* Submit */
.actions{ grid-column: 1 / -1; padding-top: 6px; }
.btn-outline{
  appearance: none;
  border: 2px solid var(--accent);
  background: transparent;
  color:#111;
  font-family:'Montserrat',sans-serif;
  font-weight:600;
  letter-spacing:.08em;
  font-size:.95rem;
  padding:10px 22px;
  border-radius:8px;
  cursor:pointer;
  transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn-outline:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(125,59,224,.18);
  background: rgba(125,59,224,.08);
}

/* -------- Responsive (contact-only) -------- */
@media (max-width: 680px){
  .contact-intro, .contact-form{ padding-left:56px; padding-right:20px; }
  .contact-form{ column-gap:28px; row-gap:24px; }
  .contact-watermark{ font-size: clamp(64px, 22vw, 148px); }
}

@media (max-width: 480px){
  .contact-intro, .contact-form{ padding-left:20px; padding-right:20px; }
  .contact-form{ grid-template-columns:1fr; row-gap:20px; }
  .field.two-col, .field.full{ grid-column:1; }
  .contact-watermark{ font-size: clamp(56px, 24vw, 120px); }
  .btn-outline{ width:100%; }
}


.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }


/* ======= FOOTER ======= */
.site-footer{
  position: relative;
  background: var(--ink);          /* dark block */
  color: #e5e5e5;
  padding: clamp(88px, 10vw, 120px) 0 clamp(48px, 6vw, 64px);
  overflow: hidden;
}

.footer-inner{
  width: min(1280px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;                      /* above the arcs */
  display: grid;
  place-items: center;
  gap: clamp(18px, 3vw, 28px);
}

/* optional nav — centered */
.footer-nav{
  display: grid;
  grid-auto-flow: row;
  gap: 10px;
  justify-items: center;
  margin-top: clamp(10px, 2vw, 12px);
}
.footer-nav a{
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  color: #9aa1a9;                  /* muted like comp */
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;   /* Gotham-ish */
  font-weight: 800;                /* bold caps */
  letter-spacing: .18em;
  font-size: clamp(13px, 1.2vw, 16px);
  text-transform: uppercase;
  transition: color .2s ease;
}
.footer-nav a::before{
  content:"";
  width: 8px; height: 8px; border-radius: 50%;
  background: #5a5f66;             /* gray bullet */
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18);
  transform: translateY(1px);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.footer-nav a:hover{
  color: #fff;
}
.footer-nav a:hover::before{
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(125,59,224,.25);
}

/* brand mark center */
.footer-brand img{
  width: clamp(160px, 26vw, 320px);
  height: auto;
  display: block;
  filter: brightness(1.05);
}

/* socials */
.footer-social{
  display: grid;
  grid-auto-flow: column;
  gap: 14px;
  align-items: center;
}
.social-link{
  color: #fff;
  opacity: .92;
  transition: transform .15s ease, color .2s ease, opacity .2s ease;
}
.social-link:hover{
  transform: translateY(-2px);
  color: var(--accent);
  opacity: 1;
}

/* copyright */
.footer-copy{
  color: #a5a9ad;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-top: 4px;
}
















/* Subtle slide on content only */
.page-fade{
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp{
  to { opacity: 1; transform: none; }
}








/* ---------- About page containers ---------- */
/* Add this near the end of mainstyling.css */

/* Replace your previous body.about-page animation */


.about-inner{ width: min(1280px, 92vw); margin: 0 auto; position: relative; }

.about-hero{
  position: relative;
  background: var(--paper);
  padding: clamp(28px, 5vw, 44px) 0 0;
  color: #111;
  overflow: hidden;
}
.about-hero .about-inner{
  display: grid;
  grid-template-columns: 0.52fr 0.48fr;
  gap: clamp(18px, 4vw, 28px);
  align-items: center;
  padding-left: calc(56px + var(--rail-safe)); /* clear the rail */
}

/* dark hello banner */
.hello-card{
  background: linear-gradient(90deg, #2a2e33, #1f2227);
  color: #fff;
  padding: clamp(18px, 3vw, 22px) clamp(18px, 3vw, 22px);
  border-left: 6px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.hello-card h1{
  margin:0 0 8px 0;
  font-weight:800; font-size: clamp(24px, 3vw, 28px);
  letter-spacing:.01em;
}
.hello-card .statement{
  margin:0; font-family:'Red Hat Display',sans-serif; font-weight:700;
  letter-spacing:.18em; font-size:.7rem; opacity:.9;
}
.hello-card .note{
  margin:8px 0 0; font-size:.78rem; opacity:.65;
}

/* portrait card */
.portrait{
  margin:0; display:grid; place-items:center; background:#e7e7e7;
  padding: clamp(12px, 2vw, 16px);
  aspect-ratio: 1 / 1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.portrait img{ max-width: 78%; height:auto; object-fit:contain; filter: grayscale(1) contrast(1.05); }



/* copy section over light bg */
.about-copy{
  background: var(--ink-2);
  color: #e9e9e9;
  padding: clamp(28px, 5vw, 40px) 0 clamp(18px, 4vw, 28px);
}
.about-copy .about-inner{
  display:grid; grid-template-columns: 0.56fr 0.44fr; gap: clamp(18px, 4vw, 28px);
  padding-left: calc(56px + var(--rail-safe));
}
.h1{ font-family:'Red Hat Display',sans-serif; font-weight:900; letter-spacing:.02em; font-size: clamp(18px,2.4vw,28px); margin: 0 0 10px; }
.h2{ font-family:'Red Hat Display',sans-serif; font-weight:900; letter-spacing:.02em; font-size: clamp(16px,2vw,22px); margin: 0 0 6px; }
.about-copy p{ margin: 0 0 10px 0; color: #d7d7d7; }



.btn-outline {
  display: inline-block; /* makes link behave like button */
  text-align: center;
  text-decoration: none; /* removes underline */
}

/* skills + software*/
/* ================== ABOUT — Skills & Software ================== */
.about-skills{
  background: var(--accent); /* changed from var(--ink-2) */
  color: #e9e9e9;
  padding: clamp(28px, 5vw, 48px) 0;
}

.skills-inner{
  display: grid;
  grid-template-columns: 0.48fr 0.52fr; /* skills left / software right */
  gap: clamp(18px, 4vw, 36px);
  padding-left: calc(56px + var(--rail-safe));
}

/* left column: skills */
.eyebrow{
  margin: 0 0 10px 0;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 900;
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--accent-2);
}
.skill-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.skill-list li{
  position: relative;
  padding-left: 18px;
  font-family: 'Montserrat', sans-serif;
  color: #d7d7d7;
}
.skill-list li::before{
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}



/* right column: software with “bar graphic” extending toward the middle */
.software-col{
  position: relative;
  display: grid;
  gap: clamp(12px, 2.6vw, 18px);
  padding-right: min(6vw, 48px);
}

/* decorative bar (extends left toward the grid center) */
.software-col::before{
  content: "";
  position: absolute;
  top: clamp(6px, 1.8vw, 10px);
  left: -6vw;                     /* reach into the middle */
  right: 40%;                     /* length control */
  height: 8px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(104,43,215,.22);
  pointer-events: none;
}

/* software header row */
.soft-head{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.soft-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.soft-title{
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #fff;
}
.soft-sub{
  margin-top: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  color: #cfcfcf;
}

/* software grid (badges) */
.soft-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.soft-grid li{
  background: #2b2e33;
  color: #efefef;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 8px 12px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .9rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

/* ===== Proficiency bars (6 bars) ===== */
.soft-bars{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: clamp(12px, 2.2vw, 18px); /* space before the title block */
}
.soft-bars .bar{
  position: relative;
  height: 10px;
  background: rgba(255,255,255,.14); /* track */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.soft-bars .bar::before{
  content:"";
  position:absolute;
  inset: 0 0 0 auto;       /* top | right | bottom | left (flipped) */
  width: calc(var(--skill) * 100%);
  background: var(--bar-color);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}


/* Optional tiny label on each bar (shows on hover/focus) */
.soft-bars .bar::after{
  content: attr(data-label);
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  font: 700 10px/1 'Montserrat', sans-serif;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
  pointer-events: none;
  opacity: .0;
  transition: opacity .2s ease;
}
.soft-bars .bar:hover::after{ opacity: .9; }

/* Give the title block comfortable spacing below bars */
.soft-head{ margin-top: 2px; }

/* ===== Match badge colors to bars via a left accent stripe ===== */
.soft-grid li{
  position: relative;
  background: #2b2e33;
  color: #efefef;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .9rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.soft-grid li::before{
  content:"";
  position:absolute; left: 8px; top: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  transform: translateY(-50%);
}

/* Map each badge to the same color as the bars (by order) */
.soft-grid li:nth-child(1)::before{ background:#FF9A00; } /* Illustrator */
.soft-grid li:nth-child(2)::before{ background:#31A8FF; } /* Photoshop  */
.soft-grid li:nth-child(3)::before{ background:#FF3366; } /* InDesign   */
.soft-grid li:nth-child(4)::before{ background:#0ACF83; } /* Figma      */
.soft-grid li:nth-child(5)::before{ background:#7A70FF; } /* AfterFX    */
.soft-grid li:nth-child(6)::before{ background:#9999FF; } /* Premiere   */


/* ================== ABOUT — Interests / Pie Placeholder ================== */
.about-interests{
  background: var(--paper);
  color: #111;
  padding: clamp(28px, 5vw, 56px) 0;
}
.about-interests .about-inner{
  display: grid;
  place-items: center;
  gap: 12px;
}
.pie-wrap{ text-align: center; }
.pie{
  width: clamp(220px, 32vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--accent) 0 25%,
      #d9d2cd 25% 45%,
      var(--accent-2) 45% 65%,
      #8e7f77 65% 80%,
      #c8c2bb 80% 100%
    );
  box-shadow:
    inset 0 0 0 10px var(--paper-2),
    0 18px 36px rgba(0,0,0,.16);
  border: 1px solid rgba(0,0,0,.06);
}
.pie-caption{
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #444;
  font-size: .95rem;
}

/* --- About: portrait bigger and in color (override previous rules) --- */
.portrait{
  width: clamp(480px, 42vw, 640px);         /* larger frame */
  aspect-ratio: 1 / 1;
}
.portrait img{
  max-width: 90%;
  height: auto;
  object-fit: contain;
  filter: none !important;                  /* remove B&W */
}

/* keep stacked layout breakpoint you set, just let the portrait stay big */
@media (max-width: 1080px){
  .portrait{ width: min(82vw, 560px); }
}

/* --- Interests legend (colors match your pie slices) --- */
.interests-legend{
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  color: #444;
}
.interests-legend .swatch{
  display:inline-block; width:10px; height:10px; border-radius:50%;
  margin-right:8px; vertical-align:middle;
  box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}
/* Map to your conic-gradient colors: accent, #d9d2cd, accent-2, #8e7f77, #c8c2bb */
.sw-1{ background: var(--accent); }
.sw-2{ background: #d9d2cd; }
.sw-3{ background: var(--accent-2); }
.sw-4{ background: #8e7f77; }
.sw-5{ background: #c8c2bb; }

/* --- Tiny readability polish for the hello card --- */
.hello-card .statement{ letter-spacing:.08em; text-transform:uppercase; }
.hello-card .note em{ font-style: italic; opacity:.9; }



/* Keep two columns in ABOUT */
.about-copy .about-inner{
  display:grid;
  grid-template-columns: 0.56fr 0.44fr;
  gap: clamp(18px, 4vw, 28px);
  padding-left: calc(56px + var(--rail-safe));
}
.copy-left, .copy-right{ min-width: 0; }

/* Portrait bigger + in color */
.portrait{ width: clamp(480px, 42vw, 640px); aspect-ratio: 1/1; }
.portrait img{ max-width: 90%; height:auto; object-fit:contain; filter:none !important; }
@media (max-width:1080px){ .portrait{ width:min(82vw,560px); } }

/* Skills grid */
.skills-inner{
  display:grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: clamp(18px, 4vw, 36px);
  padding-left: calc(56px + var(--rail-safe));
}
.software-col{ display:grid; gap: clamp(12px, 2.6vw, 18px); padding-right: min(6vw,48px); }

/* Software headings */
.soft-title{
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(16px, 2.4vw, 22px);
  color:#fff;
}
.soft-sub{ margin-top:2px; color:#cfcfcf; }

/* Interests legend (works without the pie) */
.interests-legend{
  margin: 6px 0 0;
  padding: 0;
  list-style:none;
  display:grid;
  gap:8px;
  font-family:'Montserrat',sans-serif;
  color:#444;
}
.interests-legend .swatch{
  display:inline-block; width:10px; height:10px; border-radius:50%;
  margin-right:8px; vertical-align:middle;
  box-shadow:0 0 0 2px rgba(0,0,0,.06);
}
.sw-1{ background: var(--accent); }
.sw-2{ background: #d9d2cd; }
.sw-3{ background: var(--accent-2); }
.sw-4{ background: #8e7f77; }
.sw-5{ background: #c8c2bb; }


/* layout: pie left, legend right on desktop; stacked on mobile */
.pie-wrap{ display:grid; gap:16px; justify-items:center; }
@media (min-width: 900px){
  .pie-wrap{ grid-template-columns: auto 1fr; align-items:center; }
  .interests-key{ justify-self:start; }
}

/* legend */
.interests-key{
  list-style:none; margin:0; padding:0;
  display:grid; gap:10px; max-width:56ch;
}
.interest{
  --dot:#999; /* per-item color below */
  display:grid; grid-template-columns:auto 1fr; align-items:baseline;
  column-gap:12px;
  padding:8px 12px;
  background: rgba(0,0,0,.035);
  border-radius:10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.interest:hover{ background: rgba(0,0,0,.06); }

/* big colored percent */
.interest .pct{
  min-width: 4ch;               /* aligns numbers vertically */
  text-align:right;
  font: 900 clamp(18px,2.2vw,22px)/1 'Red Hat Display',sans-serif;
  color: var(--dot);
}

/* description */
.interest .label{
  font: 500 1rem/1.45 'Montserrat',sans-serif;
  color:#444;
}

/* map legend colors to your pie slices (matches your conic-gradient) */
.interest.i-1{ --dot: var(--accent); }   /* Dinosaurs 25%   */
.interest.i-2{ --dot: #ffffff; }         /* Marine 20%      */
.interest.i-3{ --dot: var(--accent-2); } /* Music 20%       */
.interest.i-4{ --dot: #8e7f77; }         /* Theater 15%     */
.interest.i-5{ --dot: #c8c2bb; }         /* Animation 20%   */




/* Stack nicely on smaller screens */
@media (max-width:980px){
  .about-copy .about-inner{ grid-template-columns:1fr; padding-left:20px; padding-right:20px; }
  .skills-inner{ grid-template-columns:1fr; padding-left:20px; padding-right:20px; }
}


/* ================== RESPONSIVE ================== */
@media (max-width: 980px){
  .skills-inner{
    grid-template-columns: 1fr;
    padding-left: 20px; padding-right: 20px;
  }
  .software-col::before{
    left: 0; right: 35%;
  }
  .soft-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .soft-grid{ grid-template-columns: 1fr; }
}

/* rounded corners feel stronger on mobile, soften a bit on desktop */
@media (min-width: 1000px){
  .work-card{ border-radius:26px; }
}

/* 2) When we no longer have room for two 460px columns, stack them */
@media (max-width: 1080px){
  .about-hero .about-inner{
    grid-template-columns: 1fr;     /* stack */
    justify-items: center;
    gap: 20px;
    padding-left: 20px;             /* ignore rail-safe when stacked */
    padding-right: 20px;
  }

  .portrait{
    width: min(78vw, 520px);        /* stay large, but fit smaller screens */
  }

  .hello-card{
    max-width: min(720px, 92vw);
  }
}

/* ================== RESPONSIVE ================== */

/* Between 1400px and 1020px, lock to two columns */
@media (max-width: 1400px) and (min-width: 980px){
  .soft-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soft-grid li{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px 14px 10px 16px;
  }
  .software-col{ padding-right: 24px; }
  .software-col::before{ left: -3vw; right: 44%; }
}


/* =========================
   1024px → 768px polish
   ========================= */
@media (max-width: 1024px) and (min-width: 769px){

  /* 1) HERO: force stack + order (hello first, portrait second) */
  .about-hero .about-inner{
    display: grid;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "hello"
      "portrait";
    justify-items: center;
    gap: 20px;
    padding-left: 20px;   /* ignore rail-safe while stacked */
    padding-right: 20px;
  }
  .hello-card{ grid-area: hello; max-width: min(720px, 92vw); }
  .portrait{
    grid-area: portrait;
    width: min(78vw, 520px);   /* keep it big but not overflowing */
    aspect-ratio: 1/1;
    justify-self: center;
  }

  /* 2) TYPE SCALE: slightly smaller, tighter rhythm */
  /* Base body size down a notch for this band */
  body{ font-size: 15.5px; }          /* was ~16px */

  /* Headlines you use on this page */
  .h1{ font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; }
  .h2{ font-size: clamp(18px, 1.9vw, 22px); line-height: 1.28; }
  .hello-card h1{ font-size: 26px; }  /* keep bold but compact */
  .hello-card .statement{ font-size: .72rem; letter-spacing: .1em; }
  .hello-card .note{ font-size: .78rem; line-height: 1.5; }

  /* Paragraphs & list items site-wide on this page */
  .about-copy p,
  .skill-list li,
  .interests-key .label,
  .soft-sub{
    font-size: .95rem;
    line-height: 1.55;
  }

  /* Skills/software pills don’t squish; 2 columns and tighter padding */
  .soft-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soft-grid li{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 9px 14px 9px 16px;
  }
  .soft-grid li::before{ left: 10px; width: 7px; height: 7px; }

  /* Keep the decorative bar from colliding at this width */
  .software-col{ padding-right: 24px; }
  .software-col::before{ left: -3vw; right: 44%; }

  /* Interests legend readability */
  .interest .pct{ font-size: clamp(16px, 2vw, 20px); }
  .interest .label{ font-size: .98rem; }
}

/* Optional: one more gentle step at ≤768px */
@media (max-width: 768px){
  body{ font-size: 15px; }
  .h1{ font-size: clamp(18px, 2.6vw, 22px); }
  .h2{ font-size: clamp(16px, 2.2vw, 20px); }
  .about-copy p,
  .skill-list li{ font-size: .92rem; line-height: 1.55; }
  .soft-grid{ grid-template-columns: 1fr; }
}


/* 1) Keep two columns (hello | portrait) from 1400 → 981px */
@media (min-width: 981px) and (max-width: 1400px){
  .about-hero .about-inner{
    display: grid;
    grid-template-columns: minmax(420px, 0.52fr) minmax(420px, 0.48fr) !important;
    grid-template-areas: "hello portrait";
    align-items: center;
    gap: clamp(18px, 4vw, 28px);
    padding-left: calc(56px + var(--rail-safe));
    padding-right: 20px;
  }
  .hello-card{ grid-area: hello; max-width: 640px; }
  .portrait{
    grid-area: portrait;
    width: clamp(420px, 38vw, 560px);
    aspect-ratio: 1/1;
    justify-self: center;
  }
}

/* Stacked layout ≤980px */
@media (max-width: 980px){
  .about-hero .about-inner{
    grid-template-columns: 1fr !important;
    padding-inline: 20px;
  }
  .portrait{
    width: 100%;          /* use container width, not vw */
    max-width: 560px;     /* keep your comfy ceiling */
    aspect-ratio: 1/1;
    justify-self: center;
  }
  .portrait img{
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Phone safety ≤480px — rail hidden */
@media (max-width: 480px){
  .rail{ display: none; }
  .about-hero .about-inner{ padding-inline: 16px; } /* optional tighter padding */
  .portrait{ max-width: 520px; }                     /* optional, keeps it snug */
}

/* --- HARD STOP: hero children can’t exceed the viewport on phones --- */
@media (max-width: 980px){
  /* Stack layout already in your CSS; these make the children obey the box */
  .about-hero { overflow-x: visible; } /* don't slice the right edge; keep y hidden if you want */
  .about-hero .about-inner{
    padding-inline: 20px;
  }

  /* Force blocks to size to the container, not viewport math from older rules */
  .about-hero .hello-card,
  .about-hero .portrait{
    width: 100% !important;      /* override the earlier clamp() widths */
    max-width: 560px;            /* your comfy ceiling */
    justify-self: center;
  }

  /* Make sure the image never exceeds its frame */
  .about-hero .portrait img{
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Phone tightening (≤480px) — rail is hidden here */
@media (max-width: 480px){
  .rail{ display: none; }
  .about-hero .about-inner{ padding-inline: 16px; }
  .about-hero .hello-card{ max-width: 520px; }
  .about-hero .portrait{ max-width: 520px; }
}

/* Global guard (keep, since it fixed side-scroll) */
html, body{ width:100%; overflow-x: clip; }

/* Optional: prevent other sections from ever creating horizontal overflow */
.about-copy, .about-skills, .about-interests,
.contact, .site-footer, .case-topbar { overflow-x: clip; }

/* Safety: images never exceed containers site-wide */
img{ max-width:100%; height:auto; }



@media (max-width:680px){
  :root{ --rail-safe: 0px; }      /* rail gets smaller/hidden on mobile */
 
  .rail{ left:6px; width:48px; }
  .rail-label{ font-size:.62rem; }
}

@media (max-width: 680px){
  .work{ padding: 56px 0 80px; }
  .work-inner{ width:min(640px, 92vw); }
  .work-grid{ --gap: 28px; }
}

/* Tablet & Phone: bar full-width, no notch */
@media (max-width: 680px){
  .contact-banner{ width: 100%; }
  .contact-banner::after{ display:none; }
  .contact-intro, .contact-form{ padding-left:56px; padding-right:20px; }
  .contact-form{ column-gap:28px; row-gap:24px; }
  .contact-watermark{ font-size: clamp(64px, 22vw, 148px); }
}

/* Tablet */
@media (max-width: 680px){
  .footer-nav{ gap: 8px; }
  .footer-brand img{ width: clamp(150px, 34vw, 240px); }
  .footer-copy{ font-size: .9rem; }
}




@media (max-width: 480px){
  .work{ padding: 44px 0 72px; }
  .work-inner{ width:92vw; }
  .work-grid{
    grid-template-columns: 1fr; /* single column */
    --gap: 20px;                /* per your note */
  }
  .work-front{ padding: 22px; }
}

@media (max-width: 480px){
  .contact-intro, .contact-form{ padding-left:20px; padding-right:20px; }
  .contact-form{ grid-template-columns:1fr; row-gap:20px; }
  .field.two-col, .field.full{ grid-column:1; }
  .contact-watermark{ font-size: clamp(56px, 24vw, 120px); }
  .btn-outline{ width:100%; }
}

/* Phone */
@media (max-width: 480px){
  .site-footer{ padding-bottom: 56px; }
  .footer-nav{ gap: 6px; }
  .footer-brand img{ width: clamp(140px, 40vw, 220px); }
}


/* =========================================================
   SOFT PURPLE THEME (inviting, warmer neutrals + purple)
   Paste this at the END of mainstyling.css
   Palette reference:
   - Off-black #010101
   - Pearl Bush #e6ddd6
   - Schooner #918983
   - Quincy #5b3629
   - Purple Heart #682bd7
   - Portage #a37cf0
   - Medium Red Violet #bd2e95
========================================================= */

/* 1) Re-map your tokens to the new palette */
:root{
  /* dark surfaces */
  --bg: #121113;           /* softened off-black */
  --ink: #1b1719;          /* deep cocoa-black */
  --ink-2: #232024;        /* slightly lighter dark */

  /* light surfaces */
  --paper:   #e6ddd6;      /* warm light */
  --paper-2: #f3ede8;      /* lighter paper for highlights */

  /* brand accents */
  --accent:   #682bd7;     /* primary purple */
  --accent-2: #a37cf0;     /* light purple */
  --accent-warm:#bd2e95;   /* magenta accent option */

  /* supporting neutrals */
  --muted: #918983;        /* warm gray for text/lines */
  --cocoa: #5b3629;        /* warm brown for tints/shadows */

  /* handy alphas */
  --accent-glow: rgba(104,43,215,.25);
  --muted-20:   rgba(145,137,131,.20);
}

/* 2) Swap any fixed colors to tokens (no layout changes) */



/* work section bg (warmer darks) */
.work{
  background: linear-gradient(180deg, var(--ink-2), #2a262b);
}

/* card theme examples (keep your names, just warmer fallbacks) */
.work-card{ background:#3d373b; }
.work-card.cedar   { background:#e9e5e2; color:#111; }   /* over paper-2 */
.work-card.sacred  { background:#ece8e5; color:#111; }
.work-card.pathways{ background:#f3ede8; color:#111; }
.work-card.miarts  { background:#8e7f77; }
.work-card.svsu    { background:#d9d2cd; color:#111; }
.work-card.other   { background:var(--accent); }

/* contact */
.contact{ background: var(--paper); color:#111; }
.contact-watermark{ color: var(--ink); }
.contact-banner{
  background: rgba(91,54,41,.18);   /* warm gray/brown tint instead of pure black */
}
.banner-label{ color:#d7c8ff; }     /* softened label tint */

/* inputs focus + placeholders already good; keep accent */
.field input::placeholder,
.field textarea::placeholder{ color:#3f3833; opacity:.55; }

/* footer */
.site-footer{ background: var(--ink); }
.site-footer::before{ background: var(--paper); }
.site-footer::after{
  background: #2a262b;     /* matched to left-panel shadow tone */
  opacity:.55;
}

/* footer nav/link neutrals */
.footer-nav a{ color:#a9a29a; }
.footer-nav a::before{
  background:#918983;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.12);
}
.footer-nav a:hover{ color:#fff; }
.footer-nav a:hover::before{
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.hello-card{
  background: linear-gradient(90deg, #2b2629, #201c20);
  border-left: 6px solid var(--accent);
}
.portrait{ background: var(--paper-2); }

/* tiny polish */
.work-card::after{
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.20) 100%);
}

/* === About hero: keep columns steady until they must stack === */

/* 1) On wide screens, give each column a MIN width so they don't shrink */
.about-hero .about-inner{
  grid-template-columns: minmax(460px, 0.52fr) minmax(460px, 0.48fr);
  align-items: center;
}

/* Keep the portrait a consistent, comfy size */
.portrait{
  width: clamp(420px, 38vw, 560px);
  aspect-ratio: 1 / 1;
  justify-self: center;
}

/* Keep the hello card readable; cap width so it doesn't compress */
.hello-card{ max-width: 640px; }

/* Fix the headline sizes so they don't scale down on desktop */
.hello-card h1{ font-size: 28px; }            /* was clamp(...) */
.hello-card .statement{ font-size: .76rem; }
.hello-card .note{ font-size: .8rem; }







