/* ═══════════════════════════════════════════════
   Charlene Daumas — Portfolio  |  style.css
   ═══════════════════════════════════════════════ */

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

:root {
  --cream:    #F5F0E8;
  --cream-dk: #EDE6D6;
  --gold:     #B8975A;
  --gold-lt:  #D4B47A;
  --gold-dim: rgba(184, 151, 90, .18);
  --ink:      #1C1A17;
  --ink-lt:   #3A3630;
  --muted:    #7A7060;
  --white:    #FDFAF5;

  --ease-out: cubic-bezier(.4, 0, .2, 1);
  --section-pad: clamp(100px, 14vw, 160px);
}

/* ── Base ──────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='.4' fill='%23b8975a' fill-opacity='.10'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  font-size: clamp(15px, 1.6vw, 18px); /* base font scale */
}

/* ── Ornament ──────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.orn-line {
  width: clamp(48px, 6vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.orn-line.r {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.orn-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Divider ───────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.div-line {
  width: clamp(60px, 8vw, 100px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt));
}
.div-line.r { background: linear-gradient(90deg, var(--gold-lt), transparent); }

.div-dots { display: flex; gap: 7px; }
.div-dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(184,151,90,.10) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 80% 90%, rgba(184,151,90,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
}

.hero__inner > .ornament {
  opacity: 0;
  animation: fadeUp .9s var(--ease-out) forwards .1s;
}

/* ── Hero layout: photo left, text right ─── */
.hero__content {
  display: grid;
  grid-template-columns: clamp(240px, 28%, 340px) 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
  width: 100%;
  opacity: 0;
  animation: fadeUp .9s var(--ease-out) forwards .3s;
}

/* ── Photo: square, responsive ─── */
.hero__photo-wrap {
  position: relative;
  width: 100%;       /* fills grid column */
  aspect-ratio: 1/1; /* square */
}

.hero__photo-frame {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--gold-dim);
}

.hero__photo-corner {
  position: absolute;
  width: clamp(14px, 2vw, 20px);
  height: clamp(14px, 2vw, 20px);
  border-color: var(--gold);
  border-style: solid;
}
.c-tl { top: -14px;    left: -14px;   border-width: 1px 0 0 1px; }
.c-tr { top: -14px;    right: -14px;  border-width: 1px 1px 0 0; }
.c-bl { bottom: -14px; left: -14px;   border-width: 0 0 1px 1px; }
.c-br { bottom: -14px; right: -14px;  border-width: 0 1px 1px 0; }

.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}

/* ── Identity block ─── */
.hero__identity {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 28px);
}

.hero__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
}

.hero__role {
  font-weight: 200;
  font-size: clamp(.6rem, 1vw, .72rem);
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -10px;
}

/* ── CV Button ─── */
.btn-cv {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 22px) clamp(28px, 4vw, 44px);
  text-decoration: none;
  color: var(--ink);
  align-self: flex-start;
  transition: color .35s;
  margin-top: 4px;
}
.btn-cv::before, .btn-cv::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transition: inset .35s var(--ease-out), border-color .35s;
}
.btn-cv::after {
  inset: 6px;
  border-color: rgba(184,151,90,.25);
}
.btn-cv:hover::before { inset: -4px; }
.btn-cv:hover::after  { inset: 3px; border-color: rgba(184,151,90,.5); }
.btn-cv:hover { color: var(--gold); }

.btn-cv .c {
  position: absolute;
  width: 9px; height: 9px;
  border-style: solid;
  border-color: var(--gold-lt);
  opacity: 0;
  transition: all .35s var(--ease-out);
}
.btn-cv .c.tl { top: -1px;    left: -1px;   border-width: 1px 0 0 1px; }
.btn-cv .c.tr { top: -1px;    right: -1px;  border-width: 1px 1px 0 0; }
.btn-cv .c.bl { bottom: -1px; left: -1px;   border-width: 0 0 1px 1px; }
.btn-cv .c.br { bottom: -1px; right: -1px;  border-width: 0 1px 1px 0; }
.btn-cv:hover .c { opacity: 1; width: 14px; height: 14px; }

.btn-cv__icon {
  width: clamp(18px, 2vw, 22px);
  height: clamp(18px, 2vw, 22px);
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform .35s var(--ease-out);
}
.btn-cv:hover .btn-cv__icon { transform: translateY(3px); }

