/* ------------------------------------------------------------------
   Ein Abend mit Peter Steinberger · DevelopAway
   Mobile first. One narrow column, like a letter.
   Palette: OpenClaw ink + coral, DevelopAway gradient as a single glow.
------------------------------------------------------------------- */

:root {
  --ink: #101012;
  --ink-2: #19191c;
  --ink-3: #202024;
  --bone: #ededed;
  --soft: #bcbcc4;
  --muted: #9a9aa2;
  --coral: #f5654a;
  --sea: #4fc8ae;
  --peach: #fcb09f;
  --hair: rgba(237, 237, 237, 0.1);
  --hair-strong: rgba(237, 237, 237, 0.2);

  --serif: "Sentient", Georgia, "Times New Roman", serif;
  --sans: "Switzer", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --col: 35rem; /* 560px */
  --space: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

::selection { background: var(--coral); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 1px solid var(--coral);
  outline-offset: 4px;
  border-radius: 2px;
}

.col {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
}

/* Film grain – keeps the black from feeling digital-flat */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------- Top */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: 20px;
}
.brand img { height: 24px; width: auto; }

/* --------------------------------------------------------------- Hero */

.hero { position: relative; isolation: isolate; padding-top: 8px; }

.glow {
  position: absolute;
  z-index: -1;
  top: 48%;
  left: -20%;
  right: -20%;
  height: 50%;
  background:
    radial-gradient(closest-side at 30% 50%, rgba(200, 159, 252, .6), transparent 70%),
    radial-gradient(closest-side at 70% 55%, rgba(245, 101, 74, .55), transparent 70%);
  filter: blur(50px);
  opacity: .1;
  pointer-events: none;
  animation: drift 36s var(--ease) infinite alternate;
}
@keyframes drift { to { transform: translate3d(5%, -3%, 0) scale(1.06); } }

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10.5px;
  line-height: 1.5;
}

/* Portrait – black & white, fades into the page */
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  max-height: 64svh;
  width: 100%;
  overflow: hidden;
  background: var(--ink-2);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, .5) 75%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 50%, rgba(0, 0, 0, .5) 75%, transparent 97%);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: blur(12px) brightness(.3);
  transform: scale(1.06);
  transition: filter 2.2s var(--ease), transform 2.8s var(--ease);
}
/* "Developing" the photo once it has loaded */
.portrait.is-developed img { filter: none; transform: none; }

.credit {
  position: absolute;
  top: 10px;
  right: 8px;
  margin: 0;
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(237, 237, 237, .5);
  writing-mode: vertical-rl;
}
.credit a:hover { color: var(--bone); }

.display {
  position: relative;
  margin: -1.2em 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 10.9vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.display em { font-style: italic; letter-spacing: -.03em; }
.display .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; white-space: nowrap; }
.display .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) .35s forwards;
}
.display .line:nth-child(2) > span { animation-delay: .47s; }
@keyframes rise { to { transform: none; } }

.lede {
  margin: 20px 0 0;
  max-width: 30ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--soft);
  text-wrap: pretty;
  opacity: 0;
  animation: fade 1s var(--ease) .8s forwards;
}
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0 0;
  border-top: 1px solid var(--hair);
  opacity: 0;
  animation: fade 1s var(--ease) 1s forwards;
}
.facts > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--hair); }
.facts > div.r { padding-left: 14px; border-left: 1px solid var(--hair); }
.facts > div.full { grid-column: 1 / -1; }
.facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--bone); font-variant-numeric: tabular-nums; }

.hero-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  opacity: 0;
  animation: fade 1s var(--ease) 1.15s forwards;
}
.hosts { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--soft); text-wrap: balance; }

.link-cta {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--bone);
  white-space: nowrap;
}
.link-cta::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--coral);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.link-cta span { display: inline-block; margin-left: .4em; color: var(--coral); transition: transform .5s var(--ease); }
@media (hover: hover) {
  .link-cta:hover::after { transform: scaleX(.35); }
  .link-cta:hover span { transform: translateY(3px); }
}


/* ----------------------------------------------------------- Sections */

.section { position: relative; padding-top: var(--space); }
.section:last-of-type { padding-bottom: var(--space); }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
}
.label span { color: var(--coral); margin: 0 -.4em; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.prose { margin-top: 22px; color: var(--soft); font-size: 16.5px; line-height: 1.7; text-wrap: pretty; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Guest */
.milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}
.milestones li { padding: 14px 8px 0 0; font-size: 15px; }
.milestones li + li { padding-left: 12px; border-left: 1px solid var(--hair); }
.milestones .mono { display: block; color: var(--muted); margin-bottom: 4px; font-size: 10.5px; }

.quote { margin: 48px 0 0; }
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 7.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-indent: -.42em; /* hang the opening quote */
}
.quote figcaption { margin-top: 12px; color: var(--muted); }

/* Agenda */
.span-bar { display: flex; gap: 2px; height: 5px; margin: 32px 0 8px; }
.span-bar i { display: block; height: 100%; background: var(--ink-3); border-radius: 1px; transition: background-color .5s var(--ease); }
.span-bar i.is-key { background: rgba(245, 101, 74, .5); }
.span-bar i.is-hot { background: var(--coral); }

.span-ticks { position: relative; height: 16px; margin-bottom: 20px; color: var(--muted); }
.span-ticks span { position: absolute; top: 0; font-size: 10px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.span-ticks span:first-child { transform: none; }
.span-ticks span:last-child { transform: translateX(-100%); }
.span-ticks .minor { display: none; }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 6.9rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.agenda li:first-child { border-top: 1px solid var(--hair); }
.agenda time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .4s var(--ease); }
.agenda .what { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; font-weight: 300; letter-spacing: -.01em; }
.agenda small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.agenda li.is-key time { color: var(--coral); }
.agenda li.is-hot time { color: var(--bone); }

/* Venue */
.venue address { margin-top: 20px; font-style: normal; font-size: 16.5px; line-height: 1.6; color: var(--bone); }
.links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 14px 0 0; font-size: 15px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
.links a span { border-bottom: 1px solid var(--hair-strong); padding-bottom: 2px; transition: border-color .4s var(--ease); }
.links a:hover span { border-color: var(--coral); }
.year {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 26vw, 8rem);
  line-height: .8;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--hair-strong);
  user-select: none;
}

/* ----------------------------------------------------------- Calendar */
.cal { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.cal-label { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.cal-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--bone);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.btn:hover { border-color: var(--coral); }
.btn.primary { border-color: var(--coral); background: rgba(245, 101, 74, .12); }
.btn.primary:hover { background: var(--coral); color: var(--bone); }

/* The lobster waves its right claw toward the buttons every few seconds. */
.cal-lob { flex: none; width: 64px; height: 52px; overflow: visible; fill: none; stroke: var(--coral); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cal-lob .eye { fill: var(--coral); stroke: none; }
.cal-lob .faint { stroke-opacity: .55; }
.cal-lob .body { transform-box: view-box; transform-origin: 32px 48px; animation: lob-bob 4s ease-in-out infinite; }
.cal-lob .claw.r { transform-box: view-box; transform-origin: 38.5px 25px; animation: lob-wave 4s var(--ease) infinite; }
.cal-lob .claw.r .finger { transform-box: view-box; transform-origin: 48px 18.5px; animation: lob-snap 4s linear infinite; }
.cal-lob .claw.l { transform-box: view-box; transform-origin: 25.5px 25px; animation: lob-sway 5s ease-in-out infinite alternate; }
.cal-lob .ant { transform-box: view-box; animation: lob-feel 3.2s ease-in-out infinite alternate; }
.cal-lob .ant.a { transform-origin: 29.5px 16px; }
.cal-lob .ant.b { transform-origin: 34.5px 16px; animation-delay: -1.4s; }
.cal:hover .cal-lob .claw.r, .cal:hover .cal-lob .claw.r .finger, .cal:hover .cal-lob .body { animation-duration: 1.4s; }

@keyframes lob-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-1.5px); } }
@keyframes lob-wave {
  0%, 50%, 100% { transform: none; }
  60% { transform: rotate(18deg) translateX(2px); }
  68% { transform: rotate(4deg); }
  76% { transform: rotate(18deg) translateX(2px); }
  86% { transform: none; }
}
@keyframes lob-snap {
  0%, 62%, 66%, 78%, 82%, 100% { transform: none; }
  64%, 80% { transform: rotate(16deg); }
}
@keyframes lob-sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes lob-feel { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .cal-lob * { animation: none !important; }
}

