/* Sean Hakes — 2026 personal site */
:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --ink: #f4f4f4;
  --ink-soft: #b8b8b8;
  --muted: #8a8a8a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #E10600;
  --accent-2: #E10600;
  --accent-3: #f4f4f4;
  --tile: #f3f3ef;
  --tile-ink: #121212;
  --tile-muted: #5c5c5c;
  --max: 1120px;
  --header-h: 4.15rem;
  --cta-h: calc(4.15rem + env(safe-area-inset-bottom, 0px));
  --font: "Inter", "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 1000;
  background: var(--ink); color: var(--bg);
  padding: .5rem 1rem;
}

/* Hide Google Translate chrome so Spanish cannot shift the layout */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-spinner-pos,
body > .skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body { top: 0 !important; position: relative !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font { background: none !important; }

.wrap {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

/* Atmosphere: aurora + grain */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora {
  position: absolute;
  width: 55vw;
  height: 55vw;
  min-width: 22rem;
  min-height: 22rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.aurora.a1 {
  top: -18vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%);
  animation: aurora-drift 22s ease-in-out infinite;
}
.aurora.a2 {
  top: 8vw;
  left: -16vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%);
  animation: aurora-drift 28s ease-in-out infinite reverse;
}
.aurora.a3 {
  bottom: -10vw;
  right: 18vw;
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 70%);
  animation: aurora-drift 26s ease-in-out infinite 4s;
}
.grain {
  position: absolute;
  inset: -20%;
  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='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(6%, 8%) scale(1.12); }
  70% { transform: translate(-5%, 4%) scale(0.96); }
}

/* Sticky glass header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1);
  -webkit-backdrop-filter: blur(18px) saturate(1);
  background: rgba(10, 10, 10, 0.62);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: .6rem;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.28rem, 2.4vw, 1.72rem);
  letter-spacing: -0.07em;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.logo-plus {
  color: var(--accent);
  font-weight: 800;
  padding: 0 .01em;
}
.logo-footer {
  display: inline-flex;
  font-size: 1.15rem;
  letter-spacing: -0.07em;
  margin-bottom: .65rem;
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover { color: var(--accent); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.lang button {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; padding: .38rem .62rem;
  cursor: pointer; color: var(--muted);
}
.lang button[aria-pressed="true"] {
  background: var(--ink); color: var(--bg);
}

/* Header sits sticky above; hero + strip fill the rest of 100svh */
.hero-screen {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 1.2rem 0 1.5rem;
}
.hero-copy { max-width: 34rem; }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.1rem, 6.4vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin: 0 0 1.05rem;
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 1.7rem;
  max-width: 36em;
}
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; padding: .8rem 1.2rem;
  border-radius: 999px; border: 1px solid transparent;
  white-space: normal; text-align: center; max-width: 100%;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.08); }

/* Cutout portrait + soft diffuse glow — no ring, no circular edge */
.hero-photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: min(100%, 28rem);
  max-width: 420px;
  margin-inline: auto;
}
.photo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.photo-glow {
  position: absolute;
  /* Oversized soft wash behind the cutout — fades out before any edge, no circle shape */
  top: -6%;
  left: -8%;
  right: -8%;
  bottom: -2%;
  border-radius: 48% 52% 45% 55% / 50% 46% 54% 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% 42%, rgba(255, 255, 255, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 60% 70% at 58% 58%, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  filter: blur(52px);
  opacity: .85;
  transform: none;
}
.photo-cutout {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.photo-cutout img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
  transform: none;
  image-rendering: auto;
  -webkit-user-select: none;
}
.photo-chips {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  pointer-events: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: rgba(16, 16, 16, 0.62);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px) saturate(1);
  -webkit-backdrop-filter: blur(14px) saturate(1);
  border-radius: 999px;
  padding: .4rem .7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  white-space: nowrap;
  animation: chip-float 5.5s ease-in-out infinite;
}
.chip:nth-child(2) { animation-delay: 1.1s; margin-left: .85rem; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.strip {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}
.strip-inner {
  display: flex; justify-content: center; align-items: center;
  gap: .85rem 1.75rem; flex-wrap: wrap;
  padding: .85rem 0; text-align: center;
  font-size: .8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.strip-inner .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

.section {
  position: relative;
  z-index: 1;
  padding: 5.25rem 0;
}
.section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.055em;
  text-align: center;
  margin: 0 0 .7rem;
}
.section-intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
}
#ventures {
  background: transparent;
}
#contact { padding-bottom: 4.5rem; }

