/* ==========================================================================
   AGR Global — Corporate homepage sections (V2.1 visual adaptation)
   Scoped under body.agr-corp-home where helpful.
   ========================================================================== */

body.agr-corp-home {
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.agr-corp-home h1,
body.agr-corp-home h2,
body.agr-corp-home h3,
body.agr-corp-home h4 {
  font-family: var(--f-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.005em;
}

body.agr-corp-home .section {
  padding: var(--gap-section) 0;
}
body.agr-corp-home .section--tight { padding: 84px 0; }
body.agr-corp-home .section--alt { background: var(--bg-secondary); }
body.agr-corp-home .section--dark {
  background: var(--bg-dark, #22313F);
  color: var(--ink-dark, #F3F5F7);
}
body.agr-corp-home .section-head { margin-bottom: 60px; }
body.agr-corp-home .section-head h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.28;
  margin-top: 14px;
}
body.agr-corp-home .section-head p.lede-sub {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 16.5px;
  margin: 14px 0 0;
  line-height: 1.7;
}
body.agr-corp-home .section--dark .section-head h2 {
  color: var(--ink-dark, #F3F5F7);
}
body.agr-corp-home .section--dark .section-head p.lede-sub {
  color: var(--ink-soft-dark, #C2CBD3);
}
body.agr-corp-home .section--dark .corp-eyebrow--onDark {
  color: #F3B8AE;
}

/* ---- Hero ----
   Content-safe model: viewport height is a visual minimum, not a fixed clip box.
   Fixed header overlays the hero; foreground content uses --header-h top safe area.
   Media/scrim remain absolute cover layers; clipping is isolated to the media layer.
*/
body.agr-corp-home {
  --hero-safe-gap: 36px;
  --hero-pad-x: 32px;
  --hero-pad-bottom: 56px;
}
body.agr-corp-home .hero {
  position: relative;
  height: auto;
  min-height: 88vh; /* fallback */
  min-height: 88svh;
  max-height: none;
  display: flex;
  /* Content starts near top (after header safe area) — not pinned to bottom */
  align-items: flex-start;
  overflow: visible;
  color: #fff;
}
body.agr-corp-home .hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
body.agr-corp-home .hero-media-layer video,
body.agr-corp-home .hero-media-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body.agr-corp-home .corp-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    linear-gradient(145deg, #22313F 0%, #2B3D4F 45%, #31495C 100%);
  text-align: center;
  padding: 32px;
}
body.agr-corp-home .corp-hero-placeholder__en {
  font-family: var(--f-label);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E9A79E;
}
body.agr-corp-home .corp-hero-placeholder__ja {
  font-size: 15px;
  color: var(--ink-soft-dark, #C2CBD3);
}
body.agr-corp-home .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(34, 49, 63, 0.82) 0%,
      rgba(34, 49, 63, 0.58) 32%,
      rgba(34, 49, 63, 0.22) 58%,
      rgba(34, 49, 63, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(34, 49, 63, 0.28) 0%,
      rgba(34, 49, 63, 0.12) 40%,
      rgba(34, 49, 63, 0.55) 78%,
      rgba(34, 49, 63, 0.82) 100%
    );
}
body.agr-corp-home .hero-video-flag {
  position: absolute;
  top: calc(var(--header-h) + var(--hero-safe-gap));
  right: var(--hero-pad-x);
  z-index: 3;
  background: rgba(34,49,63,0.72);
  border: 1px solid rgba(233,167,158,0.6);
  color: #E9A79E;
  font-family: var(--f-label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  max-width: min(280px, 38vw);
  text-align: right;
  pointer-events: none;
}
body.agr-corp-home .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  padding:
    calc(var(--header-h) + var(--hero-safe-gap))
    var(--hero-pad-x)
    var(--hero-pad-bottom);
}
body.agr-corp-home .hero-inner-v2 { max-width: 760px; }
body.agr-corp-home .hero-inner-v2 h1,
body.agr-corp-home .hero-inner-v2 .hero-h1 {
  font-size: clamp(32px, 3.4vw, 58px);
  line-height: 1.22;
  margin: 12px 0 20px;
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  overflow-wrap: normal;
  word-break: keep-all;
  line-break: strict;
  text-wrap: pretty;
  max-width: 16em;
}
body.agr-corp-home .hero-inner-v2 .hero-phrase {
  white-space: nowrap;
}
body.agr-corp-home .hero-inner-v2 .lede {
  font-size: 18.5px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 34px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}
body.agr-corp-home .hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
body.agr-corp-home .hero-pillars-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
body.agr-corp-home .hero-pillar-chip {
  border: 1px solid rgba(90,112,131,0.7);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 230px;
  background: rgba(34,49,63,0.45);
  backdrop-filter: blur(3px);
}
body.agr-corp-home .hero-pillar-chip b { font-size: 14.5px; }
body.agr-corp-home .hero-pillar-chip span {
  color: var(--ink-soft-dark, #C2CBD3);
  font-size: 13px;
}
body.agr-corp-home .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: none; /* Decorative only — hide to avoid CTA/chip collision on content-tall heroes */
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft-dark, #C2CBD3);
  pointer-events: none;
}
body.agr-corp-home .scroll-cue .line {
  width: 1px;
  height: 30px;
  background: var(--line-dark, #5A7083);
  position: relative;
  overflow: hidden;
}
body.agr-corp-home .scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: agr-corp-scrollcue 2.2s ease-in-out infinite;
}
@keyframes agr-corp-scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.agr-corp-home .scroll-cue .line::after { animation: none; top: 40%; }
}

/* ---- Media placeholders ---- */
body.agr-corp-home .corp-ph {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  background: var(--bg-tertiary);
  gap: 6px;
}
body.agr-corp-home .corp-ph__id {
  font-family: var(--f-label);
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.08em;
}
body.agr-corp-home .corp-ph__label {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
body.agr-corp-home .section--dark .corp-ph,
body.agr-corp-home .industry-tile .corp-ph,
body.agr-corp-home .pillar-panel .corp-ph {
  background: var(--bg-dark-2);
}
body.agr-corp-home .section--dark .corp-ph__id,
body.agr-corp-home .industry-tile .corp-ph__id,
body.agr-corp-home .pillar-panel .corp-ph__id {
  color: #E9A79E;
}
body.agr-corp-home .section--dark .corp-ph__label,
body.agr-corp-home .industry-tile .corp-ph__label,
body.agr-corp-home .pillar-panel .corp-ph__label {
  color: var(--ink-soft-dark, #C2CBD3);
}

/* ---- Two pillars (contained cards on light surface) ---- */
body.agr-corp-home #pillars {
  background: var(--bg-secondary, #F5F6F7);
  padding: 72px 0;
}
body.agr-corp-home .pillars-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
  padding: 0 32px;
  min-height: 0;
}
body.agr-corp-home .pillar-panel {
  position: relative;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  overflow: hidden;
  color: var(--ink-dark);
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(28, 27, 22, 0.12);
}
body.agr-corp-home .pillar-panel .panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.agr-corp-home .pillar-panel .panel-bg img,
body.agr-corp-home .pillar-panel .panel-bg .corp-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.agr-corp-home .pillar-panel .panel-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,49,63,0.35) 0%, rgba(34,49,63,0.78) 78%, rgba(34,49,63,0.92) 100%);
}
body.agr-corp-home .pillar-panel--a .panel-bg,
body.agr-corp-home .pillar-panel--teachless .panel-bg { background: var(--bg-dark-2, #2B3D4F); }
body.agr-corp-home .pillar-panel--b .panel-bg,
body.agr-corp-home .pillar-panel--welding .panel-bg { background: var(--bg-dark-card, #31495C); }

body.agr-corp-home .pillars-section-head {
  margin-bottom: 28px;
}
body.agr-corp-home .pillars-section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
}
body.agr-corp-home .teachless-equal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
body.agr-corp-home .teachless-equal-card {
  padding: 28px 24px;
  border: 1px solid var(--line, #D5DBE0);
  border-radius: 4px;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.agr-corp-home .teachless-equal-card--weld {
  border-top: 3px solid #1A5FA8;
}
body.agr-corp-home .teachless-equal-card--bevel {
  border-top: 3px solid #C47A2C;
}
body.agr-corp-home .teachless-equal-card h3 {
  margin: 0;
  font-size: 22px;
}
body.agr-corp-home .teachless-equal-card p,
body.agr-corp-home .teachless-equal-card li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #5B6570);
}
body.agr-corp-home .teachless-equal-card ul {
  margin: 0;
  padding-left: 1.1em;
  flex: 1;
}
body.agr-corp-home .teachless-common-diff {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line, #D5DBE0);
  background: var(--bg-secondary, #F5F6F7);
  border-radius: 4px;
}
body.agr-corp-home .teachless-common-diff p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
}
body.agr-corp-home .teachless-common-diff p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  body.agr-corp-home .teachless-equal-grid {
    grid-template-columns: 1fr;
  }
}
body.agr-corp-home .pillar-panel .panel-content { position: relative; z-index: 1; }
body.agr-corp-home .pillar-panel .idx {
  font-family: var(--f-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #F3B8AE;
}
body.agr-corp-home .pillar-panel h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.32;
  margin: 14px 0 16px;
  color: var(--ink-dark, #F3F5F7);
}
body.agr-corp-home .pillar-panel h3 .en {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft-dark, #C2CBD3);
  margin-top: 6px;
}
body.agr-corp-home .pillar-panel .desc {
  font-size: 15.5px;
  color: var(--ink-dark, #F3F5F7);
  max-width: 46ch;
  margin-bottom: 22px;
  line-height: 1.7;
}
body.agr-corp-home .pillar-panel .honesty-note {
  font-size: 13.5px;
  color: var(--ink-soft-dark, #C2CBD3);
  border-left: 2px solid #F3B8AE;
  padding: 11px 14px;
  max-width: 46ch;
  margin-bottom: 24px;
  line-height: 1.65;
}
body.agr-corp-home .pillar-panel .branches {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46ch;
}
body.agr-corp-home .pillar-panel .branches li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line-dark, #5A7083);
  border-radius: 2px;
  font-size: 14.5px;
  color: var(--ink-dark, #F3F5F7);
  background: rgba(34,49,63,0.45);
  flex-wrap: wrap;
}
body.agr-corp-home .pillar-panel .text-link,
body.agr-corp-home .pillar-panel .corp-text-link {
  color: var(--ink-dark, #F3F5F7);
  font-weight: 700;
}
body.agr-corp-home .pillar-panel .text-link:hover,
body.agr-corp-home .pillar-panel .corp-text-link:hover {
  color: var(--red-on-dark, #E9A79E);
}

/* ---- Products ---- */
body.agr-corp-home .product-groups {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
body.agr-corp-home .product-group-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
body.agr-corp-home .product-group-head .g-label {
  font-family: var(--f-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
}
body.agr-corp-home .product-group-head h3 { font-size: 24px; }
body.agr-corp-home .product-group-head .g-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 42ch;
  margin-left: auto;
}
body.agr-corp-home .product-group-divider {
  height: 1px;
  background: var(--line);
  margin: 0 0 32px;
}
body.agr-corp-home .product-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
body.agr-corp-home .card--split {
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
body.agr-corp-home .card--split .media {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
body.agr-corp-home .card--split .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.agr-corp-home .card--split:hover .media img { transform: scale(1.04); }
body.agr-corp-home .card--split .body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.agr-corp-home .product-status {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
body.agr-corp-home .card--split .body h4 {
  font-size: 17.5px;
  font-family: var(--f-display);
  font-weight: 700;
}
body.agr-corp-home .card--split .body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
body.agr-corp-home .workflow-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--f-label);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
body.agr-corp-home .workflow-cue .step {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
body.agr-corp-home .workflow-cue .arrow { color: var(--line); }

/* ---- Industries (equal 2×2) ---- */
body.agr-corp-home .industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
body.agr-corp-home .industry-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition:
    transform var(--agr-motion-standard, 200ms) var(--agr-ease-standard, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--agr-motion-standard, 200ms) ease;
}
body.agr-corp-home .industry-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(28, 27, 22, 0.14);
}
body.agr-corp-home .industry-tile:hover .media img {
  transform: none;
}
body.agr-corp-home .industry-tile:focus-visible {
  outline: 2px solid var(--agr-focus-ring, #A3211B);
  outline-offset: 3px;
}

/* ---- Coherent interactive card system (sitewide base in interaction-system.css) ---- */
body.agr-corp-home a.corp-card--pillar {
  border: 1px solid transparent;
}
body.agr-corp-home a.corp-card--pillar:hover {
  border-color: rgba(233, 167, 158, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}
body.agr-corp-home a.corp-card--product {
  border: 1px solid var(--line);
}
body.agr-corp-home a.corp-card--product:hover {
  border-color: #C9C4B4;
}
body.agr-corp-home a.corp-card--knowledge.k-featured,
body.agr-corp-home a.corp-card--knowledge.k-item,
body.agr-corp-home a.corp-card--trust {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
}
body.agr-corp-home a.corp-card--trust {
  display: block;
  padding: 28px;
}
body.agr-corp-home a.corp-card--news.news-item {
  display: grid;
  grid-template-columns: 90px 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
body.agr-corp-home a.corp-card--news .news-title {
  font-weight: 600;
}
body.agr-corp-home a.corp-btn:hover {
  box-shadow: 0 10px 24px rgba(163, 33, 27, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  /* base reduced-motion handled in interaction-system.css */
}

body.agr-corp-home .industry-tile .media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
body.agr-corp-home .industry-tile .media img,
body.agr-corp-home .industry-tile .media .corp-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.agr-corp-home .industry-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(14, 26, 36, 0.92) 0%,
    rgba(14, 26, 36, 0.70) 45%,
    rgba(14, 26, 36, 0.28) 100%
  );
}
body.agr-corp-home .industry-tile .tile-body {
  position: relative;
  z-index: 2;
  padding: 28px 30px;
  width: 100%;
}
body.agr-corp-home .industry-tile h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}
body.agr-corp-home .industry-tile p {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  margin: 0;
  max-width: 40ch;
}
body.agr-corp-home .industry-tile .strategic-flag {
  display: none;
}
body.agr-corp-home .industries-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 16px;
}
body.agr-corp-home .industries-foot p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
body.agr-corp-home .industries-foot .corp-text-link {
  font-size: 16px;
  font-weight: 700;
}

/* ---- Evidence ---- */
body.agr-corp-home .proof-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-width: 0;
}
body.agr-corp-home .proof-block + .proof-block { margin-top: 96px; }
body.agr-corp-home .proof-block.reverse .proof-media { order: 2; }
body.agr-corp-home .proof-media,
body.agr-corp-home .proof-copy {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
body.agr-corp-home .proof-media img,
body.agr-corp-home .proof-media .corp-ph {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  min-height: 240px;
}
body.agr-corp-home .bracket-frame { position: relative; }
body.agr-corp-home .bracket-frame::before,
body.agr-corp-home .bracket-frame::after,
body.agr-corp-home .bracket-frame .bl,
body.agr-corp-home .bracket-frame .br {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #E9A79E;
  opacity: 0.85;
  z-index: 2;
}
body.agr-corp-home .bracket-frame::before { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
body.agr-corp-home .bracket-frame::after { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
body.agr-corp-home .bracket-frame .bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
body.agr-corp-home .bracket-frame .br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
body.agr-corp-home .proof-copy .proof-kicker {
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #F3B8AE;
}
body.agr-corp-home .proof-copy h3 {
  font-size: 25px;
  color: var(--ink-dark, #F3F5F7);
  line-height: 1.4;
  margin-bottom: 14px;
  max-width: min(100%, 22em);
  word-break: keep-all;
  line-break: strict;
  text-wrap: pretty;
}
body.agr-corp-home .proof-copy p {
  color: var(--ink-soft-dark, #C2CBD3);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 52ch;
}
body.agr-corp-home .section--dark .corp-text-link,
body.agr-corp-home .section--dark .corp-btn--onDark {
  color: var(--ink-dark, #F3F5F7);
}
body.agr-corp-home .section--dark .corp-text-link:hover {
  color: var(--red-on-dark, #E9A79E);
}
body.agr-corp-home .confidentiality-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft-dark, #C2CBD3);
  border-left: 2px solid var(--line-dark, #5A7083);
  padding: 11px 15px;
  max-width: 52ch;
  line-height: 1.65;
}
body.agr-corp-home .proof-block--customer {
  border-top: 1px solid var(--line-dark, #5A7083);
  padding-top: 36px;
  margin-top: 12px;
}
body.agr-corp-home .confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
body.agr-corp-home .confirm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
}
body.agr-corp-home .confirm-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.35;
}
body.agr-corp-home .confirm-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 46ch;
}
body.agr-corp-home .trust-card--text-only {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
}
body.agr-corp-home .trust-neeq {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}
@media (max-width: 860px) {
  body.agr-corp-home .confirm-grid { grid-template-columns: 1fr; }
  body.agr-corp-home .hero-inner-v2 .hero-phrase {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  body.agr-corp-home .hero-inner-v2 h1,
  body.agr-corp-home .hero-inner-v2 .hero-h1 {
    word-break: normal;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  body.agr-corp-home .proof-block,
  body.agr-corp-home .proof-media,
  body.agr-corp-home .proof-copy {
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 360px) {
  body.agr-corp-home .corp-card__cta,
  body.agr-corp-home .corp-text-link,
  body.agr-corp-home .industry-tile .tile-body {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  body.agr-corp-home .industry-tile .tile-body,
  body.agr-corp-home .corp-card {
    min-width: 0;
  }
  body.agr-corp-home .corp-text-link::after,
  body.agr-corp-home .corp-card__cta::after {
    content: none;
  }
}

/* ---- Knowledge ---- */
body.agr-corp-home .knowledge-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}
body.agr-corp-home .knowledge-foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body.agr-corp-home .k-featured {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.agr-corp-home .k-featured .media {
  aspect-ratio: 16/9;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}
body.agr-corp-home .k-featured .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
body.agr-corp-home .k-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
body.agr-corp-home .k-meta .k-type { color: var(--red); font-weight: 700; }
body.agr-corp-home .k-featured h3 { font-size: 22px; line-height: 1.4; }
body.agr-corp-home .k-featured p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}
body.agr-corp-home .k-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.agr-corp-home .k-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
body.agr-corp-home .k-item h4 { font-size: 15.5px; line-height: 1.4; }
body.agr-corp-home .k-item p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Trust / OZU ---- */
body.agr-corp-home .trust-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
body.agr-corp-home .trust-process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: var(--line);
  z-index: 0;
}
body.agr-corp-home .trust-step {
  position: relative;
  z-index: 1;
  padding: 0 28px;
  text-align: left;
}
body.agr-corp-home .trust-step:first-child { padding-left: 0; }
body.agr-corp-home .trust-step:last-child { padding-right: 0; }
body.agr-corp-home .trust-step .node {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.6px solid var(--red);
  display: grid;
  place-items: center;
  font-family: var(--f-label);
  font-weight: 700;
  color: var(--red);
  font-size: 17px;
  margin-bottom: 22px;
}
body.agr-corp-home .trust-step b {
  display: block;
  font-size: 17px;
  margin-bottom: 8px;
}
body.agr-corp-home .trust-step span {
  font-size: 14px;
  color: var(--ink-soft);
}
body.agr-corp-home .trust-below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 64px;
  align-items: start;
}
body.agr-corp-home .trust-card p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ---- News ---- */
body.agr-corp-home #news { border-top: 1px solid var(--line); }
body.agr-corp-home .news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
body.agr-corp-home .news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.agr-corp-home .news-item {
  display: grid;
  grid-template-columns: 150px 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
body.agr-corp-home .news-list > li:first-child .news-item { border-top: 1px solid var(--line); }
body.agr-corp-home .news-date {
  font-family: var(--f-label);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}
body.agr-corp-home .news-date em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: 1px;
}
body.agr-corp-home .news-cat {
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 2px;
  text-align: center;
  white-space: nowrap;
}
body.agr-corp-home .news-title {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Contact editorial ---- */
body.agr-corp-home .contact-editorial {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
body.agr-corp-home .contact-editorial h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.32;
  max-width: 20ch;
  margin-top: 10px;
}
body.agr-corp-home .contact-editorial p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 52ch;
  margin-top: 12px;
}
body.agr-corp-home .contact-editorial .accent-rule {
  width: 56px;
  height: 3px;
  background: var(--gold, #C8A84B);
  margin-bottom: 16px;
}
body.agr-corp-home .contact-layout-v2 {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px 36px;
  align-items: stretch;
  max-width: 980px;
}
body.agr-corp-home #contact.section {
  padding-top: 64px;
  padding-bottom: 72px;
}
body.agr-corp-home .contact-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
body.agr-corp-home .contact-facts b {
  color: var(--ink);
  font-weight: 600;
}
body.agr-corp-home .contact-cta-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
body.agr-corp-home .contact-cta-panel p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 42ch;
}

@media (max-width: 1180px) {
  body.agr-corp-home .industries-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  body.agr-corp-home {
    --gap-section: 100px;
  }
  body.agr-corp-home .pillars-split,
  body.agr-corp-home .product-pair,
  body.agr-corp-home .proof-block,
  body.agr-corp-home .trust-below,
  body.agr-corp-home .contact-layout-v2,
  body.agr-corp-home .knowledge-layout,
  body.agr-corp-home .industries-grid {
    grid-template-columns: 1fr;
  }
  body.agr-corp-home .proof-block.reverse .proof-media { order: 0; }
  body.agr-corp-home .trust-process {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  body.agr-corp-home .trust-process::before { display: none; }
  body.agr-corp-home .trust-step { padding: 0 !important; }
  body.agr-corp-home .hero {
    min-height: 88vh;
    min-height: 88svh;
  }
  body.agr-corp-home .hero-video-flag {
    /* Avoid collision with wide H1 on tablet widths; central placeholder remains */
    display: none;
  }
}

@media (max-width: 720px) {
  body.agr-corp-home {
    --hero-safe-gap: 20px;
    --hero-pad-x: 20px;
    --hero-pad-bottom: 48px;
  }
  body.agr-corp-home .card--split { grid-template-columns: 1fr; }
  body.agr-corp-home .card--split .media { min-height: 200px; }
  body.agr-corp-home .industries-grid { grid-template-columns: 1fr; }
  body.agr-corp-home .industry-tile { min-height: 260px; }
  body.agr-corp-home .industry-tile h3 {
    font-size: 18px;
  }
  body.agr-corp-home .industry-tile p {
    font-size: 14px;
  }
  body.agr-corp-home .industry-tile .tile-body {
    padding: 22px;
  }
  body.agr-corp-home .hero {
    min-height: 0;
    align-items: flex-start;
  }
  body.agr-corp-home .hero-inner-v2 h1,
  body.agr-corp-home .hero-inner-v2 .hero-h1 {
    font-size: clamp(30px, 7.2vw, 40px);
    line-height: 1.26;
    margin: 14px 0 18px;
    max-width: none;
  }
  body.agr-corp-home .hero-inner-v2 .lede {
    font-size: 16px;
    margin-bottom: 24px;
  }
  body.agr-corp-home .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
  }
  body.agr-corp-home .hero-ctas .corp-btn {
    width: 100%;
    justify-content: center;
  }
  body.agr-corp-home .hero-pillars-inline {
    flex-direction: column;
  }
  body.agr-corp-home .product-group-head {
    flex-direction: column;
    align-items: flex-start;
  }
  body.agr-corp-home .product-group-head .g-desc { margin-left: 0; }
  body.agr-corp-home .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  body.agr-corp-home .hero-video-flag {
    /* Central placeholder already communicates preparation status */
    display: none;
  }
  body.agr-corp-home .scroll-cue { display: none; }
}

@media (max-width: 420px) {
  body.agr-corp-home .hero-pillar-chip { min-width: 100%; }
}

/* Short desktop viewports: allow natural growth; hide decorative scroll cue */
@media (max-height: 820px) {
  body.agr-corp-home .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.agr-corp-home .industry-tile,
  body.agr-corp-home .card--split .media img {
    transition: none;
  }
  body.agr-corp-home .industry-tile:hover {
    transform: none;
  }
  body.agr-corp-home .card--split:hover .media img {
    transform: none;
  }
}

/* Phase 2 — Engineering positioning */
body.agr-corp-home .eng-factors-title {
  font-size: 18px;
  margin: 8px 0 18px;
  color: var(--ink);
}
body.agr-corp-home .eng-factors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
body.agr-corp-home .eng-factors li {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  padding: 18px 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
}
body.agr-corp-home .eng-highmix {
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 3px solid var(--gold, #C8A84B);
  background: rgba(200, 168, 75, 0.08);
}
body.agr-corp-home .eng-highmix h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
body.agr-corp-home .eng-highmix p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  max-width: 68ch;
}
body.agr-corp-home .eng-brands {
  margin-top: 40px;
}
@media (max-width: 900px) {
  body.agr-corp-home .eng-factors {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  body.agr-corp-home .eng-factors {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AGR Global Market-Validated V2 — product overview + modules + tech tiles
   ========================================================================== */
body.agr-corp-home .product-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
body.agr-corp-home .product-overview-card .body {
  padding: 22px 24px 26px;
}
body.agr-corp-home .product-overview-num {
  display: inline-block;
  font-family: var(--f-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red, #B2302C);
  margin-bottom: 10px;
}
body.agr-corp-home .product-overview-card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin: 0 0 10px;
}
body.agr-corp-home .product-overview-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}
@media (max-width: 720px) {
  body.agr-corp-home .product-overview-grid { grid-template-columns: 1fr; }
}

body.agr-corp-home .module-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
body.agr-corp-home .module-grid--reverse .module-copy { order: 2; }
body.agr-corp-home .module-grid--reverse .module-media { order: 1; }
body.agr-corp-home .module-copy h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  margin: 12px 0 16px;
}
body.agr-corp-home .module-copy p.lede-sub {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0 0 18px;
}
body.agr-corp-home .module-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
body.agr-corp-home .module-points li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
body.agr-corp-home .module-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--red, #B2302C);
  font-weight: 700;
}
body.agr-corp-home .module-media .corp-ph {
  min-height: 260px;
}
@media (max-width: 820px) {
  body.agr-corp-home .module-grid { grid-template-columns: 1fr; }
  body.agr-corp-home .module-grid--reverse .module-copy { order: 1; }
  body.agr-corp-home .module-grid--reverse .module-media { order: 2; }
}

body.agr-corp-home .technology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
body.agr-corp-home .tech-tile {
  display: block;
  padding: 24px 22px;
  height: 100%;
}
body.agr-corp-home .tech-tile h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
body.agr-corp-home .tech-tile p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}
@media (max-width: 900px) {
  body.agr-corp-home .technology-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body.agr-corp-home .technology-grid { grid-template-columns: 1fr; }
}
body.agr-corp-home .knowledge-home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  align-items: center;
  font-size: 16px;
}
body.agr-corp-home .industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.agr-corp-home .industries-grid .industry-tile {
  padding: 0;
  background: #142634 !important;
  border-color: transparent;
}
body.agr-corp-home .industry-tile .media {
  background: #142634;
}
body.agr-corp-home .industry-tile .media .corp-ph {
  background: #142634;
  color: transparent;
}
body.agr-corp-home .industry-tile .media .corp-ph__id,
body.agr-corp-home .industry-tile .media .corp-ph__label {
  opacity: 0;
}
body.agr-corp-home .industry-tile::after {
  background: linear-gradient(
    to top,
    rgba(14, 26, 36, 0.92) 0%,
    rgba(14, 26, 36, 0.70) 45%,
    rgba(14, 26, 36, 0.28) 100%
  );
}
/* 5-card industries: 3 + 2 with the second row visually centered */
@media (min-width: 1181px) {
  body.agr-corp-home .industries-grid:has(> :nth-child(5)) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body.agr-corp-home .industries-grid:has(> :nth-child(5)) > .industry-tile {
    grid-column: span 2;
  }
  body.agr-corp-home .industries-grid:has(> :nth-child(5)) > .industry-tile:nth-child(4) {
    grid-column: 2 / span 2;
  }
  body.agr-corp-home .industries-grid:has(> :nth-child(5)) > .industry-tile:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
@media (max-width: 900px) {
  body.agr-corp-home .industries-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body.agr-corp-home .industries-grid { grid-template-columns: 1fr; }
}
