/* =========================================================
   SARA SHUN — PORTFOLIO STYLES
   Design language: editorial beauty magazine.
   Warm ivory paper, deep wine/berry accent, antique gold hairlines.
   Display serif (Fraunces) for headlines, Inter for everything else.
   ========================================================= */

/* -----------------------------------------
   1. TOKENS
   ----------------------------------------- */
:root{
  /* colour */
  --ivory:        #FAF5F0;   /* page background — warm paper */
  --panel:        #F2E4DC;   /* blush panel background */
  --ink:          #2B1E1C;   /* near-black warm ink — body text */
  --ink-soft:     #6E5A54;   /* muted ink — secondary text */
  --wine:         #7A2B3A;   /* deep berry — primary accent */
  --wine-dark:    #571F2A;
  --gold:         #A9895F;   /* antique gold — hairlines, labels */
  --line:         #E4D2C7;   /* hairline divider */
  --white:        #FFFDFB;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* layout */
  --max-w: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius-sm: 4px;
  --radius-md: 10px;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* -----------------------------------------
   2. RESET / BASE
   ----------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; font-size: 1rem; }

:focus-visible{
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.section-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}

.eyebrow{
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 .9rem;
}
.eyebrow.light{ color: var(--gold); }

.section-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
}
.section-title em{ font-style: italic; font-weight: 400; color: var(--wine); }

.section-lede{
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* -----------------------------------------
   3. REVEAL-ON-SCROLL
   ----------------------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* -----------------------------------------
   4. BUTTONS
   ----------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--wine); color: var(--white); }
.btn-primary:hover{ background: var(--wine-dark); transform: translateY(-2px); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn-block{ width: 100%; }

/* -----------------------------------------
   5. HEADER / NAV
   ----------------------------------------- */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250,245,240,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled{ border-color: var(--line); }

.header-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark{
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.brand-mark.small{ font-size: 1.05rem; }

.main-nav{ display: flex; align-items: center; gap: 2.1rem; }
.main-nav a{
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}
.main-nav a:not(.nav-cta)::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--wine);
  transition: right .3s var(--ease);
}
.main-nav a:not(.nav-cta):hover{ color: var(--ink); }
.main-nav a:not(.nav-cta):hover::after{ right: 0; }

.nav-cta{
  color: var(--white) !important;
  background: var(--wine);
  padding: .6rem 1.2rem;
  border-radius: 999px;
  font-size: .76rem !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .3s var(--ease);
}
.nav-cta:hover{ background: var(--wine-dark); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .4rem;
}
.nav-toggle span{ width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* -----------------------------------------
   6. HERO
   ----------------------------------------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  padding-top: 72px;
  overflow: hidden;
}

.hero-frame{ position: relative; overflow: hidden; }
.hero-photo{ position: absolute; inset: 0; }
.hero-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-photo::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,30,28,0) 40%, rgba(43,30,28,.35) 100%);
}

.photo-placeholder{
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background:
    repeating-linear-gradient(135deg, #EFDFD5 0 2px, #F4E7DE 2px 14px),
    linear-gradient(160deg, #EEDCCF, #E7CBC0);
  color: var(--wine-dark);
  text-align: center;
}
.photo-placeholder span{ font-family: var(--font-display); font-size: 1.3rem; font-style: italic; }
.photo-placeholder small{ font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }

.hero-copy{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 5vw, 4.5rem);
  background: var(--ivory);
}

.hero-name{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 1.1rem;
}
.hero-name em{ font-style: italic; font-weight: 500; color: var(--wine); }

.hero-handle a{
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wine);
  border-bottom: 1px solid var(--wine);
  padding-bottom: 1px;
  transition: opacity .3s var(--ease);
}
.hero-handle a:hover{ opacity: .7; }

