/* ── Alternative home (scroll story) ── */
body.alt {
  --paper: #0b0b0b;
  --ink: #f2f1ec;
  --ink-soft: #8d8c86;
  --line: rgba(255,255,255,0.14);
  --btn: #f2f1ec;
  --btn-ink: #0b0b0b;
  background: var(--paper);
  color: var(--ink);
  transition: background-color 0.6s ease;
  overflow-x: hidden;
}

/* Top bar */
.a-logo {
  position: fixed;
  top: 22px; left: 24px;
  z-index: 50;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  mix-blend-mode: difference;
  color: #fff;
}
.a-menu {
  position: fixed;
  top: 18px; right: 20px;
  z-index: 50;
  display: flex;
  gap: 8px;
}
.a-menu a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.a-menu a:hover { transform: translateY(-1px); background: #d9d8d2; }

.a-top-btn {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 50;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-ink);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.a-top-btn.show { opacity: 1; pointer-events: auto; }

/* Layout */
.a-wrap { padding: 0 24px; }
.a-section { position: relative; }

/* Hero */
.a-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 120px;
  padding-bottom: 12vh;
}
.a-hero-intro {
  font-size: 22px;
  line-height: 1.3;
  max-width: 400px;
  color: var(--ink);
  font-weight: 400;
}
.a-display {
  font-size: clamp(56px, 9.2vw, 148px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.a-display .w { opacity: 0.2; transition: opacity 0.25s linear; }
.a-display .w.on { opacity: 1; }

.a-right { grid-column: 2; }

/* Floating gallery */
.a-gallery {
  position: relative;
  height: 110vw;
}
.a-float {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  will-change: transform;
}
.a-float img { display: block; width: 100%; height: 100%; object-fit: cover; }
.a-photo-float img { object-position: center 75%; }

.a-panel {
  display: grid;
  place-items: center;
  container-type: inline-size;
}
.a-panel .phone {
  position: relative;
  right: auto; bottom: auto;
  width: 34%;
  border-radius: 5.6cqw;
  padding: 1.1cqw;
}
.a-panel .phone .screen { border-radius: 4.6cqw; padding-top: 0; }
.a-panel .laptop { position: relative; left: auto; top: auto; width: 82%; }

.p-aaip     { background: linear-gradient(160deg, #e9eef3 0%, #c9d6e3 100%); }
.p-orbiiit  { background: #262626; }
.p-mopo     { background: #ffbf00; }
.p-journey  { background: linear-gradient(135deg, #ff7a3d 0%, #ff2d87 100%); }
.p-komodo   { background: radial-gradient(120% 110% at 50% 0%, #4d54d6 0%, #1c1f3a 75%); }
.a-float.p-victoria .phone { width: 56%; }
.p-victoria { background: radial-gradient(120% 100% at 50% 0%, #1f3f8f 0%, #0a1f4d 75%); }
.p-op-red   { background: linear-gradient(160deg, #d3122f 0%, #8e0a1e 100%); }
.p-op-dark  { background: radial-gradient(120% 100% at 50% 0%, #3a3a3a 0%, #121212 75%); }
.a-float.p-op img { width: 88%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }

/* Project reel: pinned, vertical scroll moves the track sideways */
.a-reel { position: relative; }
.a-reel-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: 20px;
}
.a-reel-head { display: flex; justify-content: space-between; align-items: baseline; }
.a-reel-head .a-label { margin: 0; }
.a-reel-count { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.a-reel-count b { font-weight: 400; color: var(--ink); }
.a-reel-track {
  display: flex; gap: 32px;
  padding: 0 24px;
  width: max-content;
  will-change: transform;
}
.a-card { flex: none; display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; }
.a-card-media {
  height: calc(50vh - 10px);
  width: calc((50vh - 10px) * var(--ar));
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.a-card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.a-card-media.a-panel { display: flex; align-items: center; justify-content: center; }
.a-card-media .laptop { width: 82%; flex: none; }
.p-orbiiit-dark { background: radial-gradient(120% 100% at 70% 0%, #1c3b39 0%, #0d0d0d 70%); }
.a-card-media.p-op img { width: 88%; height: auto; object-fit: contain; }
.a-card-media .phone { flex: none; }
.a-card .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.a-card .laptop-screen .screen img { height: auto; }
.a-card .p-aaip .phone, .a-card .p-victoria .phone { width: 46%; }
.a-card .p-victoria img.p-vw { width: auto; height: 78.08%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.35)); }
.a-card .p-op img { width: 88%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }
/* Reel cards: subtle scale on hover (content scales inside the clipped panel) */
.a-card-media > * { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  .a-card:hover .a-card-media > * { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .a-card-media > * { transition: none; }
}
.a-card-cap {
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.a-card-cap span + span { color: var(--ink-soft); }
.a-reel-bar i {
  display: block; height: 1px; background: var(--ink);
  transform-origin: left; transform: scaleX(0);
}
.a-reel-bar { position: relative; }
.a-reel-bar::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: var(--line); }

/* About portrait */
.a-about { align-items: start; }
.a-about-photo {
  grid-column: 1; margin: 0;
  width: 400px;
  aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden; background: #1c1c1b;
}
.a-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 0; }

/* Statement blocks */
.a-statement {
  padding-block: 18vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.a-statement.left .a-display { grid-column: 1 / span 2; max-width: 14ch; }
.a-statement .a-display { grid-column: 2; }

/* Family photo */
.a-family {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-block: 4vh 10vh;
}
.a-family figure {
  grid-column: 3 / span 8;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1c1b;
  aspect-ratio: 4 / 3;
}
.a-family img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }

/* Photo story */
.a-photo-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-block: 6vh 14vh;
}
.a-photo {
  grid-column: 4 / span 5;
  border-radius: 14px;
  overflow: hidden;
  background: #d6d5cf;
  aspect-ratio: 4 / 5;
}
.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-photo-note {
  grid-column: 9 / span 3;
  align-self: end;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.a-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-block: 10vh 18vh;
}
.a-about p {
  grid-column: 2;
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Process */
.a-process { padding-block: 0 18vh; }
.a-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.a-steps li {
  padding: 32px 32px 48px 0;
  border-bottom: 1px solid var(--line);
}
.a-steps li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.a-steps .n { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 40px; }
.a-steps h3 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; margin: 0 0 14px; }
.a-steps p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 34ch; }

/* Work list */
.a-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.a-work { padding-block: 8vh 16vh; }
.a-work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.a-work-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.a-work-name {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.a-work-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.a-work-list:hover .a-work-name { opacity: 0.25; }
.a-work-list a:hover .a-work-name { opacity: 1; transform: translateX(12px); }
.a-preview {
  position: fixed;
  z-index: 40;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}
.a-preview.show { opacity: 1; }
.a-preview img { border-radius: 0 !important; display: block; width: auto; height: auto; max-width: 440px; max-height: 60vh; }

/* Testimonials */
.a-quotes { padding-block: 14vh; }
.a-quotes .a-display { font-size: clamp(40px, 5.6vw, 88px); max-width: 16ch; margin-bottom: 10vh; }
.a-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px 48px;
}
.a-quote blockquote {
  margin: 0 0 20px;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.a-quote .who { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.a-quote .role { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.a-quote:nth-child(even) { margin-top: 14vh; }

/* Clients */
.a-clients { padding-block: 10vh 16vh; }
.a-clients ul { list-style: none; margin: 0; padding: 0; }
.a-clients li {
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.16);
  transition: color 0.3s ease;
}
.a-clients li.on { color: var(--ink); }

/* Contact */
.a-contact {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 10vh;
}
.a-contact .a-display { max-width: 12ch; }
.a-contact-links { display: flex; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
.a-contact-links a {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--btn); color: var(--btn-ink); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.a-foot {
  display: flex; justify-content: space-between;
  padding: 24px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}

@media (max-width: 860px) {
  .a-menu a { height: 36px; padding: 0 14px; font-size: 11px; }
  .a-menu a.opt { display: none; }
  .a-hero, .a-statement, .a-about { grid-template-columns: 1fr; }
  .a-right, .a-statement .a-display, .a-about p { grid-column: 1; }
  .a-hero { padding-top: 110px; gap: 48px; }
  /* Gallery becomes a simple grid on phones so the screens stay readable */
  .a-gallery {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-block: 4vh 8vh;
  }
  .a-float {
    position: relative;
    left: auto !important; top: auto !important;
    width: auto !important;
    aspect-ratio: 4 / 5 !important;
    transform: none !important;
  }
  .a-float.wide { grid-column: 1 / -1; aspect-ratio: 4 / 3 !important; }
  .a-float.p-victoria .phone { width: 48%; }
  .a-panel .phone { width: 46%; }
  .a-panel .laptop { width: 86%; }
  .a-family { grid-template-columns: 1fr; }
  .a-family figure { grid-column: 1; }
  .a-photo { grid-column: 1 / -1; }
  .a-photo-note { grid-column: 1 / -1; }
  .a-quote-grid { grid-template-columns: 1fr; gap: 56px; }
  /* Two rows fill the usable screen height between the name (top) and the menu (bottom) */
  .a-reel-sticky {
    --reel-top: 64px; --reel-bottom: 76px; --reel-gap: 12px;
    position: static;
    height: 100vh; height: 100svh;
    padding: var(--reel-top) 0 var(--reel-bottom);
    gap: var(--reel-gap);
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .a-reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; }
  .a-reel-track::-webkit-scrollbar { display: none; }
  .a-card { scroll-snap-align: center; }
  .a-card-media {
    --h: calc((100vh - var(--reel-top) - var(--reel-bottom) - var(--reel-gap)) / 2);
    --h: calc((100svh - var(--reel-top) - var(--reel-bottom) - var(--reel-gap)) / 2);
    height: var(--h); width: calc(var(--h) * var(--ar));
  }
  .a-reel-bar { display: none; }
  .a-about-photo { width: 100%; max-width: 360px; }
  .a-steps { grid-template-columns: 1fr; }
  .a-steps li, .a-steps li:not(:nth-child(3n+1)) { padding: 24px 0 32px; border-left: 0; }
  .a-steps .n { margin-bottom: 16px; }
  .a-quote:nth-child(even) { margin-top: 0; }
  .a-preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .a-float { transform: none !important; }
  .a-display .w { opacity: 1; }
}

/* AAIP: same white status bar as the project page, so the header sits below the island */
.a-panel .phone.theme-aaip .screen { padding-top: 13%; background: #fff; }
/* Screens always show from the top, never stretched */
.a-float .screen img { object-position: top center; }
.a-float .laptop-screen .screen img { height: auto; }
.p-orbiiit .laptop-screen .screen { background: #212121; }
.a-float { min-height: 0; }
/* Screen background matches each app's top bar so no light edge shows at the rounded corners */
.p-victoria .phone .screen { background: #00205b; }
.p-orbiiit .phone .screen { background: #000; }

/* Screenshots inside device frames are never rounded (the global img radius caused light corners) */
.screen img { border-radius: 0 !important; }

/* Buttons: outline, white text, transparent fill */
.a-menu a, .a-top-btn, .a-contact-links a, .ap .live-link {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.a-menu a:hover, .a-top-btn:hover, .a-contact-links a:hover, .ap .live-link:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px #fff;
}

/* Layout test: name centered on top, menu centered at the bottom.
   Difference blending keeps the white outline buttons readable over light images. */
.a-logo { top: 24px; }
.a-menu {
  top: auto; right: auto;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  mix-blend-mode: difference;
}
.a-menu a:hover { background: transparent; box-shadow: inset 0 0 0 1px #fff; transform: none; }

/* Laptop + phone side by side in one card (Orbiiit landing) */
.a-card .a-panel.p-combo .laptop { width: 74%; transform: translateX(-8%); }
.a-card .a-panel.p-combo .phone {
  position: absolute;
  width: 19%;
  right: 7%;
  bottom: 12%;
  border-radius: 3.4cqw;
  padding: 0.8cqw;
}
.a-card .a-panel.p-combo .phone .screen { border-radius: 2.7cqw; padding-top: 0; }
