/* ============================================================
   Inner pages (About, Approach, Services, Experience, Contact):
   the signed-off Option A look carried through. Loaded after css/option-a.css.
   ============================================================ */

/* page hero: the homepage panel and gold offset frame, shorter */
.p-hero { min-height: clamp(420px, 40vw, 520px); }
.p-hero .a-hero__img img { transform: scaleX(var(--flip, 1)); object-position: var(--pos, 70% 50%); }
.p-hero .a-hero__inner { padding-top: var(--s-6); padding-bottom: var(--s-6); }
.p-hero .a-hero__frame { width: min(100%, 560px); }
.p-hero__title { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.05; font-weight: 300; color: var(--navy); margin: 0; }
.p-hero__title strong { font-weight: 900; }
@media (max-width: 760px) { .p-hero .a-hero__inner { padding-top: 160px; } }

/* section heads with a small eyebrow, as on the current site (OUR PEOPLE, OUR STORY) */
.p-head { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.p-head--c { align-items: center; text-align: center; }
.p-rule { width: 72px; height: 3px; background: var(--gold-bright); border: 0; margin: 0; }
.p-lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--navy); max-width: 62ch; }
.p-head--c .p-lead { margin: 0 auto; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-2); }
.p-center { display: flex; justify-content: center; margin-top: var(--s-6); }

/* about: our people, photo in the gold offset frame beside the text */
.p-people { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .p-people { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 88px); } }
.p-photo { position: relative; margin: 16px 16px 0 0; }
.p-photo::before { content: ''; position: absolute; inset: -16px -16px 16px 16px; border: 2px solid var(--gold-bright); z-index: 0; }
.p-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1 / 1); object-fit: cover; box-shadow: var(--shadow-lift); }
@media (min-width: 960px) { .p-photo--sticky { position: sticky; top: 120px; } }
.p-photo__cap { position: relative; z-index: 2; margin: -28px 0 0 var(--s-3); display: inline-flex; flex-direction: column; gap: 2px; padding: 14px 20px; background: var(--navy); color: #FFFFFF; border-top: 3px solid var(--gold-bright); box-shadow: var(--shadow-1); }
.p-photo__cap strong { font-size: 1rem; }
.p-photo__cap span { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); }
.p-prose { display: flex; flex-direction: column; gap: var(--s-2); }
.p-prose p { margin: 0; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); max-width: 68ch; }
.p-prose--split p + p { padding-top: var(--s-2); border-top: 1px solid var(--line); }

