/* Steelhaus Abu Dhabi landing page.
 * Built on assets/brand.css — the palette, fonts and AA-lifted text tints come
 * from there and are not re-derived here. Nothing in this file fetches anything.
 */

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
}
/* height:auto so the width/height attributes never force a used height and
 * aspect-ratio is what decides the box. Rules below set an explicit height
 * where one is wanted. */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--paper); line-height: 1.1; margin: 0 0 var(--gap-4); font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0 0 var(--gap-4); }
a { color: var(--precision-blue); }
::selection { background: var(--selection-bg); color: var(--selection-text); }

/* One focus treatment for the whole page. */
:focus-visible {
  outline: 2px solid var(--precision-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--raw-iron-raised); color: var(--paper);
  padding: 10px 16px; border: 1px solid var(--steel); border-radius: var(--radius);
  text-decoration: none; font-family: var(--display); font-weight: 600;
}
.skip:focus { top: 8px; }

/* ---------- header ----------
 * Opaque Raw Iron, deliberately. The hero contrast figures were measured for
 * the text column over the photograph; if this band is ever made transparent
 * so the photograph shows through it, the nav and the logo need measuring
 * again against whatever is behind them.
 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--raw-iron);
  border-bottom: 1px solid var(--steel-line-soft);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--gap-3);
  min-height: 72px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; padding: 4px; margin: -4px; }
.brand img { height: 34px; width: auto; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 28px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone); text-decoration: none; padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); border-bottom-color: var(--precision-blue); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* Heavy Ink overlay: the text must stay AA over whatever photograph lands here. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.76) 62%, rgba(5, 6, 8, 0.45) 100%),
    linear-gradient(0deg, rgba(5, 6, 8, 0.85) 0%, rgba(5, 6, 8, 0.55) 100%);
}
.hero .container { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(48px, 9vw, 104px); }
.hero__logo { height: clamp(44px, 8vw, 72px); width: auto; margin-bottom: var(--gap-5); }
.hero h1 { font-size: clamp(34px, 6.4vw, 58px); max-width: 20ch; margin-bottom: var(--gap-4); }
.hero__lede { font-size: clamp(17px, 2.2vw, 21px); max-width: 52ch; color: var(--bone); }
.hero__actions { margin-top: var(--gap-5); }

/* The one red thing on the page. */
.btn-primary {
  display: inline-block;
  background: var(--ignition-red); color: #FFFFFF;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 30px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid var(--ignition-red);
}
.btn-primary:hover { background: var(--ignition-red-hover); border-color: var(--ignition-red-hover); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; border-top: 1px solid var(--steel-line-soft); }
.section__eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-text); margin: 0 0 var(--gap-2);
}
.section h2 { font-size: clamp(28px, 4.4vw, 40px); }

/* ---------- application tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--gap-4); margin-top: var(--gap-5); padding: 0; list-style: none; }
@media (min-width: 640px)  { .tiles { grid-template-columns: repeat(2, 1fr); gap: var(--gap-5); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  display: flex; flex-direction: column; gap: var(--gap-3);
  background: var(--raw-iron); border: 1px solid var(--steel-line);
  border-radius: var(--radius); padding: var(--gap-5);
  text-decoration: none; color: inherit; height: 100%;
  transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease;
}
a.tile:hover, a.tile:focus-visible {
  border-color: var(--precision-blue);
  background: var(--raw-iron-raised);
  transform: translateY(-2px);
}
.tile__icon { color: var(--precision-blue); }
.tile__icon svg { width: 30px; height: 30px; display: block; }
.tile__name { font-family: var(--display); font-weight: 700; font-size: 25px; color: var(--paper); margin: 0; }
.tile__blurb { margin: 0; font-size: 16px; color: var(--bone); }
.tile__foot { margin-top: auto; padding-top: var(--gap-2); }

/* Dimmed by colour, never by opacity — opacity on text breaks the contrast floor. */
.tile--muted { background: #171A1F; border-color: var(--steel-line-soft); }
.tile--muted .tile__icon { color: var(--steel); }
.tile--muted .tile__name { color: var(--muted-text); }
.tile--muted .tile__blurb { color: var(--muted-text); }

.pill {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid;
}
.pill--live { color: var(--precision-blue); border-color: var(--precision-blue); }
.pill--build { color: var(--muted-text); border-color: var(--steel); }
.pill--todo { color: var(--danger-text); border-color: var(--danger-text); }

.tiles__note { margin: var(--gap-5) 0 0; color: var(--muted-text); font-size: 16px; }

/* ---------- company ---------- */
.company__grid { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .company__grid { grid-template-columns: 1.15fr 1fr; } }
.company__figures { display: grid; gap: var(--gap-4); }
.company__figures figure { margin: 0; }
.company__figures picture { display: block; }
.company__figures img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%;
  border: 1px solid var(--steel-line); border-radius: var(--radius);
}
.company__figures figcaption { margin-top: var(--gap-2); font-size: 14px; color: var(--muted-text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--steel-line-soft); background: var(--raw-iron); padding: clamp(32px, 5vw, 48px) 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--gap-4) var(--gap-5); align-items: center; justify-content: space-between; }
.site-footer img { height: 32px; width: auto; }
.site-footer p { margin: 0; font-size: 15px; color: var(--muted-text); }
.site-footer a { color: var(--precision-blue); }

/* ---------- unwritten copy ----------
 * Loud on purpose, and scripts/verify.sh refuses to pass while any of these
 * remain, so a TODO cannot reach the public site.
 */
.todo {
  display: inline-block;
  background: var(--ignition-red-soft);
  border-left: 3px solid var(--ignition-red);
  color: var(--danger-text);
  padding: var(--gap-2) var(--gap-3);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  a.tile:hover, a.tile:focus-visible { transform: none; }
}
