/* Antara Holding: limestone and paper, tile colour only in the details. */
:root {
  --cobalt: #1F3F8F; --deep: #23306B; --turq: #2BA3B5; --coral: #C2362F; --leaf: #3E8C4A; --saffron: #E0A43A;
  --lime: #E7DCCB; --marble: #F4F1EC; --sand: #CDB89A; --ink: #1A1916; --teal: #1F4A4C; --stone: #5E5A54;
  --glaze: #FBF8F1; --cream: #EFE5D3; --card: #DDCFB7; --paper: #FFFDF9; --line: #D8CCB8;
  --pad: clamp(24px, 6vw, 96px); --max: 1312px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif-ar: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --ring: 0 0 0 4px rgba(43,163,181,.22);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--marble); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 20px; text-wrap: pretty; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--stone); }
.verse, .ar { font-family: var(--serif-ar); font-weight: 400; unicode-bidi: isolate; }
[id] { scroll-margin-top: 24px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--marble); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* links: a coloured underline, one tile colour per link */
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, var(--u, var(--teal)) 55%, transparent);
  transition: text-decoration-color .2s, text-decoration-thickness .2s; }
.u:hover, .u:focus-visible { text-decoration-color: var(--u, var(--teal)); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 2px; }

/* ---------- header: over the hero ---------- */
header.top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 8px; }
.brand { display: block; text-decoration: none; }
/* the temporary Latin wordmark lives in one file, assets/logo/wordmark.svg (header, hero and footer) */
.brand img { height: 46px; width: auto; display: block; }
nav.main { position: relative; font-size: 15px; font-weight: 500; }
nav.main .links { display: flex; gap: 34px; }
.menu-btn { display: none; }
nav.main a { white-space: nowrap; text-decoration-color: transparent; text-decoration-thickness: 2px; }
nav.main a:hover, nav.main a:focus-visible { text-decoration-color: var(--u); }
/* the header sits on the scene's darkened top band: light wordmark and links, like the words in the hero */
header.top .brand img { filter: invert(1) sepia(.18) brightness(.97) drop-shadow(0 1px 10px rgba(10,6,3,.5)); }
header.top nav.main a { color: var(--marble); text-shadow: 0 1px 10px rgba(10,6,3,.7); }
header.top a:focus-visible { outline-color: var(--saffron); }

/* ---------- hero: full bleed; #hero-scene takes the illustrated scene ---------- */
/* min-height: in a very short, wide window the hero runs a little past the fold (never wider than 2.4 to 1) instead of squashing the scene */
.hero { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: max(100svh, calc(100vw / 2.4)); overflow: hidden; isolation: isolate; }
/* until js/hero.js has drawn the scene (and if it never runs), a still field in the scene's own colours stands in */
.hero-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; contain: paint; background:
  radial-gradient(ellipse 46% 36% at 50% 45%, rgba(22,15,10,.55), rgba(22,15,10,0) 100%),
  linear-gradient(180deg, #CDB894 0%, #EBD3AD 13%, #E7CFA8 37%, #1F3F8F 37.6%, #1F3F8F 41%, #D6BD98 41.5%, #CDB38E 64%, #D9BF98 66%, #E8D3AE 100%); }
.hero-scene > .l { position: absolute; left: -28px; top: -28px; width: calc(100% + 56px); height: calc(100% + 56px);
  display: block; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .7s ease; }
.hero-scene.is-live > .l { opacity: 1; }
/* warm late-afternoon light: plain alpha overlays (no blend modes, so they stay cheap to composite) */
.hero-scene > .sun, .hero-scene > .rays, .hero-scene > .shade { position: absolute; pointer-events: none; }
.hero-scene > .sun { inset: 0; background:
  linear-gradient(112deg, rgba(255,196,120,.30) 0%, rgba(255,196,120,.10) 30%, rgba(255,170,90,0) 55%),
  linear-gradient(0deg, rgba(60,30,10,.18), rgba(60,30,10,0) 22%); }
.hero-scene > .rays { inset: -10%; opacity: .55; will-change: opacity;
  background: repeating-linear-gradient(118deg, rgba(255,226,170,0) 0 9%, rgba(255,226,170,.16) 11%, rgba(255,226,170,0) 15%, rgba(255,226,170,0) 24%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 85%);
  animation: rays-breathe 11s ease-in-out infinite alternate; }
.hero-scene.is-paused > .rays { animation-play-state: paused; }
@keyframes rays-breathe { from { opacity: .35; } to { opacity: .7; } }
/* the soft dark field that carries the wordmark, the line and the button; a warm grey veil over the whole scene
   fades it back, so the light wordmark stands out */
.hero-scene > .shade { inset: 0; background:
  radial-gradient(ellipse 54% 42% at 50% 45%, rgba(22,15,10,.62) 0%, rgba(22,15,10,.42) 50%, rgba(22,15,10,0) 100%),
  linear-gradient(180deg, rgba(22,15,10,.66) 0%, rgba(22,15,10,.34) 10%, rgba(22,15,10,0) 20%),
  linear-gradient(rgba(66,52,40,.34), rgba(66,52,40,.34)); }
.hero-over { position: relative; text-align: center; padding-top: 110px; padding-bottom: 150px; }
.hero-mark { margin: 0; line-height: 0; }
.hero-mark img { width: clamp(280px, 38vw, 560px); height: auto; filter: invert(1) sepia(.18) brightness(.97) drop-shadow(0 2px 18px rgba(10,6,3,.45)); }
.hero-line { margin: 36px auto 0; max-width: 30em; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; font-weight: 400; color: #F4EEE3; text-shadow: 0 1px 14px rgba(10,6,3,.6); text-wrap: balance; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 500 16px/1 var(--sans); color: var(--marble); background: var(--ink); transition: background-color .2s, box-shadow .2s, transform .2s; }
.btn:hover { background: var(--deep); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--marble), 0 0 0 6px var(--cobalt); }
.btn-hero { margin-top: 42px; padding: 18px 32px; border-radius: 999px; color: var(--ink); background: var(--marble); box-shadow: 0 10px 28px -10px rgba(10,6,3,.6); }
.btn-hero:hover { color: var(--marble); background: #A93028; } /* a deeper coral: light text at 5.9:1 */
.btn-hero:focus-visible { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--saffron); }
.btn-hero::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); margin-left: 2px; }

