/* ==========================================================================
   About page additions (client feedback Nov 2026): the envelope is gone; the story text
   now sits on its own, followed by a row of team polaroids (after genj.com.au/aboutus).
   Loaded by about.php only.
   ========================================================================== */

.ek-about-intro { max-width: 980px; margin: 0 auto; padding: clamp(28px, 4.5vw, 64px) clamp(22px, 5vw, 72px); text-align: center; }
.ek-about-intro .lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.75; color: var(--ek-ink, #4f3017); }

/* ---------- team polaroids ---------- */
.ek-team { padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.ek-team__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(18px, 3vw, 36px); }
.ek-team__title { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ek-team__title .italic-text { color: var(--ek-maroon, #701c1c); }
.ek-team__title .bold-text { color: var(--ek-brown, #332219); margin-top: -.12em; }
.ek-team__nav { display: flex; gap: 10px; }
.ek-team__nav[hidden] { display: none; }
.ek-team__btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(79, 48, 23, .3); background: transparent;
    color: var(--ek-ink, #4f3017); font-size: 18px; display: grid; place-items: center; cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s;
}
.ek-team__btn:hover, .ek-team__btn:focus-visible { background: var(--ek-maroon, #701c1c); border-color: var(--ek-maroon, #701c1c); color: var(--ek-on-dark, #f6efe3); }

.ek-team__track {
    display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 30px max(16px, calc((100vw - 1296px) / 2 + 12px)) 40px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.ek-team__track::-webkit-scrollbar { display: none; }
.ek-team__track:focus-visible { outline: 2px solid var(--ek-maroon, #701c1c); outline-offset: -2px; }

.ek-polaroid {
    flex: none; width: clamp(210px, 22vw, 290px); margin: 0; scroll-snap-align: center;
    background: #fff; padding: 12px 12px 0; border-radius: 3px;
    box-shadow: 0 1px 2px rgba(51, 34, 25, .08), 0 14px 34px rgba(51, 34, 25, .16);
    transform: rotate(var(--ek-tilt, 0deg)); transform-origin: 50% 12%;
}
.ek-polaroid__photo { aspect-ratio: 4 / 5; overflow: hidden; background: #e9e1d2; }
.ek-polaroid__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16, .84, .3, 1), filter .6s; filter: saturate(.92) contrast(1.02); }
.ek-polaroid__cap {
    min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 6px 6px 8px; text-align: center;
    font-family: var(--font-marker, "Oaken", "Bradley Hand", cursive); font-size: 19px; line-height: 1.2; color: #3a2a20;
}
@media (hover: hover) {
    .ek-polaroid.is-in:hover { transform: rotate(0deg) translateY(-10px) scale(1.02); transition-delay: 0s; box-shadow: 0 2px 4px rgba(51, 34, 25, .08), 0 26px 50px rgba(51, 34, 25, .22); }
    .ek-polaroid:hover .ek-polaroid__photo img { transform: scale(1.05); filter: none; }
}

@media (max-width: 767.98px) {
    .ek-team__head { align-items: center; }
    .ek-team__track { gap: 20px; padding-top: 24px; }
    .ek-polaroid { width: 68vw; max-width: 270px; }
}

/* opening line now comes from Site Content (may be several paragraphs) */
.ek-about-intro__text p { margin: 0 0 .8em; }
.ek-about-intro__text p:last-child { margin-bottom: 0; }

/* the client's Ek Din postcard (round 3): the picture's own background is the brand Dark Brown, so it sits flush */
.ek-postcard { background: var(--ek-brown, #332219); padding: clamp(28px, 5vw, 64px) 0; margin-top: clamp(36px, 5vw, 64px); }
.ek-postcard__card { margin: 0 auto; max-width: 720px; }
.ek-postcard__card img { display: block; width: 100%; height: auto; }

/* team polaroids that flip to a bio (round 4): the faces carry the paper, the wrapper only places and tilts */
.ek-polaroid--flip { background: none; padding: 0; box-shadow: none; }
.ek-polaroid--flip .ek-flip__face { background: #fff; padding: 12px 12px 0; }
.ek-polaroid--flip .ek-flip__photo { aspect-ratio: 4 / 5; }
.ek-polaroid--flip .ek-flip__back { padding: 14% 12%; }


/* ---------- header collage (client mock-up "Where culture meets", 7 Nov 2026) ---------- */
.ek-ohero { background: var(--ek-maroon-deep, #611310); color: var(--ek-on-dark, #f6efe3); padding: calc(var(--ek-header-h, 90px) + clamp(20px, 4vw, 56px)) 16px clamp(40px, 6vw, 80px); overflow: hidden; }
.ek-ohero__stage { position: relative; width: min(1000px, 100%); margin: 0 auto; aspect-ratio: 1000 / 520; }
.ek-ohero__item { position: absolute; margin: 0; animation: ek-oh-in 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.ek-ohero__photo { overflow: hidden; box-shadow: 0 22px 44px rgba(20, 4, 4, .38), 0 3px 8px rgba(20, 4, 4, .25); }
.ek-ohero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ek-ohero__photo--1 { left: 7%; top: 10%; width: 27%; aspect-ratio: 3 / 4; --d: .1s; }
.ek-ohero__photo--2 { left: 37%; top: 0; width: 24%; aspect-ratio: 858 / 1024; --d: .25s; }
.ek-ohero__photo--3 { left: 64%; top: 28%; width: 31%; aspect-ratio: 4 / 3; --d: .4s; }
.ek-ohero__deco { height: auto; filter: drop-shadow(0 12px 14px rgba(20, 4, 4, .35)); --d: .7s; pointer-events: none; }
.ek-ohero__deco--flower { left: 0; top: -2%; width: 15%; z-index: 2; }
.ek-ohero__deco--marigold { left: 55%; top: 1%; width: 17%; z-index: 2; --d: .8s; }
.ek-ohero__deco--diyas { left: 43%; top: 57%; width: 14%; z-index: 2; --d: .9s; }
.ek-ohero__deco--hibiscus { left: 87%; top: 66%; width: 12%; z-index: 2; --d: 1s; }
.ek-ohero__deco { animation: ek-oh-in 1.1s cubic-bezier(.2, .7, .2, 1) both, ek-oh-sway 7s ease-in-out 1.2s infinite alternate; animation-delay: var(--d, 0s), calc(var(--d, 0s) + 1.1s); }
.ek-ohero__title { margin: clamp(10px, 2vw, 24px) 0 0; text-align: center; line-height: 1; color: var(--ek-on-dark, #f6efe3); }
.ek-ohero__title .italic-text { display: block; font-size: clamp(40px, 5vw, 72px); color: var(--ek-on-dark, #f6efe3); line-height: 1; }
.ek-ohero__title .bold-text { display: block; font-size: clamp(48px, 6.5vw, 96px); color: var(--ek-on-dark, #f6efe3); line-height: .95; margin-top: -.12em; }
@keyframes ek-oh-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ek-oh-sway { from { rotate: -2deg; } to { rotate: 3deg; } }
@media (max-width: 767.98px) {
    .ek-ohero__stage { aspect-ratio: 1000 / 1100; }
    .ek-ohero__photo--1 { left: 2%; top: 6%; width: 42%; }
    .ek-ohero__photo--2 { left: 50%; top: 0; width: 44%; }
    .ek-ohero__photo--3 { left: 24%; top: 50%; width: 66%; }
    .ek-ohero__deco--flower { left: -3%; top: 0; width: 24%; }
    .ek-ohero__deco--marigold { left: 72%; top: 33%; width: 26%; }
    .ek-ohero__deco--diyas { left: 0; top: 62%; width: 22%; }
    .ek-ohero__deco--hibiscus { left: 80%; top: 84%; width: 19%; }
}

/* ---------- In the Beginning / Today / Our Vision on red (client, 7 Nov 2026) ---------- */
#rh-custom-tab-section { background: var(--ek-maroon, #701c1c); color: var(--ek-on-dark, #f6efe3); }
#rh-custom-tab-section .rh-heading, #rh-custom-tab-section .rh-trigger-item h4 { color: var(--ek-on-dark, #f6efe3) !important; }
#rh-custom-tab-section .text-muted, #rh-custom-tab-section .lead { color: rgba(246, 239, 227, .88) !important; }
#rh-custom-tab-section .rh-trigger-item { border-color: rgba(246, 239, 227, .22) !important; opacity: .7; }
#rh-custom-tab-section .rh-trigger-item.rh-active, #rh-custom-tab-section .rh-trigger-item:hover { opacity: 1; }
#rh-custom-tab-section .border-top { border-color: rgba(246, 239, 227, .22) !important; }

/* round 5 (client, 12 Nov 2026, after rhodeskin.com/pages/about-us): the next photo swipes up over the last one
   instead of fading (same movement as the Our 10% card, story.css). Only clip-path and transform animate. */
#rh-custom-tab-section .rh-image-viewport .rh-tab-img {
    opacity: 1; z-index: 0; clip-path: inset(100% 0 0 0); transform: translateY(12%) scale(1.06); transition: none;
}
#rh-custom-tab-section .rh-image-viewport .rh-tab-img.rh-active {
    z-index: 2; clip-path: inset(0 0 0 0); transform: none;
    transition: clip-path .95s cubic-bezier(.76, 0, .24, 1), transform 1.25s cubic-bezier(.22, .8, .24, 1);
}
#rh-custom-tab-section .rh-image-viewport .rh-tab-img.rh-prev {
    z-index: 1; clip-path: inset(0 0 0 0); transform: translateY(-8%) scale(1.02); transition: transform .95s cubic-bezier(.76, 0, .24, 1);
}
/* phones: a smaller landscape frame, the same shape as the Our 10% card photo, instead of a 550px-tall panel */
@media (max-width: 767.98px) {
    #rh-custom-tab-section .rh-image-viewport { height: auto; aspect-ratio: 4 / 3; }
    #rh-custom-tab-section .rh-description-wrapper { margin-bottom: 1.75rem !important; }
}
/* round 6 (client, 15 Nov 2026: "make it the same font size and section style as Our Charity"): on phones the
   In the Beginning / Today / Our Vision section uses the Our 10% card's measurements (story.css .st-cv): content
   inset 36px (16px page edge + 20px card padding), 22px top padding, 26px bold heading, 15px body at 1.65, 18px tabs
   with 16px rows, 28px between photo and words, 18px photo corners. Its red background stays. */
@media (max-width: 767.98px) {
    #rh-custom-tab-section { padding: 22px 0 !important; }
    #rh-custom-tab-section > .container { padding-left: 36px; padding-right: 36px; }
    #rh-custom-tab-section > .container > .row { --bs-gutter-x: 0; --bs-gutter-y: 28px; }
    #rh-custom-tab-section .rh-image-viewport { border-radius: var(--ek-radius, 18px) !important; box-shadow: 0 18px 44px rgba(20, 6, 4, .22); }
    #rh-custom-tab-section .rh-heading { font-size: 26px; line-height: 1.1; font-weight: 700 !important; margin: 0 0 14px !important; }
    #rh-custom-tab-section .rh-tab-desc .lead { font-size: 15px; line-height: 1.65; font-weight: 400; }
    #rh-custom-tab-section .rh-tab-desc .lead p { margin: 0 0 .9em; }
    #rh-custom-tab-section .rh-tab-desc .lead p:last-child { margin-bottom: 0; }
    #rh-custom-tab-section .rh-description-wrapper { margin-bottom: 20px !important; }
    #rh-custom-tab-section .rh-trigger-item { padding: 16px 0 !important; min-height: 56px; display: flex; align-items: center; }
    #rh-custom-tab-section .rh-trigger-item h4 { font-size: 18px; font-weight: 700 !important; line-height: 1.5; }
    #rh-custom-tab-section .rh-trigger-item:hover, #rh-custom-tab-section .rh-trigger-item.rh-active { padding-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    #rh-custom-tab-section .rh-image-viewport .rh-tab-img, #rh-custom-tab-section .rh-image-viewport .rh-tab-img.rh-active,
    #rh-custom-tab-section .rh-image-viewport .rh-tab-img.rh-prev { transition: none; transform: none; }
    #rh-custom-tab-section .rh-image-viewport .rh-tab-img.rh-prev { clip-path: inset(100% 0 0 0); }
}

/* ---------- postcard that turns over (round 4) ---------- */
.ek-postcard { margin-top: 0; text-align: center; }
.ek-pcard { display: block; width: min(720px, 100%); margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1600px; -webkit-tap-highlight-color: transparent; }
.ek-pcard:focus-visible { outline: 3px solid var(--ek-nude, #d1a478); outline-offset: 6px; }
.ek-pcard__inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.ek-pcard[aria-pressed="true"] .ek-pcard__inner { transform: rotateY(180deg); }
.ek-pcard:not([aria-pressed="true"]):hover .ek-pcard__inner { transform: rotateY(-8deg) rotateX(3deg); }
.ek-pcard__face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
/* Round 5: both sides are the same card size (the Everest postcard is 826 x 556) */
.ek-pcard__card, .ek-pcard__paper { width: 84%; aspect-ratio: 826 / 556; }
.ek-pcard__card { height: auto; display: block; rotate: 1.2deg; filter: drop-shadow(0 20px 26px rgba(10, 4, 2, .45)) drop-shadow(0 3px 6px rgba(10, 4, 2, .3)); }
.ek-pcard__back { transform: rotateY(180deg); }
.ek-pcard__paper {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch;
    padding: 5% 5.5%; text-align: left; rotate: -1.2deg;
    background: linear-gradient(180deg, #faf7f0, #efe9de); box-shadow: 0 20px 40px rgba(10, 4, 2, .45), 0 3px 8px rgba(10, 4, 2, .3);
}
/* the message half and the address half, split by a fine rule like a real postcard */
.ek-pcard__msg {
    align-self: center; padding-right: 7%;
    font-family: "Reenie Beanie", var(--ek-font-ui); font-size: clamp(20px, 3.1vw, 37px); line-height: 1.12; color: var(--ek-maroon, #701c1c);
}
.ek-pcard__side { display: flex; flex-direction: column; justify-content: space-between; padding-left: 9%; border-left: 1px solid rgba(112, 28, 28, .28); }
.ek-pcard__stamps { width: min(100%, 200px); height: auto; align-self: flex-end; }
.ek-pcard__lines { display: grid; gap: clamp(14px, 2.6vw, 26px); padding-bottom: 6%; }
.ek-pcard__lines i { display: block; height: 1px; background: rgba(79, 48, 23, .32); }
@media (max-width: 575.98px) {
    .ek-pcard__card, .ek-pcard__paper { width: 96%; }
    .ek-pcard__paper { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); padding: 5% 4.5%; }
    .ek-pcard__msg { font-size: 19px; padding-right: 5%; }
    .ek-pcard__side { padding-left: 6%; }
}
.ek-pcard__hint { margin: 16px 0 0; font-family: "Reenie Beanie", var(--ek-font-ui); font-size: 24px; color: var(--ek-nude, #d1a478); }
@media (prefers-reduced-motion: reduce) {
    .ek-ohero__item, .ek-ohero__deco { animation: none; }
    .ek-pcard__inner { transition: none; }
}

/* ---------- round 7 (client, 18 Nov 2026) ---------- */
/* "Can we make this brown background. It is hard to read with the red": In the Beginning / Today / Our Vision on the
   brand Dark Brown. A soft warm glow (Yellow Nude, top left) and a touch of Royal Red (bottom right) keep it from looking flat. */
#rh-custom-tab-section {
    background:
        radial-gradient(110% 85% at 8% 0%, rgba(209, 164, 120, .10) 0%, rgba(209, 164, 120, 0) 58%),
        radial-gradient(85% 75% at 100% 100%, rgba(97, 19, 16, .26) 0%, rgba(97, 19, 16, 0) 62%),
        var(--ek-brown, #332219);
}
#rh-custom-tab-section .rh-image-viewport { box-shadow: 0 22px 48px rgba(12, 6, 3, .34); }
#rh-custom-tab-section .rh-trigger-item.rh-active h4 { color: var(--ek-nude, #d1a478) !important; }

/* "Can we make this cream/white background?": the Everest postcard sits on Cream. Only the section changes; the
   postcard, its handwriting and the turn-over stay the same. Shadows are a warm brown so the card lifts off the cream. */
.ek-postcard { background: var(--ek-cream, #f5f0e6); padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 6vw, 88px); }
.ek-pcard__card { filter: drop-shadow(0 22px 28px rgba(51, 34, 25, .26)) drop-shadow(0 3px 7px rgba(51, 34, 25, .16)); }
.ek-pcard__paper { box-shadow: 0 22px 42px rgba(51, 34, 25, .24), 0 3px 8px rgba(51, 34, 25, .14); }
.ek-pcard:focus-visible { outline-color: var(--ek-maroon, #701c1c); }
.ek-pcard__hint { color: var(--ek-maroon, #701c1c); opacity: .8; }

/* ---------- round 8 (client, 26 Nov 2026, iPad photo): Meet the team polaroids on tablets ----------
   Why there were long white areas: both faces of a flip polaroid share one grid cell (flip.css .ek-flip__inner /
   .ek-flip__face), so a card is as tall as its taller face. The founders' bios on the back are 60-70 words, and on
   tablets the cards were only 210-225px wide (clamp(210px, 22vw, 290px) above), so the back grew to ~600px and
   stretched the front 140-275px below the name. Now the back is set to fit inside the front (less padding, a touch
   smaller text), any small remainder becomes the Polaroid's bottom strip with the name centred in it, and tablets
   get wider cards laid out for the screen: two up with the third centred in portrait, three across the content width
   in landscape. Phones and desktops keep their sideways row. */
.ek-polaroid--flip .ek-flip__cap { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; }
.ek-polaroid--flip .ek-flip__back { padding: 10% 9%; gap: 8px; }
.ek-polaroid--flip .ek-flip__text { font-size: 14px; line-height: 1.5; }
/* the sideways row (phones, desktops): a little more room so neighbouring tilted corners no longer overlap */
.ek-team__track { gap: 40px; }
@media (max-width: 767.98px) { .ek-team__track { gap: 36px; } }

@media (min-width: 768px) and (max-width: 1199.98px) {
    .ek-team { --ek-team-gutter: clamp(24px, 3.5vw, 40px); --ek-team-gap: clamp(40px, 4.5vw, 56px); padding: clamp(56px, 7vw, 80px) 0 clamp(48px, 6vw, 72px); }
    .ek-team > .container { padding-left: var(--ek-team-gutter); padding-right: var(--ek-team-gutter); }
    .ek-team__head { margin-bottom: 0; }
    /* style.css drops these to phone sizes at 768px and jumps to full desktop size at 769px: one smooth scale instead */
    .ek-team__title .italic-text { font-size: clamp(40px, 4.27vw, 51.2px); }
    .ek-team__title .bold-text { font-size: clamp(48px, 6vw, 72px); }
    /* the founders sit on the page rather than in a scroller, so tilted corners, shadows and the drop-in are not cut off */
    .ek-team__track {
        flex-wrap: wrap; justify-content: center; gap: var(--ek-team-gap);
        overflow: visible; scroll-snap-type: none; padding: 36px var(--ek-team-gutter) 28px;
    }
    .ek-polaroid { width: min(340px, calc((100% - 2 * var(--ek-team-gap)) / 3)); }
    /* nothing scrolls here, so no arrows (about.php shows them whenever the drop-in's tilt pokes past the edge) */
    .ek-team:not(:has(.ek-polaroid:nth-child(4))) .ek-team__nav { display: none; }
    /* four or more photos: keep the sideways row (arrows appear by the heading), with the same balanced card size */
    .ek-team__track:has(> .ek-polaroid:nth-child(4)) { flex-wrap: nowrap; justify-content: flex-start; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 52px; }
    .ek-team__track:has(> .ek-polaroid:nth-child(4)) > .ek-polaroid { width: 300px; }
}
/* portrait: two up, lined up with the heading and the right edge, the third centred underneath; the wider gap keeps
   the tilted corners from touching */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ek-team { --ek-team-gap: clamp(52px, 7.5vw, 64px); }
    .ek-team__track { justify-content: space-between; }
    .ek-polaroid { width: min(340px, calc((100% - var(--ek-team-gap)) / 2)); }
    .ek-polaroid:last-child:nth-child(odd) { margin-left: auto; margin-right: auto; }
}

/* In the Beginning: Bootstrap's g-lg-5 row is 12px wider than the full-width container from 992px until the container
   stops filling the screen (1344px), which let iPads in landscape pan sideways. Match the container padding to the gutter. */
@media (min-width: 992px) and (max-width: 1343.98px) {
    #rh-custom-tab-section > .container { padding-left: 24px; padding-right: 24px; }
}
