/* ============================================================
   whollow.io — minimal editorial baseline
   Swap the CSS variables below to retint everything at once.
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #5b5b5b;
  --line: #e4e2dd;
  --accent: #8e7cc3;
  --max-w: 1100px;
  --edge: clamp(12px, 2.4vw, 40px);
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

/* ---------- top nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--edge);
  mix-blend-mode: difference;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a { text-decoration: none; }
.nav .nav-links { display: flex; gap: 32px; }

/* ---------- hero / vision ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--edge) * 2) var(--edge) var(--edge);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  margin: 0 auto 32px;
  max-width: 22ch;
}

/* The three words that carry the whole thesis -- each styled to echo
   its own meaning rather than just bolded uniformly. */

.hero h1 .word-visible {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.035em;
}

/* Dot the i's in "visible" with tiny eyes instead of dots. The dot
   masking trick: paint a background-colored circle over the font's own
   dot, then draw a little eye (SVG, currentColor) in the same spot. */
.word-visible .eye-i {
  position: relative;
  display: inline-block;
}

.word-visible .eye-i::before {
  content: "";
  position: absolute;
  top: -0.02em;
  left: 50%;
  width: 0.34em;
  height: 0.28em;
  background: var(--bg);
  transform: translateX(-50%);
}

.word-visible .eye-i svg {
  position: absolute;
  top: -0.05em;
  left: 50%;
  width: 0.46em;
  height: auto;
  transform: translateX(-50%);
  color: var(--accent);
}

.hero h1 .word-felt {
  color: var(--accent);
  font-style: italic;
}

.hero h1 .word-remembered {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(142, 124, 195, 0.45);
  text-underline-offset: 5px;
}

.hero .brief {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 55ch;
  margin: 0 auto;
}

.hero .brief strong {
  color: var(--ink);
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: var(--ink-soft);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- visual outcome sections ---------- */

.work-section {
  padding: 16px var(--edge) 60px;
}

.work-item {
  width: 100%;
  margin: 0 auto 32px;
}

.work-item .frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    45deg,
    #eeece7,
    #eeece7 12px,
    #e6e3dc 12px,
    #e6e3dc 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}

.work-item .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item .caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.work-item .caption strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- before/after compare slider ---------- */

.compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  border-radius: 2px;
}

/* Use on text-heavy compare frames (e.g. a discovery-notes "before"
   page) so nothing gets cropped by the default wide 16:9 shape.
   Kept at 1:1 on every screen size, including mobile -- the notebook
   image itself is a perfect square, so forcing a different ratio here
   (e.g. 4:5) makes object-fit:cover zoom in and crop real text off
   both edges. 1:1 everywhere means it never needs to crop at all. */
.compare-frame--tall {
  aspect-ratio: 1 / 1;
}

.compare-img,
.compare-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.compare-placeholder {
  background: repeating-linear-gradient(
    45deg, #eeece7, #eeece7 12px, #e6e3dc 12px, #e6e3dc 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* the "after" layer sits on top and gets visually clipped by JS
   via clip-path as the handle is dragged */
.compare-reveal {
  clip-path: inset(0 0 0 50%);
}

.compare-label {
  position: absolute;
  top: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 20, 0.55);
  padding: 6px 10px;
  pointer-events: none;
}

.compare-label-before { left: 16px; }
.compare-label-after { right: 16px; }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.compare-handle::before {
  content: "⟷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 15px;
  color: var(--ink);
}

/* Small "view full screen" hint, bottom-right of every compare frame --
   the whole image is clickable (a tap/click opens the lightbox; a
   drag still moves the before/after split). */
.compare-frame::after {
  content: "⤢ View full screen";
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 20, 20, 0.55);
  padding: 6px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.compare-frame:hover::after,
.compare-frame:focus-visible::after {
  opacity: 1;
}

/* ---------- lightbox (full-screen image viewer) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(10, 10, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.lightbox-locked {
  overflow: hidden;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 40px var(--edge) 60px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer a { text-decoration: underline; }

/* ---------- about / contact page ---------- */

.page-header {
  max-width: 700px;
  margin: 0 auto;
  padding: calc(var(--edge) * 2.2) var(--edge) 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 20px;
}

.page-header p {
  max-width: 55ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 17px;
}

.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--edge) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}

.about-grid .portrait {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(
    45deg, #eeece7, #eeece7 12px, #e6e3dc 12px, #e6e3dc 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-grid .bio {
  text-align: center;
}

.about-grid h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 16px;
}

.about-grid .bio p { color: var(--ink-soft); font-size: 16px; margin: 0 0 20px; }

.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-list li { margin-bottom: 14px; font-size: 15px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--ink); }

/* ---------- login gate ---------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--edge);
}

.login-box {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-box h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 8px;
}

.login-box p.sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 32px;
}

.login-box input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  margin-bottom: 16px;
}

.login-box button {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.login-box button:hover { opacity: 0.9; }

.login-box .error {
  color: #b3261e;
  font-size: 13px;
  margin-top: 14px;
  min-height: 16px;
}
