/* Buddha Eye Care: About and Career layouts (about.php, career.php). Loaded after style.css and features.css on
   pages that set $page['pages']. Mobile first; colours come from the tokens in style.css. */

/* ==========================================================================
   About
   A light hero with ripples and the two centres in a pair of spectacles; the story on a white sheet that rises
   over it; how we work on navy with a curved top; the signboard as a big type list; the doctors; every area.
   ========================================================================== */
.abh { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 26px) 0 clamp(120px, 14vw, 170px); background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); }
.abh__ripples {
  position: absolute; z-index: -1; right: -18%; top: 50%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translateY(-46%); pointer-events: none;
  background: rgb(var(--c-on-dark-rgb) / .06); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.abh__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.abh .crumbs { margin-bottom: 22px; }
.abh__title { font-size: clamp(2.6rem, 9vw, 5rem); font-weight: 900; line-height: .98; letter-spacing: -.024em; max-width: 12ch; text-wrap: balance; color: var(--c-on-dark); }
.abh__title em { font-style: normal; color: var(--c-on-dark-accent); display: block; }
.abh__lead { max-width: 46ch; margin: 20px 0 0; font-size: clamp(1.04rem, 2.4vw, 1.18rem); color: rgb(var(--c-on-dark-rgb) / .8); }
.abh__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.abh__facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgb(var(--c-on-dark-rgb) / .08);
  border: 1px solid rgb(var(--c-on-dark-rgb) / .16); font-size: .88rem; font-weight: 650; color: var(--c-on-dark);
}
.abh__facts li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c-accent); }

/* The spectacles: two round lenses, a gold bridge between them, a Hindi place name under each. */
.abh__specs { --lens: clamp(132px, 34vw, 230px); margin: 0; justify-self: center; display: grid; justify-items: center; gap: 18px; }
.abh__specs-label { font: 700 .74rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--c-on-dark-rgb) / .7); }
.abh__lenses { position: relative; display: flex; gap: clamp(26px, 5vw, 54px); }
.abh__bridge {
  position: absolute; left: 50%; top: calc(var(--lens) * .34); width: clamp(44px, 7.4vw, 74px); height: 24px; transform: translateX(-50%);
  border: 4px solid var(--c-accent); border-bottom: 0; border-radius: 40px 40px 0 0;
}
.abh__lens { display: grid; justify-items: center; gap: 14px; text-decoration: none; color: var(--c-on-dark); animation: lensIn .9s var(--ease) both; animation-delay: calc(var(--d) * .14s + .1s); }
@keyframes lensIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.abh__glass {
  position: relative; display: block; width: var(--lens); aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  background: var(--c-tint); border: clamp(6px, 1vw, 10px) solid var(--c-card);
  box-shadow: 0 0 0 1px rgb(var(--c-on-dark-rgb) / .2), 0 30px 50px -26px rgb(0 0 0 / .6);
}
.abh__glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, rgb(255 255 255 / .38), transparent 42%); pointer-events: none; }
.abh__glass picture, .abh__glass img, .abh__glass .ph { width: 100%; height: 100%; }
.abh__glass img { object-fit: cover; transition: transform 1s var(--ease); }
.abh__lens:hover .abh__glass img { transform: scale(1.08); }
.abh__place { display: grid; justify-items: center; gap: 2px; line-height: 1.15; }
.abh__place strong { font: 700 1.15rem/1.15 var(--f-display); }
.abh__place .hi { font-size: 1.02rem; font-weight: 600; color: var(--c-on-dark-accent); }
.abh__lens:hover, .abh__lens:hover .abh__place strong { color: var(--c-on-dark-accent); }

