/* RAMS homepage. System fonts only; no web fonts or third-party requests. */
:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --rule: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, .06), 0 20px 44px rgba(0, 0, 0, .10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Roboto, "Google Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 980px;
  --container-wide: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--wide { max-width: var(--container-wide); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: .75rem; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav__inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 22px; height: 56px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { width: 40px; }
.nav nav { flex: 1; }
.nav__links { display: flex; justify-content: center; gap: 32px; }
.nav__links a { color: var(--text); font-size: 14px; opacity: .8; white-space: nowrap; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__govt { display: flex; align-items: center; gap: 10px; }
.nav__govt img { height: 34px; width: auto; }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; }
.kicker { font-size: 17px; font-weight: 600; color: var(--text-2); }
.hero h1 {
  margin: 10px auto 0; max-width: 17ch;
  font-size: clamp(44px, 7.4vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em;
}
.hero__tag { margin: 18px auto 0; max-width: 34ch; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; color: var(--text-2); font-weight: 400; letter-spacing: -0.01em; }
.cta { margin-top: 32px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; line-height: 1; }
.btn--primary { background: var(--accent); color: #fff; padding: 13px 22px; border-radius: 980px; font-weight: 500; transition: background-color .2s ease; }
.btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn--link { color: var(--link); padding: 13px 0; }
.hero__media { margin: 64px 0 0; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1284 / 760; object-fit: cover; object-position: 50% 62%; }
.hero__media figcaption { margin-top: 14px; font-size: 14px; color: var(--text-2); }

/* Bands and section heads */
.band { padding: 104px 0; background: var(--bg); }
.band--grey { background: var(--bg-alt); }
.section-head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.section-head h2 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { margin-top: 14px; font-size: clamp(19px, 2vw, 21px); line-height: 1.38; color: var(--text-2); }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px 30px 34px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--text-2); }
.card--link {
  display: flex; flex-direction: column; height: 100%; color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card--link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.card__title { margin-top: 10px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.015em; }
.card__text { margin-top: 10px; color: var(--text-2); flex: 1; }
.card__url { margin-top: 22px; color: var(--link); font-size: 15px; overflow-wrap: anywhere; }

/* Objectives */
.objectives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; max-width: 880px; margin: 0 auto; }
.objectives li { border-top: 1px solid var(--rule); padding-top: 22px; }
.objectives h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.objectives p { margin-top: 8px; color: var(--text-2); }

/* Achievements bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: var(--surface); border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow); }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile h3 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin-top: 10px; color: var(--text-2); }
.tile--photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }
.tile__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile__photos img { border-radius: var(--radius-md); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.subhead { margin: 72px 0 24px; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: -0.015em; }
.milestones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.milestones li { padding: 20px 18px 0 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.milestones li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.year { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.milestones li span:last-child { color: var(--text-2); font-size: 15px; line-height: 1.4; }

/* Studios */
.studio {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 56px;
}
.studio + .studio { margin-top: 24px; }
.studio__eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); }
.studio h3 { margin-top: 8px; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.studio__intro p:not(.studio__eyebrow) { margin-top: 16px; color: var(--text-2); }
.studio .btn--primary { margin-top: 28px; }
.modules { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.modules li { background: var(--surface); border-radius: 980px; padding: 10px 16px; font-size: 15px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

.studio__shot { grid-column: 1 / -1; margin: 0; }
.studio__shot + .studio__shot { margin-top: -16px; }
.frame { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.06); }
.frame__bar { display: block; height: 26px; background: radial-gradient(circle at 19px 13px, #ff5f57 5px, transparent 5.5px) #ececf0; position: relative; border-bottom: 1px solid rgba(0,0,0,.06); }
.frame__bar::before { content: ""; position: absolute; left: 30px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #febc2e; }
.frame__bar::after { content: ""; position: absolute; left: 46px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #28c840; }
.frame img { width: 100%; }
.studio__shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--text-2); }

/* Dashboard screenshots */
.card__shot { width: calc(100% + 60px); max-width: none; margin: -32px -30px 22px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid rgba(0,0,0,.06); background: var(--bg-alt); }

/* Organisation */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 760px; margin: 0 auto; }
.org > li { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 28px; width: 100%; }
.org > li:first-child { padding-top: 0; }
.org > li + li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 28px; background: var(--rule); }
.org__node { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 16px 24px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 260px; }
.org__node--head { background: var(--text); color: #fff; }
.org__node--head .org__note { color: #d2d2d7; }
.org__role { font-weight: 600; font-size: 17px; }
.org__note { font-size: 14px; color: var(--text-2); }
.org__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.org__row > li { display: flex; }
.org__row .org__node { min-width: 0; width: 100%; }
.org__foot { margin-top: 16px; font-size: 14px; color: var(--text-2); text-align: center; }
.functions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 880px; margin: 0 auto; }
.functions li { border-top: 1px solid var(--rule); padding: 14px 0 16px; color: var(--text); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.contact__card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px 40px; text-align: center; width: 100%; }
.contact__mail { display: inline-block; margin-top: 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact__addr { margin-top: 18px; color: var(--text-2); }

/* Footer: one lean row (identity left, page links right) */
.footer { background: var(--bg-alt); border-top: 1px solid var(--rule); padding: 22px 0; font-size: 13px; color: var(--text-2); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer__id { display: flex; align-items: center; gap: 12px; color: var(--text-2); line-height: 1.4; }
.footer__id:hover { text-decoration: none; }
.footer__id img { width: 36px; }
.footer__name { font-weight: 600; color: var(--text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--text); opacity: .8; }
.footer__links a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1000px) {
  .tile--full { grid-column: 1 / -1; }
  .nav__links { gap: 18px; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .studio { grid-template-columns: 1fr; padding: 44px; gap: 32px; }
}
@media (max-width: 820px) {
  .nav__govt { display: none; }
  .nav nav { display: flex; justify-content: flex-end; }
  .nav__links { gap: 20px; }
}
@media (max-width: 480px) {
  .nav__inner { gap: 12px; padding: 0 16px; height: 52px; }

  .nav__brand img { width: 34px; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 13px; opacity: .85; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .hero__media { margin-top: 44px; }
  .hero__media img { border-radius: var(--radius-md); }
  .band { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cards--3, .bento, .objectives { grid-template-columns: 1fr; }
  .objectives { gap: 32px; }
  .org__row { grid-template-columns: 1fr; gap: 12px; }
  .org__node { min-width: 0; width: 100%; }
  .functions { grid-template-columns: 1fr; }
  .card__shot { width: calc(100% + 48px); margin: -28px -24px 20px; border-radius: 22px 22px 0 0; }
  .contact__card { padding: 30px 22px; }
  .tile--wide, .tile--full { grid-column: auto; }
  .tile--photo { grid-template-columns: 1fr; }
  .card, .tile { padding: 28px 24px; border-radius: 22px; }
  .studio { padding: 30px 22px; border-radius: 22px; }
  .modules { gap: 8px; }
  .modules li { padding: 7px 13px; font-size: 14px; }
  .milestones { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule); margin-left: 4px; }
  .milestones li { padding: 0 0 22px 22px; }
  .milestones li::before { top: 10px; left: -5px; }
  .year { font-size: 26px; }
}
@media (max-width: 360px) {
  .nav__links { gap: 11px; }
  .nav__links a { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .card--link:hover { transform: none; }
}

/* Manuals: one heading per group above its cards */
.manuals__group { margin: 48px 0 18px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.manuals__group:first-of-type { margin-top: 0; }

/* Multi-page layout: the current page in the menu */
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* Page header (every page except home) */
.page-head { padding: 88px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.page-head p { margin: 16px auto 0; max-width: 640px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; color: var(--text-2); }
.page-head + .band { padding-top: 32px; }
.jump ul { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.jump a { display: inline-block; background: var(--bg-alt); color: var(--text); border-radius: 980px; padding: 9px 18px; font-size: 15px; font-weight: 500; transition: background-color .2s ease; }
.jump a:hover { background: #e8e8ed; text-decoration: none; }

/* Home: figures strip */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; text-align: center; }
.figures li { display: flex; flex-direction: column; gap: 8px; }
.figures__num { font-size: clamp(36px, 4.6vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.figures__num small { font-size: .5em; font-weight: 600; letter-spacing: 0; }
.figures__label { color: var(--text-2); font-size: 15px; line-height: 1.35; max-width: 22ch; margin: 0 auto; }
.figures__note { margin-top: 36px; text-align: center; font-size: 13px; color: var(--text-2); }

/* Home: explore cards */
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--gap { margin-top: 20px; }

@media (max-width: 820px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 700px) {
  .page-head { padding: 56px 0 28px; }
  .page-head + .band { padding-top: 20px; }
  .cards--2 { grid-template-columns: 1fr; }
}
/* Phones: the menu moves to its own row under the logo and scrolls sideways if needed */
@media (max-width: 600px) {
  html { scroll-padding-top: 108px; }
  .nav__inner { flex-wrap: wrap; height: auto; padding: 8px 16px 0; row-gap: 0; }
  .nav nav { flex-basis: 100%; justify-content: flex-start; }
  .nav__links { justify-content: flex-start; overflow-x: auto; gap: 22px; padding: 8px 0 11px; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { font-size: 14px; }
}

/* Contact: office card */
.contact__place { margin-top: 8px; font-style: normal; font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.contact__actions { margin-top: 24px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } }
