/* Atlas Axis homepage: classical cream editorial page; the chart opens the page and the title sheet is laid over it. */
@font-face { font-family: "Cormorant Garamond"; src: url("/home/fonts/Cormorant-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/home/fonts/Cormorant-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/home/fonts/Cormorant-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/home/fonts/Cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/home/fonts/Cormorant-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/home/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/home/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f4f0e6;
  --mat: #fbf8f1;
  --ink: #1c1a17;
  --ink-2: rgb(28 26 23 / .74);
  --ink-3: rgb(28 26 23 / .64);
  --rule: rgb(28 26 23 / .14);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .1 0 0 0 0 .09 .045 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --card: linear-gradient(168deg, #fdfbf7 0%, #faf6ee 48%, #f4efe3 100%);
  --card-edge: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -1px 0 rgb(28 26 23 / .04);
  /* Layered paper shadow: contact, near and far light. */
  --lift: 0 1px 1px rgb(28 26 23 / .05), 0 6px 14px -8px rgb(28 26 23 / .12), 0 34px 70px -36px rgb(28 26 23 / .28);
  --lift-hi: 0 1px 1px rgb(28 26 23 / .05), 0 12px 24px -10px rgb(28 26 23 / .14), 0 52px 90px -40px rgb(28 26 23 / .34);
  --gutter: clamp(20px, 4vw, 56px);
  --hd: 68px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--hd);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.hd.is-solid {
  background: linear-gradient(180deg, rgb(253 251 246 / .9), rgb(246 242 233 / .84));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: rgb(28 26 23 / .07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), 0 1px 1px rgb(28 26 23 / .04), 0 14px 30px -18px rgb(28 26 23 / .3);
}
.brand { display: block; opacity: 0; transform: translateY(4px); transition: opacity .6s ease, transform .6s var(--ease); }
.brand img { display: block; width: auto; height: 30px; }
.hd.is-past .brand, html:not(.js) .brand { opacity: 1; transform: none; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 36px); font-size: 14px; }
.nav a { color: var(--ink-2); transition: color .2s ease; }
.nav a:hover { color: var(--ink); }

/* Intro: a framed sea chart, almost the whole first screen, zooms from the Gulf to Dubai.
   Then the view flies into Dubai, the chart dissolves into paper and the title page enters
   on the same pinned stage: the site proper begins there. */
.intro { --frame: clamp(14px, 2.6vh, 28px); --fx: var(--gutter); position: relative; }
.intro-stage { position: relative; padding: var(--frame) var(--fx); }
.plate {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2 * var(--frame));
  height: calc(100svh - 2 * var(--frame));
  margin: 0;
  padding: clamp(10px, 1.3vw, 20px) clamp(10px, 1.3vw, 20px) 0;
  background: linear-gradient(170deg, #fdfbf6, var(--mat) 45%, #f6f1e6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), var(--lift-hi);
  transform-origin: 50% 46%;
}
.plate-map { position: relative; flex: 1; overflow: hidden; background: #ece6d8; box-shadow: inset 0 0 0 1px rgb(28 26 23 / .08); }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.map-world img { position: absolute; display: block; max-width: none; user-select: none; }
.js .poster { display: none; }
.plate-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: clamp(10px, 1.2vw, 16px) 2px clamp(12px, 1.3vw, 18px);
}
.cap-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
.cap-title { font: italic 300 clamp(18px, 1.5vw, 22px)/1.2 var(--serif); color: var(--ink); }
.cap-title em { font-style: italic; font-weight: 400; }
.cap-kicker { font: 400 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.intro-cue { display: none; font: 400 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.intro-cue::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  vertical-align: 3px;
  transform: rotate(45deg);
}
.intro-veil { display: none; }

/* Title page: the first page of the site proper */
.title {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--hd) + 40px) var(--gutter) 56px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(24px, 3.6vh, 40px);
}
.lockup { width: clamp(150px, 14vw, 210px); height: auto; margin-bottom: clamp(8px, 2vh, 24px); }
.display {
  display: grid;
  font: 300 clamp(50px, 8.4vw, 132px)/.94 var(--serif);
  letter-spacing: -.012em;
}
.display em { font-weight: 300; }
.lede { font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); letter-spacing: .01em; text-wrap: balance; }
.intro-stage > .title { margin: 0 calc(-1 * var(--fx)) calc(-1 * var(--frame)); }

/* Motion: the pinned stage */
.js:not(.rm) .intro { height: 440vh; }
.js:not(.rm) .intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js:not(.rm) .plate { transform: scale(var(--z, 1)); }
.js:not(.rm) .intro-cue { display: inline; transition: opacity .6s ease; }
.js:not(.rm) .intro-cue::after { animation: cue 2.4s var(--ease) infinite; }
.js:not(.rm) .intro.is-moving .intro-cue { opacity: 0; }
@keyframes cue { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }
.js:not(.rm) .intro-veil { display: block; position: absolute; inset: 0; z-index: 1; background: var(--paper) var(--grain); opacity: var(--v, 0); pointer-events: none; }
.js:not(.rm) .intro-stage > .title { position: absolute; inset: 0; z-index: 2; margin: 0; visibility: hidden; }
.js:not(.rm) .intro.is-entered .intro-stage > .title { visibility: visible; }

/* Load: the framed chart rises from the paper, then the chart surfaces inside it. */
.js:not(.rm) .plate { opacity: 0; translate: 0 26px; transition: opacity 1.4s var(--ease), translate 2s var(--ease); }
.js:not(.rm) .plate-map > .map-world { opacity: 0; scale: 1.04; transition: opacity 1.8s var(--ease) .35s, scale 3s var(--ease) .35s; }
.js:not(.rm) .intro.is-ready .plate { opacity: 1; translate: 0 0; }
.js:not(.rm) .intro.is-ready .plate-map > .map-world { opacity: 1; scale: 1; }

/* Entering the site: each line of the title is unmasked as it rises. */
.js:not(.rm) .title .rise { opacity: 0; transform: translateY(.45em); clip-path: inset(100% 0 -25% 0); }
.js:not(.rm) .intro.is-entered .title .rise { animation: enter 1.5s var(--ease) forwards; }
.js:not(.rm) .intro.is-entered .title .lockup { animation-name: enter-lockup; animation-duration: 1.8s; }
.js:not(.rm) .intro.is-entered .display .rise:nth-child(1) { animation-delay: .25s; }
.js:not(.rm) .intro.is-entered .display .rise:nth-child(2) { animation-delay: .42s; }
.js:not(.rm) .intro.is-entered .lede.rise { animation-delay: .85s; }
@keyframes enter { to { opacity: 1; transform: none; clip-path: inset(-25% 0 -25% 0); } }
@keyframes enter-lockup { from { opacity: 0; transform: scale(.94); clip-path: inset(0); } to { opacity: 1; transform: none; clip-path: inset(0); } }

/* The header belongs to the site proper: hidden over the chart, it arrives with the title page. */
.js .hd { transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease, opacity .7s var(--ease) .5s, transform .9s var(--ease) .5s, visibility 0s .5s; }
.js .hd:not(.is-on) { opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; }

/* Disciplines diptych */
.disciplines { padding: clamp(120px, 18vh, 200px) var(--gutter) clamp(120px, 16vh, 180px); }
.disciplines { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgb(255 255 255 / .55), transparent 72%); }
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.8vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
}
.panel {
  --rx: 0deg;
  --ry: 0deg;
  --up: 0px;
  --lx: 22%;
  --ly: 0%;
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 4.6vw, 72px) clamp(28px, 4vw, 64px) clamp(36px, 4vw, 56px);
  border-radius: 3px;
  background: var(--card);
  box-shadow: var(--card-edge), var(--lift);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--up));
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--lx) var(--ly), rgb(255 255 255 / .7), transparent 58%);
  opacity: .55;
  transition: opacity .6s ease;
  pointer-events: none;
}
.panel > * { position: relative; }
.numeral {
  position: absolute !important;
  top: clamp(4px, 1vw, 14px);
  right: clamp(16px, 2.4vw, 36px);
  font: italic 300 clamp(150px, 15vw, 240px)/1 var(--serif);
  color: rgb(28 26 23 / .07);
  text-shadow: 0 1px 0 rgb(255 255 255 / .9), 0 -1px 0 rgb(28 26 23 / .05);
  pointer-events: none;
  user-select: none;
}
.panel h3 { font: 300 clamp(42px, 5vw, 76px)/.98 var(--serif); letter-spacing: -.01em; margin-bottom: 28px; }
.panel h3 em { display: block; }
.panel p { max-width: 34ch; font-size: 17px; color: var(--ink-2); margin-bottom: 40px; }
.panel ul { border-top: 1px solid var(--rule); max-width: 420px; }
.panel li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 14px; letter-spacing: .01em; color: var(--ink-2); }