/* The white sheet */
.ab-sheet { position: relative; z-index: 1; margin-top: clamp(-120px, -10vw, -80px); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); background: var(--c-bg); border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; box-shadow: 0 -24px 50px -40px rgb(var(--c-shadow-rgb) / .35); }
.ab-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.ab-kicker { margin: 0 0 10px; font: 900 clamp(4rem, 11vw, 6.75rem)/.9 var(--f-display); letter-spacing: -.03em; color: rgb(var(--c-light-rgb) / .08); -webkit-user-select: none; user-select: none; }
.ab-story h2, .ab-board h2, .ab-head h2, .ab-values h2 { font-size: clamp(1.95rem, 5.4vw, 3rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.ab-story h2 em, .ab-board h2 em, .ab-head h2 em { font-style: normal; color: var(--c-link); }
.ab-story__text > p:not(.eyebrow):not(.ab-kicker) { max-width: 58ch; color: var(--c-text-soft); font-size: 1.06rem; }
.ab-story__text h2 { margin-bottom: 20px; }
.ab-story__sign { position: relative; margin: 26px 0 0; padding: 22px 24px 20px 26px; border-radius: var(--radius); background: var(--c-surface); border-left: 4px solid var(--c-accent); }
.ab-story__sign p { margin: 0; font: 700 clamp(1.1rem, 2.6vw, 1.32rem)/1.35 var(--f-display); color: var(--c-primary); }
.ab-story__sign footer { margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--c-muted); }
.ab-story__photo { position: relative; margin: 0 0 0 14px; display: grid; gap: 30px; }
.ab-story__frame { --pf-r: 30px; --pf-o: 18px; aspect-ratio: 4 / 3; }
.ab-story__frame img { object-position: 50% 30%; }
.ab-story__chip {
  position: absolute; z-index: 2; left: -14px; bottom: 44px; display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--c-card); box-shadow: var(--shadow); line-height: 1.15;
}
.ab-story__chip-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); color: var(--c-btn-text); }
.ab-story__chip strong { display: block; font: 900 1.25rem/1 var(--f-display); color: var(--c-primary); }
.ab-story__chip small { font-size: .8rem; color: var(--c-muted); }
.ab-story__photo figcaption { font-size: .88rem; color: var(--c-muted); padding-left: 4px; }

/* How we work: navy, with a curved top and ripples */
.ab-values { position: relative; isolation: isolate; overflow: hidden; padding: clamp(84px, 11vw, 140px) 0 clamp(64px, 9vw, 112px); background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .8); }
.ab-values::before { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: -1px; height: clamp(40px, 6vw, 80px); background: var(--c-bg); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.ab-values__rings {
  position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 1300px; aspect-ratio: 1; transform: translateX(-50%);
  background: rgb(var(--c-on-dark-rgb) / .05); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.ab-values h2 { color: var(--c-on-dark); max-width: 19ch; }
.ab-swoosh { position: relative; display: inline-block; color: var(--c-on-dark-accent); }
.ab-swoosh svg { position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 14px; fill: none; stroke: var(--c-accent); stroke-width: 4; stroke-linecap: round; }
.ab-values__list { list-style: none; display: grid; gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.ab-value { position: relative; padding: 26px 24px 24px; border-radius: var(--radius-lg); background: rgb(var(--c-on-dark-rgb) / .06); border: 1px solid rgb(var(--c-on-dark-rgb) / .1); transition: background .3s, transform .3s var(--ease); }
.ab-value:hover { background: rgb(var(--c-on-dark-rgb) / .1); transform: translateY(-4px); }
.ab-value__n { position: absolute; right: 22px; top: 22px; font: 900 2.2rem/1 var(--f-display); color: rgb(var(--c-on-dark-rgb) / .12); }
.ab-value__icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; background: var(--c-accent); color: var(--c-btn-text); }
.ab-value__icon .i { width: 24px; height: 24px; }
.ab-value h3 { margin-bottom: 8px; font-size: 1.3rem; color: var(--c-on-dark); }
.ab-value p { margin: 0; font-size: .98rem; line-height: 1.6; }
.ab-cover { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px dashed rgb(var(--c-on-dark-rgb) / .22); }
.ab-cover__label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 .76rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-on-dark-accent); }
.ab-cover__label .i { width: 18px; height: 18px; }
.ab-cover__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-cover__list li { padding: 8px 14px; border-radius: 999px; background: rgb(var(--c-on-dark-rgb) / .08); color: var(--c-on-dark); font-size: .88rem; font-weight: 600; }
.ab-cover__list li.is-key { background: var(--c-accent); color: var(--c-btn-text); font-weight: 700; }
.ab-cover__list small { font-weight: 600; opacity: .8; }
.ab-cover__note { margin: 14px 0 0; font-size: .88rem; color: rgb(var(--c-on-dark-rgb) / .65); }