/* ------------------------------------------------------------ Gallery */
/* Endless strip: the four photos appear twice, the track slides by half its width. */
.gallery {
  margin: 36px calc(-1 * var(--gutter)) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.gallery:hover .gallery-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 4px)); } }
@media (prefers-reduced-motion: reduce) {
  .gallery { overflow-x: auto; }
  .gallery-track { animation: none; }
}
.shot {
  position: relative;
  flex: none;
  height: 210px;
  margin: 0;
  overflow: hidden;
  background: var(--ink-2);
  border-radius: 2px;
}
.shot img { height: 100%; width: auto; }
.shot img {
  filter: saturate(.55) brightness(.88);
  transition: filter 1.2s var(--ease);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 16, 18, .7), transparent 45%);
  pointer-events: none;
}
.shot figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 1;
  font-size: 10px;
  color: var(--bone);
  letter-spacing: .06em;
}
@media (hover: hover) {
  .shot:hover img { filter: none; }
}

/* Sign-off */
.signoff { margin-top: 72px; }
.sig { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 6.4vw, 1.8rem); line-height: 1.25; letter-spacing: -.01em; }
.sig-line { display: block; height: 1px; max-width: 240px; margin: 14px 0 16px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .3s; }
.signoff.is-in .sig-line { transform: scaleX(1); }
.contact { margin: 0; color: var(--muted); line-height: 2; }
.contact a { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--soft); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 4px; white-space: nowrap; }
.contact a:hover { color: var(--bone); text-decoration-color: var(--coral); }

/* -------------------------------------------------------------- Footer */

.footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.terminal { min-height: 1.6em; margin: 0 0 20px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal .ok { color: var(--sea); }
.terminal .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--muted); animation: blink 1.1s steps(1) infinite; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--muted); }
.foot-row p { margin: 0; }
.foot-row img { opacity: .7; }
.foot-links { display: flex; gap: 20px; width: 100%; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; }
.foot-links a:hover { color: var(--bone); }

/* Names never break */
.nw { white-space: nowrap; }

/* Very small phones (iPhone SE 1st gen, Galaxy Fold) */
@media (max-width: 359px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div.r { padding-left: 0; border-left: 0; }
  .facts > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-right: 0; }
  .facts dt { margin: 0; }
  .facts dd { text-align: right; }
  .agenda li { grid-template-columns: 1fr; gap: 4px; }
}

/* ------------------------------------------------- Larger screens only */

@media (min-width: 624px) {
  :root { --gutter: 32px; --space: 120px; }
  .topbar { padding-top: 36px; padding-bottom: 32px; }
  .brand img { height: 26px; }
  .eyebrow { margin-bottom: 20px; }
  .lede { font-size: 19px; margin-top: 24px; }
  .facts dd { font-size: 15.5px; }
  .hero-foot { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .agenda li { grid-template-columns: 8rem 1fr; gap: 20px; padding: 20px 0; }
  .agenda .what { font-size: 1.4rem; }
  .span-ticks .minor { display: block; }
  .foot-links { width: auto; margin-left: auto; }
}

/* ------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .display .line > span { transform: none; }
  .glow { animation: none; }
}
