/* Team portrait links and individual profiles. No changes to shared site styles. */
.team-headshot-link{
  position:relative;text-decoration:none;color:var(--navy);isolation:isolate;
}
.team-headshot-link img{transition:transform 180ms ease;transform-origin:center}
.team-bio-pill{
  position:absolute;right:12px;bottom:12px;z-index:1;
  padding:8px 14px;border:1px solid rgba(255,255,255,.4);border-radius:999px;
  color:#fff8e9;background:rgba(4,25,47,.88);font-size:.86rem;font-weight:800;
  line-height:1.4;box-shadow:0 5px 16px rgba(0,0,0,.2);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:1;transform:translateY(0);transition:opacity 180ms ease,transform 180ms ease;
  pointer-events:none;
}
.team-headshot-link:focus-visible{outline:3px solid var(--navy);outline-offset:5px}
.team-headshot-link:focus-visible img{transform:scale(1.04)}
@media (hover:hover) and (pointer:fine){
  .team-bio-pill{opacity:0;transform:translateY(5px)}
  .team-headshot-link:hover img{transform:scale(1.04)}
  .team-headshot-link:hover .team-bio-pill,
  .team-headshot-link:focus-visible .team-bio-pill{opacity:1;transform:translateY(0)}
}
@media (any-pointer:coarse), (max-width:640px){.team-bio-pill{opacity:1;transform:none}}