/* Uniform bento tiles — grayscale to color on hover */
.logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
  align-items: stretch;
}
.logo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--tile);
  color: var(--tile-ink);
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  padding: 1.1rem 1rem .9rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transition-delay: calc(var(--i, 0) * 25ms);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 10px 24px rgba(0,0,0,.18);
}
a.logo-card:hover,
a.logo-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, .40), 0 16px 32px rgba(0,0,0,.28);
  outline: none;
}
.logo-card .mark {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 92px;
}
.logo-card .mark img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: .88;
  transition: filter .28s ease, opacity .28s ease, transform .28s ease;
}
a.logo-card:hover .mark img,
a.logo-card:focus-visible .mark img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}
.logo-card .name {
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: .65rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--tile-muted);
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
  hyphenate-character: "";
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 48rem;
  margin: 0 auto;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.7rem 1.8rem;
  backdrop-filter: blur(16px) saturate(1);
  -webkit-backdrop-filter: blur(16px) saturate(1);
}
.contact-panel p { margin: 0 0 .55rem; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.email-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
  hyphenate-character: "";
  text-transform: none;
}
.email-link:hover { text-decoration: underline; }
.contact-panel .contact-note {
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  color: var(--muted);
  padding: 2rem 0 2.4rem;
  text-align: center;
  font-size: .92rem;
  border-top: 1px solid var(--line);
}
.site-footer .logo-footer { color: #fff; }
.site-footer a { color: var(--ink); }

.mobile-cta { display: none; }
.page-404 {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.page-404 h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.05em; }
.page-404 a { color: var(--accent); }

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    text-align: center;
    padding-top: .5rem;
  }
  .hero-copy { max-width: none; margin: 0 auto; }
  .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-photo { width: 100%; max-width: none; }
  .photo-stage { max-width: 220px; }
  .photo-chips {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 22rem;
    margin: .55rem auto 0;
  }
  .chip:nth-child(2) { margin-left: 0; }
  .contact-panel { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 720px) {
  .nav .desk { display: none; }
  .logo { font-size: 1.32rem; letter-spacing: -0.068em; }
  .wrap { width: min(var(--max), calc(100% - 1.4rem)); }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.05rem); letter-spacing: -0.06em; margin-bottom: .7rem; }
  .lede { font-size: 1rem; margin-bottom: 1.15rem; }
  .hero { gap: 1rem; padding-top: .25rem; padding-bottom: .6rem; }
  .photo-stage { max-width: 200px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .logo-card { padding: .9rem .65rem .7rem; }
  .logo-card .mark { height: 76px; min-height: 76px; flex: 1 1 auto; }
  .logo-card .mark img { max-height: 60px; }
  .logo-card .name {
    font-size: .7rem;
    min-height: 2.85em;
    padding-top: .5rem;
    line-height: 1.25;
  }
  .section { padding: 3.5rem 0; }
  .strip-inner { gap: .4rem .7rem; font-size: .65rem; letter-spacing: 0.07em; }
  .contact-panel { padding: 1.25rem 1.1rem; }
  body { padding-bottom: var(--cta-h); }
  .hero-screen { min-height: calc(100svh - var(--header-h) - var(--cta-h)); }
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--ink);
    border-top: 1px solid var(--line);
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
  }
  .mobile-cta a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: .4rem .3rem;
    color: var(--ink);
    min-width: 0;
    max-width: 50%;
  }
  .mobile-cta .cta-label { white-space: nowrap; }
  .mobile-cta svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
}
@media (min-width: 721px) {
  .mobile-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .photo-glow, .chip { animation: none !important; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .logo-card, .btn, .logo-card .mark img { transition: none; }
}
