/* Martin Clone v2. Stable viewport; the artwork yields space to the content. */
:root {
  color-scheme: dark;
  --bg: #050c12;
  --ink: #f2f7fa;
  --muted: #a8b7c4;
  --cyan: #43ddf2;
  --line: rgba(147, 189, 209, .16);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; background: var(--bg); overscroll-behavior: none; }
body { color: var(--ink); }
::selection { background: var(--cyan); color: #03141d; }
.page {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: radial-gradient(ellipse at 71% 46%, #092330 0, #06111b 36%, var(--bg) 73%);
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .11;
  background-image: linear-gradient(rgba(103, 196, 213, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 196, 213, .15) 1px, transparent 1px);
  background-size: 88px 88px;
}
.masthead, .footer {
  width: calc(100% - 96px);
  max-width: 1488px;
  min-width: 0;
  margin-inline: auto;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.masthead { padding-block: clamp(10px, 2.1svh, 24px); border-bottom: 1px solid var(--line); }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: 1.3px; }
.brand img { display: block; flex: 0 0 auto; width: 36px; height: 36px; }
.brand > span { overflow-wrap: anywhere; }
.brand-accent { color: var(--cyan); }
.brand-domain { color: #90a5b4; font-weight: 400; }
.masthead-note { margin: 0; color: #a0b4c2; font-size: .75rem; letter-spacing: .4px; }
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(16px, 3svh, 40px) 7.5%;
  /* If accessibility settings need extra space, content stays reachable. */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  scrollbar-width: thin;
  scrollbar-color: #375563 transparent;
}
.intro { position: relative; z-index: 2; flex: 0 0 auto; width: 52%; max-width: 640px; margin-block: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--cyan); font-size: .6875rem; font-weight: 700; letter-spacing: 2.6px; }
.eyebrow-line { flex: 0 0 26px; height: 1px; background: var(--cyan); }
.separator { color: #537b8c; font-weight: 400; }
h1 { margin: 0 0 20px; font-size: clamp(3rem, min(7.5vw, 12svh), 7.5rem); line-height: .9; letter-spacing: -.06em; font-weight: 800; }
h1 > span { display: block; }
h1 .clone { margin-top: 5px; color: var(--cyan); }
.title-dot { color: #eff6fa; }
.tagline { font-size: clamp(1.1875rem, 2vw, 1.8125rem); line-height: 1.3; letter-spacing: -.6px; margin: 0 0 14px; }
.tagline span { color: #b4c3cd; }
.description { color: var(--muted); font-size: .875rem; line-height: 1.65; max-width: 410px; margin: 0 0 22px; }
.x-link { display: inline-flex; align-items: center; gap: 16px; min-height: 54px; max-width: 100%; padding: 14px 22px; color: #05141d; background: var(--cyan); border: 1px solid var(--cyan); border-radius: 6px; text-decoration: none; font-weight: 700; font-size: .875rem; box-shadow: 0 0 32px rgba(36, 211, 239, .09); }
.x-link svg { flex-shrink: 0; }
.x-link .arrow-icon { margin-left: 24px; }
.x-link:hover { background: #9ceef7; border-color: #9ceef7; }
.x-link:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.profile-note { margin: 11px 0 0; color: #b4c5d1; font-size: .75rem; line-height: 1.5; }
.profile-note span { display: block; margin-top: 3px; color: #92a8b8; font: .6875rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .3px; }
.portrait { position: absolute; z-index: 0; width: 66%; height: 100%; right: -4.5%; top: 0; display: flex; align-items: center; pointer-events: none; }
.portrait picture { display: block; position: relative; z-index: 1; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 20%, #000 86%, transparent); }
.portrait img { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 80%, transparent); }
.portrait-shade { position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, #07121b, rgba(7, 18, 27, .65) 11%, transparent 29%); -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent); }
.orbit { position: absolute; width: 85%; max-height: 95%; aspect-ratio: 1; border: 1px solid rgba(65, 213, 236, .12); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 100%; border-style: dashed; border-color: rgba(65, 213, 236, .06); }
.footer { padding-block: 14px; border-top: 1px solid var(--line); color: #8ea3b3; font-size: .6875rem; letter-spacing: .3px; }
.footer p { display: flex; gap: 9px; align-items: center; margin: 0; line-height: 1.6; }
.footer-spark { flex: 0 0 5px; height: 5px; background: #40bfd4; transform: rotate(45deg); }
.footer-thought { color: #8096a8; }
@media (min-width: 1600px) { .hero { padding-inline: 120px; } }
@media (max-width: 1000px) and (min-width: 701px) {
  .masthead, .footer { width: calc(100% - 64px); }
  .hero { padding-inline: 6%; }
  .intro { width: 58%; }
  .portrait { width: 76%; right: -13%; }
  .portrait-shade { background: linear-gradient(90deg, #07121b, rgba(7, 18, 27, .88) 12%, transparent 44%); }
  .description { max-width: 340px; }
  .masthead-note { font-size: .625rem; }
}
@media (max-width: 700px) {
  .masthead, .footer { width: calc(100% - 40px); }
  .masthead { padding-block: 10px; }
  .brand { font-size: .6875rem; gap: 9px; letter-spacing: 1px; }
  .brand img { width: 30px; height: 30px; }
  .masthead-note { display: none; }
  .hero { flex-direction: column; padding: 8px 24px 16px; }
  /* Only the portrait expands or shrinks. It cannot push the text off-screen. */
  .portrait { position: relative; align-self: center; flex: 1 1 0; min-height: 0; width: calc(100% + 48px); max-width: 480px; height: auto; right: auto; top: auto; overflow: hidden; -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent); }
  .portrait picture { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
  .portrait img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 82%, transparent); }
  .portrait-shade { display: none; }
  .orbit { width: 75%; }
  .orbit-two { width: 90%; }
  .intro { width: 100%; max-width: 440px; align-self: center; margin: 0; text-align: center; }
  .eyebrow { justify-content: center; gap: 10px; margin-bottom: 12px; font-size: .625rem; letter-spacing: 2px; }
  .eyebrow-line { display: none; }
  h1 { font-size: clamp(1.875rem, 9.3vw, 3.5rem); line-height: 1; margin-bottom: 15px; letter-spacing: -.055em; }
  h1 > span { display: inline; }
  h1 .clone { margin: 0; }
  .tagline { font-size: 1.125rem; margin-bottom: 12px; }
  .tagline br { display: none; }
  .tagline span::before { content: " "; }
  .description { max-width: 350px; margin: 0 auto 18px; font-size: .8125rem; line-height: 1.6; }
  .x-link { min-height: 50px; padding: 12px 22px; }
  .x-link .arrow-icon { margin-left: 20px; }
  .profile-note { margin-top: 9px; font-size: .6875rem; }
  .profile-note span { margin-top: 2px; font-size: .625rem; }
  .footer { padding-block: 10px; justify-content: center; font-size: .625rem; }
  .footer-thought { display: none !important; }
}
@media (max-width: 370px) {
  .hero { padding-inline: 18px; }
  .tagline { font-size: 1rem; }
  .description { font-size: .8125rem; }
}
@media (max-height: 620px) {
  .masthead { padding-block: 7px; }
  .footer { padding-block: 7px; }
  .hero { padding-block: 10px; }
  .eyebrow { margin-bottom: 10px; }
  h1 { margin-bottom: 12px; }
  .tagline { margin-bottom: 10px; }
  .description { margin-bottom: 14px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .masthead { padding-block: 6px; }
  .brand img { width: 26px; height: 26px; }
  .masthead-note { display: none; }
  .footer { display: none; }
  .hero { display: block; padding: 14px 6%; }
  .intro { width: 65%; max-width: 560px; margin: 0; text-align: left; }
  .portrait { position: absolute; width: 60%; height: 100%; max-width: none; right: -12%; top: 0; opacity: .65; }
  .portrait picture { position: relative; inset: auto; }
  .portrait-shade { display: block; }
  .eyebrow { justify-content: flex-start; gap: 9px; font-size: .625rem; margin-bottom: 8px; }
  .eyebrow-line { display: none; }
  h1 { font-size: 2.125rem; line-height: 1; margin-bottom: 9px; }
  h1 > span { display: inline; }
  h1 .clone { margin: 0; }
  .tagline { font-size: 1rem; margin-bottom: 9px; }
  .tagline br { display: none; }
  .tagline span::before { content: " "; }
  .description { max-width: 410px; font-size: .8125rem; line-height: 1.5; margin: 0 0 12px; }
  .x-link { min-height: 46px; padding-block: 10px; }
  .profile-note { margin-top: 7px; font-size: .6875rem; }
  .profile-note span { display: inline; margin-left: 9px; font-size: .625rem; }
}
@media (forced-colors: active) {
  .x-link { border: 2px solid LinkText; }
  .portrait { visibility: hidden; }
}