/* Contact */
.contact {
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(120px, 16vh, 180px);
  display: grid;
  justify-items: center;
  text-align: center;
  background: radial-gradient(ellipse 55% 50% at 50% 64%, rgb(255 255 255 / .55), transparent 72%);
}
.display-2 { font: 300 clamp(52px, 7vw, 108px)/1 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
.mail { color: var(--ink-2); border-bottom: 1px solid var(--rule); transition: color .2s ease, border-color .2s ease; margin-bottom: clamp(56px, 8vh, 88px); }
.mail:hover { color: var(--ink); border-color: var(--ink-3); }
.form {
  width: 100%;
  max-width: 660px;
  display: grid;
  gap: 30px;
  text-align: left;
  padding: clamp(30px, 4.6vw, 60px) clamp(22px, 4.6vw, 60px) clamp(24px, 3.6vw, 44px);
  border-radius: 3px;
  background: var(--card);
  box-shadow: var(--card-edge), var(--lift);
}
.field { display: grid; gap: 4px; }
.field span { font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgb(28 26 23 / .22);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.4 var(--sans);
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--ink); }
.field.is-invalid span::after { content: " - required"; color: var(--ink); }
.form button {
  justify-self: center;
  height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a3631, var(--ink) 60%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 1px 2px rgb(28 26 23 / .2), 0 10px 22px -12px rgb(28 26 23 / .5);
  color: var(--paper);
  font: 500 15px/1 var(--sans);
  cursor: pointer;
  transition: transform .3s var(--ease), opacity .2s ease;
}
.form button:hover { transform: scale(1.03); }
.form button:disabled { opacity: .5; cursor: progress; transform: none; }
.consent { text-wrap: balance; text-align: center; font-size: 13px; color: var(--ink-3); margin-top: -12px; }
.consent a { border-bottom: 1px solid var(--rule); }
.status { min-height: 1.5em; text-align: center; color: var(--ink-2); }

/* Colophon */
.colophon {
  padding: 56px var(--gutter) 56px;
  background: var(--grain), linear-gradient(180deg, #ebe5d8, #e6dfd0);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 26px 36px -28px rgb(28 26 23 / .24);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: rgb(28 26 23 / .72);
}
.emboss { width: 66px; height: 41px; margin: 0 auto 22px; filter: drop-shadow(0 1px 0 rgb(255 255 255 / .8)) drop-shadow(0 -1px 0 rgb(28 26 23 / .1)); }
.emboss span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgb(28 26 23 / .12);
  -webkit-mask: url("/home/monogram.svg") center / contain no-repeat;
  mask: url("/home/monogram.svg") center / contain no-repeat;
}
.colophon-name { font: 400 20px/1.4 var(--serif); color: var(--ink); margin-bottom: 8px; }
.colophon a { transition: color .2s ease; }
.colophon a:hover { color: var(--ink); }

/* Scroll reveals */
.js:not(.rm) .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js:not(.rm) .reveal.in { opacity: 1; transform: none; }
.js:not(.rm) .panel.reveal + .panel.reveal { transition-delay: .18s; }
.js:not(.rm) .panel.reveal.in {
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--up));
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), opacity 1.2s var(--ease);
}
.js:not(.rm) .panel.is-tilt { --up: -6px; box-shadow: var(--card-edge), var(--lift-hi); transition-delay: 0s; }
.js:not(.rm) .panel.is-tilt::before { opacity: 1; }

/* Document pages (privacy) */
.doc { max-width: 700px; margin: 0 auto; padding: calc(var(--hd) + 104px) var(--gutter) 120px; }
.doc h1 { font: 300 clamp(48px, 6vw, 84px)/1 var(--serif); margin-bottom: 14px; }
.doc .updated { color: var(--ink-3); margin-bottom: 56px; }
.doc h2 { font: 400 28px/1.15 var(--serif); margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 12px; display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.doc a { border-bottom: 1px solid var(--rule); }

@media (max-width: 860px) {
  .diptych { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 699px) {
  .hd { --hd: 58px; }
  .brand img { height: 26px; }
  .nav { font-size: 13px; gap: 18px; }
  .cap-kicker { font-size: 9.5px; letter-spacing: .1em; }
  .intro { --fx: 12px; --frame: 12px; }
  .cap-text { flex-direction: column; gap: 2px; }
  .js:not(.rm) .intro { height: 380vh; }
  .panel p { font-size: 16px; }
}
