/* Sreyosi Dey — portfolio. Style after anacuna.com:
   one bold full-bleed color per project, a single grotesque typeface,
   hierarchy from size + uppercase only, no decoration. */

:root {
  --bg: #eceadf;
  --fg: #111;
  --pad: clamp(16px, 2.4vw, 36px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Schibsted Grotesk", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(var(--pad) * .6) var(--pad);
  font-size: 15px;
}
.header-left { display: flex; align-items: baseline; gap: 14px; }
.logo { font-weight: 700; letter-spacing: .01em; }
.back .arrow { font-size: 18px; }
.menu { display: flex; gap: 22px; }
.menu a:hover, .logo:hover { opacity: .55; }

/* ----------------------------------------------------------------- title */
.content-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 5vw, 70px) var(--pad) clamp(8px, 1.5vw, 20px);
}
.content-title h1 {
  font-size: clamp(2.4rem, 7.5vw, 6.5rem);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.peque { font-size: 14px; padding-top: .7em; white-space: nowrap; }

/* --------------------------------------------------------- project layout */
.project-content {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: var(--pad);
  padding: var(--pad);
  align-items: start;
}
.sidebar { position: sticky; top: var(--pad); display: grid; gap: 28px; }
.item-title {
  font-size: 12px;
  letter-spacing: .14em;
  margin-bottom: 10px;
  font-weight: 700;
}
.item-content { font-size: 14px; line-height: 1.55; }
.item-content p { margin-bottom: 4px; }

.modules { display: grid; gap: clamp(20px, 3vw, 44px); min-width: 0; }
.modulo--img > div { display: flex; justify-content: center; }
.modulo--img img {
  max-width: min(100%, 760px);
  max-height: 88vh;
  width: auto;
}
.modulo--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.modulo--grid img { width: 100%; }

/* screenshots get a clean white card so baked-in edges look intentional */
img.framed {
  background: #fff;
  padding: clamp(12px, 1.8vw, 24px);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

/* social proof — scrapbook of floating polaroids joined to the feed by a
   hand-drawn curly arrow with a handwritten label below (see source PDF). */
.modulo--proof .proof-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(30px, 4vw, 56px) clamp(20px, 3vw, 40px);
  margin-top: 30px;
  align-items: start;
  justify-items: center;
}
.proof-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  padding: 12px 12px 4px;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  align-content: start;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
/* gentle, varied tilt so the cards read as pinned-up snapshots */
.proof-card:nth-child(4n+1) { transform: rotate(-2.2deg); }
.proof-card:nth-child(4n+2) { transform: rotate(1.6deg); }
.proof-card:nth-child(4n+3) { transform: rotate(-1deg); }
.proof-card:nth-child(4n+4) { transform: rotate(2.4deg); }
html.js .proof-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .18);
  z-index: 2;
}
.proof-shot { display: flex; justify-content: center; }
.proof-card img {
  border-radius: 6px;
  max-height: 360px;
  max-width: 100%;
  width: auto;
}
.proof-card figcaption {
  font-family: "Caveat", "Schibsted Grotesk", cursive;
  font-size: 21px;
  line-height: 1.15;
  text-align: center;
  padding: 4px 6px 10px;
}

