/* ==========================================================
   PORTFOLIO STYLES
   Colors, fonts, and spacing live here. The easiest thing to
   change safely is the color palette right below.
   ========================================================== */

:root {
  --bg:        #fbf9f6;   /* page background (warm off-white) */
  --ink:       #1a1a18;   /* main text color (near-black)     */
  --muted:     #6b6862;   /* softer gray text                 */
  --accent:    #c0492f;   /* highlight color (terracotta)     */
  --card:      #ffffff;   /* card background                  */
  --line:      #e7e2d9;   /* hairline borders                 */
  --max:       1080px;    /* max content width               */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

em { font-style: italic; color: var(--accent); }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 600; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 0.95rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ===================== HERO ===================== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-weight: 600; color: var(--accent); margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 26px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 30ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__photo { display: flex; justify-content: center; }
.hero__avatar {
  width: clamp(160px, 22vw, 240px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #e8a23d);
  color: #fff; font-family: "Fraunces", serif; font-size: 3rem; font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(192,73,47,0.5);
}
.hero__photo-img {
  width: clamp(180px, 24vw, 260px); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: center top;
  box-shadow: 0 20px 50px -20px rgba(192,73,47,0.5);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 100px;
  font-weight: 500; font-size: 0.98rem; transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--big { font-size: 1.3rem; padding: 18px 40px; font-family: "Fraunces", serif; }

/* ===================== SECTIONS ===================== */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 100px) clamp(20px, 5vw, 56px); }
.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 44px; }
.section__num { font-family: "Fraunces", serif; color: var(--accent); font-size: 1rem; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ===================== BRAND QUOTE BAND ===================== */
.quote-band {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(56px, 9vw, 90px) clamp(20px, 5vw, 56px);
}
.quote-band blockquote {
  max-width: 900px; margin: 0 auto; text-align: center;
  font-family: "Fraunces", serif; font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.35;
}

/* ===================== ABOUT ===================== */
.about__big { font-family: "Fraunces", serif; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; margin-bottom: 36px; max-width: 24ch; }

/* Sub-headings inside About (My Journey / What I Do Now) */
.block-title {
  font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600;
  margin: 56px 0 28px; padding-top: 36px; border-top: 1px solid var(--line);
}

/* Timeline */
.journey { list-style: none; }
.journey__item {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px;
  padding: 0 0 34px 0; position: relative;
}
.journey__item:not(:last-child) .journey__body { border-left: 2px solid var(--line); }
.journey__label {
  font-family: "Fraunces", serif; font-size: 1.05rem; font-weight: 600;
  color: var(--accent); text-align: right; padding-top: 2px;
}
.journey__body { padding-left: 28px; margin-left: -1px; position: relative; }
.journey__body::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.journey__body h4 { font-family: "Inter", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.journey__body p { color: var(--muted); font-size: 1rem; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--muted); font-size: 1.05rem; }
.about__skills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.about__skills li { border: 1px solid var(--line); border-radius: 100px; padding: 8px 18px; font-size: 0.9rem; background: var(--card); }
.ai-intro { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 4px; }
.skill-note { color: var(--muted); font-weight: 400; }

/* ===================== WORK GRID ===================== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(26,26,24,0.35); }
.card__media { display: block; height: 220px; overflow: hidden; background: var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.work-intro { color: var(--muted); font-size: 1.1rem; max-width: 50ch; margin: -24px 0 40px; }
.card__body { padding: 24px; }
.card__tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.card__body h3 { font-size: 1.35rem; margin: 8px 0 10px; }
.card__body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 16px; }
.card__link { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.card__link:hover { color: var(--accent); }

/* ===================== SOCIAL / REELS ===================== */
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.reel {
  position: relative; display: block; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: var(--line);
  box-shadow: 0 14px 34px -22px rgba(26,26,24,0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.reel:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -26px rgba(26,26,24,0.55); }
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.reel:hover img { transform: scale(1.06); }

/* dark gradient so the caption stays readable over any cover */
.reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0) 62%);
}
.reel__cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 0.82rem; line-height: 1.35; font-weight: 500;
}
.reel__likes {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  color: #fff; font-size: 0.76rem; font-weight: 600;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 100px;
}
.reel__play {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255,255,255,0.75);
  display: grid; place-items: center; opacity: 0.92; transition: 0.2s;
}
.reel:hover .reel__play { background: var(--accent); border-color: var(--accent); transform: translate(-50%,-50%) scale(1.08); }
.reel__play::before {
  content: ""; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}
.social-foot { margin-top: 26px; color: var(--muted); font-size: 0.98rem; }
.social-foot a { color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.social-foot a:hover { opacity: 0.8; }

/* tablet: 3 across */
@media (max-width: 900px) and (min-width: 761px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== AWARDS ===================== */
.awards { list-style: none; }
.award {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.award:last-child { border-bottom: 1px solid var(--line); }
.award__year { font-family: "Fraunces", serif; font-size: 1.4rem; color: var(--accent); }
.award__cat { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.award__name { display: block; font-weight: 600; font-size: 1.12rem; margin-bottom: 4px; }
.award__project { display: block; color: var(--muted); font-size: 1rem; font-style: italic; margin-bottom: 12px; }
.award__links { display: flex; gap: 18px; flex-wrap: wrap; }
.award__links a { font-size: 0.85rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.award__links a:hover { color: var(--accent); }

/* ===================== CONTACT ===================== */
.section--contact { text-align: center; }
.contact__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.contact__title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.contact__text { color: var(--muted); max-width: 46ch; margin: 0 auto 34px; font-size: 1.1rem; }
.contact__socials { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 38px; }
.contact__socials a { color: var(--muted); border-bottom: 1px solid transparent; transition: 0.2s; }
.contact__socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ===================== FOOTER ===================== */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 40px clamp(20px, 5vw, 56px);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.footer a:hover { color: var(--accent); }

/* ===================== MOBILE ===================== */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__photo { order: -1; }
  .about__cols { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .award { grid-template-columns: 64px 1fr; gap: 16px; }

  /* social reels become a swipeable strip */
  .social-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 10px;
  }
  .reel { scroll-snap-align: start; }

  .journey__item { grid-template-columns: 1fr; gap: 6px; }
  .journey__label { text-align: left; }
  .journey__item:not(:last-child) .journey__body { border-left: none; }
  .journey__body { padding-left: 0; }
  .journey__body::before { display: none; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav__links.open { max-height: 320px; }
  .nav__links a { padding: 16px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); }
}
