/* ==========================================================================
   About page (about.html) — uses base.css + project.css (footer)
   ========================================================================== */

.about-main { min-height: 60vh; }

/* Title — same treatment as the home page name: medium weight, uppercase,
   tight tracking, slide-up reveal. Sized so "PRODUCT DESIGNER" fills the width,
   then centred. The title is only as wide as its longest line, so "I'm Mabel"
   ends exactly where "Designer" ends. */
.about-hero { padding-top: clamp(56px, 11vw, 180px); padding-bottom: clamp(64px, 8vw, 128px); display: flex; justify-content: center; overflow: hidden; margin: 0 calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); }
.about-title { margin: 0; position: relative; isolation: isolate; cursor: default; font-weight: 500; font-size: min(calc((100vw - 2 * var(--pad)) / 10.4), 190px); line-height: 1; letter-spacing: -.05em; text-transform: uppercase; display: inline-flex; flex-direction: column; width: max-content; max-width: 100%; }
.a-row { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: .3em; white-space: nowrap; }
.line { display: block; overflow: hidden; padding-top: .06em; padding-bottom: .04em; padding-right: .02em; }
.line > span { display: block; transform: translateY(110%); transition: transform 1.15s var(--ease); }
.a-row:first-child .line:nth-child(2) > span { transition-delay: .06s; }
.a-row:nth-child(2) .line > span { transition-delay: .12s; }
.is-ready .line > span { transform: translateY(0); }

/* Hand-drawn doodles: hidden until the cursor is over the title.
   x positions are % of the title's width, y positions are em of its type size,
   so they stay locked to the words at any screen size. */