/* stats */
.modulo--stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--pad);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  padding: clamp(18px, 2.5vw, 34px) 0;
}
.stat { display: grid; gap: 6px; }
.stat-num {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* link buttons */
.modulo--links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  transition: background .2s ease, color .2s ease, transform .2s ease,
              box-shadow .2s ease;
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

/* ----------------------------------------------------- related / footer */
.related {
  background: #fff;
  color: #111;
  border-top: 1px solid #000;
  margin-top: clamp(30px, 5vw, 70px);
}
.related-head {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px var(--pad) 0;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; }
.related-card {
  padding: clamp(20px, 3vw, 40px) var(--pad);
  display: grid;
  gap: 6px;
  transition: background .25s ease;
}
.related-card:last-child { text-align: right; }
.related-card:hover { background: var(--c); }
.related-label { font-size: 13px; }
.related-title {
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -.01em;
}
.related-peque { font-size: 13px; opacity: .7; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px var(--pad);
  font-size: 12px;
  letter-spacing: .06em;
  background: #fff;
  color: #111;
  border-top: 1px solid #000;
}
.footer-links { display: flex; gap: 18px; }
.footer a:hover { opacity: .55; }
.project .footer, .project .related + .footer { border-top: 1px solid #eee; }

/* ------------------------------------------------------------------ home */
.hero { padding: clamp(40px, 9vw, 130px) var(--pad) clamp(30px, 6vw, 80px); }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 18ch;
}
.hero-sub {
  max-width: 560px;
  margin-top: 26px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
}

.work { padding-bottom: clamp(40px, 6vw, 90px); }
.work-cat {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: clamp(28px, 4vw, 56px) var(--pad) 10px;
}
.work-row {
  display: grid;
  grid-template-columns: 3ch 1fr auto clamp(54px, 6vw, 84px);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(10px, 1.4vw, 18px) var(--pad);
  border-top: 1px solid var(--fg);
  position: relative;
}
.work-section .work-row:last-child { border-bottom: 1px solid var(--fg); }
.row-num { font-size: 13px; }
.row-title {
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.05;
  transition: transform .25s ease;
}
.work-row:hover .row-title { transform: translateX(10px); }
.row-peque { font-size: 13px; opacity: .75; text-align: right; }
.row-thumb {
  width: clamp(54px, 6vw, 84px);
  height: clamp(54px, 6vw, 84px);
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .25s ease, transform .25s ease;
}
.work-row:hover .row-thumb { opacity: 1; transform: scale(1); }

/* ----------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: var(--pad);
  align-items: start;
}
.about-photo img { width: 100%; max-width: 420px; }
.about-bio { max-width: 620px; }
.about-bio p {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  margin-bottom: 1em;
}
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.testimonials { padding-bottom: clamp(40px, 6vw, 90px); }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fg);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}
@media (max-width: 1100px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg);
  padding: clamp(20px, 2.6vw, 36px) var(--pad);
  display: grid;
  gap: 14px;
  align-content: start;
}
.quote-text { font-size: 15px; line-height: 1.55; }
.quote-who { font-size: 13px; font-weight: 700; }
.quote-who span { font-weight: 400; opacity: .75; }
.quote-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.quote-link:hover { opacity: .55; }

/* --------------------------------------------------------------- pricing */
.page-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  opacity: .75;
  padding: 0 var(--pad);
  max-width: 640px;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--fg);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  margin: clamp(20px, 3vw, 40px) 0 0;
}
.tier {
  background: var(--bg);
  padding: clamp(24px, 3vw, 44px) var(--pad);
  display: grid;
  gap: 18px;
  align-content: start;
}
.tier-name {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
}
.tier-price {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}
.tier-price .per {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .6;
  margin-left: 4px;
}
.tier-features { list-style: none; }
.tier-features li {
  font-size: 14px;
  padding: 9px 0;
  border-top: 1px solid rgba(0, 0, 0, .18);
}
.extras { border-top: 1px solid var(--fg); }
.extra {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--pad);
  padding: clamp(18px, 2.4vw, 30px) var(--pad);
  border-bottom: 1px solid var(--fg);
}
.extra-name {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  font-weight: 500;
}
.extra-desc { font-size: 14px; max-width: 54ch; margin-top: 6px; }
.extra-price {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 600;
  white-space: nowrap;
}
.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(28px, 4vw, 56px) var(--pad);
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 760px) {
  .project-content, .about-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .content-title { flex-direction: column; gap: 6px; }
  .peque { padding-top: 0; }
  .work-row { grid-template-columns: 3ch 1fr auto; }
  .row-peque { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card:last-child { text-align: left; }
  .menu { gap: 14px; font-size: 14px; }
  .tiers { grid-template-columns: 1fr; }
  .extra { flex-direction: column; gap: 8px; }
}

/* ============================================================ motion ==== */
/* Initial hidden state for scroll-in reveals. Gated on html.js (set inline in
   <head>) so there is no flash before the script runs. The :where() keeps
   specificity low so the .in visible-state rule below always wins.
   Keep this list in sync with REVEAL in assets/js/main.js. */
html.js :where(
  .hero h1, .hero-sub, .work-cat, .work-row, .content-title,
  .sidebar .item, .modulo--img, .modulo--grid, .modulo--links,
  .stat, .modulo--proof, .related-card, .quote, .tier, .extra,
  .about-photo, .about-bio, .page-sub
) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
              transform .7s cubic-bezier(.2, .7, .2, 1);
}
html.js .in { opacity: 1; transform: none; }

/* Failsafe: if the script never runs (load error, stale cache, JS off mid-load),
   an inline timeout adds this class so content can never stay hidden. */
html.reveal-all :where(
  .hero h1, .hero-sub, .work-cat, .work-row, .content-title,
  .sidebar .item, .modulo--img, .modulo--grid, .modulo--links,
  .stat, .modulo--proof, .related-card, .quote, .tier, .extra,
  .about-photo, .about-bio, .page-sub
) { opacity: 1; transform: none; transition: none; }

/* hairline scroll-progress bar */
.scroll-prog {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  opacity: .85;
  transition: background .45s ease;
}

/* animated underline on nav + footer links */
.menu a, .footer-links a { position: relative; }
.menu a::after, .footer-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.menu a:hover::after, .footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* a small arrow slides out of each work-row title on hover */
.row-title::after {
  content: " \2197";
  display: inline-block;
  opacity: 0;
  transform: translate(-6px, 2px);
  transition: opacity .25s ease, transform .25s ease;
}
.work-row:hover .row-title::after { opacity: .55; transform: none; }

/* framed screenshots lift slightly on hover */
img.framed {
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
img.framed:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .14);
}

@media (prefers-reduced-motion: reduce) {
  html.js :where(
    .hero h1, .hero-sub, .work-cat, .work-row, .content-title,
    .sidebar .item, .modulo--img, .modulo--grid, .modulo--links,
    .stat, .modulo--proof, .related-card, .quote, .tier, .extra,
    .about-photo, .about-bio, .page-sub
  ) { opacity: 1; transform: none; transition: none; }
  .scroll-prog { display: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .proof-card:hover, img.framed:hover { transform: none; }
}
