/* =========================================================
   Srija — Content Writer Portfolio
   Palette: deep forest green, cream paper, sage accents
   ========================================================= */

:root {
  --green-900: #13271c;
  --green-800: #1c3a29;
  --green-700: #24503a;
  --green-500: #3f7a5a;
  --sage-200: #dfe9df;
  --sage-100: #eef3ec;
  --cream: #faf7f0;
  --paper: #f3eee2;
  --ink: #1d1f1c;
  --muted: #5d625c;
  --line: #e2ddd0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 39, 28, .08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.handwritten { font-family: var(--script); color: var(--green-700); line-height: 1.15; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-700); box-shadow: 0 8px 20px rgba(28, 58, 41, .25); }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: var(--white); }
.btn-outline:hover { background: var(--green-800); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.section-head .num {
  font-family: var(--serif); font-size: clamp(48px, 6vw, 68px);
  color: var(--green-500); font-weight: 500; line-height: 1;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); font-weight: 600; color: var(--green-900); }
.section-head .sub { margin: 4px 0 0; color: var(--muted); }
.section-head.light .num { color: #c9b98a; }
.section-head.light h2 { color: var(--white); }
.section-head.light .sub { color: #cfd9d0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--green-900); text-decoration: none; }
.logo span { color: var(--green-500); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.nav-links a:not(.btn):hover { color: var(--green-500); }
.nav-links .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 30%, var(--sage-100) 0, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  padding: 60px 0 70px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { letter-spacing: .22em; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.eyebrow span { margin: 0 8px; color: var(--line); }
.hero-name {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(72px, 11vw, 132px);
  color: var(--green-900); letter-spacing: -.02em; line-height: .95;
  position: relative; display: inline-block;
}
.signature {
  font-family: var(--script); font-weight: 500;
  font-size: .75em; color: #b9bdb6;
  position: absolute; left: 100%; top: -.05em; margin-left: .1em;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4.3vw, 52px);
  color: var(--green-900); margin: 20px 0 18px;
}
.hero-title em { font-style: normal; color: var(--green-700); display: block; }
.hero-lead { font-size: 18px; color: #3a3f39; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 600px; }
.stats li { padding: 0 16px; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: 28px; color: var(--green-900); }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.photo-frame {
  width: min(420px, 100%); aspect-ratio: 4 / 5;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden; background: var(--sage-200);
  box-shadow: var(--shadow);
  position: relative;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: none; width: 100%; height: 100%;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 160px; color: var(--green-700);
  background: linear-gradient(160deg, var(--sage-100), var(--sage-200));
}
.hero-note-left {
  position: absolute; left: -10px; top: 20px;
  font-size: 30px; transform: rotate(-12deg); z-index: 2;
}
.sticky-note {
  position: absolute; right: -6px; top: -10px;
  background: #fbf6e6; padding: 22px 22px 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: rotate(5deg); z-index: 2;
}
.sticky-note .handwritten { font-size: 25px; color: var(--ink); }
.pin { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--green-700); transform: translateX(-50%); }

/* ---------- 01 + 02 split ---------- */
.split-band { display: grid; grid-template-columns: 1fr 1.35fr; }
.split-left {
  background: linear-gradient(135deg, var(--paper), var(--cream));
  padding: 70px clamp(20px, 5vw, 64px);
  position: relative;
}
.tagline { font-family: var(--serif); font-size: 24px; color: var(--green-800); line-height: 1.35; }
.split-left p:not(.tagline):not(.handwritten) { color: #3f443e; max-width: 520px; }
.paper-card {
  display: inline-block; margin-top: 18px;
  background: #fffdf6; padding: 20px 30px;
  transform: rotate(-4deg); box-shadow: var(--shadow);
}
.paper-card .handwritten { font-size: 28px; }

.split-right { background: var(--green-800); padding: 70px clamp(20px, 5vw, 64px); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 14px;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.icon-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--sage-100); color: var(--green-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.service-card h3 { font-size: 16px; font-weight: 700; color: var(--green-900); margin-bottom: 6px; }
.service-card li { font-size: 14px; color: var(--muted); position: relative; padding-left: 12px; line-height: 1.7; }
.service-card li::before { content: ""; position: absolute; left: 0; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--green-500); }

/* ---------- 03 Approach ---------- */
.approach { padding: 80px 0; background: var(--white); }
.approach-grid { display: grid; grid-template-columns: 1fr 280px; gap: 50px; align-items: center; }
.intro { font-size: 18px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 34px 0 26px; counter-reset: step; }
.steps li { text-align: center; position: relative; }
.steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 22px;
  color: var(--green-500); font-size: 18px;
}
.step-icon {
  width: 68px; height: 68px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--green-700); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--sage-100);
}
.step-icon svg { width: 28px; height: 28px; }
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }
.closing { font-size: 17px; color: #3f443e; }
.closing strong { color: var(--green-800); }
.notebook {
  background: #fbf7ea;
  background-image: repeating-linear-gradient(transparent 0 37px, #e9e1c9 37px 38px);
  padding: 40px 36px; border-radius: 6px;
  transform: rotate(4deg); box-shadow: var(--shadow);
}
.notebook .handwritten { font-size: 36px; line-height: 38px; color: var(--green-900); }

/* ---------- 04 + 05 ---------- */
.work-band { padding: 80px 0; background: linear-gradient(180deg, var(--cream), var(--paper)); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.industry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.industry {
  display: flex; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  transition: border-color .2s, transform .2s;
}
.industry:hover { border-color: var(--green-500); transform: translateY(-3px); }
.industry-icon {
  width: 58px; height: 58px; border-radius: 12px;
  background: var(--sage-100); color: var(--green-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.industry-icon svg { width: 28px; height: 28px; }
.industry h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.industry p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
.note { margin-top: 18px; color: var(--muted); font-style: italic; }

.portfolio-panel { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.portfolio-head { flex-wrap: wrap; }
.view-all { margin-left: auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; background: var(--white); }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr; }
.work-card.wide .work-thumb { height: 100%; min-height: 140px; }
.work-thumb {
  height: 120px; position: relative;
  display: flex; align-items: flex-end; padding: 12px;
}
.work-thumb span {
  background: rgba(255,255,255,.9); color: var(--green-800);
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.work-thumb::before {
  content: ""; position: absolute; inset: 22px 30px 40px;
  border-radius: 8px; background: rgba(255,255,255,.55);
  background-image:
    linear-gradient(rgba(28,58,41,.25), rgba(28,58,41,.25)),
    linear-gradient(rgba(28,58,41,.15), rgba(28,58,41,.15)),
    linear-gradient(rgba(28,58,41,.15), rgba(28,58,41,.15));
  background-size: 50% 6px, 80% 4px, 65% 4px;
  background-position: 14px 14px, 14px 30px, 14px 42px;
  background-repeat: no-repeat;
}
.thumb-blog { background: linear-gradient(135deg, #cfe0d2, #9fbfa9); }
.thumb-web { background: linear-gradient(135deg, #e7dfc8, #cbbd92); }
.thumb-social { background: linear-gradient(135deg, #dce7dc, #7fa58b); }
.thumb-linkedin { background: linear-gradient(135deg, #d9e2e6, #99b1bb); }
.thumb-landing { background: linear-gradient(135deg, #274f39, #3f7a5a); }
.work-body { padding: 16px 18px 18px; }
.work-body h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.work-body p { font-size: 14px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.work-body .focus { font-size: 12.5px; color: var(--green-500); font-weight: 500; }
.link { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--green-800); }
.link:hover { color: var(--green-500); }

/* ---------- 06 Difference ---------- */
.difference { background: var(--green-900); color: var(--white); padding: 80px 0; }
.diff-intro { color: #cfd9d0; max-width: 640px; font-size: 17px; }
.diff-grid { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 36px; }
.diff { padding: 0 18px; border-left: 1px solid rgba(255,255,255,.14); }
.diff:first-child { border-left: 0; padding-left: 0; }
.diff svg { width: 34px; height: 34px; color: #c9e0cf; margin-bottom: 12px; }
.diff h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.diff p { font-size: 13.5px; color: #b9c8bd; line-height: 1.5; margin: 0; }

/* ---------- 07 + 08 ---------- */
.philo-contact { padding: 80px 0; background: var(--white); }
.pc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.philosophy blockquote {
  margin: 20px 0 26px; padding: 18px 22px;
  border-left: 3px solid var(--green-500);
  background: var(--sage-100); border-radius: 0 10px 10px 0;
  color: #3a3f39;
}
.philosophy blockquote em { font-style: normal; color: var(--green-800); font-weight: 500; }
.philo-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-700); color: var(--white);
  font-size: 12px; display: grid; place-items: center;
}
.brush {
  font-size: 27px; transform: rotate(-8deg);
  background: linear-gradient(90deg, rgba(159,191,169,.45), rgba(159,191,169,.15));
  padding: 16px 20px; border-radius: 40px 10px 40px 10px;
}

.contact { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.contact > p { color: #3f443e; }
.contact-list { margin: 20px 0 26px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.contact-list svg { color: var(--green-700); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--green-500); }

/* ---------- 09 ---------- */
.more-about { padding: 80px 0; background: linear-gradient(180deg, var(--paper), var(--cream)); }
.more-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: center; }
.more-grid p:not(.handwritten) { color: #3f443e; }
.big-quote { font-size: 34px; transform: rotate(-4deg); color: var(--green-900); }
.book-stack { display: flex; flex-direction: column; gap: 4px; }
.book-stack span {
  display: block; padding: 10px 22px;
  font-family: var(--serif); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #f1ead6; border-radius: 3px;
  background: var(--green-800);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
}
.book-stack span:nth-child(1) { background: #5b6b4f; margin-left: 10px; }
.book-stack span:nth-child(2) { background: var(--green-700); }
.book-stack span:nth-child(3) { background: #7a6a4a; margin-left: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #b9c8bd; padding: 22px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .diff-grid { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .diff:nth-child(5) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .steps li:nth-child(3)::after { display: none; }
  .approach-grid { grid-template-columns: 1fr 220px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { justify-content: center; margin-top: 12px; border: 0; }

  .hero-grid, .split-band, .work-grid, .pc-grid, .approach-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .notebook { max-width: 280px; margin: 0 auto; }
  .more-grid { grid-template-columns: 1fr; }
  .book-stack { flex-direction: row; flex-wrap: wrap; }
  .book-stack span { margin-left: 0 !important; }
}

@media (max-width: 640px) {
  .hero { padding: 36px 0 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-note-left { font-size: 22px; left: 0; }
  .sticky-note { right: 0; padding: 14px; }
  .sticky-note .handwritten { font-size: 19px; }
  .signature { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .industry-grid, .portfolio-grid, .philo-bottom { grid-template-columns: 1fr; }
  .work-card.wide { grid-template-columns: 1fr; }
  .work-card.wide .work-thumb { min-height: 120px; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .diff { border-left: 0; padding: 0; }
  .portfolio-panel, .contact { padding: 22px; }
  .section-head { gap: 12px; }
  .view-all { margin-left: 0; }
}