/* The signboard, as a big type list */
.ab-board__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.ab-board__side > p:not(.eyebrow) { max-width: 46ch; margin-top: 16px; color: var(--c-text-soft); font-size: 1.04rem; }
.ab-board__photo { position: relative; margin: 26px 0 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--c-tint); }
.ab-board__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ab-board__photo figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgb(var(--c-bg-rgb) / .94); color: var(--c-primary); font-size: .86rem; font-weight: 700; }
.ab-board__photo figcaption .i { width: 16px; height: 16px; color: var(--c-accent-text); }
.ab-board__list { list-style: none; border-top: 1px solid var(--c-line); }
.ab-board__list li { border-bottom: 1px solid var(--c-line); }
.ab-word {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 6px 14px; align-items: center; padding: 24px 4px;
  text-decoration: none; color: var(--c-text);
}
.ab-word::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: var(--radius); background: var(--c-surface); opacity: 0; transition: opacity .3s; }
.ab-word:hover { color: var(--c-text); }
.ab-word:hover::before { opacity: 1; }
.ab-word__n { align-self: start; padding-top: 14px; font: 700 .8rem/1 var(--f-body); letter-spacing: .1em; color: var(--c-muted); }
.ab-word__name { display: grid; font: 900 clamp(2.2rem, 7vw, 3.6rem)/1 var(--f-display); letter-spacing: -.022em; color: var(--c-primary); transition: color .25s; }
.ab-word__name .hi { margin-top: 6px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--c-link); }
.ab-word__text { grid-column: 2; max-width: 44ch; font-size: .96rem; color: var(--c-muted); }
.ab-word__go { grid-column: 3; grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--c-line); color: var(--c-primary); background: var(--c-card); transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.ab-word__go .i { width: 20px; height: 20px; }
.ab-word:hover .ab-word__name { color: var(--c-link); }
.ab-word:hover .ab-word__go { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-btn-text); transform: rotate(-45deg); }

/* Section heads with a button beside them */
.ab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: clamp(28px, 4vw, 48px); }
.ab-head > div { max-width: 680px; }
.ab-head p:not(.eyebrow) { margin: 14px 0 0; color: var(--c-muted); font-size: 1.04rem; }

/* Doctors */
.ab-docs__grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ab-doc { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease); }
.ab-doc :focus-visible { outline-color: var(--c-focus-on-dark); }
.ab-doc:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.ab-doc__photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px); background: var(--c-tint); }
.ab-doc__photo picture, .ab-doc__photo img { width: 100%; height: 100%; }
.ab-doc__photo img { object-fit: cover; object-position: 50% 18%; transition: transform .9s var(--ease); }
.ab-doc:hover .ab-doc__photo img { transform: scale(1.05); }
.ab-doc__where { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--c-accent); color: var(--c-btn-text); font-size: .86rem; font-weight: 700; }
.ab-doc__where .i { width: 16px; height: 16px; }
.ab-doc__body { padding: 22px 24px 26px; }
.ab-doc__role { margin: 0 0 6px; font: 700 .74rem/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-on-dark-accent); }
.ab-doc h3 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; color: var(--c-on-dark); }
.ab-doc h3 a { color: inherit; text-decoration: none; }
.ab-doc h3 a:hover { color: var(--c-on-dark-accent); }
.ab-doc .creds { margin: 12px 0 14px; }
.ab-doc .creds li { background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark); }
.ab-doc__body > p:not(.ab-doc__role) { color: rgb(var(--c-on-dark-rgb) / .8); font-size: .98rem; }
.ab-doc .link-arrow { color: var(--c-on-dark-accent); }
.ab-doc .link-arrow:hover { color: var(--c-on-dark); }

/* Every area */
.ab-areas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ab-areas li { display: grid; }
.ab-area {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; gap: 8px; padding: 22px 20px 20px; border-radius: var(--radius-lg);
  background: var(--c-surface); text-decoration: none; color: var(--c-text); transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.ab-area::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 170px; height: 170px; background: rgb(var(--c-light-rgb) / .14); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; opacity: 0; transition: opacity .4s; }
.ab-area:hover { color: var(--c-text); background: var(--c-card); box-shadow: var(--shadow); transform: translateY(-4px); }
.ab-area:hover::after { opacity: 1; }
.ab-area__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 15px; background: var(--c-card); color: var(--c-link); box-shadow: var(--shadow-sm); transition: background .3s, color .3s; }
.ab-area__icon .i { width: 24px; height: 24px; }
.ab-area:hover .ab-area__icon { background: var(--c-primary); color: var(--c-on-dark); }
.ab-area__name { font: 700 1.18rem/1.2 var(--f-display); color: var(--c-primary); }
.ab-area__text { font-size: .9rem; line-height: 1.5; color: var(--c-muted); }
.ab-area__count { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .84rem; font-weight: 700; color: var(--c-link); }
.ab-area__count .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ab-area:hover .ab-area__count .i { transform: translateX(4px); }

/* ==========================================================================
   Career
   A navy hero with a photo collage, why work here, the roles as a big list with "Apply" buttons that pick the
   role in the form, three steps on a line, and the form beside a dark panel of what happens to the details.
   ========================================================================== */
