@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/source-sans-3.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
}

/* The approved Masri brand direction uses a fixed navy canvas.
   Layers: image -2; photo grading -1; content 0; skip link 2; native dialog top layer. */
:root {
  color-scheme: dark;
  --navy: #091e31;
  --surface: #0b2237;
  --text: #f4f7fa;
  --muted: #b8c6d1;
  --accent: #f17d49;
  --line: #294054;
  --gutter: clamp(24px, 5vw, 88px);
  font-family: 'Source Sans 3', sans-serif;
  background: var(--navy);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
p, h1, h2 { margin: 0; }
img { display: block; max-width: 100%; }
::selection { color: var(--navy); background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
main:focus { outline: none; }
.page-width { width: min(100%, 1760px); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: var(--gutter);
  padding: 12px 18px;
  background: var(--text);
  color: var(--navy);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.opening {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: clamp(710px, 81svh, 960px);
  background: var(--navy);
}

.cityscape { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.cityscape picture, .cityscape img { width: 100%; height: 100%; }
.cityscape img { object-fit: cover; object-position: 65% 45%; }
.opening::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, var(--navy) 0%, rgb(9 30 49 / 38%) 25%, transparent 60%),
    linear-gradient(90deg, #091e31 0%, rgb(9 30 49 / 96%) 27%, rgb(9 30 49 / 85%) 44%, rgb(9 30 49 / 37%) 68%, rgb(9 30 49 / 10%) 100%),
    linear-gradient(180deg, rgb(9 30 49 / 38%), transparent 25%);
}

.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 29px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 58px; }
.brand-symbol { width: 54px; height: 57px; flex-shrink: 0; }
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: Manrope, sans-serif; font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: .17em; }
.brand-name > span { display: block; font-size: 10px; font-weight: 500; letter-spacing: .62em; margin-top: 9px; }
.about-link { display: inline-flex; align-items: center; gap: 29px; min-height: 44px; border-bottom: 1px solid rgb(244 247 250 / 45%); font-size: 16px; font-weight: 500; }
.link-arrow { font-size: 25px; line-height: 1; transition: transform .2s ease; }
.about-link:hover .link-arrow { transform: translate(3px, -3px); }

.hero { flex: 1; display: flex; align-items: center; position: relative; padding-top: 56px; padding-bottom: 100px; }
.hero-copy { max-width: 880px; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: #e4eaf0; }
.eyebrow > span { width: 32px; height: 2px; background: var(--accent); }
h1 { margin-top: 28px; font-family: Manrope, sans-serif; font-size: clamp(56px, 6.2vw, 104px); font-weight: 500; line-height: 1.1; letter-spacing: -.05em; }
h1 > span { display: block; color: var(--accent); }
.intro { max-width: 460px; margin-top: 30px; font-size: 20px; line-height: 1.65; color: var(--muted); }
.contact-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 48px; margin-top: 34px; padding: 16px 23px; min-height: 56px; background: var(--accent); color: var(--navy); border: 1px solid var(--accent); border-radius: 2px; font-size: 17px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.contact-button span { font-size: 25px; line-height: 1; transition: transform .2s; }
.contact-button:hover { background: #f79a70; border-color: #f79a70; transform: translateY(-2px); }
.contact-button:hover span { transform: translate(2px, -2px); }
.contact-button:active { transform: translateY(0); }
.hero-signature { position: absolute; right: var(--gutter); bottom: 76px; display: flex; align-items: flex-start; gap: 18px; }
.signature-line { height: 48px; width: 2px; margin-top: 3px; background: var(--accent); }
.hero-signature p { font-family: Manrope, sans-serif; font-size: 17px; line-height: 1.7; font-weight: 500; letter-spacing: -.02em; }
.hero-signature p span { color: #bdc9d3; }

.group-section { position: relative; background: var(--navy); }
.group-inner { display: grid; grid-template-columns: 1fr 4.4fr; gap: 40px; padding-top: 42px; padding-bottom: 43px; }
.group-inner::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.group-inner h2 { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.75; letter-spacing: -.025em; }
.group-inner h2 span { color: var(--muted); }
.company-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 2px 0 0; }
.company-list li { display: flex; flex-direction: column; gap: 9px; }
.company-name { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.company-sector { font-size: 13px; line-height: 1.5; color: #a5b6c4; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 81px; padding-top: 20px; padding-bottom: 23px; color: #94a9ba; font-size: 13px; }
.footer a { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; color: #c3ced8; }
.footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.footer a span { font-size: 18px; }

.about-dialog { color: var(--text); background: var(--surface); width: min(640px, calc(100% - 40px)); max-width: calc(100% - 40px); max-height: calc(100dvh - 40px); padding: 32px; border: 1px solid #40566a; border-radius: 2px; overflow-y: auto; overflow-wrap: anywhere; }
.about-dialog::backdrop { background: rgb(4 14 25 / 83%); backdrop-filter: blur(8px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.dialog-brand { color: var(--accent); font-family: Manrope, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.close-button { display: flex; align-items: center; gap: 20px; min-height: 44px; color: var(--muted); border: 0; padding: 0 7px; background: transparent; font-size: 15px; }
.close-button span { font-size: 28px; font-weight: 400; }
.close-button:hover { color: var(--text); }
.dialog-content { padding: 34px 10px 10px; }
.dialog-content h2 { font-family: Manrope, sans-serif; font-size: clamp(30px, 4.2vw, 44px); font-weight: 500; line-height: 1.2; letter-spacing: -.05em; }
.dialog-content h2 span { color: var(--accent); }
.dialog-content p { max-width: 490px; margin-top: 23px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.dialog-email { display: inline-flex; align-items: center; gap: 20px; margin-top: 22px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid var(--accent); font-size: 20px; overflow-wrap: anywhere; }
.dialog-email:hover { color: var(--accent); }
.dialog-content .dialog-address { margin-top: 36px; font-size: 14px; color: #a5b6c4; }

@media (min-width: 1800px) {
  .opening::before { background: linear-gradient(0deg, var(--navy), transparent 70%), linear-gradient(90deg, var(--navy) 0%, rgb(9 30 49 / 94%) 28%, rgb(9 30 49 / 75%) 43%, rgb(9 30 49 / 12%) 85%); }
}

@media (max-width: 1100px) {
  .group-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; padding-bottom: 24px; }
  .group-inner h2 { display: flex; gap: 5px; }
  .group-inner h2 br { display: none; }
  .company-list { gap: 18px; }
  .hero-signature { bottom: 60px; }
  .hero { padding-bottom: 116px; }
}

@media (max-width: 760px) {
  :root { --gutter: 28px; }
  .opening { min-height: 710px; }
  .header { padding-top: 23px; padding-bottom: 20px; flex-wrap: wrap; }
  .brand-symbol { width: 44px; height: 46px; }
  .brand { gap: 8px; min-height: 48px; }
  .brand-name { font-size: 20px; }
  .brand-name > span { font-size: 8px; margin-top: 7px; }
  .about-link { font-size: 14px; gap: 16px; }
  .link-arrow { font-size: 21px; }
  .hero { align-items: flex-start; padding-top: 62px; padding-bottom: 155px; }
  h1 { font-size: clamp(42px, 8.5vw, 64px); letter-spacing: -.05em; margin-top: 24px; }
  .intro { max-width: 350px; font-size: 18px; margin-top: 25px; }
  .contact-button { margin-top: 28px; }
  .cityscape img { object-position: 63% 50%; }
  .opening::before { background: linear-gradient(180deg, rgb(9 30 49 / 60%), rgb(9 30 49 / 85%) 30%, rgb(9 30 49 / 72%) 65%, var(--navy)), linear-gradient(90deg, rgb(9 30 49 / 76%), rgb(9 30 49 / 4%)); }
  .hero-signature { bottom: 35px; left: var(--gutter); right: auto; }
  .hero-signature p { font-size: 14px; }
  .signature-line { height: 42px; }
  .company-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr)); gap: 25px 24px; }
  .company-name { font-size: 16px; }
  .company-sector { font-size: 13px; }
  .group-inner { padding-top: 27px; padding-bottom: 26px; gap: 27px; }
  .footer { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 22px; padding-bottom: 20px; justify-content: flex-start; column-gap: 16px; }
  .footer p:first-child { flex-basis: 100%; }
  .footer a { margin-left: auto; gap: 14px; }
}

@media (max-width: 380px) {
  :root { --gutter: 22px; }
  .brand-name { font-size: 17px; }
  .brand-name > span { font-size: 7px; }
  .brand-symbol { width: 38px; height: 41px; }
  .about-link { font-size: 13px; gap: 9px; }
  .header { gap: 12px; }
  .eyebrow { font-size: 10px; gap: 10px; }
  .eyebrow > span { width: 23px; }
  h1 { font-size: 38px; }
  .hero { padding-top: 52px; }
  .intro { font-size: 17px; }
  .company-name { font-size: 15px; }
  .footer a { margin-left: 0; }
  .about-dialog { padding: 20px; }
  .dialog-content { padding-inline: 0; }
  .dialog-email { font-size: 17px; gap: 12px; }
}

/* Entry choreography reveals the status, message and action in that order.
   Nothing loops, and all content is visible if animation is unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .header { animation: appear .9s both; }
  .eyebrow { animation: rise .8s .12s both; }
  h1 { animation: rise .95s .21s both; }
  .intro { animation: rise .9s .34s both; }
  .contact-button { animation: rise .9s .44s both; }
  .hero-signature { animation: appear 1s .65s both; }
  .cityscape img { animation: settle 2s cubic-bezier(.2, .7, .2, 1) both; }
  .about-dialog[open] { animation: rise .25s both; }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes settle { from { transform: scale(1.035); } to { transform: scale(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .about-link:hover .link-arrow, .contact-button:hover, .contact-button:hover span { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .about-dialog::backdrop { background: #041323; backdrop-filter: none; }
}

@media (forced-colors: active) {
  .contact-button { border: 1px solid ButtonText; }
  .cityscape, .opening::before { display: none; }
}
