/* ===========================================================
   Oriana Bustamante — Portfolio
   "Cool & Bold" design system  ·  v4
   Cool-clean palette · bold Syne display + Inter sans
   =========================================================== */

:root {
  --bg:        #f6f8fb;   /* cool off-white */
  --bg-2:      #ebeff5;   /* soft cool grey */
  --ink:       #1b2430;   /* deep slate ink */
  --ink-soft:  #5a6675;   /* muted slate */
  --line:      #dde3ec;
  --accent:    #3f6b96;   /* slate blue */
  --accent-dk: #2f5279;
  --accent-sky:#e8eef6;   /* pale wash */
  --max:       1140px;
  --disp: "Syne", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.25,.8,.35,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 30px; }
.narrow { max-width: 740px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--disp); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.script { color: var(--accent); }        /* accent highlight within headings */
p { color: var(--ink-soft); }
p + p { margin-top: 1.1rem; }
.lead { font-size: 1.24rem; color: var(--ink); font-weight: 400; }

.kicker {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: inline-block; margin-bottom: 16px;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,248,251,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: var(--disp); font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.brand .script { font-weight: 800; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); position: relative; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 28px; flex-direction: column; justify-content: center; gap: 7px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 4px; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .25s, transform .2s, box-shadow .25s, color .25s;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(47,82,121,.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.textlink { color: var(--accent); font-weight: 700; border-bottom: 2px solid rgba(63,107,150,.35); transition: border-color .25s; }
.textlink:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 24px; text-transform: uppercase; }
.hero-lead { font-size: 1.2rem; max-width: 44ch; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--accent-sky); border-radius: 6px; z-index: 0; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(27,36,48,.5); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-2); }
.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: start; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: -14px auto auto -14px; width: 55%; height: 55%; border: 2px solid var(--accent); border-radius: 6px; z-index: 0; }
.about-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; box-shadow: 0 26px 54px -32px rgba(27,36,48,.45); }
.about-body p { font-size: 1.08rem; }
.about-body em { color: var(--accent); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 8px 18px; border-radius: 4px; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; transition: .25s; }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: #000; box-shadow: 0 18px 40px -24px rgba(27,36,48,.5); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: .95rem; margin-top: 16px; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Resume ---------- */
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.frame-card { background: #fff; padding: 16px; border-radius: 6px; box-shadow: 0 22px 50px -30px rgba(27,36,48,.4); border: 1px solid var(--line); transition: transform .4s var(--ease); }
.frame-card:hover { transform: translateY(-5px); }
.frame-card img { border-radius: 3px; width: 100%; }
.frame-card .cap { text-align: center; margin: 16px 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.dl-row { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Gallery ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry .tile { break-inside: avoid; margin-bottom: 18px; overflow: hidden; border-radius: 6px; cursor: pointer; background: var(--bg-2); position: relative; }
.masonry .tile img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.masonry .tile::after { content: ""; position: absolute; inset: 0; background: rgba(27,36,48,.14); opacity: 0; transition: opacity .35s; }
.masonry .tile:hover img { transform: scale(1.05); }
.masonry .tile:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,20,28,.95); display: none; align-items: center; justify-content: center; z-index: 200; padding: 28px; opacity: 0; transition: opacity .3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96);} to { opacity: 1; transform: none; } }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2.1rem; cursor: pointer; line-height: 1; opacity: .85; transition: .2s; }
.lightbox .lb-close:hover { opacity: 1; transform: rotate(90deg); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.3rem; cursor: pointer; user-select: none; padding: 12px 18px; opacity: .7; transition: .2s; }
.lightbox .lb-nav:hover { opacity: 1; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.rep-block { margin-bottom: 28px; }
.rep-block h3 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.rep-block p { color: var(--ink); font-size: 1.05rem; }
.rep-block a { color: var(--accent-dk); border-bottom: 1px solid rgba(63,107,150,.35); }
.rep-block a:hover { border-color: var(--accent); }
form.contact-form { display: grid; gap: 16px; background: #fff; padding: 30px; border-radius: 6px; border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,107,150,.14); }
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { text-transform: uppercase; }
.page-hero p { max-width: 56ch; margin: 18px auto 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 84px 0 44px; text-align: center; border-top: 1px solid var(--line); margin-top: 44px; }
.footer-big { font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.9rem); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); margin-bottom: 26px; }
.footer-big .textlink { border-bottom-width: 3px; }
.socials { display: flex; gap: 22px; list-style: none; justify-content: center; margin: 26px 0 22px; flex-wrap: wrap; }
.socials a { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid transparent; transition: .2s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.copyright { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .resume-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { max-width: 400px; }
  .about-photo { max-width: 380px; }
  .video-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .masonry { columns: 2; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 30px 22px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav-toggle { display: flex; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 440px) { .masonry { columns: 1; } .wrap { padding: 0 22px; } }