.doodle { position: absolute; display: block; height: auto; pointer-events: none; user-select: none; opacity: 0; }
.dd-star { left: -7.5%; top: -.63em; width: 25%; z-index: 0; transform: scale(.6) rotate(-14deg); transition: opacity .25s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.dd-lines { left: 63.5%; top: .86em; width: 42.3%; z-index: 2; clip-path: inset(0 100% 0 0); transition: opacity .2s ease, clip-path .55s cubic-bezier(.65, 0, .35, 1) .08s; }
.dd-pencil { left: 96.7%; top: 1.07em; width: 8%; z-index: 3; transform: translate(-20%, -25%) rotate(-12deg); transition: opacity .25s ease .18s, transform .45s cubic-bezier(.34, 1.56, .64, 1) .18s; }
.about-title:hover .doodle { opacity: 1; }
.about-title:hover .dd-star, .about-title:hover .dd-pencil { transform: none; }
.about-title:hover .dd-lines { clip-path: inset(0 0 0 0); }

/* Phones and tablets can't hover, so show the doodles there */
@media (hover: none) { .doodle { opacity: 1; transform: none; clip-path: none; } }

@media (prefers-reduced-motion: reduce) {
  .line > span { transform: none; }
  .doodle { transform: none; clip-path: none; }
}

/* "Off the Clock" intro above the photo fan — laid out like the home page
   intro row: rule on top, title on the left, text in columns 7–11 */
.off-clock { padding-top: 16px; border-top: 1px solid var(--ink); row-gap: 20px; margin-bottom: clamp(40px, 5vw, 88px); }
.off-label { grid-column: 1 / span 4; margin: 0; font-size: clamp(28px, 2.8vw, 48px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.off-text { grid-column: 7 / span 5; display: flex; flex-direction: column; gap: 28px; }
.off-body { margin: 0; font-size: clamp(18px, 1.75vw, 28px); line-height: 1.4; letter-spacing: -.006em; max-width: 32em; text-wrap: pretty; }
.off-hint { margin: 0; }
.hint-tap { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-tap { display: inline; } }
@media (max-width: 900px) { .off-text { grid-column: 4 / -1; } }
@media (max-width: 640px) { .off-label, .off-text { grid-column: 1 / -1; } }

/* ==========================================================================
   "Things I love" photo fan
   Five photos fanned out under the title. All photos are dimmed until one is hovered; hovering
   (or tapping / tabbing to) a photo brings it forward at full brightness with
   its hand-written label above, and dims the rest.
   Positions are % of the fan's width/height so it scales at every screen size.
   ========================================================================== */
.fan-wrap { padding-bottom: clamp(48px, 8vw, 140px); display: flex; justify-content: center; }
.fan { position: relative; width: min(1100px, 100%); aspect-ratio: 100 / 63.25; }
.fan-card { position: absolute; margin: 0; aspect-ratio: 1 / 1; pointer-events: none; filter: brightness(.55) saturate(.85); transform-origin: 50% 70%; transition: filter .45s ease, transform .55s cubic-bezier(.22, .8, .2, 1); }
.fan-card img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
/* Each photo: position and size (% of the fan), stacking order, and how far it rises when active */
.c-skiing { --lift: -20.78%; left: -3.58%; top: 32.36%; width: 41.78%; z-index: 1; }
.c-hiking { --lift: -11.77%; left: 5.71%; top: 21.98%; width: 41.78%; z-index: 2; }
.c-lego { --lift: -9.21%; left: 16.87%; top: 19.67%; width: 36.82%; z-index: 3; }
.c-gradex { --lift: -4%; left: 35%; top: 21.09%; width: 30%; z-index: 4; }
.c-seafood { --lift: -9.16%; left: 46.41%; top: 19.64%; width: 36.82%; z-index: 3; }
.c-ocad { --lift: -13.85%; left: 54.01%; top: 23.76%; width: 40.11%; z-index: 2; }
.c-books { --lift: -19.38%; left: 61.8%; top: 32.36%; width: 41.78%; z-index: 1; }

/* Invisible hover zones: one strip per photo, so pointing at any visible part of a
   photo selects it even though the raised photo overlaps its neighbours. */
.fan-zone { position: absolute; top: 0; bottom: 0; z-index: 20; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fan-zone:focus-visible { outline: none; }
.z-skiing { left: -3%; width: 24.63%; }
.z-hiking { left: 21.63%; width: 8.97%; }
.z-lego { left: 30.59%; width: 12.03%; }
.z-gradex { left: 42.62%; width: 14.76%; }
.z-seafood { left: 57.38%; width: 12.04%; }
.z-ocad { left: 69.42%; width: 8.97%; }
.z-books { left: 78.39%; width: 24.61%; }

/* Active photo: the hovered/focused one. With nothing hovered, all photos stay dimmed. */
.z-skiing:hover ~ .c-skiing, .z-skiing:focus-visible ~ .c-skiing,
.z-hiking:hover ~ .c-hiking, .z-hiking:focus-visible ~ .c-hiking,
.z-lego:hover ~ .c-lego, .z-lego:focus-visible ~ .c-lego,
.z-gradex:hover ~ .c-gradex, .z-gradex:focus-visible ~ .c-gradex,
.z-seafood:hover ~ .c-seafood, .z-seafood:focus-visible ~ .c-seafood,
.z-ocad:hover ~ .c-ocad, .z-ocad:focus-visible ~ .c-ocad,
.z-books:hover ~ .c-books, .z-books:focus-visible ~ .c-books { z-index: 10; filter: none; transform: translateY(var(--lift)) scale(1.05); }

/* Hand-written labels: left/top is the point just above the middle of the
   raised photo's top edge; each label is anchored there by its bottom centre
   and tilted to match the photo. */
.fan-label { position: absolute; height: auto; pointer-events: none; user-select: none; opacity: 0; transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(var(--r)) translateY(12px); transition: opacity .3s ease, transform .45s cubic-bezier(.22, .8, .2, 1); z-index: 11; }
.l-skiing { --r: -35deg; left: 7.13%; top: 28.01%; width: 26.06%; }
.l-hiking { --r: -24.96deg; left: 18.1%; top: 20.57%; width: 24.7%; }
.l-lego { --r: -15.01deg; left: 30.64%; top: 15.66%; width: 21.78%; }
.l-gradex { --r: 0deg; left: 50%; top: 14.37%; width: 23.18%; }
.l-seafood { --r: 15.01deg; left: 69.37%; top: 15.66%; width: 27.08%; }
.l-ocad { --r: 24.99deg; left: 81.6%; top: 20.54%; width: 21.82%; }
.l-books { --r: 35deg; left: 92.87%; top: 28.94%; width: 26.23%; }
.z-skiing:hover ~ .l-skiing, .z-skiing:focus-visible ~ .l-skiing,
.z-hiking:hover ~ .l-hiking, .z-hiking:focus-visible ~ .l-hiking,
.z-lego:hover ~ .l-lego, .z-lego:focus-visible ~ .l-lego,
.z-gradex:hover ~ .l-gradex, .z-gradex:focus-visible ~ .l-gradex,
.z-seafood:hover ~ .l-seafood, .z-seafood:focus-visible ~ .l-seafood,
.z-ocad:hover ~ .l-ocad, .z-ocad:focus-visible ~ .l-ocad,
.z-books:hover ~ .l-books, .z-books:focus-visible ~ .l-books { opacity: 1; transform: translate(-50%, -100%) rotate(var(--r)); }

/* Small screens: pull the fan in a little so the outer hand-written labels stay on screen */
@media (max-width: 1240px) { .fan { width: 86%; } }

@media (prefers-reduced-motion: reduce) {
  .fan-card, .fan-label { transition: opacity .2s ease, filter .2s ease; }
}