/* reduced motion: after the rules it overrides, so the scene fade-in and the light rays stay still */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-scene > .rays { animation: none; } .hero-scene > .l { transition: none; } }

/* ---------- tile bands ---------- */
.band { display: block; }
.zband { height: 40px; background: var(--glaze) url("../assets/tiles/zellige-band.svg") 0 0 / 32px 40px repeat-x; }
.iband { height: 64px; background: var(--glaze) url("../assets/tiles/iznik-band.svg") 0 0 / 120px 64px repeat-x; }

/* ---------- sections ---------- */
section { padding: 152px 0; }
section.alt { background: var(--lime); }
.sec-title { display: flex; align-items: center; gap: 18px; font-weight: 300; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 64px; }
.sec-title::before { content: ""; flex: none; width: 22px; height: 22px; background: url("../assets/tiles/medallion.svg") center / contain no-repeat; }
.sec-lede { font-size: 19px; font-weight: 300; max-width: 36em; margin: -28px 0 60px; color: #2E2C28; }
.lede { font-size: 19px; line-height: 1.6; max-width: 36em; margin: 0 0 20px; }
.motto { font-size: 20px; font-style: italic; font-weight: 400; color: var(--teal); }

/* the story */
.idea { display: grid; grid-template-columns: 4fr 7fr; gap: 128px; align-items: center; }
.window { position: relative; background: var(--sand); padding: 18px; box-shadow: inset 0 0 0 1px rgba(26,25,22,.2); }
.window::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: -10px; height: 14px; background: var(--sand); box-shadow: inset 0 1px 0 rgba(26,25,22,.3); }
.window .pane { position: relative; aspect-ratio: 1 / 1; overflow: hidden; box-shadow: inset 0 0 0 6px #241E1A;
  background: url("../assets/tiles/grille.svg") 50% 0 / 25% auto repeat,
    radial-gradient(ellipse 55% 42% at 64% 28%, rgba(255,240,205,.95), transparent 70%),
    linear-gradient(180deg, #E9D6B0 0%, #C49A68 55%, #8C5B3A 100%); }
.idea .lede { font-size: 23px; font-weight: 300; }
.idea .verse-big { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.5; margin: 40px 0 8px; text-align: left; }
.idea .verse-en { font-size: 19px; font-weight: 300; font-style: italic; margin: 0 0 30px; padding-bottom: 30px; border-bottom: 1px solid var(--sand); }
.idea p { max-width: 34em; }
.idea .motto { margin: 0; }

/* two engines: three Iznik tile panels, the dhow in the middle */
.panels { display: grid; grid-template-columns: 1fr minmax(250px, .78fr) 1fr; gap: 36px; align-items: stretch; }
.panel { border: 30px solid var(--cobalt); border-image: url("../assets/tiles/panel-frame.svg") 36 / 30px round; background: var(--glaze);
  box-shadow: 0 1px 0 rgba(26,25,22,.12), 0 22px 40px -28px rgba(26,25,22,.45); }
.panel-in { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 44px; }
.panel-medal { width: 56px; height: 56px; margin-bottom: 22px; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin: 0 0 8px; }
.panel h3 { font-weight: 300; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.15; margin: 0 0 22px; letter-spacing: -.01em; }
.panel p:not(.eyebrow) { max-width: 18em; margin: 0 auto; font-size: 18px; color: #2E2C28; }
.panel-ship { line-height: 0; background: var(--glaze); }
.panel-ship img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block; }

/* our four values: tile badges on an Iznik band */
.steps-wrap { position: relative; }
.steps { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: -78px 0 0; }
.step { text-align: center; padding: 0 28px; min-width: 0; }
.step p, .step h3 { overflow-wrap: anywhere; }
.step .m { position: relative; display: block; width: 92px; height: 92px; margin: 0 auto 26px; }
.step .m img { width: 100%; height: 100%; display: block; }
.step .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 500; }
.step h3 { font-size: 21px; font-weight: 500; margin: 0 0 10px; }
.step p { font-size: 16px; color: var(--stone); max-width: 15em; margin: 0 auto; }


/* contact: copy + a calm, modern form */
.contact-sec { background: var(--marble); }
.partner { display: grid; grid-template-columns: 5fr 6fr; gap: 128px; align-items: start; }
.partner .lede { font-size: 23px; font-weight: 300; line-height: 1.45; }
.contact { position: relative; background: var(--paper); border: 1px solid rgba(205,184,154,.75); border-radius: 22px; padding: 60px 44px 42px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(26,25,22,.04), 0 28px 60px -32px rgba(26,25,22,.28); }
.contact::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--glaze) url("../assets/tiles/zellige-band.svg") 0 0 / 11.2px 14px repeat-x; }
.form-title { font-size: 24px; font-weight: 400; letter-spacing: -.01em; margin: 0 0 32px; }
.field { margin: 0 0 24px; }
.field label, .field legend { display: block; font-size: 14.5px; font-weight: 500; margin: 0 0 8px; padding: 0; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--stone); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16.5px; color: var(--ink); background: #FFFEFC; border: 1px solid var(--line); border-radius: 12px;
  height: 54px; padding: 0 16px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: #C2B399; }
