/* Home page styles.
   Colour rule: page backgrounds are shades of white (--white, --paper, --paper-2, --paper-3)
   with black type (--text); navy (--navy) is the brand accent, used for the header, footer,
   and small accent elements (.eyebrow, .text-link — in base.css — and .callout below). */

/* .hero-banner, .hero-scrim, .hero-content, .hero-ctas now live in assets/css/hero.css
   (the standard hero, shared across every page that uses one).
   .eyebrow, .text-link, .section, .section-head, .section-tools live in base.css
   (shared across home + every inner page). */

/* ================= DIVISIONS ================= */
.divisions{
  background:var(--white);
  padding:104px 0 112px;
}
.divisions-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:48px;
  margin-bottom:56px;
}
.divisions-head h2{
  margin-top:20px;
  max-width:22ch;
  color:var(--black);
}
.divisions-head p{
  margin-top:8px;
  max-width:70ch;
  font-size:14px;
  line-height:1.5;
  color:var(--text-2);
}

.tabs{
  display:grid;
  grid-template-columns:repeat(5,1fr);
}
.tab{
  position:relative;
  padding:22px 24px 24px 0;
  font-family:inherit;
  font-size:18px;
  font-weight:600;
  line-height:1.3;
  text-align:left;
  color:var(--text-3);
  border-top:1px solid var(--line);
  transition:color .15s ease;
}
.tab::before{
  content:"";
  position:absolute;
  left:0;right:0;top:-1px;
  height:4px;
  background:transparent;
}
.tab:hover{color:var(--text);}
.tab[aria-selected="true"]{color:var(--text);}
.tab[aria-selected="true"]::before{background:var(--text);}

.showcase{
  position:relative;
  height:clamp(380px,42vw,580px);
  background:var(--paper-3);
}
.showcase[hidden]{display:none;}
.media{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.fallback{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background-color:var(--paper-3);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 96px);
}
.media.no-img .fallback{display:flex;}
.media.no-img img{display:none;}
.fallback svg{
  width:128px;
  height:128px;
  fill:none;
  stroke:rgba(0,0,0,.22);
  stroke-width:1.5;
  stroke-linecap:butt;
  stroke-linejoin:miter;
}
.fallback span{
  position:absolute;
  right:20px;
  bottom:16px;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--text-3);
}
.callout{
  position:absolute;
  top:0;left:0;
  z-index:2;
  width:min(360px,100%);
  min-height:230px;
  padding:32px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:36px;
  background:var(--navy);
  color:var(--white);
}
.callout p{
  font-size:21px;
  font-weight:700;
  line-height:1.3;
  letter-spacing:-0.01em;
}
.callout a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:700;
}
.callout a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.5;transition:transform .15s ease;}
.callout a:hover svg{transform:translateX(4px);}

/* ================= INDUSTRIAL DEEP-DIVE ================= */
/* Row of plain white cards on a grey band; the 5th card peeks in from the right (--pv is fractional).
   Hovering a card swaps its title for a short description on a black fill. */
.deepdive{overflow:hidden;}
.deepdive .section-head--top{align-items:flex-start;margin-bottom:26px;}
.deepdive .section-head--top .text-link{margin-top:6px;}

#deepDiveCarousel{--pv:5.2;--gap:14px;}
.dd-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  aspect-ratio:1/1;
  padding:20px 18px 18px;
  overflow:hidden;
  background:var(--white);
  color:var(--text);
  box-shadow:0 1px 4px rgba(0,0,0,.14);
  transition:background .4s ease, color .4s ease;
}
.dd-title{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-family:var(--font-head);
  font-size:27px;
  font-weight:600;
  line-height:1.22;
  letter-spacing:-0.015em;
  transition:opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.dd-desc{
  position:absolute;
  top:20px;left:18px;right:18px;
  font-size:13.5px;
  font-weight:500;
  line-height:1.45;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .4s ease .05s, transform .5s cubic-bezier(.22,1,.36,1) .05s;
}
.dd-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:700;
}
.dd-cta svg{width:15px;height:15px;transition:transform .25s ease;}
.dd-card:hover,
.dd-card:focus-visible{background:var(--navy);color:var(--white);}
.dd-card:hover .dd-title,
.dd-card:focus-visible .dd-title{opacity:0;transform:translateY(-10px);}
.dd-card:hover .dd-desc,
.dd-card:focus-visible .dd-desc{opacity:1;transform:none;}
.dd-card:hover .dd-cta svg,
.dd-card:focus-visible .dd-cta svg{transform:translateX(5px);}

