/* otbvision.com — OTB Vision (Out The Box Vision LLC)
   Palette comes from the logo: charcoal and silver, with neutral paper tones.
   Fonts match clearvane.com: DM Sans headings, Jost body. */
:root {
  --heading: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #1f2023;        /* dark bands */
  --ink-2: #2a2b2e;      /* raised surfaces on dark */
  --silver: #d5d6d5;     /* logo silver */
  --steel: #9a9ca1;
  --paper: #f5f5f3;      /* page background */
  --tint: #ebebe7;       /* alternate light band */
  --card: #ffffff;
  --text: #1f2023;
  --muted: #5e6066;
  --line: #e2e2de;
  --radius: 12px;
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.65 var(--body); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 1.04; margin: 16px 0 20px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 56ch; margin: 0; }
.kicker { display: inline-block; font: 500 12px var(--heading); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }

/* ---------- sections */
section { padding: 96px 0; }
.section-head { margin-bottom: 36px; }
.dark { background: var(--ink); color: #fff; }
.dark .lead { color: rgba(255, 255, 255, .7); }
.dark .kicker { color: var(--steel); }
.tint { background: var(--tint); }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(31, 32, 35, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--silver); }
.brand-mark { width: 30px; height: 38px; fill: currentColor; flex: none; }
.brand-name { display: flex; flex-direction: column; font: 500 13px/1.05 var(--heading); letter-spacing: .14em; text-transform: uppercase; }
.brand-name b { font-weight: 700; font-size: 17px; letter-spacing: .12em; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, .72); padding: 8px 12px; font-size: 16px; border-radius: 8px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta { color: var(--ink); background: var(--silver); padding: 8px 16px; margin-left: 6px; }
.nav-links .nav-cta:hover { color: var(--ink); background: #fff; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 10px; border: 1px solid transparent; background: var(--silver); color: var(--ink); font: 500 16px var(--body); letter-spacing: .03em; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.ghost:hover { border-color: #fff; }
.btn.dark-btn { background: var(--ink); color: #fff; }
.btn.dark-btn:hover { background: #000; }
.btn.outline { background: transparent; color: var(--ink); border-color: rgba(31, 32, 35, .3); }
.btn.outline:hover { border-color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- hero */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 82% 30%, rgba(213, 214, 213, .09), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; position: relative; }
.hero-copy { padding: 40px 0 24px; align-self: center; }
.slogan { font: 500 clamp(20px, 2.2vw, 26px)/1.35 var(--heading); color: var(--silver); letter-spacing: -.01em; margin: 0 0 18px; }
.hero-photo { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 100%; }
.hero-photo-mark { position: absolute; width: min(88%, 440px); aspect-ratio: 240 / 310; top: -2%; left: 50%; translate: -50% 0; fill: var(--silver); opacity: .06; }
.hero-photo img { position: relative; width: 100%; max-width: 400px; height: auto; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 8px 0 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; position: relative; }
.stats div { background: var(--ink); padding: 22px 24px; }
.stats dt { font: 500 32px/1.1 var(--heading); color: #fff; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--steel); }

/* ---------- projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.project:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(31, 32, 35, .35); }
.project-media { aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.has-logo { position: relative; }
.project-media.has-logo::after { content: ""; position: absolute; inset: 0; background: rgba(15, 16, 18, .18); pointer-events: none; }
.project-media .media-logo { position: absolute; z-index: 1; inset: 0; margin: auto; width: auto; height: 62%; aspect-ratio: 1; object-fit: contain; clip-path: circle(43% at 50% 50%); }
.project-media.has-logo .logo-shadow { position: absolute; z-index: 1; inset: 0; margin: auto; height: 54%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.project-body p { color: var(--muted); font-size: 16px; margin: 10px 0 20px; }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.project h3 { display: flex; align-items: center; gap: 10px; }
.mini-logo { width: 28px; height: 28px; clip-path: circle(43% at 50% 50%); }
.tag { font: 500 12px var(--heading); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.status { font: 500 11px var(--heading); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 40px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.status.live::before, .status.funded::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.status.live::before { background: #3fa46a; }
.status.funded::before { background: var(--steel); }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; }
.project-body > .link { margin-top: auto; align-self: flex-start; }
.link { font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .15s; }
.link:hover { border-color: var(--ink); }
.links .link + .link { color: var(--muted); }

/* ---------- two-column blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.specs div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.specs dt { font: 500 22px/1.1 var(--heading); }
.specs dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px -24px rgba(31, 32, 35, .5); }
.video iframe, .video-poster { position: relative; display: block; width: 100%; height: 100%; border: 0; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(31, 32, 35, .85); color: #fff; transition: transform .15s; }
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-poster:hover .play { transform: scale(1.07); }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; color: var(--muted); font-size: 15px; }
.about-list b { display: block; color: var(--text); font: 500 18px var(--heading); margin-bottom: 2px; }

/* ---------- about me page */
.glance { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.glance-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.glance-card h3 { margin: 10px 0 8px; }
.glance-card p { color: var(--muted); font-size: 16px; margin: 0; }
.resume-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 56px; scroll-margin-top: 96px; }
.resume-intro h3 { font-size: 26px; margin: 8px 0 6px; }
.resume-intro p { color: var(--muted); margin: 0 0 20px; }
.resume-gate[hidden] + .resume { margin-top: -8px; }
.resume-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 70px; }
.resume-status { margin: 0; font-size: 15px; color: var(--muted); }
.resume { font-size: 16px; }
.cv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cv-head h2 { margin: 0 0 4px; }
.cv-head p { margin: 0; color: var(--muted); }
.cv-head a { color: var(--text); text-underline-offset: 3px; }
.cv-section { padding: 24px 0 4px; border-bottom: 1px solid var(--line); }
.cv-section:last-child { border-bottom: 0; }
.cv-section > h3 { font: 500 12px var(--heading); letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: 14px; }
.cv-item { margin-bottom: 20px; }
.cv-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.cv-row b { font: 500 18px var(--heading); }
.cv-row span { color: var(--muted); font-size: 15px; }
.cv-sub { margin: 2px 0 8px; color: var(--muted); font-style: italic; }
.resume ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #3d3e42; }
.cv-interests { color: #3d3e42; }

/* ---------- contact + footer */
.contact { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer { background: var(--ink); color: var(--steel); font-size: 14px; padding: 28px 0 36px; border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.brand.small { color: var(--steel); gap: 10px; }
.brand.small .brand-mark { width: 18px; height: 23px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer nav a:hover { color: #fff; }

/* ---------- responsive */
@media (max-width: 960px) {
  .projects { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding: 24px 0 8px; }
  .hero-photo img { max-width: 290px; margin-top: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brand-name { display: none; }
  .nav .wrap { gap: 8px; }
  .nav-links a { padding: 8px 8px; font-size: 15px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .stats { margin-top: 48px; }
  .nav-links a[href$="#clearvane"] { display: none; }
  .resume-card { padding: 22px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { align-items: flex-start; }
}
@media print {
  body > *:not(main), main > section:not(#about), #about > .wrap > .split, .resume-intro, .cv-head .btn { display: none !important; }
  section { padding: 0; }
  .tint, body { background: #fff; }
  .resume-card { border: 0; padding: 0; margin: 0; }
}
/* ---------- scroll-in animations (only when JS adds .js-reveal and motion is allowed) */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0ms); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .project.reveal.in:hover { transform: translateY(-3px); transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project, .play, .btn { transition: none; }
  .project:hover { transform: none; }
}
