/* ============================================================
   Shaun Turcott — Personal CV
   Theme: Soft Sand & Charcoal
   ============================================================ */

:root {
  --sand:        #f5f1ea;
  --sand-2:      #ece5d8;
  --sand-card:   #fbf8f2;
  --white:       #fffdf9;
  --charcoal:    #2b2b2b;
  --charcoal-2:  #4a4a4a;
  --muted:       #837c70;
  --accent:      #b8895a;
  --accent-dark: #a0744a;
  --line:        #e2d9c8;

  --shadow-sm: 0 6px 20px rgba(43, 43, 43, 0.06);
  --shadow-md: 0 18px 50px rgba(43, 43, 43, 0.12);

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--sand);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* inline text link (e.g., company website) */
.text-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(184, 137, 90, .45);
  transition: color .25s, text-decoration-color .25s;
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(184,137,90,.32); }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); transform: translateY(-3px); }
.btn--full { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, .92);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.nav__logo span { color: var(--accent); }

.nav__links { display: flex; gap: 30px; }
.nav__link {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal-2);
  padding: 4px 0;
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--charcoal); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--charcoal);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background:
    radial-gradient(circle at 80% 20%, rgba(184,137,90,.10), transparent 45%),
    var(--sand);
  overflow: hidden;
}
.hero::before {
  content: "Shaun";
  position: absolute;
  right: -2%;
  bottom: -8%;
  font-family: var(--font-head);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 700;
  color: rgba(184, 137, 90, .05);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}
.hero__greeting {
  font-size: 1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero__name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.hero__title {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--charcoal-2);
  font-weight: 500;
  margin: 12px 0 22px;
}
.hero__tagline {
  max-width: 460px;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }

/* socials */
.socials { display: flex; gap: 12px; }
.socials__link {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 600;
  color: var(--charcoal-2);
  transition: all .3s var(--ease);
}
.socials__link:hover { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateY(-3px); }
.socials--dark .socials__link { border-color: rgba(255,255,255,.3); color: var(--white); }
.socials--dark .socials__link:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }

/* hero photo */
.hero__photo { position: relative; justify-self: center; }
.hero__photo-frame {
  position: relative;
  z-index: 2;
  width: clamp(260px, 32vw, 380px);
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 18px 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 8px solid var(--white);
}
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__photo-accent {
  position: absolute;
  z-index: 1;
  inset: auto -18px -18px auto;
  width: 70%;
  height: 70%;
  background: var(--accent);
  opacity: .14;
  border-radius: 200px 18px 18px 18px;
}
.hero__photo-dots {
  position: absolute;
  z-index: 1;
  top: -16px; left: -16px;
  width: 110px; height: 110px;
  background-image: radial-gradient(var(--accent) 1.6px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: .35;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__scroll-line { width: 1px; height: 42px; background: var(--accent); animation: scrollPulse 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); opacity:.4; } 50% { transform: scaleY(1); opacity:1; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--sand-2); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section__eyebrow {
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.about__photo::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__lead {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.3;
}
.about__body p { color: var(--muted); margin-bottom: 16px; }
.about__author {
  background: rgba(184, 137, 90, .09);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  color: var(--charcoal-2) !important;
  font-style: italic;
}
.about__author span { font-style: normal; font-weight: 600; color: var(--accent-dark); }
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 26px 0 30px;
}
.about__facts li {
  font-size: .95rem;
  color: var(--charcoal-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.about__facts span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }

/* ---------- Resume ---------- */
.resume__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.resume__col-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 34px;
  display: flex; align-items: center; gap: 12px;
}
.resume__icon { color: var(--accent); font-size: .8rem; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sand); border: 2px solid var(--accent);
  transition: background .3s;
}
.timeline__item:hover::before { background: var(--accent); }
.timeline__year {
  display: inline-block;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
  background: rgba(184,137,90,.1);
  padding: 4px 12px; border-radius: 50px; margin-bottom: 10px;
}
.timeline__role { font-size: 1.15rem; font-weight: 600; }
.timeline__org { color: var(--charcoal-2); font-weight: 500; margin-bottom: 6px; }
.timeline__desc { color: var(--muted); font-size: .95rem; }