.dd-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:22px;
}
.dd-footer .carousel-controls{gap:10px;}

/* touch screens have no hover: show the description under the title instead */
@media (hover:none){
  .dd-card{aspect-ratio:auto;min-height:300px;justify-content:flex-start;gap:12px;}
  .dd-desc{position:static;opacity:1;transform:none;font-size:14px;color:var(--text-2);margin-bottom:18px;}
  .dd-cta{margin-top:auto;}
}
/* ================= AWARDS ================= */
/* DUMMY tiles: light blocks with a placeholder icon until photos are added */
.awards-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr); /* 5 cards: 1 big (2x2) + 4 small fill this exactly, each card bigger than before */
  gap:14px;
}
.award-card{
  position:relative;
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  color:var(--text);
  background-color:var(--paper-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 72px);
  border:1px solid var(--line);
  transition:border-color .25s ease;
}
.award-card:hover{border-color:var(--text);}
.award-card:first-child{grid-column:span 2;grid-row:span 2;aspect-ratio:auto;} /* 2x2 squares = a square */
.award-icon{
  position:absolute;
  top:18px;left:18px;
  width:30px;height:30px;
  color:rgba(0,0,0,.28);
}
.award-card:first-child .award-icon{top:26px;left:26px;width:52px;height:52px;}
.award-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background:var(--paper);
  transition:transform 1.1s cubic-bezier(.22,1,.36,1);
}
.award-card:hover img{transform:scale(1.05);}
.award-card:has(img){color:var(--white);}
.award-card:has(img)::after{ /* scrim so the title stays legible over a photo */
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 38%, rgba(0,0,0,.72) 100%);
  pointer-events:none;
}
.award-year{
  position:absolute;
  top:12px;right:0;
  z-index:2;
  padding:5px 11px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--white);
  background:var(--text);
}
.award-text{
  position:absolute;
  left:0;right:0;bottom:0;
  z-index:2;
  padding:0 18px 16px;
}
.award-title{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-family:var(--font-head);
  font-size:15px;
  font-weight:700;
  line-height:1.28;
}
.award-card:first-child .award-title{font-size:26px;line-height:1.15;letter-spacing:-0.01em;}
.award-card:first-child .award-text{padding:0 26px 24px;}
.award-meta{
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  color:var(--text-3);
}
.award-card:has(img) .award-meta{color:rgba(255,255,255,.75);}
.award-card:focus-visible{outline:2px solid var(--text);outline-offset:3px;}

/* ================= NEWS & EVENT ================= */
.news{border-top:1px solid var(--line);overflow:hidden;}
/* The carousel sits to the left of the event card and is anchored to its right end: the newest card is right
   next to the event card and the older ones run off the left of the screen. Nothing shows to the right of
   the event card until you slide; the cards then pass under it and come out the other side. */
.news-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  column-gap:22px;
  align-items:stretch;
}
#newsCarousel{
  --pv:3.3;--gap:22px;
  grid-column:1;
  grid-row:1;
}
#newsCarousel .carousel-track{flex-direction:row-reverse;align-items:flex-start;}

/* Every news card is the same: a SQUARE image (1:1 at every screen size), then a fixed-height text area.
   In the text area the headline sits at the top and "date | tag" at the bottom, so a longer headline
   just uses up the gap between them. All cards are therefore the same width and the same height. */
