/* =========================================================
   Page Sections from the About page design: hero_text (split layout),
   image_text, numbered_list, team_grid, testimonials.
   Split out of about.css so these sections can be used on any page
   without also pulling in about.css's page-level .closer styles.
   ========================================================= */

.about-hero{ padding:80px 0 100px }
.hero-grid{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center }
.about-hero .hero-text .eyebrow{ margin-bottom:24px }
.about-hero .hero-text h1{ font-family:var(--display); font-size:clamp(48px, 5.6vw, 88px); font-weight:600; line-height:0.96; letter-spacing:-0.035em; margin:0 0 24px; max-width:540px }
.about-hero .hero-text h1 em{ font-style:italic; font-weight:500; color:var(--ink-2) }

/* About highlight utility (works for CMS/content spans) */
.about-hero .hero-text h1 .t-highlight,
.story-text h2 .t-highlight,
:is(.values, .team) .section-head h2 .t-highlight{
  /* font-style:italic; */
  font-weight:600;
  color:var(--ink);
  position:relative;
  display:inline-block;
  white-space:nowrap;
  line-height:1;
  padding:0 0.16em 0 0.10em;
  z-index:0;
}
.about-hero .hero-text h1 .t-highlight::before,
.story-text h2 .t-highlight::before,
:is(.values, .team) .section-head h2 .t-highlight::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:.16em;
  bottom:.08em;
  background:var(--accent);
  border-radius:.12em;
  transform:none;
  z-index:-1;
}
.about-hero .hero-text .lead{ font-size:19px; line-height:1.6; color:var(--ink-2); margin:0 0 32px; max-width:520px }
.about-hero .hero-text .pill{ display:inline-flex; align-items:center; gap:14px; padding:10px 18px; background:var(--paper); border:1.5px solid var(--rule); border-radius:var(--r-full); font-size:12.5px; font-weight:600; color:var(--ink-3); box-shadow:var(--shadow-xs) }
.about-hero .hero-text .pill .sep{ width:4px; height:4px; border-radius:50%; background:var(--ink-4) }