.btn-cv__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(.75rem, 1.1vw, .9rem);
  letter-spacing: .18em;
  position: relative; z-index: 1;
}
/* ── Scroll hint ─── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp .9s var(--ease-out) forwards .9s;
}
.scroll-hint__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite 1.6s;
}
.scroll-hint__label {
  font-weight: 200;
  font-size: .55rem;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════ */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid rgba(184,151,90,.15);
}

.section__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.section__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1;
}

.section__subtitle {
  font-weight: 200;
  font-size: clamp(.6rem, .85vw, .72rem);
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   PORTFOLIO CARDS
   ═══════════════════════════════════════════════ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.pcard {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  overflow: hidden;
}

.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(184,151,90,.04));
  pointer-events: none;
  z-index: 1;
}

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(28,26,23,.12);
}

.pcard__thumb {
  height: clamp(200px, 28vw, 300px);
  position: relative;
  overflow: hidden;
  background: var(--cream-dk);
}
.pcard__thumb--wc {
  background:
    radial-gradient(ellipse 70% 70% at 30% 40%, rgba(184,151,90,.22) 0%, transparent 65%),
    var(--cream-dk);
}
.pcard__thumb--nc {
  background:
    radial-gradient(ellipse 70% 70% at 70% 60%, rgba(184,151,90,.16) 0%, transparent 65%),
    var(--cream-dk);
}

.pcard__thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease-out);
}
.pcard:hover .pcard__thumb-inner { transform: scale(1.04); }

.pcard__thumb-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: .3em;
  color: var(--gold);
  opacity: .25;
  user-select: none;
}

.pcard__body {
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 40px) clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative; z-index: 2;
}

.pcard__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: .1em;
  line-height: 1.2;
}

.pcard__desc {
  font-size: clamp(.82rem, 1.1vw, .96rem);
  color: var(--muted);
  line-height: 1.7;
}

.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-weight: 200;
  font-size: clamp(.58rem, .75vw, .68rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap .3s;
}
.pcard__cta svg {
  width: 26px;
  transition: transform .3s var(--ease-out);
}
.pcard:hover .pcard__cta { gap: 18px; }
.pcard:hover .pcard__cta svg { transform: translateX(5px); }

.pcard__frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184,151,90,.0);
  pointer-events: none;
  z-index: 2;
  transition: border-color .4s;
}
.pcard:hover .pcard__frame { border-color: rgba(184,151,90,.2); }

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 640px;
  margin: 0 auto;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(20px, 2.8vw, 30px) clamp(24px, 4vw, 40px);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(184,151,90,.2);
  transition: background .3s, border-color .3s, color .3s;
  position: relative;
  overflow: hidden;
}

.contact__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.contact__item:hover::after { transform: scaleX(1); }
.contact__item:hover {
  background: rgba(245, 240, 232, .6);
  border-color: rgba(184,151,90,.45);
  color: var(--gold);
}

.contact__icon {
  width: clamp(32px, 3.5vw, 44px);
  height: clamp(32px, 3.5vw, 44px);
  flex-shrink: 0;
  color: var(--gold);
  opacity: .75;
}
.contact__icon svg { width: 100%; height: 100%; }

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.contact__label {
  font-weight: 200;
  font-size: clamp(.53rem, .7vw, .62rem);
  letter-spacing: .48em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.contact__item:hover .contact__label { color: rgba(184,151,90,.65); }

.contact__value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(.8rem, 1.2vw, 1rem);
  letter-spacing: .08em;
}

.contact__arrow {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s, transform .3s;
}
.contact__item:hover .contact__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid rgba(184,151,90,.12);
}

.footer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.fm-line { width: 48px; height: 1px; background: var(--gold); opacity: .3; }
.fm-text {
  font-weight: 200;
  font-size: clamp(.52rem, .75vw, .62rem);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 860px
   ═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(36px, 5vw, 56px);
    text-align: center;
  }

  .hero__photo-wrap {
    /* Square photo: 60% of viewport width, capped at 320px */
    width: min(60vw, 320px);
  }

  .hero__identity { align-items: center; }
  .hero__bio { text-align: left; max-width: 100%; }
  .btn-cv { align-self: center; }

  .portfolio__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 480px
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__photo-wrap {
    width: min(72vw, 280px);
  }

  .contact__item { padding: 18px 18px; }
  .contact__value { font-size: 1rem; }

  .pcard__body { padding: 20px 20px 24px; }

  .btn-cv__sub { display: none; }
}