.field input:focus, .field textarea:focus { outline: none; border-color: #2B8796; background: #fff; box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: var(--coral); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194,54,47,.16); }
/* "I am a…": a segmented picker of radios (native keys: Tab in, arrows to move) */
fieldset.seg { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opt { position: relative; display: block; }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: flex; align-items: center; min-height: 46px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #FFFEFC;
  font-size: 15px; font-weight: 500; color: #2E2C28; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.seg-opt:hover span { border-color: #B6A687; }
.seg-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--marble); }
.seg-opt input:focus-visible + span { border-color: #2B8796; box-shadow: var(--ring); }
.seg[aria-invalid="true"] .seg-opt span { border-color: var(--coral); }
.err { margin: 8px 0 0; font-size: 14px; color: #A12A24; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { width: 100%; height: 58px; margin-top: 6px; border-radius: 14px; font-size: 16.5px; }
.btn-send[disabled] { opacity: .65; cursor: progress; }
.promise { margin: 20px 0 0; font-size: 14.5px; color: var(--stone); text-align: center; }
.status:empty { display: none; }
.status { margin-top: 16px; padding: 14px 16px; font-size: 15.5px; border-radius: 12px; border: 1px solid rgba(43,163,181,.35); background: rgba(43,163,181,.08); }
.status.is-error { border-color: rgba(194,54,47,.35); background: rgba(194,54,47,.06); }
.sent { padding: 8px 0 4px; }
/* the thank-you takes focus from script so screen readers read it: no browser outline at any width, a soft ring after keyboard use */
.sent:focus { outline: none; }
.sent:focus-visible { box-shadow: var(--ring); border-radius: 12px; }
.sent .form-title { margin-bottom: 10px; }
.sent p { margin: 0 0 10px; }

/* footer */
footer { background: var(--ink); color: #D9D3C7; padding: 0 0 44px; }
footer .ablaq { height: 10px; background: repeating-linear-gradient(90deg, var(--coral) 0 40px, var(--cream) 40px 80px); }
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; flex-wrap: wrap; }
/* the same ink wordmark, turned to warm paper on the dark footer */
footer .foot-mark { height: 50px; width: auto; display: block; filter: invert(1) sepia(.18) brightness(.94); }
footer nav { display: flex; gap: 28px; font-size: 15px; flex-wrap: wrap; }
/* a.u outranks .u, so the underline stays hidden until hover or keyboard focus */
footer nav a.u { text-decoration-color: transparent; }
footer nav a.u:hover, footer nav a.u:focus-visible { text-decoration-color: var(--u); }
footer .legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(217,211,199,.18); font-size: 14px; color: #B3AC9F; }

/* ---------- tablet ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .idea, .partner { gap: 72px; }
  nav.main .links { gap: 22px; }
  .panels { grid-template-columns: 1fr minmax(200px, .7fr) 1fr; gap: 24px; }
  .panel-in { padding: 36px 18px; }
}

/* ---------- phone ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  header.top .bar { padding-top: 16px; }
  .brand img { height: 36px; }
  /* without script the five links wrap under each other at the right; with it they fold into the Menu panel */
  nav.main .links { flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
  nav.main.has-menu .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    font: 500 15px/1 var(--sans); color: var(--marble); background: rgba(22,15,10,.38); border: 1px solid rgba(244,241,236,.5); text-shadow: 0 1px 8px rgba(10,6,3,.6); }
  .menu-ico { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  nav.main.has-menu .menu-btn[aria-expanded="true"] { color: var(--ink); background: var(--marble); border-color: var(--marble); text-shadow: none; }
  nav.main.has-menu .menu-btn:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
  nav.main.has-menu .links { display: none; }
  nav.main.has-menu.is-open .links { display: flex; flex-direction: column; gap: 2px; position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px;
    background: var(--marble); border: 1px solid rgba(26,25,22,.14); border-radius: 16px; box-shadow: 0 1px 0 rgba(26,25,22,.08), 0 22px 44px -14px rgba(10,6,3,.6); }
  header.top nav.main.is-open .links a { display: block; padding: 13px 16px; border-radius: 10px; font-size: 17px; color: var(--ink); text-shadow: none; }
  header.top nav.main.is-open .links a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: -2px; }
  .hero-over { padding-top: 96px; padding-bottom: 130px; }
  .hero-mark img { width: min(78vw, 340px); }
  .hero-line { font-size: 18px; margin-top: 24px; }
  /* on a narrow screen the line spans the cream arch stones: a wider, darker field keeps it readable (4.5:1 or more) */
  .hero-scene > .shade { background:
    radial-gradient(ellipse 100% 28% at 50% 50%, rgba(22,15,10,.6) 0%, rgba(22,15,10,.54) 45%, rgba(22,15,10,0) 100%),
    linear-gradient(180deg, rgba(22,15,10,.66) 0%, rgba(22,15,10,.34) 10%, rgba(22,15,10,0) 20%),
    linear-gradient(rgba(66,52,40,.34), rgba(66,52,40,.34)); }
  section { padding: 96px 0; }
  .sec-title { margin-bottom: 40px; }
  .sec-lede { margin: -16px 0 40px; font-size: 17px; }
  .idea, .partner { grid-template-columns: 1fr; gap: 56px; }
  .idea .lede, .partner .lede { font-size: 21px; }
  /* the house verse stays one line: it is about 9.6 times its font size wide, so it shrinks with the screen */
  .idea .verse-big { white-space: nowrap; font-size: clamp(24px, 8.6vw, 34px); }
  .window { max-width: 420px; }
  .window .pane { aspect-ratio: 4 / 3; }
  .panels { grid-template-columns: 1fr; gap: 24px; }
  .panel { border-width: 24px; border-image-width: 24px; }
  .panel-in { padding: 44px 24px; }
  .panel-ship { width: min(100%, 300px); justify-self: center; }
  .panel-ship img { height: auto; }
  .steps-band { display: none; }
  .steps { grid-template-columns: 1fr; margin: 0; }
  .step { text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 0 0 34px; position: relative; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--coral) 0 8px, var(--cream) 8px 16px); }
  .step .m { width: 64px; height: 64px; margin: 0; }
  .step .num { font-size: 19px; }
  .step h3 { font-size: 18px; margin-top: 4px; }
  .step p { margin: 0; max-width: none; }
  .contact { padding: 48px 22px 32px; border-radius: 18px; }
  .seg-opt span { padding: 0 13px; }
  footer .row { padding-top: 44px; }
  footer .foot-mark { height: 42px; }
  footer nav { gap: 14px 20px; }
}

main:focus { outline: none; }