.crh { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 26px) 0 clamp(56px, 8vw, 104px); background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); }
.crh::after {
  content: ""; position: absolute; z-index: -1; right: -30%; bottom: -70%; width: 1200px; aspect-ratio: 1;
  background: rgb(var(--c-on-dark-rgb) / .06); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat;
}
.crh .crumbs { margin-bottom: 26px; }
.crh__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.crh__title { font-size: clamp(2.8rem, 10vw, 5.6rem); font-weight: 900; line-height: .96; letter-spacing: -.026em; color: var(--c-on-dark); text-wrap: balance; }
.crh__title em { font-style: normal; color: var(--c-on-dark-accent); }
.crh__lead { max-width: 48ch; margin: 22px 0 0; font-size: clamp(1.04rem, 2.4vw, 1.2rem); color: rgb(var(--c-on-dark-rgb) / .8); }
.crh__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.crh__stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgb(var(--c-on-dark-rgb) / .14); }
.crh__stats strong { display: block; font: 900 clamp(1.8rem, 5vw, 2.6rem)/1 var(--f-display); color: var(--c-on-dark); }
.crh__stats span { display: block; margin-top: 6px; font-size: .84rem; line-height: 1.35; color: rgb(var(--c-on-dark-rgb) / .68); }

/* The collage: three of our own photos in staggered rounded frames, with a floating chip */
.crh__collage { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto auto; gap: 12px; }
.crh__shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: rgb(var(--c-on-dark-rgb) / .08); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.crh__shot picture, .crh__shot img { width: 100%; height: 100%; }
.crh__shot img { object-fit: cover; transition: transform 1.2s var(--ease); }
.crh__shot:hover img { transform: scale(1.05); }
.crh__shot--a { grid-row: 1 / span 2; aspect-ratio: 3 / 4; }
.crh__shot--b { aspect-ratio: 1; margin-top: 34px; }
.crh__shot--c { aspect-ratio: 1; margin-bottom: 34px; }
.crh__chip {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 10px 20px 10px 10px;
  border-radius: 999px; background: var(--c-card); color: var(--c-primary); box-shadow: var(--shadow); white-space: nowrap; line-height: 1.2;
}
.crh__chip-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); color: var(--c-btn-text); }
.crh__chip strong { display: block; font-size: .95rem; }
.crh__chip small { font-size: .8rem; color: var(--c-muted); }

/* Why work here */
.cr-why__grid { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cr-why__item { position: relative; isolation: isolate; overflow: hidden; padding: 26px 24px; border-radius: var(--radius-lg); background: var(--bg-glow); color: rgb(var(--c-on-dark-rgb) / .8); transition: transform .3s var(--ease), box-shadow .3s; }
.cr-why__item::after { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -80px; width: 200px; height: 200px; background: rgb(var(--c-on-dark-rgb) / .08); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; }
.cr-why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cr-why__icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; background: rgb(var(--c-on-dark-accent-rgb) / .16); color: var(--c-on-dark-accent); }
.cr-why__icon .i { width: 24px; height: 24px; }
.cr-why__item h3 { margin-bottom: 8px; font-size: 1.28rem; color: var(--c-on-dark); }
.cr-why__item p { margin: 0; color: rgb(var(--c-on-dark-rgb) / .76); font-size: .97rem; }

/* The roles: a big list, each with a short line and "Apply" */
.cr-roles { background: var(--c-surface); }
.cr-roles__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cr-roles__list { list-style: none; display: grid; gap: 10px; }
.cr-role {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 4px 16px; align-items: center;
  padding: 18px; border-radius: var(--radius-lg); background: var(--c-card); border: 1px solid var(--c-line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.cr-role::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-accent); transform: scaleY(0); transition: transform .35s var(--ease); }
.cr-role:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateX(4px); }
.cr-role:hover::before { transform: none; }
.cr-role__icon { grid-row: 1 / span 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--c-tint); color: var(--c-link); transition: background .3s, color .3s; }
.cr-role:hover .cr-role__icon { background: var(--c-primary); color: var(--c-on-dark-accent); }
.cr-role__icon .i { width: 24px; height: 24px; }
.cr-role h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: clamp(1.18rem, 3.4vw, 1.45rem); }
.cr-role__n { font: 700 .74rem/1 var(--f-body); letter-spacing: .12em; color: var(--c-muted); }
.cr-role p { grid-column: 2; margin: 0; font-size: .94rem; color: var(--c-muted); }
.cr-role__apply {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--c-line); color: var(--c-primary); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background .25s, border-color .25s, color .25s;
}
.cr-role__apply .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.cr-role__apply:hover, .cr-role:hover .cr-role__apply { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-btn-text); }
.cr-role__apply:hover .i { transform: translateX(3px); }
.cr-roles__other { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1.5px dashed var(--c-tint-strong); color: var(--c-text-soft); font-size: .95rem; }
.cr-roles__other .i { flex: none; width: 22px; height: 22px; color: var(--c-accent-text); }
.cr-roles__other a { font-weight: 700; }