.profile-page{
  --profile-color:#ae2027;--profile-dark:#7d1118;--profile-footer:#0a2d5f;
  --profile-band:var(--profile-dark);--profile-button:#0a2d5f;
  min-height:100svh;background:var(--profile-footer);
}
.profile-page--lobos{
  --profile-color:#0a2d5f;--profile-dark:#0a2d5f;--profile-footer:#0a2d5f;
  --profile-band:#0a2d5f;--profile-button:#0a2d5f;
}
.profile-page--clyde{--profile-band:#fff8e9}
.profile-page--astro{
  --profile-color:#0a2d5f;--profile-dark:#0a2d5f;--profile-footer:#0a2d5f;
  --profile-band:#0a2d5f;--profile-button:#0a2d5f;
}
.profile-page--glenn{
  --profile-color:#123f74;--profile-dark:#04192f;--profile-footer:#04192f;
}
.profile-page .site-header{
  position:relative;inset:auto;padding:12px 0;background:var(--cream);
  border-bottom:2px solid var(--gold);z-index:2;
}
.profile-page .header-inner{min-height:70px}
.profile-page .header-brand img{height:70px}
.profile-page .nav-chip{background:#13263d}
.profile-page .nav-chip:hover{background:#23496e}
.profile-page a:focus-visible{outline:3px solid var(--gold-light);outline-offset:5px}
.profile-page .site-header a:focus-visible{outline-color:var(--navy)}
.profile-skip{
  position:absolute;top:8px;left:12px;z-index:5;transform:translateY(-160%);
  padding:12px 18px;border-radius:8px;color:var(--navy);background:white;font-weight:800;
}
.profile-skip:focus{transform:none}
.profile-top{
  padding:28px 0 44px;color:var(--cream);
  background:radial-gradient(ellipse at top right,rgba(255,255,255,.07),transparent 65%),
    linear-gradient(145deg,var(--profile-color),var(--profile-dark));
}
.profile-back{display:inline-block;margin-bottom:26px;font-weight:800;text-underline-offset:4px}
.profile-hero{
  display:grid;grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
  align-items:center;gap:clamp(28px,5vw,60px);
}
.profile-portrait{
  display:grid;place-items:end center;align-self:stretch;min-width:0;
  margin:0;aspect-ratio:4/5;overflow:hidden;border:2px solid var(--gold-light);
  border-radius:24px;background:rgba(0,0,0,.13);box-shadow:0 20px 45px rgba(0,0,0,.13);
}
.profile-portrait img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom}
.profile-heading{min-width:0;padding:12px 0}
.profile-brand{display:block;width:min(100%,470px);height:auto;margin:0 0 32px}
.profile-heading .eyebrow{font-size:.78rem;letter-spacing:.14em;color:var(--cream)}
.profile-heading h1{
  margin:.3rem 0 0;font-size:clamp(3.3rem,7.7vw,7.8rem);font-weight:950;
  line-height:.98;letter-spacing:-.045em;text-transform:uppercase;
  text-shadow:0 5px 0 rgba(0,0,0,.2);overflow-wrap:normal;
}
.profile-title{
  margin:24px 0 0;padding-top:16px;border-top:2px solid var(--gold-light);
  font-size:clamp(1.25rem,2.2vw,1.75rem);font-weight:800;line-height:1.4;color:var(--gold-light);
}
.profile-bio-band{padding:0 0 48px;background:var(--profile-band)}
.profile-page--clyde .profile-bio-band,.profile-page--astro .profile-bio-band{padding-top:42px}
.profile-bio{
  padding:clamp(34px,5vw,60px) clamp(22px,4vw,48px);border-radius:24px;
  background:var(--cream);border:1px solid rgba(215,165,47,.28);text-align:center;
  color:var(--navy);box-shadow:0 14px 36px rgba(0,0,0,.09);
}
.profile-ornament{display:flex;align-items:center;justify-content:center;gap:22px;color:#936812;font-size:2rem}
.profile-ornament::before,.profile-ornament::after{content:"";width:min(16vw,150px);height:1px;background:#b88318}
.profile-bio h2{
  margin:12px 0;font-size:clamp(1.8rem,4.3vw,3rem);line-height:1.2;font-weight:950;
  color:#86600f;letter-spacing:.01em;text-transform:uppercase;
}
.profile-motto{margin:22px 0 30px;font-size:.78rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.profile-actions{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}
.profile-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:48px;
  padding:12px 22px;border-radius:14px;border:1px solid var(--navy);text-decoration:none;
  font-weight:800;color:var(--navy);background:#fff8e9;
  translate:0 0;scale:1;
  box-shadow:0 8px 18px rgba(10,45,95,.10),inset 0 1px rgba(255,255,255,.72);
  transition:translate .12s cubic-bezier(.2,.8,.2,1),
             scale .12s cubic-bezier(.2,.8,.2,1),
             box-shadow .14s ease,
             background-color .14s ease,
             color .14s ease;
}
.profile-button--home{
  color:white;background:var(--profile-button);border-color:var(--profile-button);
  box-shadow:0 10px 22px rgba(4,25,47,.18),inset 0 1px rgba(255,255,255,.12);
}
@media (hover:hover) and (pointer:fine){
  .profile-button:hover{background:#e9dfc9}
  .profile-button--home:hover{color:var(--navy);background:#e9dfc9}
}
@media (max-width:680px) and (hover:none) and (pointer:coarse){
  .profile-button:active{
    translate:0 3px;
    scale:.97;
    box-shadow:
      inset 0 3px 8px rgba(10,45,95,.14),
      0 2px 5px rgba(10,45,95,.07);
  }
  .profile-button--home:active{
    box-shadow:
      inset 0 4px 9px rgba(0,0,0,.22),
      0 2px 5px rgba(4,25,47,.08);
  }
}
.profile-bio .profile-button:focus-visible{outline-color:var(--navy)}
.profile-footer{padding:30px 0;color:var(--cream);background:var(--profile-footer)}
.profile-footer .container{display:flex;justify-content:space-between;align-items:center;gap:24px}
.profile-footer strong{font-weight:900;font-size:1.4rem}
.profile-footer p{margin:4px 0 0;font-size:.85rem}
.profile-footer .profile-footer-motto{font:italic 1.2rem Georgia,serif}
.profile-footer .profile-footer-motto a{color:inherit;text-decoration:none;transition:color .16s ease}
.profile-footer .profile-footer-motto a:hover,
.profile-footer .profile-footer-motto a:focus-visible{color:var(--gold-light)}
.profile-photo-placeholder{
  display:grid;place-items:center;width:100%;height:100%;background:#fff;
  color:#0a2d5f;font-size:clamp(7rem,20vw,13rem);font-weight:900;
}
@media (max-width:680px){
  .profile-hero{grid-template-columns:1fr;gap:28px}
  .profile-portrait{width:min(100%,340px);aspect-ratio:1;justify-self:center}
  .profile-heading{text-align:center;padding:0}
  .profile-brand{width:min(100%,340px);margin:0 auto 26px}
  .profile-heading h1{font-size:clamp(3rem,12.5vw,4.5rem)}
  .profile-title{margin-top:18px;padding-top:14px;font-size:1.25rem}
  .profile-top{padding-bottom:32px}
  .profile-bio-band{padding-bottom:32px}
  .profile-actions{flex-direction:column;gap:12px}
  .profile-footer .container{flex-direction:column;text-align:center;gap:24px}
}
@media (max-width:640px){
  .profile-page .site-header{padding:8px 0}
  .profile-page .header-inner{min-height:56px}
  .profile-page .header-brand img{height:56px}
  .profile-page .nav-chip{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  .team-headshot-link img,.team-bio-pill,.profile-button{transition:none}
  .team-headshot-link:hover img,.team-headshot-link:focus-visible img{transform:none}
  .team-bio-pill{transform:none}
}

/* D4 Prime office portrait: crop the landscape desk scene into the vertical profile frame. */
.profile-page--prime .profile-portrait{
  aspect-ratio:5/6;
}
.profile-page--prime .profile-portrait .profile-portrait-image--desk{
  width:100%;
  height:100%;
  object-fit:cover !important;
  object-position:50% 50% !important;
}
@media (max-width:680px){
  .profile-page--prime .profile-portrait{aspect-ratio:1}
}

/* Long-form team biographies */
.profile-bio--longform{
  text-align:left;
}
.profile-bio--longform .profile-ornament,
.profile-bio--longform h2{
  text-align:center;
}
.profile-bio-copy{
  max-width:820px;
  margin:24px auto 34px;
  color:#33475f;
  font-size:1rem;
  line-height:1.78;
}
.profile-bio-copy p{
  margin:0 0 1.15rem;
}
.profile-bio-philosophy{
  margin-top:1.7rem !important;
  color:var(--navy);
  font-size:1.08rem;
  text-align:center;
}


/* Clyde office portrait: preserve the 3:2 desk scene instead of forcing a portrait crop. */
.profile-page--clyde .profile-hero{
  grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);
}
.profile-page--clyde .profile-portrait--desk{
  aspect-ratio:3/2;
  align-self:center;
  place-items:center;
}
.profile-page--clyde .profile-portrait--desk .profile-portrait-image--desk{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
@media (max-width:680px){
  .profile-page--clyde .profile-hero{grid-template-columns:1fr}
  .profile-page--clyde .profile-portrait--desk{
    width:min(100%,560px);
    aspect-ratio:3/2;
  }
}


/* Profiles use the same persistent Clyde Foods header as every other page. */
.profile-page .site-header{
  position:fixed;
  inset:0 0 auto;
  z-index:1000;
  padding:14px 0;
  background:rgba(10,45,95,.98);
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 24px rgba(4,25,47,.14);
}
.profile-page .header-inner{min-height:83px}
.profile-page .header-brand img{height:83px}
.profile-page .nav-chip{background:rgba(4,25,47,.5)}
.profile-page .nav-chip:hover{background:rgba(255,255,255,.16)}
.profile-page .profile-top{padding-top:calc(var(--site-header-height) + 28px)}
.profile-heading .eyebrow{font-size:1rem}
.profile-title{font-size:clamp(1.5rem,2.35vw,2rem)}

@media (max-width:640px){
  .profile-page .site-header{padding:8px 0}
  .profile-page .header-inner{min-height:61px}
  .profile-page .header-brand img{height:61px}
  .profile-page .profile-top{padding-top:calc(var(--site-header-height) + 22px)}
  .profile-heading .eyebrow{font-size:.95rem}
  .profile-title{font-size:1.4rem}
}


/* Astro server-room portrait: use the full 3:2 landscape composition. */
.profile-page--astro .profile-hero{
  grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);
}
.profile-page--astro .profile-portrait--server{
  display:block;
  aspect-ratio:3/2;
  align-self:center;
}
.profile-page--astro .profile-portrait--server .profile-portrait-image--server{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover;
  object-position:center;
}
@media (max-width:680px){
  .profile-page--astro .profile-hero{grid-template-columns:1fr}
  .profile-page--astro .profile-portrait--server{
    width:min(100%,560px);
    aspect-ratio:3/2;
  }
}


/* Exact header-navy treatment for Astro and Lobos. */
.profile-page--astro .profile-top,
.profile-page--astro .profile-bio-band,
.profile-page--astro .profile-footer,
.profile-page--lobos .profile-top,
.profile-page--lobos .profile-bio-band,
.profile-page--lobos .profile-footer{
  background:#0a2d5f;
}


/* Final profile color/layer consistency pass. */
.profile-footer{
  background:#0a2d5f;
}
.profile-page--prime{
  --profile-band:#ae2027;
}
.profile-page--prime .profile-top,
.profile-page--prime .profile-bio-band{
  background:var(--profile-band);
}

/* Clyde's expandable internal memo. Native details supports keyboard interaction. */
.clyde-note{max-width:820px;margin:36px auto 0;text-align:left}
.clyde-note summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;list-style:none;padding:18px 0;border-top:1px solid #b88318;font-weight:800;font-size:1.15rem;color:var(--navy)}
.clyde-note summary::-webkit-details-marker{display:none}
.clyde-note summary:focus-visible{outline:3px solid var(--navy);outline-offset:5px}
.clyde-note-arrow{display:inline-block;font-size:1.5rem}
.clyde-note[open] .clyde-note-arrow{transform:rotate(90deg)}
.clyde-memo{position:relative;isolation:isolate;margin-top:14px;padding:clamp(22px,5vw,48px);color:#242424;background:#faf9f5;border:1px solid #d5d0c5;box-shadow:0 8px 22px #00000014;font-family:Georgia,serif;line-height:1.75;overflow-wrap:anywhere}
.clyde-memo::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("/assets/clyde-foods-logo.png") center 42%/min(78%,440px) auto no-repeat;filter:grayscale(1);opacity:.075}
.clyde-memo-header{padding-bottom:18px;margin-bottom:24px;border-bottom:2px solid #444;font-family:ui-monospace,Consolas,monospace;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}
.clyde-memo-header strong{display:block;font-size:1.1rem;letter-spacing:.12em}
.clyde-memo p{margin:0 0 1.1em}
.clyde-memo p:last-child{margin-bottom:0}
.clyde-memo code{font-size:.9em}

/* Shared signature above every biography's navigation. */
.profile-owner-mentality{
  margin:32px auto 22px;
  color:#86600f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:28px;
  font-style:italic;
  font-weight:700;
  line-height:1.3;
  letter-spacing:.025em;
  text-align:center;
  text-shadow:0 1px 0 #fff;
}
.profile-owner-mentality::after{
  content:"";
  display:block;
  width:76px;
  height:2px;
  margin:12px auto 0;
  background:linear-gradient(90deg,transparent,#b88318,transparent);
}

/* Saul contractor profile */
.profile-page--saul{
  --profile-color:#ae2027;
  --profile-dark:#ae2027;
  --profile-footer:#0a2d5f;
  --profile-band:#ae2027;
  --profile-button:#0a2d5f;
}
.profile-page--saul .profile-top,
.profile-page--saul .profile-bio-band{
  background:#ae2027;
}


/* Glenn profile band matches hero blue */
.profile-page--glenn .profile-bio-band{
  background:
    radial-gradient(ellipse at top right,rgba(255,255,255,.07),transparent 65%),
    linear-gradient(145deg,var(--profile-color),var(--profile-dark));
}


/* Meet the Team desktop card motion + tactile press — 2026-09-26 */
.team-headshot-link{
  scale:1;
  transition-property:transform,scale,box-shadow;
  transition-duration:140ms,120ms,180ms;
  transition-timing-function:ease,cubic-bezier(.2,.8,.2,1),ease;
}
.team-headshot-link:active{
  scale:.985;
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .team-headshot-link{
    --clyde-tilt-x:0deg;
    --clyde-tilt-y:0deg;
    transform:perspective(900px) rotateX(var(--clyde-tilt-x)) rotateY(var(--clyde-tilt-y));
    transform-style:preserve-3d;
    translate:0 0;
    rotate:0deg;
    transition:
      transform 140ms ease,
      translate 300ms cubic-bezier(.2,.8,.2,1),
      rotate 300ms cubic-bezier(.2,.8,.2,1),
      scale 120ms cubic-bezier(.2,.8,.2,1),
      box-shadow 260ms ease;
    will-change:transform,translate,rotate;
  }

  /* Keep the pointer-follow depth immediate while the lift/turn remains smooth. */
  .team-headshot-link.is-tilting{
    transition:
      translate 300ms cubic-bezier(.2,.8,.2,1),
      rotate 300ms cubic-bezier(.2,.8,.2,1),
      scale 120ms cubic-bezier(.2,.8,.2,1),
      box-shadow 260ms ease;
  }

  /* Small faux page curl: deliberately subtle, and desktop-only. */
  .team-headshot-link::after{
    content:"";
    position:absolute;
    right:-1px;
    bottom:-1px;
    z-index:3;
    width:34px;
    height:34px;
    pointer-events:none;
    background:
      linear-gradient(135deg,
        rgba(10,45,95,.04) 0 42%,
        rgba(10,45,95,.16) 43% 48%,
        #ead9b8 49% 66%,
        #fff8e9 67% 100%);
    clip-path:polygon(100% 0,100% 100%,0 100%);
    opacity:0;
    transform:translate(18px,18px);
    filter:drop-shadow(-5px -5px 6px rgba(4,25,47,.16));
    transition:
      transform 300ms cubic-bezier(.2,.8,.2,1),
      opacity 180ms ease;
  }

  .team-headshot-link:hover,
  .team-headshot-link:focus-visible{
    translate:0 -5px;
    rotate:1.6deg;
    box-shadow:0 22px 42px rgba(10,45,95,.22);
  }

  .team-headshot-link:hover::after,
  .team-headshot-link:focus-visible::after{
    opacity:1;
    transform:translate(0,0);
  }

  .team-headshot-link:hover:active{
    scale:.985;
  }
}

@media (prefers-reduced-motion:reduce){
  .team-headshot-link{transition:none !important}
}


/* Persistent bio-button touch press — 2026-09-26 */
@media (max-width:680px) and (hover:none) and (pointer:coarse){
  .profile-button.is-clyde-pressed{
    translate:0 4px;
    scale:.965;
    background:#eee2ca;
    box-shadow:
      inset 0 5px 12px rgba(10,45,95,.18),
      inset 0 1px 0 rgba(255,255,255,.45),
      0 2px 4px rgba(10,45,95,.05);
  }
  .profile-button--home.is-clyde-pressed{
    color:white;
    background:#092754;
    box-shadow:
      inset 0 6px 14px rgba(0,0,0,.30),
      inset 0 1px 0 rgba(255,255,255,.08),
      0 2px 4px rgba(4,25,47,.05);
  }
}


/* Betty executive producer profile */
.profile-page--betty{
  --profile-color:#ae2027;
  --profile-dark:#ae2027;
  --profile-footer:#0a2d5f;
  --profile-band:#ae2027;
  --profile-button:#0a2d5f;
}
.profile-page--betty .profile-top,
.profile-page--betty .profile-bio-band{
  background:#ae2027;
}
.profile-coming-soon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%,680px);
  min-height:76px;
  margin:28px auto 34px;
  padding:16px 24px;
  border:2px solid #8b6510;
  border-radius:16px;
  background:linear-gradient(135deg,#f6dc86,#d7a52f);
  color:#4b3505;
  box-shadow:
    0 12px 26px rgba(10,45,95,.14),
    inset 0 1px 0 rgba(255,255,255,.65);
  font-size:clamp(1.2rem,3vw,1.8rem);
  font-weight:950;
  letter-spacing:.14em;
  line-height:1.2;
  text-align:center;
  text-transform:uppercase;
}


/* Carl Legal & Compliance Officer profile */
.profile-page--carl{
  --profile-color:#ae2027;
  --profile-dark:#ae2027;
  --profile-footer:#0a2d5f;
  --profile-band:#ae2027;
  --profile-button:#0a2d5f;
}
.profile-page--carl .profile-top,
.profile-page--carl .profile-bio-band{
  background:#ae2027;
}


/* Owner Mentality signature link — 2026-10-06 */
.profile-owner-mentality a{
  color:inherit;
  text-decoration:none;
}
.profile-owner-mentality a:hover,
.profile-owner-mentality a:focus-visible{
  color:var(--profile-color);
  text-decoration:underline;
  text-decoration-color:#d7a52f;
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}
