/* Shared styles for work-experience pages (projects/*.html) — same visual language as the wheel hero */
:root {
  --bg: #e4e4e2; --ink: #111; --ink-soft: #3a3a38; --muted: #8c8c88;
  --accent: #e04a32; --paper: #f4f4f2;
  --font-display: "Unbounded", "Vazirmatn", system-ui, sans-serif;
  --font-outline: "Archivo Black", "Vazirmatn", system-ui, sans-serif;
  --font-ui: "Syne", "Vazirmatn", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }

/* ---------- hero ---------- */
.ph-hero { position: relative; height: max(560px, 86vh); height: max(560px, 86svh); overflow: hidden; }
.ph-hero__bar {
  position: absolute; left: 50%; top: 12%; bottom: 10%;
  width: clamp(110px, 16vw, 250px); background: var(--accent);
  transform: translateX(-50%) scaleY(0); transform-origin: 50% 0;
  animation: barIn 1s var(--ease) .1s forwards;
}
@keyframes barIn { to { transform: translateX(-50%) scaleY(1); } }
.mk { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 11px; height: 11px; opacity: .6; }
.mk::before, .mk::after { content: ""; position: absolute; background: var(--ink); }
.mk::before { left: 5px; width: 1px; height: 11px; }
.mk::after { top: 5px; height: 1px; width: 11px; }
.tri { position: absolute; top: 50%; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translateY(-50%); }
.tri--r { left: 4%; border-left: 8px solid var(--ink); }
.tri--l { right: 4%; border-right: 8px solid var(--ink); }

.lbl { position: absolute; margin: 0; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; }
.back {
  position: absolute; left: 14%; top: 12%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: 9px 14px 9px 10px; border: 1px solid var(--ink); border-radius: 99px;
  transition: background .25s, color .25s; z-index: 3;
}
.back:hover { background: var(--ink); color: var(--paper); }
.back span { color: var(--accent); }
.lbl--year { right: 14%; top: 12%; transform: translateY(-50%); text-align: right; }
.lbl--owner { left: 14%; bottom: 10%; transform: translateY(50%); }
.lbl--kind { right: 14%; bottom: 10%; transform: translateY(50%); text-align: right; }

.pt {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  margin: 0; font-family: var(--font-outline); font-weight: 400; line-height: .9; white-space: nowrap;
  text-align: center; z-index: 2;
}
.pt span { display: block; }
.pt__solid { position: relative; z-index: 2; animation: rise .9s var(--ease) .3s both; }
.pt__echo { position: absolute; left: 0; right: 0; color: transparent; -webkit-text-stroke: max(1px, .012em) var(--ink); }
.pt__echo--top { top: 0; transform-origin: 50% 100%; transform: translateY(-.55em) skewX(-14deg) scaleY(.5); clip-path: inset(0 45% 0 0); }
.pt__echo--bottom { top: 0; transform-origin: 50% 100%; transform: translateY(-.1em) skewX(16deg) scaleY(-.42); clip-path: inset(0 0 0 40%); opacity: .85; }
@keyframes rise { from { opacity: 0; transform: translateY(30%) scaleY(.5); } to { opacity: 1; transform: none; } }
.tagline {
  position: absolute; left: 50%; top: calc(47% + 15vh); transform: translateX(-50%);
  width: min(90%, 440px); margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--ink);
  background: var(--bg); padding: 6px 12px; z-index: 2;
}

/* ---------- content ---------- */
.content { padding: 0 var(--pad) 40px; max-width: 1280px; margin: 0 auto; }
.sec { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px 48px; padding: 44px 0; border-top: 1px solid rgba(0,0,0,.18); }
.sec h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.sec h2 b { color: var(--accent); margin-right: 8px; }
.sec p { margin: 0 0 14px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.stack li { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); }
.stack li:nth-child(3n+2) { background: var(--accent); color: var(--ink); }
.stack li:nth-child(3n+3) { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; }
.fact { padding: 16px 18px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.fact:first-child { background: var(--ink); color: var(--paper); }
.fact dt { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.fact dd { margin: 0; font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.35; }
#work h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
#work h3 + .bullets { margin-bottom: 28px; }
.bullets { list-style: none; margin: 0; padding: 0; max-width: 64ch; }
.bullets li { position: relative; padding: 0 0 12px 26px; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.5; color: var(--ink-soft); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 0; height: 0; border-left: 9px solid var(--accent); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot img, .shot__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; display: block; }
.shot__ph {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px), linear-gradient(160deg, #bdbdba, #8f8f8c);
  display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.shot:nth-child(2) .shot__ph { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px), #1a1a1a; }
.shot figcaption { margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--accent); color: var(--ink); padding: 14px 22px; border-radius: 99px;
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.note { font-size: 11px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; margin-top: 14px !important; }

.foot { position: relative; padding: 70px var(--pad) 90px; text-align: center; border-top: 1px solid rgba(0,0,0,.18); overflow: hidden; }
.foot a { text-decoration: none; display: inline-block; }
.foot .me { display: block; font-family: var(--font-display); font-weight: 900; font-size: 18px; margin-bottom: 14px; }
.foot .me i { display: block; font-style: normal; font-size: 11px; margin-bottom: 4px; }
.foot .big { font-family: var(--font-outline); font-size: clamp(34px, 8vw, 110px); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .3s; }
.foot a:hover .big { color: var(--ink); }

@media (max-width: 700px) {
  .ph-hero { height: 600px; }
  .mk:nth-of-type(2), .mk:nth-of-type(3), .mk:nth-of-type(6), .mk:nth-of-type(7) { display: none; }
  .back { left: 6%; top: 46px; transform: none; font-size: 11px; }
  .lbl--owner { bottom: auto; top: calc(90% + 22px); transform: none; }
  .lbl--kind { bottom: auto; top: calc(90% + 22px); transform: none; }
  .lbl { font-size: 9.5px; }
  .lbl--year { right: 6%; top: 60px; }
  .lbl--owner { left: 6%; }
  .lbl--kind { right: 6%; }
  .tagline { top: calc(47% + 70px); }
  .tri { display: none; }
  .ph-hero__bar { width: 26vw; }
  .sec { grid-template-columns: 1fr; padding: 32px 0; gap: 16px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .ph-hero__bar { transform: translateX(-50%); } }