/* Three steps on a line */
.cr-steps { list-style: none; position: relative; display: grid; gap: 24px; margin-top: 32px; }
.cr-step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; }
.cr-step__n {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--c-card); border: 2px solid var(--c-accent); color: var(--c-primary); font: 900 1.3rem/1 var(--f-display); box-shadow: 0 0 0 6px var(--c-bg);
}
.cr-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: -24px; width: 2px; background: repeating-linear-gradient(to bottom, var(--c-accent) 0 6px, transparent 6px 12px); }
.cr-step h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.cr-step p { margin: 0; color: var(--c-muted); font-size: .96rem; }

/* The form beside a dark panel */
.cr-apply__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.cr-apply__card { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--c-card); border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.cr-apply__card > h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.cr-apply__card > p { margin: 10px 0 24px; color: var(--c-muted); }
.cr-apply__side { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--c-panel); color: rgb(var(--c-on-dark-rgb) / .8); }
.cr-apply__side::after { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -120px; width: 320px; height: 320px; background: rgb(var(--c-on-dark-rgb) / .07); -webkit-mask: url("../brand/iris.svg") center / contain no-repeat; mask: url("../brand/iris.svg") center / contain no-repeat; }
.cr-apply__side h3 { margin-bottom: 18px; font-size: 1.4rem; color: var(--c-on-dark); }
.cr-apply__side ul { list-style: none; display: grid; gap: 16px; }
.cr-apply__side li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.cr-apply__side li > .i { width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: rgb(var(--c-on-dark-rgb) / .1); color: var(--c-on-dark-accent); }
.cr-apply__side strong { display: block; color: var(--c-on-dark); font-size: 1rem; margin-bottom: 2px; }
.cr-apply__side span { font-size: .92rem; line-height: 1.5; }
.cr-apply__side a { color: var(--c-on-dark-accent); font-weight: 700; }
.cr-apply__side a:hover { color: var(--c-on-dark); }
.cr-apply__card .file { border-style: dashed; }

@media (max-width: 479px) {
  .ab-areas { grid-template-columns: minmax(0, 1fr); }
  .ab-word { grid-template-columns: minmax(0, 1fr) 46px; }
  .ab-word__n { display: none; }
  .ab-word__name, .ab-word__text { grid-column: 1; }
  .ab-word__go { grid-column: 2; }
  .crh__stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .crh__stats li:last-child { grid-column: 1 / -1; }
  .crh__chip { white-space: normal; width: max-content; max-width: 92%; }
}
@media (min-width: 600px) {
  .cr-role { grid-template-columns: 54px minmax(0, 1fr) auto; padding: 20px 22px; }
  .cr-role__apply { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}
@media (min-width: 720px) {
  .ab-values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .ab-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .ab-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .cr-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
/* Tablets: the steps run in a row; on wide screens they sit in the side column, so they stack again. */
@media (min-width: 720px) and (max-width: 959px) {
  .cr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .cr-step { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cr-step:not(:last-child)::before { left: 56px; right: -28px; top: 27px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--c-accent) 0 6px, transparent 6px 12px); }
}
@media (min-width: 960px) {
  .abh { padding-top: calc(var(--header-h) + 32px); }
  .abh__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; }
  .abh__specs { justify-self: end; }
  .ab-story { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; }
  .ab-board__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
  .ab-board__side { position: sticky; top: calc(var(--header-h) + 32px); }
  .ab-doc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  /* The photo fills the card's height, set by the text beside it. The picture is taken out of the flow so it can't
     size the row itself: a % height that feeds back into its own row made Safari grow the photo without end. */
  .ab-doc__photo { margin: 10px 0 10px 10px; aspect-ratio: auto; min-height: 260px; }
  .ab-doc__photo picture { position: absolute; inset: 0; }
  .ab-doc__body { display: flex; flex-direction: column; padding: 30px 30px 30px 28px; }
  .ab-doc__body .link-arrow { margin-top: auto; }

  .crh { padding-top: calc(var(--header-h) + 32px); }
  .crh__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .cr-why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cr-roles__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .cr-roles__side { position: sticky; top: calc(var(--header-h) + 32px); }
  .cr-apply__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 24px; }
  .cr-apply__side { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .abh__lens { animation: none; }
}