.photo-collage{ position:relative; height:560px }
.photo-collage .ph{ position:absolute; border-radius:var(--r-xl); overflow:hidden; box-shadow:var(--shadow-lg); background:linear-gradient(135deg,#e8d4c4,#a87f5a) }
.photo-collage .ph img{ width:100%; height:100%; object-fit:cover }
.photo-collage .ph1{ width:62%; height:74%; top:0; right:0; transform:rotate(2deg); z-index:1 }
.photo-collage .ph2{ width:48%; height:54%; bottom:0; left:0; transform:rotate(-3deg); z-index:2 }
.photo-collage .ph3{ width:36%; height:38%; top:38%; right:8%; transform:rotate(4deg); z-index:3; border:4px solid var(--paper) }

/* Story band (alternating feature) */
.story-band{ padding:120px 0; background:var(--tint-soft); border-top:1.5px solid var(--rule); border-bottom:1.5px solid var(--rule) }
.story-row{ display:grid; grid-template-columns:1.1fr 1fr; gap:80px; align-items:center }
.story-text .eyebrow{ margin-bottom:24px }
.story-text h2{ font-family:var(--display); font-size:clamp(36px, 4.2vw, 56px); font-weight:600; line-height:1; letter-spacing:-0.03em; margin:0 0 24px; max-width:540px }
.story-text h2 em{ font-style:italic; font-weight:500; color:var(--ink-2) }
.story-text p{ font-size:17px; line-height:1.65; color:var(--ink-2); margin:0 0 18px; max-width:520px }
.story-photo{ aspect-ratio:5/6; border-radius:var(--r-xl); overflow:hidden; background:linear-gradient(135deg,#e8d4c4,#a87f5a); box-shadow:var(--shadow-lg) }
.story-photo img{ width:100%; height:100%; object-fit:cover }

/* Values */
.values{ padding:120px 0 }
:is(.values, .team) .section-head{ text-align:center; margin-bottom:56px; max-width:760px; margin-left:auto; margin-right:auto; overflow-wrap:break-word; word-break:break-word }
:is(.values, .team) .section-head .eyebrow{ margin-bottom:24px }
:is(.values, .team) .section-head h2{ font-family:var(--display); font-size:clamp(32px, 5vw, 64px); font-weight:600; line-height:1; letter-spacing:-0.03em; margin:0 0 16px; overflow-wrap:break-word; word-break:break-word }
:is(.values, .team) .section-head h2 em{ font-style:italic; font-weight:500; color:var(--ink-2) }
:is(.values, .team) .section-head p{ font-size:17px; color:var(--ink-2); line-height:1.6; max-width:560px; margin:0 auto; overflow-wrap:break-word; word-break:break-word }

.value-grid{ display:grid; grid-template-columns:repeat(4,1fr); column-gap:18px; row-gap:44px }
.value-card{ background:var(--paper); border:1.5px solid var(--rule); border-radius:var(--r-xl); padding:32px 28px; transition:transform .3s, border-color .3s, box-shadow .3s; box-shadow:var(--shadow-xs) }
.value-card:nth-child(4n+1){ transform:rotate(-1deg) }
.value-card:nth-child(4n+2){ transform:rotate(0.6deg) translateY(20px) }
.value-card:nth-child(4n+3){ transform:rotate(-0.4deg) }
.value-card:nth-child(4n+4){ transform:rotate(1.2deg) translateY(20px) }
.value-card:hover{ transform:rotate(0deg) translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--accent) }
.value-card .num{ font-family:var(--display); font-size:48px; font-weight:700; color:var(--accent-deep); letter-spacing:-0.04em; line-height:1; margin-bottom:18px }
.value-card h3{ font-family:var(--display); font-size:22px; font-weight:700; margin:0 0 10px; letter-spacing:-0.02em }
.value-card p{ font-size:14px; color:var(--ink-2); line-height:1.55; margin:0 }

/* Team */
.team{ padding:120px 0; background:var(--tint-soft); border-top:1.5px solid var(--rule); border-bottom:1.5px solid var(--rule) }
.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px }
.team-card{ background:var(--paper); border:1.5px solid var(--rule); border-radius:var(--r-xl); padding:24px; transition:transform .3s, border-color .3s, box-shadow .3s }
.team-card:nth-child(odd){ transform:rotate(-0.8deg) }
.team-card:nth-child(even){ transform:rotate(0.8deg) }
.team-card:hover{ transform:rotate(0deg) translateY(-3px); border-color:var(--accent); box-shadow:var(--shadow-sm) }
.team-photo{ aspect-ratio:1; border-radius:var(--r-lg); overflow:hidden; background:linear-gradient(135deg,#e8d4c4,#a87f5a); margin-bottom:18px }
.team-photo img{ width:100%; height:100%; object-fit:cover }
.team-name{ font-family:var(--display); font-size:20px; font-weight:700; margin:0 0 4px; letter-spacing:-0.018em }
.team-role{ font-size:12px; color:var(--accent-deep); font-weight:700; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px }
.team-bio{ font-size:13.5px; color:var(--ink-2); line-height:1.5; margin:0 }
.team-card.hiring{ background:var(--tint); border:1.5px dashed var(--accent) }
.team-card.hiring .team-photo{ background:var(--paper); display:flex; align-items:center; justify-content:center; font-family:var(--display); font-size:48px; color:var(--accent-deep); font-weight:700 }
.team-card.hiring .team-role{ color:var(--ink) }

/* Responsive */
@media (max-width:1100px){
  .hero-grid,.story-row{ grid-template-columns:1fr; gap:48px }
  .photo-collage{ height:400px }
  .value-grid{ grid-template-columns:repeat(2,1fr) }
  .value-card:nth-child(n){ transform:rotate(0) translateY(0) }
  .team-grid{ grid-template-columns:repeat(2,1fr) }
}
@media (max-width:760px){
  .about-hero{ padding:48px 0 60px } .photo-collage{ height:340px }
  .story-band,.values,.team{ padding:80px 0 }
  .value-grid,.team-grid{ grid-template-columns:1fr }
  .team-card:nth-child(n){ transform:none }
}

/* Hero info pill: on phones let its items wrap onto new lines instead of squeezing each label */
@media (max-width:760px){
  .about-hero .hero-text .pill{ flex-wrap:wrap; row-gap:6px; column-gap:10px; border-radius:16px }
  .about-hero .hero-text .pill > span:not(.sep){ white-space:nowrap }
}
/* Team (team_grid only; testimonials share .team-grid): two columns on phones, otherwise each
   full-width square photo makes the section several screens tall */
@media (max-width:760px){
  .team-grid.team-members{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px }
  .team-members .team-card{ padding:12px }
  .team-members .team-photo{ margin-bottom:12px }
  .team-members .team-name{ font-size:16px }
  .team-members .team-role{ font-size:10.5px; letter-spacing:0.06em }
  .team-members .team-bio{ font-size:12.5px }
}

@media (max-width:480px){
  .team-card{
    padding:18px 16px;
    border-radius:18px;
    overflow-wrap:break-word;
    word-break:break-word;
  }
  .team-card p{
    overflow-wrap:break-word;
    word-break:break-word;
  }
}