.news-card{
  --news-text-h:116px;
  display:flex;
  flex-direction:column;
  color:var(--text);
}
/* image slot (dummy until story images are supplied) */
.news-media{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  aspect-ratio:1/1;
  overflow:hidden;
  background-color:var(--paper-3);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 64px);
}
.news-media svg{
  width:46px;height:46px;
  fill:none;
  stroke:rgba(0,0,0,.22);
  stroke-width:1.2;
}
.news-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .9s cubic-bezier(.22,1,.36,1);
}
.news-card:hover .news-media img{transform:scale(1.05);}
.news-body{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  flex:0 0 auto;
  height:var(--news-text-h);
  padding-top:12px;
}
.news-title{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-family:var(--font-head);
  font-size:14px;
  font-weight:500;
  line-height:1.32;
  letter-spacing:-0.005em;
  text-decoration:underline transparent;
  text-underline-offset:4px;
  transition:text-decoration-color .25s ease;
}
.news-card:hover .news-title{text-decoration-color:var(--text);}
.news-meta{
  display:flex;
  align-items:center;
  margin-top:auto;
  padding:10px 0 8px;
  border-bottom:1px solid var(--line);
  font-size:12.5px;
  line-height:1.2;
}
.news-date + .news-tag{
  margin-left:12px;
  padding-left:12px;
  border-left:1px solid var(--text);
}
/* fixed event card: a white block with a heavy top rule */
.event-card{
  grid-column:2;
  grid-row:1;
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  padding:20px 22px 20px;
  color:var(--text);
  background:var(--white);
  border:1px solid var(--line);
  border-top:4px solid var(--text);
}
.event-eyebrow{
  align-self:flex-start;
  padding:5px 10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  border:1px solid var(--text);
}
.event-name{
  display:block;
  margin-top:14px;
  font-family:var(--font-head);
  font-size:clamp(24px,2.1vw,28px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-0.02em;
}
.event-details{
  list-style:none;
  margin-top:14px;
  border-top:1px solid var(--line);
}
.event-details li{
  padding:8px 0;
  border-bottom:1px solid var(--line);
}
.event-label{
  display:block;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
}
.event-value{
  display:block;
  margin-top:2px;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
.event-cta{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:10px;
  margin-top:auto;
  padding:10px 16px;
  font-size:13px;
  font-weight:700;
  color:var(--white);
  background:var(--text);
  transition:transform .2s ease;
}
.event-details{margin-bottom:18px;}
.event-details + .event-cta{margin-top:auto;}
.event-cta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.5;transition:transform .2s ease;}
.event-card:hover .event-cta svg{transform:translateX(4px);}
.event-card:focus-visible,
.news-card:focus-visible,
.dd-card:focus-visible{outline:2px solid var(--text);outline-offset:3px;}

/* ================= RESPONSIVE ================= */
@media (max-width:1100px){
  .news-layout{grid-template-columns:minmax(0,1fr) 260px;}
  #newsCarousel{--pv:2.9;}
  #deepDiveCarousel{--pv:4.2;}
}

@media (max-width:980px){
  .divisions{padding:72px 0 80px;}
  .divisions-head{flex-direction:column;gap:20px;margin-bottom:40px;}
  .tabs{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(190px,1fr);
    overflow-x:auto;
  }
  #deepDiveCarousel{--pv:3.2;}
  .deepdive .section-head--top{margin-bottom:32px;}
  .awards-grid{grid-template-columns:repeat(2,1fr);}
  .award-card:first-child{grid-column:auto;grid-row:auto;aspect-ratio:1/1;}
  .news-layout{grid-template-columns:minmax(0,1fr);gap:20px;}
  .event-card{grid-column:1;grid-row:1;}
  #newsCarousel{grid-column:1;grid-row:2;--pv:3.2;}
  /* smaller cards: same square, but a little less image and a slightly smaller headline so 3-line titles keep a gap */
  .news-card{--news-text-h:116px;}
  .news-title{font-size:14px;}
  .news-meta{padding:10px 0 8px;}
}

@media (max-width:640px){
  .showcase{height:auto;display:flex;flex-direction:column;}
  .media{position:relative;inset:auto;height:260px;order:2;}
  .callout{position:relative;width:100%;min-height:0;order:1;}
  .tab{font-size:16px;}
  .section-tools{width:100%;justify-content:space-between;}
  .awards-grid{gap:10px;}
  .award-title,.award-card:first-child .award-title{font-size:13px;}
  .award-text,.award-card:first-child .award-text{padding:0 12px 12px;}
  #newsCarousel{--pv:1.9;}
  #deepDiveCarousel{--pv:1.4;}
  .event-card{padding:26px 24px;}
}

@media (prefers-reduced-motion: reduce){
  .dd-card,.dd-title,.dd-desc,.dd-cta svg,.award-card img,.news-media img,.news-title,.event-cta svg{transition:none;}
}