.hero-tagline{
  margin-top: .9rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

.hero-actions{
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-cue{
  position: absolute;
  left: clamp(1.5rem, 5vw, 4.5rem);
  bottom: 2rem;
  width: 26px; height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue span{
  width: 3px; height: 8px;
  border-radius: 999px;
  background: var(--wine);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(10px); opacity: 0; }
  100%{ opacity: 0; }
}

@media (max-width: 880px){
  .hero{ grid-template-columns: 1fr; grid-template-rows: 52svh auto; min-height: auto; }
  .hero-frame{ min-height: 52svh; }
  .hero-copy{ padding: 3rem var(--gutter) 4rem; }
  .scroll-cue{ display: none; }
}

/* -----------------------------------------
   7. ABOUT
   ----------------------------------------- */
.about{ background: var(--ivory); }
.about-grid{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-photo{ position: relative; }
.about-photo .photo-placeholder{ position: static; aspect-ratio: 3/4; border-radius: var(--radius-md); }
.about-photo img{ width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-md); }
.about-photo-tag{
  position: absolute;
  left: -1rem; bottom: -1rem;
  background: var(--wine);
  color: var(--white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  padding: .8rem 1.3rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 30px -12px rgba(122,43,58,.5);
}

.about-bio p{
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 0 1rem;
  max-width: 58ch;
}
.about-bio strong{ color: var(--ink); font-weight: 600; }

.about-highlights{
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.about-highlights li span{
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1.05rem;
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--wine-dark);
  background: var(--panel);
}

@media (max-width: 780px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 340px; margin: 0 auto; }
}

/* -----------------------------------------
   8. FEATURED BRANDS — marquee strip
   ----------------------------------------- */
.brand-strip{
  background: var(--ink);
  color: var(--ivory);
  padding: 2.6rem 0;
  overflow: hidden;
}
.brand-strip-label{
  text-align: center;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.marquee{
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover{ animation-play-state: paused; }
.marquee-track{
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding-right: clamp(2.5rem, 6vw, 4.5rem);
  white-space: nowrap;
}
.marquee-track li{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: rgba(250,245,240,.55);
  transition: color .3s var(--ease);
}
.marquee-track li:hover{ color: var(--ivory); }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* -----------------------------------------
   9. COLLABORATIONS GRID
   ----------------------------------------- */
.collabs{ background: var(--ivory); }

.collab-grid{
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
}

.collab-card{
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.collab-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -22px rgba(43,30,28,.28);
}

.collab-tag{
  position: absolute;
  top: .9rem; left: .9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(43,30,28,.72);
  backdrop-filter: blur(4px);
  color: var(--ivory);
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .38rem .7rem;
  border-radius: 999px;
}
.collab-tag .icon{ width: 12px; height: 12px; }

/* media area: either a live embed or a styled thumbnail */
.collab-media{
  position: relative;
  aspect-ratio: 9/13;
  background: var(--panel);
  overflow: hidden;
}
.collab-media.embedded{ aspect-ratio: auto; min-height: 480px; display: flex; align-items: stretch; justify-content: center; background: var(--ink); }
.collab-media.embedded > *{ width: 100%; }
.collab-media.embedded blockquote{ margin: 0 !important; }

.collab-thumb{
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, #EFDFD5 0 2px, #F4E7DE 2px 16px),
    linear-gradient(160deg, #EEDCCF, #E7CBC0);
  transition: transform .5s var(--ease);
}
.collab-card:hover .collab-thumb{ transform: scale(1.04); }

.play-glyph{
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(43,30,28,.4);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.collab-card:hover .play-glyph{ background: var(--wine); transform: scale(1.08); }
.play-glyph svg{ fill: var(--wine); transition: fill .3s var(--ease); margin-left: 3px; }
.collab-card:hover .play-glyph svg{ fill: var(--ivory); }

.collab-body{
  padding: 1.15rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.collab-brand{
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.collab-meta{
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.collab-link{
  margin-top: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--wine);
}
.collab-link svg{ transition: transform .3s var(--ease); }
.collab-card:hover .collab-link svg{ transform: translate(3px,-3px); }

/* -----------------------------------------
   10. STATS
   ----------------------------------------- */
.stats{
  background: var(--wine);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.06), transparent 45%);
  color: var(--ivory);
}
.stats .section-title, .stats .eyebrow{ color: var(--ivory); }
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(250,245,240,.2);
  padding-top: 3rem;
}
.stat{ text-align: left; }
.stat-figure{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ivory);
}
.stat-label{
  display: block;
  margin-top: .6rem;
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(250,245,240,.7);
}
.stats-note{
  margin-top: 2.5rem;
  font-size: .78rem;
  color: rgba(250,245,240,.55);
}
@media (max-width: 780px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
}

/* -----------------------------------------
   11. CONTACT
   ----------------------------------------- */
.contact{ background: var(--ivory); }
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-links{ margin-top: 2.2rem; display: flex; flex-direction: column; gap: .9rem; }
.contact-links a{
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.contact-links a:hover{ border-color: var(--wine); background: var(--panel); transform: translateX(4px); }
.contact-links em{ font-style: normal; color: var(--ink-soft); }
.contact-links .icon{ flex: none; width: 20px; height: 20px; color: var(--wine); }

.work-form{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.form-kicker{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  color: var(--wine);
}
.form-row{ margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label{ font-size: .78rem; letter-spacing: .03em; color: var(--ink-soft); }
.form-row input, .form-row textarea{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  background: var(--ivory);
  color: var(--ink);
  resize: vertical;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-row input:focus, .form-row textarea:focus{
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(122,43,58,.12);
  outline: none;
}
.form-status{ min-height: 1.2em; margin: .9rem 0 0; font-size: .85rem; color: var(--wine); }

@media (max-width: 780px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* -----------------------------------------
   12. ICONS (simple inline glyphs — not platform trademarks)
   ----------------------------------------- */
.icon{ display: inline-block; width: 14px; height: 14px; }
.icon-instagram{ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.1' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.1' fill='black'/%3E%3C/svg%3E") center/contain no-repeat; background: currentColor; }
.icon-tiktok{ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3v10.6a2.6 2.6 0 1 1-2-2.53V9a4.6 4.6 0 1 0 4 4.56V9.8A6.4 6.4 0 0 0 20 11V9a4.4 4.4 0 0 1-3-1.2A4.4 4.4 0 0 1 15.8 3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 3v10.6a2.6 2.6 0 1 1-2-2.53V9a4.6 4.6 0 1 0 4 4.56V9.8A6.4 6.4 0 0 0 20 11V9a4.4 4.4 0 0 1-3-1.2A4.4 4.4 0 0 1 15.8 3z'/%3E%3C/svg%3E") center/contain no-repeat; background: currentColor; }
.icon-mail{ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 6.5l8 6.5 8-6.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 6.5l8 6.5 8-6.5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; background: currentColor; }
.contact-links .icon{ width: 20px; height: 20px; }

/* -----------------------------------------
   13. FOOTER
   ----------------------------------------- */
.site-footer{ background: var(--ink); color: rgba(250,245,240,.6); }
.footer-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.2rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner .brand-mark{ color: var(--ivory); }
.footer-meta{ font-size: .78rem; letter-spacing: .02em; }

/* -----------------------------------------
   14. RESPONSIVE NAV (mobile)
   ----------------------------------------- */
@media (max-width: 780px){
  .nav-toggle{ display: flex; }
  .main-nav{
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .main-nav.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a{ width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child{ border-bottom: none; }
  .nav-cta{ margin-top: .6rem; text-align: center; }
}