/* ---------- Skills ---------- */
.skills__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.skill { margin-bottom: 26px; }
.skill:last-child { margin-bottom: 0; }
.skill__head { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 10px; font-size: .95rem; }
.skill__head em { font-style: normal; color: var(--accent); font-weight: 600; }
.skill__track { height: 8px; background: var(--sand-2); border-radius: 50px; overflow: hidden; }
.section--alt .skill__track { background: var(--sand); }
.skill__fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 50px;
  transition: width 1.2s var(--ease);
}
.skills__tags-title { font-family: var(--font-head); font-size: 1.5rem; }
.skills__tags-sub { color: var(--muted); margin: 6px 0 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags li {
  background: var(--sand-card);
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--charcoal-2);
  transition: all .3s var(--ease);
}
.tags li:hover { background: var(--accent); color: var(--white); border-color: var(--accent); transform: translateY(-3px); }

/* ---------- Projects ---------- */
.section__intro { color: var(--muted); margin-top: 14px; }

.projects__list { display: flex; flex-direction: column; gap: 64px; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* image / gradient panel */
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: rgba(255, 253, 249, .9);
}
.project__media svg { position: relative; z-index: 1; width: 34%; height: auto; }
.project__media::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.20) 1.4px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 72%);
  mask-image: linear-gradient(135deg, #000, transparent 72%);
}
.project--health .project__media { background: linear-gradient(135deg, #5cb6a6, #2e6f62); }
.project--book   .project__media { background: linear-gradient(135deg, #c9a063, #6e4a2a); }
.project--music  .project__media { background: linear-gradient(135deg, #8a7bc8, #443c74); }

/* content card overlapping the image */
.project__card {
  position: relative;
  z-index: 2;
  background: var(--sand-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
  margin-right: -68px;
}
.project__no {
  display: block;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.project__name { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; line-height: 1.15; }
.project__role {
  color: var(--accent-dark); font-weight: 600;
  font-size: .9rem; letter-spacing: .02em; margin: 6px 0 16px;
}
.project__desc { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.project__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  color: var(--accent-dark);
  transition: gap .25s var(--ease), color .25s;
}
.project__link:hover { color: var(--accent); gap: 11px; }
.project__status {
  display: inline-block;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(184, 137, 90, .12);
  border: 1px solid rgba(184, 137, 90, .35);
  padding: 5px 14px; border-radius: 50px;
}

/* alternating: image left, card right */
.project--reverse .project__media { order: 1; }
.project--reverse .project__card { order: 2; margin-right: 0; margin-left: -68px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact__info {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px;
}
.contact__info h3 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: 14px; line-height: 1.25; }
.contact__info > p { color: rgba(255,255,255,.7); margin-bottom: 30px; }
.contact__list { margin-bottom: 30px; }
.contact__list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.contact__list a:hover { color: var(--accent); }

.contact__form {
  background: var(--sand-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--charcoal-2); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,137,90,.15);
}
.field input.is-error, .field textarea.is-error { border-color: #c0563f; }
.form__note { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
.form__note.is-ok { color: var(--accent-dark); }
.form__note.is-bad { color: #c0563f; }

/* ---------- Footer ---------- */
.footer { background: var(--sand-2); border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer p { font-size: .9rem; color: var(--muted); }
.footer__top { font-size: .85rem; font-weight: 500; color: var(--accent-dark); }
.footer__top:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__tagline { margin-inline: auto; }
  .hero__actions, .socials { justify-content: center; }
  .hero__photo { order: -1; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 360px; margin: 0 auto; }
  .resume__grid, .skills__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }

  .project, .project--reverse { grid-template-columns: 1fr; }
  .project__media, .project--reverse .project__media { order: 0; }
  .project__card, .project--reverse .project__card {
    order: 1;
    margin: -44px 22px 0;
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: var(--sand-card);
    box-shadow: -10px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 110; }
  .section { padding: 84px 0; }
  .about__facts { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .contact__info, .contact__form { padding: 30px 24px; }
  .project__card { padding: 28px 24px; margin: -40px 12px 0; }
  .btn { padding: 13px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
