/* yogiwmull.com home. Layout, type scale and motion adapted from the MotionSites "Living Portrait" prompt (THIRD-PARTY.md),
   held to Yogi's UI rules: flat colors (no gradient text, no glow), one red, motion off for prefers-reduced-motion. */
:root {
  --bg: #0c0c0c;
  --ink: #d7e2ea;
  --muted: #8a949b;
  --paper: #ffffff;
  --dark: #0c0c0c;
  --red: #c8102e;
  --line: rgba(215, 226, 234, 0.18);
  --font: "Kanit", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; line-height: 1.5; overflow-x: clip; }
a { color: inherit; }
main { overflow-x: clip; }

/* Fade-in on view (home.js adds .in). Without JS, or with reduced motion, everything just shows. */
.js .fade { opacity: 0; transform: translateY(var(--y, 30px)); transition: opacity .7s cubic-bezier(.25,.1,.25,1), transform .7s cubic-bezier(.25,.1,.25,1); }
.js .fade.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; overflow-x: clip; }
.nav { display: flex; justify-content: space-between; padding: 24px 24px 0; position: relative; z-index: 20; }
.nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: 13px; transition: opacity .2s; }
.nav a:hover { opacity: .7; }
.hero-head { overflow: hidden; position: relative; z-index: 5; }
.giant {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; white-space: nowrap;
  font-size: 15.2vw; color: #9aa6ae; text-align: center; margin-top: 28px;
}
.portrait-wrap { position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%); z-index: 10; width: min(100vw, 460px); }
.js .portrait-wrap.fade { transform: translate(-50%, calc(-50% + var(--y))); }
.js .portrait-wrap.fade.in { transform: translate(-50%, -50%); }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; user-select: none; -webkit-user-drag: none;
  /* Soft edge into the page, not a glow: the photo's own dark backdrop fades out. */
  -webkit-mask-image: radial-gradient(closest-side circle at 50% 50%, #000 66%, rgba(0,0,0,.5) 84%, transparent 100%);
          mask-image: radial-gradient(closest-side circle at 50% 50%, #000 66%, rgba(0,0,0,.5) 84%, transparent 100%);
}
.hero-bar { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 24px 28px; position: relative; z-index: 20; }
.promise { text-transform: uppercase; font-weight: 300; letter-spacing: .04em; line-height: 1.25; font-size: clamp(.8rem, 1.4vw, 1.5rem); max-width: 190px; }

.pill {
  display: inline-block; text-decoration: none; white-space: nowrap; background: var(--red); color: #fff;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
  font-size: 12px; padding: 13px 22px; outline: 2px solid #fff; outline-offset: -3px; transition: background .2s;
}
.pill:hover { background: #a50d26; }

/* ---------- Proof strip ---------- */
.proof { padding: 88px 0 40px; }
.label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 18px; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.tile { flex: none; width: 168px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #1a1a1a; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- About ---------- */
.about { min-height: 90svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; padding: 80px 22px; text-align: center; }
.big { font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.02em; font-size: clamp(2.6rem, 12vw, 160px); color: #9aa6ae; text-align: center; }
.big.dark { color: var(--dark); }
.reveal { max-width: 560px; font-weight: 500; line-height: 1.6; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.reveal .w { opacity: var(--o, 1); transition: opacity .15s linear; }

/* ---------- My AI team (white) ---------- */
.team { background: var(--paper); color: var(--dark); border-radius: 40px 40px 0 0; padding: 80px 20px 110px; }
.team .big { margin-bottom: 56px; }
.jobs { list-style: none; max-width: 1024px; margin: 0 auto; }
.jobs li { display: flex; gap: 18px; align-items: flex-start; padding: 28px 0; border-top: 1px solid rgba(12,12,12,.15); }
.jobs li:last-child { border-bottom: 1px solid rgba(12,12,12,.15); }
.num { font-weight: 900; line-height: .85; font-size: clamp(3rem, 10vw, 140px); flex: none; min-width: 1.25em; }
.jobs h3 { font-weight: 500; text-transform: uppercase; font-size: clamp(1rem, 2.2vw, 2.1rem); line-height: 1.15; margin-bottom: 8px; }
.jobs p { font-weight: 300; line-height: 1.6; max-width: 42rem; font-size: clamp(.92rem, 1.6vw, 1.25rem); opacity: .7; }

/* ---------- Opt-in (dark card pulled over the white) ---------- */
.optin { background: var(--bg); border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 2; padding: 80px 22px 72px; display: flex; flex-direction: column; align-items: center; }
.optin .big { margin-bottom: 18px; }
.sub { max-width: 480px; text-align: center; font-weight: 300; font-size: 1.05rem; margin-bottom: 36px; }
.form { width: 100%; max-width: 480px; }
.form label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 6px; }
.form .opt { text-transform: none; letter-spacing: 0; color: var(--muted); }
.form input[type=text], .form input[type=email], .form input[type=tel] {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #151515;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px;
}
.form input:focus-visible, .form button:focus-visible, .pill:focus-visible, .nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin: 16px 0 22px; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); }
.check label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); margin: 0; font-weight: 300; }
.form button {
  width: 100%; font: inherit; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; cursor: pointer;
  color: #fff; background: var(--red); border: 0; border-radius: 999px; padding: 16px; outline: 2px solid #fff; outline-offset: -4px;
}
.form button[disabled] { opacity: .6; cursor: wait; }
.error { color: #ff8a8a; font-size: 14px; min-height: 1.2em; margin-top: 10px; }
.fine { color: var(--muted); font-size: 13px; font-weight: 300; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { padding: 36px 22px 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); display: grid; gap: 26px; max-width: 1024px; margin: 0 auto; }
.links-label { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.links a:hover { border-color: var(--ink); }
.legal { display: flex; gap: 18px; font-size: 12px; }
.legal a { color: var(--muted); }
@media (min-width: 768px) { .foot { grid-template-columns: 1fr 1.4fr auto; align-items: start; } .legal { padding-top: 21px; } }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .nav { padding: 30px 40px 0; }
  .nav a { font-size: 16px; }
  .hero-bar { padding: 0 40px 34px; }
  .promise { max-width: 240px; }
  .pill { font-size: 14px; padding: 15px 32px; }
  .portrait-wrap { width: 560px; }
  .tile { width: 210px; border-radius: 28px; }
  .team, .optin { border-radius: 56px 56px 0 0; }
}
@media (min-width: 1024px) {
  .nav a { font-size: 1.3rem; }
  .giant { font-size: 16.6vw; margin-top: 0; }
  .portrait-wrap { width: clamp(560px, 74vh, 46vw); top: 56%; }
  .promise { max-width: 280px; }
  .hero-bar { padding-bottom: 40px; }
}

/* Short phones: keep the portrait off the button row. */
@media (max-width: 639px) and (max-height: 700px) { .portrait-wrap { width: min(80vw, 330px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade, .js .portrait-wrap.fade { opacity: 1; transition: none; }
  .js .fade { transform: none; }
  .js .portrait-wrap.fade { transform: translate(-50%, -50%); }
  .reveal .w { opacity: 1 !important; }
}
