/* ============================================================
   ABOUT PAGE — about.css
   Loaded alongside style.css (shared nav, fonts, colors, grain).
   ============================================================ */

/* ===== HOLO CARD ===== */
.card-scene { perspective: 900px; width: 420px; flex-shrink: 0; }
.holo-card { position: relative; width: 420px; height: 380px; border-radius: 16px; transform-style: preserve-3d; will-change: transform; }
.holo-card.settle { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.card-shadow { position: absolute; inset: 8px -4px -8px -4px; border-radius: 20px; background: rgba(20,20,25,.2); filter: blur(28px); transform: translateZ(-1px); transition: filter .3s, opacity .3s; pointer-events: none; }
.holo-card:hover .card-shadow { filter: blur(44px); opacity: .85; }
.card-frame {
  position: absolute; inset: 0; border-radius: 16px; z-index: 1; overflow: hidden;
  background: linear-gradient(165deg, #e8e8ec 0%, #d4d4d8 30%, #e0e0e4 50%, #c8c8cc 80%, #dcdce0 100%);
  padding: 10px; border: 1.5px solid rgba(160,160,170,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(0,0,0,.06);
}
.card-window { position: relative; width: 100%; height: 100%; border-radius: 9px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); box-shadow: inset 0 1px 3px rgba(0,0,0,.1); }
.card-window img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .1s ease-out; will-change: transform; }
.card-foil {
  position: absolute; inset: 0; border-radius: 16px; z-index: 2; pointer-events: none; opacity: 0;
  mix-blend-mode: color-dodge; transition: opacity .35s;
  background:
    repeating-conic-gradient(from 40deg at var(--mx,50%) var(--my,50%), rgba(120,180,255,.18) 0deg, rgba(255,180,120,.14) 12deg, rgba(120,255,200,.16) 24deg, rgba(220,140,255,.14) 36deg, rgba(255,220,100,.12) 48deg, rgba(100,200,255,.16) 60deg),
    repeating-linear-gradient(calc(var(--angle,135deg)), rgba(255,255,255,.0) 0%, rgba(200,220,255,.08) 10%, rgba(255,200,220,.06) 20%, rgba(200,255,220,.08) 30%, rgba(255,255,255,.0) 40%);
  filter: blur(.5px) saturate(1.2) brightness(1.1);
}
.holo-card:hover .card-foil { opacity: 1; }
.card-foil::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(255,255,255,.03) 2px, rgba(255,255,255,.03) 4px); pointer-events: none; }
.card-spec { position: absolute; inset: 0; border-radius: 16px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(ellipse 220px 280px at var(--mx,50%) var(--my,50%), rgba(255,255,255,.3) 0%, rgba(255,255,255,.08) 35%, transparent 65%); }
.holo-card:hover .card-spec { opacity: 1; }
.card-glass { position: absolute; inset: 0; border-radius: 16px; z-index: 4; pointer-events: none; background: linear-gradient(170deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 22%, transparent 45%); }
.card-edge { position: absolute; inset: 0; border-radius: 16px; z-index: 5; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }

/* ---- hero layout ---- */
.about-hero-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(32px, 5vw, 64px); min-height: 460px; max-width: 1280px; margin: 0 auto; }
.about-hero-text { max-width: 620px; flex: 1; }
.about-hero-text h1 { max-width: 16ch; }
.about-hero-row .card-scene { order: -1; }   /* photo on the left, text on the right */

@media (hover: none) {
  .card-foil { opacity: .6; animation: mShine 5s ease-in-out infinite; }
  .card-spec { opacity: .25; animation: mShine 5s ease-in-out infinite reverse; }
  @keyframes mShine { 0%, 100% { --mx: 25%; --my: 25%; } 50% { --mx: 75%; --my: 75%; } }
}
@media (max-width: 860px) {
  .about-hero-row { flex-direction: column-reverse; text-align: center; }
  .about-hero-text h1 { margin: 0 auto; }
  .about-hero-text .lede { margin-left: auto; margin-right: auto; }
  .card-scene { width: 300px; }
  .holo-card { width: 300px; height: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  .holo-card, .holo-card.settle { transition: none !important; }
  .card-window img { transition: none !important; }
  .card-foil, .card-spec { opacity: 0 !important; animation: none !important; }
}


/* ===== EDITORIAL ROW — illus · text · illus (matches homepage ws-section) ===== */
.about-editorial-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 32px);
}
.about-editorial-row .about-editorial {
  flex: 0 1 800px;
}
 
.editorial-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
 
/* notebook grid background */
.notebook-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 32px 36px;
}
 
/* blue highlight — matches word search circle color */
.mark-blue {
  background: linear-gradient(to top, rgba(111, 158, 234, 0.25) 45%, transparent 45%);
  padding: 0 3px;
  border-radius: 2px;
}
.about-illus {
  flex: 0 0 auto;
  width: clamp(180px, 20vw, 320px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.about-illus-left {
  align-self: flex-start;
  margin-top: -20px;
}
.about-illus-right {
  align-self: flex-end;
  margin-bottom: -20px;
}
 
@media (max-width: 980px) {
  .about-illus { display: none; }
  .about-editorial-row { display: block; }
}
 
 
/* ===== NARROW ABOUT (editorial) ===== */
.about-narrow {
  max-width: 640px;
}


/* ===== EXPERIENCE v2 — with logos ===== */
.exp-item-v2 {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.exp-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.exp-body {
  flex: 1;
  min-width: 0;
}
.exp-role-v2 {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.exp-company {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.exp-type {
  color: var(--ink-mute);
  font-weight: 400;
}
.exp-meta-v2 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
}


/* ===== CONTACT ===== */
.contact-section {
  max-width: 640px;
}
.contact-heading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}
.contact-lede {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}


/* masonry-ish grid — 3 columns, varied row spans */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* caption overlay — visible on hover */
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(20,20,22,.6) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
}
.gallery-caption span {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #fff;
}

/* span variations for visual rhythm */
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--feature {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 8px;
  }
  .gallery-item--wide,
  .gallery-item--feature {
    grid-column: span 2;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--wide,
  .gallery-item--feature {
    grid-column: span 1;
  }
}


/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: pointer;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,.4);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,.2);
}
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255,255,255,.7);
}
.btn-row {
  justify-content: center;
}