/* about: our story, lead then a two by two grid divided by hairlines */
.p-story { max-width: 1100px; margin: var(--s-6) auto 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: #FFFFFF; box-shadow: var(--shadow-1); border-top: 4px solid var(--navy); position: relative; }
.p-story::before { content: ''; position: absolute; left: 0; top: -4px; width: 96px; height: 4px; background: var(--gold-bright); }
@media (min-width: 860px) { .p-story { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-story p { margin: 0; padding: clamp(24px, 3vw, 36px); font-size: 1.0625rem; line-height: 1.75; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .p-story p:nth-child(even) { border-right: 1px solid var(--line); } .p-story p:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 859px) { .p-story p:last-child { border-bottom: 0; } }
.p-story p.p-story__wide { grid-column: 1 / -1; border-right: 0; font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--navy); background: color-mix(in oklab, var(--navy), transparent 96%); }

/* about: track record, twelve white cards, client logo in a tile beside the line, gold edge on hover */
.p-track { list-style: none; margin: var(--s-6) auto 0; padding: 0; max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
@media (min-width: 860px) { .p-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } }
.p-track__item { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-2); padding-right: var(--s-3); background: #FFFFFF; border: 1px solid var(--line); border-left: 4px solid var(--navy); box-shadow: 0 12px 24px -20px rgba(36, 44, 104, 0.45); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease; }
.p-track__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-tile); border-left-color: var(--gold-bright); }
.p-track__logo { display: grid; place-items: center; height: 88px; padding: 10px; background: #FFFFFF; border-right: 1px solid var(--line); }
.p-track__logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.p-track__text { display: flex; flex-direction: column; gap: 6px; }
.p-track__type { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.p-track__text p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.p-track__text strong { color: var(--navy); }
@media (max-width: 479px) { .p-track__item { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-2); } .p-track__logo { height: 64px; padding: 6px; } .p-track__logo img { max-height: 48px; } }

/* approach: what makes Anglesea different. Navy band over a faint copy of the page's hero photo;
   the heading and statement at the left, the four points as glass cards in a two by two grid */
.p-diffband { position: relative; isolation: isolate; overflow: hidden; border-top: 4px solid var(--gold-bright); }
.p-diffband__bg { position: absolute; inset: 0; z-index: -1; }
.p-diffband__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: grayscale(0.3); }
.p-diffband__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 30%, color-mix(in oklab, var(--navy), transparent 30%) 100%); }
.p-diffband__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .p-diffband__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); } }
.p-diffband__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.p-diffband .eyebrow { color: #FFFFFF; }
.p-diffband .eyebrow::before { background: var(--gold-bright); }
.p-diffband__title { margin: 0; font-size: clamp(2rem, 3.6vw, 2.875rem); font-weight: 300; line-height: 1.12; color: #FFFFFF; }
.p-diffband__title strong { font-weight: 900; color: var(--gold-bright); }
.p-diffband__quote { position: relative; margin: 0; font-size: clamp(1.1875rem, 1.8vw, 1.375rem); font-weight: 400; line-height: 1.55; color: #FFFFFF; max-width: 32ch; }
.p-diff { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
@media (min-width: 640px) { .p-diff { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; padding-bottom: var(--s-4); } }
.p-diff__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3vw, 34px); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.3s var(--ease), background-color 0.3s ease, border-color 0.3s ease; }
.p-diff__item::before { content: ''; position: absolute; left: -1px; top: -1px; width: 56px; height: 3px; background: var(--gold-bright); transition: width 0.35s var(--ease); }
.p-diff__item:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); border-color: rgba(229, 188, 85, 0.45); }
.p-diff__item:hover::before { width: calc(100% + 2px); }
@media (min-width: 640px) { .p-diff__item:nth-child(even) { transform: translateY(var(--s-4)); } .p-diff__item:nth-child(even):hover { transform: translateY(calc(var(--s-4) - 4px)); } }
.p-diff__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold-bright); color: var(--gold-bright); transition: background-color 0.3s ease, color 0.3s ease; }
.p-diff__icon svg { width: 28px; height: 28px; }
.p-diff__item:hover .p-diff__icon { background: var(--gold-bright); color: var(--navy); }
.p-diff__title { margin: var(--s-1) 0 0; font-size: 1.1875rem; font-weight: 900; line-height: 1.3; color: #FFFFFF; }
.p-diff__line { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text-on-dark-muted); }

/* services: jump links, then four long sections, photo in the frame beside the text */
.p-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--s-4); }
.p-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #FFFFFF; color: var(--navy); text-decoration: none; font-size: 0.9375rem; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.p-jump a:hover { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.p-svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; scroll-margin-top: 100px; }
@media (min-width: 960px) { .p-svc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 88px); } .p-svc--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .p-svc--flip > .p-photo { order: 2; margin: 16px 0 0 16px; } .p-svc--flip > .p-photo::before { inset: -16px 16px 16px -16px; } }
.p-svc__tag { margin: 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.6; }
.p-svc__title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 300; line-height: 1.15; color: var(--navy); }
.p-svc__title strong { font-weight: 900; }

/* experience: filter pills and the full grid of deal tombstones */
.is-hidden { display: none !important; }
.p-filters { justify-content: center; margin: var(--s-6) 0 var(--s-4); }
.p-deals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 760px) { .p-deals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .p-deals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); } }
.p-deals .deal { background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: 0; padding: var(--s-3) var(--s-2); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease; }
.p-deals .deal:hover { transform: translateY(-3px); box-shadow: var(--shadow-tile); border-top-color: var(--gold-bright); }
.p-deals .deal__logo { height: 88px; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.p-deals .deal__logo img { max-height: 72px; max-width: 80%; }

/* contact: details and offices on the navy panel, the form card beside it */
.p-contact .a-contact__info { gap: var(--s-2); }
.p-offices { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 860px) { .p-offices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-office { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 36px); background: #FFFFFF; border-top: 4px solid var(--navy); box-shadow: var(--shadow-1); }
.p-office::before { content: ''; position: absolute; left: 0; top: -4px; width: 56px; height: 4px; background: var(--gold-bright); }
.p-office__city { margin: 0; font-size: 1.375rem; font-weight: 900; color: var(--navy); }
.p-office address { font-style: normal; line-height: 1.7; color: var(--ink); }
.p-office__flag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.p-meet { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .p-meet { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 88px); } }

/* 404: the page hero on its own, a little taller */
.nf-hero { min-height: clamp(520px, 60vh, 680px); }
