/* Home page */

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 120px); }
.hero__role { font-family: var(--mono); font-size: 0.78rem; color: var(--blue-ink); font-variation-settings: "wdth" 90; margin-bottom: 20px; }
.hero__name { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 5rem); max-width: 11ch; line-height: 1; }
.hero__line { margin-top: 22px; font-size: var(--step-2); font-weight: 600; font-variation-settings: "wdth" 105; color: var(--ink); }
.hero__intro { margin-top: 20px; color: var(--ink-2); max-width: 56ch; font-size: 1.06rem; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }

.hero__photos { justify-self: end; width: min(100%, 460px); }
.hero__photos .carousel__slide img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.hero__photos figcaption { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__photos .carousel__slide.is-on img { animation: drift 9s var(--ease-out) both; }
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero__photos .carousel__slide { overflow: hidden; border-radius: 10px; display: block; }
.hero__photos .carousel__slide figcaption { padding-bottom: 2px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photos { justify-self: stretch; width: 100%; order: -1; }
  .hero__photos .carousel__slide img { aspect-ratio: 4 / 3.4; }
}

/* ---------- globe band ---------- */
.journey { margin-top: clamp(72px, 10vw, 136px); background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.journey__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.journey__h { font-size: var(--step-2); margin-bottom: 20px; }
.journey__lede { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }

.story { min-height: 300px; }
.story__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.story__fig a { display: block; border-radius: var(--radius); overflow: hidden; }
.story__fig a img { transition: transform .6s var(--ease-out); }
.story__fig a:hover img { transform: scale(1.03); }
.story__place { font-family: var(--mono); font-size: 0.78rem; color: var(--blue-ink); font-variation-settings: "wdth" 90; }
.story__text { margin-top: 10px; font-size: 1.08rem; line-height: 1.55; max-width: 46ch; }
.story__link { display: inline-block; margin-top: 12px; color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.story__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.story__fig { margin-top: 18px; max-width: 420px; }
.story__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.story__fig--tall img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.story__fig figcaption { margin-top: 6px; font-size: 0.75rem; }

.places { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 2px; }
.places button { font: inherit; font-size: 0.82rem; color: var(--ink-3); background: none; border: 0; padding: 3px 6px; border-radius: 4px; cursor: pointer; }
.places button:hover { color: var(--ink); background: var(--bg); }

.globe { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 640px; justify-self: end; overflow: hidden; }
.globe canvas { width: 100%; height: 100%; cursor: grab; touch-action: none; filter: invert(1); mix-blend-mode: multiply; }
.globe canvas:active { cursor: grabbing; }
.globe__leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.globe__leaders line { stroke: var(--blue); stroke-width: 1; }
.globe__leaders circle { fill: var(--blue); }

.gtag {
  position: absolute; transform: translate(-50%, calc(-100% - 8px));
  font: 600 12px/1 var(--font); color: #fff; background: var(--blue);
  padding: 5px 8px; border: 0; border-radius: 4px; white-space: nowrap; cursor: pointer;
  transition: opacity .2s, background .2s;
}
.gtag::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.gtag.is-callout { transform: translate(-50%, -50%); }
.gtag.is-callout::after { display: none; }
.gtag:hover { background: var(--blue-ink); }
.gtag.is-active { background: var(--ink); z-index: 2; }
.gtag.is-hidden { opacity: 0; pointer-events: none; }

.globe__zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.globe__zoom button { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; font: 600 16px/1 var(--font); cursor: pointer; }
.globe__zoom button:hover { border-color: var(--ink-3); }
.globe__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 12px; color: var(--ink-2); background: color-mix(in oklch, var(--bg) 90%, transparent); padding: 4px 8px; border-radius: 4px; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.globe__hint.is-on { opacity: 1; }

@media (max-width: 860px) {
  .journey__in { grid-template-columns: 1fr; }
  .globe { order: -1; justify-self: center; }
  .story { min-height: 0; }
}

/* ---------- selected work ---------- */
.work { padding-top: clamp(72px, 10vw, 136px); }
.work__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.work__h, .beyond__h { font-size: var(--step-3); }
.work__more { margin-top: clamp(24px, 3vw, 36px); display: flex; justify-content: center; }
.work__grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(14px, 2vw, 24px); }
.tile { position: relative; display: block; overflow: hidden; border-radius: 10px; text-decoration: none; color: #fff; background: var(--ink); min-height: 280px; }
.tile--big { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, oklch(0.15 0.03 262 / 0.85)); }
.tile:hover img { transform: scale(1.04); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 6px; }
.tile__k { font-family: var(--mono); font-size: 0.72rem; opacity: .85; font-variation-settings: "wdth" 90; }
.tile__t { font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 112; line-height: 1.15; }
.tile--big .tile__t { font-size: var(--step-2); }
.tile__d { font-size: 0.92rem; opacity: .9; max-width: 48ch; }
@media (max-width: 760px) { .work__grid { grid-template-columns: 1fr; } .tile--big { grid-row: auto; min-height: 380px; } }

/* ---------- beyond engineering ---------- */
.beyond { padding-top: clamp(72px, 10vw, 136px); }
.beyond__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.door { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); text-decoration: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); transition: border-color .25s; }
.door:hover { border-color: var(--ink-3); }
.door img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; transition: transform 1s var(--ease-out); }
.door:hover img { transform: scale(1.04); }
.door__body { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.door__t { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 115; }
.door__d { color: var(--ink-2); font-size: 0.95rem; }
.door__go { margin-top: auto; color: var(--blue-ink); font-weight: 600; }
@media (max-width: 520px) { .door { grid-template-columns: 1fr; } .door img { height: 200px; } }
@media (max-width: 520px) { .gtag { font-size: 10.5px; padding: 4px 6px; } }
