/* Palette taken from the AWS Group logo: deep navy, brand blue and sky-blue dot work */
:root {
  --navy: #0a1c3f;
  --navy-2: #102a5a;
  --ink: #1c275f;        /* logo text navy */
  --blue: #0567b5;       /* "GROUP" blue, buttons and links */
  --blue-dark: #04508d;
  --sky: #1da2e6;        /* dot-art highlight */
  --sky-soft: #e6f3fb;
  --text: #2b3445;
  --muted: #5b6577;
  --bg: #ffffff;
  --tint: #f3f6fa;
  --line: rgba(10, 28, 63, .1);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,28,63,.05), 0 10px 30px rgba(10,28,63,.08);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--text); background: var(--bg); position: relative; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0 0 .55em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.eyebrow { font: 600 .78rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .95em 1.7em; border-radius: 999px; background: var(--blue); color: #fff; font: 600 .95rem/1 var(--head); text-decoration: none; border: 2px solid var(--blue); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy); }
.btn-sm { padding: .7em 1.3em; font-size: .88rem; }
.btn-full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,28,63,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: auto; height: 56px; }
.brand-text { font: 600 .78rem/1.25 var(--head); color: var(--ink); letter-spacing: .08em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--line); }

.menu > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn), .sub-toggle { display: flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--ink); text-decoration: none; font: 500 .95rem/1 var(--head); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.menu a:not(.btn):hover, .sub-toggle:hover { color: var(--blue); }
.menu a[aria-current="page"]:not(.btn), .has-sub.active > .sub-toggle { color: var(--blue); }
.menu .btn { margin-left: 10px; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub a:not(.btn) { padding: 12px 14px; }
.sub a:not(.btn):hover { background: var(--tint); }
.has-sub.open > .sub, .no-js .has-sub:hover > .sub, .no-js .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Home hero: team photo with the headline in a band below */
.hero { background: var(--navy); color: #fff; }
.hero-photo img { width: 100%; height: auto; min-height: 220px; max-height: 70vh; object-fit: cover; object-position: center 35%; }
.hero-text { padding: clamp(36px, 5vw, 60px) 0 clamp(44px, 6vw, 72px); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #0b4f8f 100%); }
.hero-text .wrap > * { max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.92); }

/* Meebun eagle: fixed in the middle of the screen, content scrolls over it */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/eagle.png") center / min(102vw, 960px) auto no-repeat;
  background-image: image-set(url("../img/eagle.webp") type("image/webp"), url("../img/eagle.png") type("image/png"));
  opacity: .0875; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 40em; margin-bottom: 2rem; }

/* Inner page hero */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0b4f8f 100%); color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,162,230,.35) 0 3px, transparent 4px) 0 0 / 22px 22px; opacity: .5; -webkit-mask: radial-gradient(circle, #000 40%, transparent 70%); mask: radial-gradient(circle, #000 40%, transparent 70%); }
/* Team photo from the home page, scaled to fill the header at 60% opacity */
.page-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .6; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .page-hero .lead, .page-hero .eyebrow { text-shadow: 0 1px 3px rgba(10,28,63,.75), 0 0 18px rgba(10,28,63,.55); }
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero .lead { color: rgba(255,255,255,.9); margin-bottom: 0; }
.page-hero .btn { margin-top: 1.6rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.tint { background: rgba(243, 246, 250, .72); }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.prose p { font-size: 1.1rem; }
.cta-row { margin: 2.6rem 0 0; }
.rap-term { margin-top: 1rem !important; padding-top: .8rem; border-top: 1px solid var(--line); font: 600 .85rem/1.4 var(--head); color: var(--blue) !important; }
.after-cards { margin: 2rem 0 0; font-weight: 500; color: var(--ink); }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: block; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card::before { content: ""; position: absolute; left: 26px; top: 0; width: 40px; height: 3px; background: var(--sky); border-radius: 0 0 3px 3px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card-link .more { display: inline-block; margin-top: 1.2rem; font: 600 .9rem/1 var(--head); color: var(--blue); }
.rap-step { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-soft); color: var(--blue); font: 700 .95rem/1 var(--head); margin-bottom: 1rem; }
.guide .tag { display: inline-block; margin-top: 1.1rem; padding: .35em .8em; border-radius: 999px; background: var(--sky-soft); color: var(--blue-dark); font: 600 .75rem/1 var(--head); letter-spacing: .04em; }

/* Tick lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 16px 18px 16px 54px; background: rgba(255,255,255,.85); border-radius: 12px; border: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; counter-reset: step; }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps li { counter-increment: step; position: relative; padding-top: 1.4rem; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 1.9rem/1 var(--head); color: var(--sky); margin-bottom: .8rem; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--blue); }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Call-to-action band */
.cta-band { background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 80px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 40em; margin: 0 auto 1.8rem; font-size: 1.1rem; color: rgba(255,255,255,.95); }

/* Placeholders from the brief */
.placeholder { font-style: italic; color: var(--muted); padding: 28px 30px; border: 2px dashed rgba(10,28,63,.2); border-radius: var(--radius); background: var(--tint); font-size: 1.1rem; margin: 0; }
.placeholder-inline { font-style: italic; color: var(--muted); }

/* About: bio with photo */
.bio { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.bio-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.bio-photo img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.bio-photo::after { content: ""; display: block; height: 6px; width: 64px; margin-top: 16px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.bio-text { max-width: 44em; }
.bio-text p { font-size: 1.05rem; }
.bio-text .bio-lead { font-size: 1.22rem; color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 340px; }
}

/* Contact */
.panel { background: var(--navy); color: #fff; padding: 30px; border-radius: var(--radius); margin-bottom: 2.4rem; }
.panel h2 { color: #fff; font-size: 1.5rem; }
.panel p { color: rgba(255,255,255,.9); }
.h-sm { font-size: 1.15rem; margin-top: 2rem; }
.details { margin: 0; }
.details div { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 600; color: var(--ink); min-width: 80px; }
.details dd { margin: 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a::after { content: " \2197"; }

/* Forms */
.form { background: #fff; padding: clamp(22px, 4vw, 40px); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.form input:not([type="radio"]), .form textarea, .form select { display: block; width: 100%; margin-top: 6px; padding: .8em 1em; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: var(--tint); border: 1.5px solid transparent; border-radius: 10px; transition: border-color .2s, background .2s; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231c275f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 2.4em; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); background-color: #fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form .invalid { border-color: #c0392b !important; }
.form .opt { font-weight: 400; color: var(--muted); }
.choice { border: 0; padding: 0; margin: 0 0 18px; }
.choice legend { font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.form .radio { display: inline-flex; align-items: center; gap: 8px; margin: 0 22px 0 0; font-weight: 500; font-size: .95rem; cursor: pointer; }
.form .radio input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-inline { padding: 0; box-shadow: none; border: 0; background: none; }
.inline-row { display: flex; gap: 10px; }
.inline-row input { margin-top: 0 !important; background: #fff !important; border-color: var(--line) !important; }
.inline-row input:focus { border-color: var(--blue) !important; }
.inline-row .btn { flex: none; }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }
.fine.left { text-align: left; margin: -8px 0 18px; }
.form-inline .fine { text-align: left; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; }
.notice.ok { background: #e3f4ea; color: #1d5a3a; }
.notice.err { background: #fbe9e7; color: #8e2a1f; }

/* Policy / text pages */
.page { padding: clamp(40px, 7vw, 80px) 0; background: rgba(243, 246, 250, .72); }
.policy { max-width: 780px; margin: 0 auto; background: #fff; padding: clamp(26px, 5vw, 56px); border-radius: 18px; box-shadow: var(--shadow); }
.policy h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
.policy h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.policy h3 { font-size: 1.05rem; margin-top: 1.6em; }
.policy ul { padding-left: 1.3em; margin: 0 0 1em; }
.policy li { margin-bottom: .35em; }
.policy-meta { color: var(--muted); font-size: .95rem; }
.policy-toc { background: var(--tint); border-radius: var(--radius); padding: 18px 22px 18px 40px; margin: 1.6em 0 0; columns: 2 220px; font-size: .95rem; }
.policy-toc li { break-inside: avoid; }
.policy .note { font-weight: 600; color: var(--ink); }

/* Brand banner (logo + tagline) above the footer */
.brand-band { background: #fefefe; border-top: 1px solid var(--line); padding: 40px 24px 16px; } /* matches the image and wave background */
/* Scales with the screen at 75% width, never wider than 885px */
.brand-band img { width: 75%; max-width: 885px; height: auto; margin: 0 auto; }
@media (max-width: 600px) { .brand-band { padding: 24px 12px 8px; } }

/* Dot-art wave that repeats across any screen width and sits on the footer */
.wave-divider {
  width: 100%;
  height: 90px;
  background-color: #fefefe;
  background-image: url("../img/wave-repeat-tile-web.png");
  background-image: image-set(url("../img/wave-repeat-tile-web.webp") type("image/webp"), url("../img/wave-repeat-tile-web.png") type("image/png"));
  background-repeat: repeat-x;
  background-size: auto 90px;
  background-position: left bottom;
}
@media (max-width: 600px) {
  .wave-divider { height: 65px; background-size: auto 65px; }
}

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 56px 0 36px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 2.4rem; }
.footer-contact { font-style: normal; }
.link-in { display: inline-flex; align-items: center; gap: .45em; }
.icon-in { flex: none; }
.footer-contact p { margin: 0 0 .55rem; overflow-wrap: anywhere; }
.footer-h { font: 600 .78rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.1rem; }
.ack { color: #fff; font-size: 1.05rem; line-height: 1.6; max-width: 34em; margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); }
.footer-row p { margin: 0; }
.footer-row .dev-credit { flex-basis: 100%; font-size: .72rem; color: rgba(255,255,255,.55); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 46px; }
  .nav-toggle { display: block; }
  .menu { position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: #fff; box-shadow: 0 14px 24px rgba(10,28,63,.1); padding: 8px 24px 24px; visibility: hidden; transform: translateY(-8px); opacity: 0; transition: opacity .2s, transform .2s, visibility .2s; }
  .menu.open { visibility: visible; transform: none; opacity: 1; }
  .menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > ul > li { border-bottom: 1px solid var(--line); }
  .menu > ul > li:last-child { border-bottom: 0; }
  .menu a:not(.btn), .sub-toggle { padding: 15px 0; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .sub { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 14px; display: none; opacity: 1; visibility: visible; }
  .has-sub.open > .sub { display: block; transform: none; }
  .sub a:not(.btn) { padding: 11px 0; font-size: .98rem; }
  .menu .btn { margin: 18px 0 0; width: 100%; }
  .no-js .nav-toggle { display: none; }
  .no-js .menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  .no-js .sub { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-2 { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-text { display: none; }
  .cards-3, .cards-4, .steps, .steps-5 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .inline-row { flex-direction: column; }
}
