/* Trishia Nunez: trishianunez.com
   Palette from her portfolio site: Infrared red on charcoal, white type, black line-art roses. */
:root {
  color-scheme: dark;
  --bg: #1D1E20;         /* charcoal page ground */
  --bg-deep: #141516;    /* footer */
  --surface: #26272A;    /* cards, frames */
  --infrared: #E5525F;   /* brand red: top bar, bands, tag, buttons, large italics */
  --infrared-hi: #F47C87;/* small accent text on charcoal (AA contrast) */
  --ink: #0E0E0F;        /* text on infrared */
  --heading: #F8F5F4;
  --text: #DAD6D4;
  --muted: #A19D9B;
  --rule: rgba(255, 255, 255, .1);
  --rule-strong: rgba(255, 255, 255, .26);
  --rule-ink: rgba(14, 14, 15, .3);
  --roses: url("assets/roses-dark.webp");
  --roses-light: url("assets/roses-light.webp");

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--roses) 0 0 / 735px auto, var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--infrared-hi); outline-offset: 3px; border-radius: 2px; }
.topbar :focus-visible, .results :focus-visible, .contact :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--infrared); color: var(--ink); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.eyebrow {
  font: 500 .75rem/1.4 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--infrared-hi);
}
.eyebrow--light { color: var(--ink); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
  background: var(--infrared);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .25);
}
.monogram {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 1.5rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--ink);
}
.monogram img { width: 46px; height: auto; }
.monogram span { font-style: italic; color: var(--heading); margin-left: -.5rem; }
.topbar ul { list-style: none; display: flex; gap: clamp(.75rem, 2.4vw, 2rem); margin: 0; padding: 0; align-items: center; }
.topbar a:not(.monogram) {
  font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.topbar li a:hover { color: var(--heading); }
.topbar__cta { border: 1px solid var(--ink); padding: .55rem .9rem; border-radius: 999px; }
.topbar__cta:hover { background: var(--ink); color: var(--heading) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font: 600 .95rem/1.1 var(--body); letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--infrared); color: var(--ink); }
.btn--primary:hover { background: var(--heading); }
.btn--ghost { border-color: var(--rule-strong); color: var(--heading); }
.btn--ghost:hover { border-color: var(--infrared); background: rgba(229, 82, 95, .1); }
/* on Infrared bands */
.btn--light { background: var(--ink); color: var(--heading); }
.btn--light:hover { background: var(--bg); }
.btn--outline-light { border-color: var(--ink); color: var(--ink); }
.btn--outline-light:hover { background: rgba(14, 14, 15, .1); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero__name {
  margin: 1.1rem 0 1.4rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  font-variation-settings: "opsz" 11; /* low optical size = sturdier hairlines */
  line-height: .86; letter-spacing: -.035em; color: var(--heading);
}
.hero__name em { display: block; font-style: italic; font-weight: 400; color: var(--infrared); padding-left: .55em; }
.hero__line { max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.hero__line strong { color: var(--heading); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Signature: hang tag */
.tagwrap { position: relative; justify-self: center; padding-top: 110px; width: min(100%, 360px); }
.tagwrap__string {
  position: absolute; z-index: 2; top: -40px; left: 50%; width: 60px; height: 180px; transform: translateX(-50%); pointer-events: none;
  color: var(--muted);
}
.tag {
  position: relative;
  background: var(--roses-light) 0 0 / 420px auto, var(--infrared); color: var(--ink);
  padding: 3.4rem 1.75rem 1.5rem;
  /* clipped shoulders, like a cut card tag */
  clip-path: polygon(22% 0, 78% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  transform-origin: 50% 0;
  transform: rotate(-3deg);
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5));
  animation: swing 2.4s cubic-bezier(.3, .7, .3, 1) both;
}
.tag::before { /* inner stitched border */
  content: ""; position: absolute; inset: 10px;
  border: 1px dashed rgba(14, 14, 15, .45);
  clip-path: polygon(22% 0, 78% 0, 100% 11.5%, 100% 100%, 0 100%, 0 11.5%);
  pointer-events: none;
}
.tag__eyelet {
  position: absolute; top: 1.15rem; left: 50%; width: 22px; height: 22px; transform: translateX(-50%);
  border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--heading), inset 0 2px 3px rgba(0,0,0,.18);
}
.tag__brand { font: 600 1.35rem/1.1 var(--display); text-align: center; letter-spacing: .01em; }
.tag__cat { font: 500 .7rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-top: .35rem; color: var(--ink); }
.tag__price {
  margin-top: 1.4rem; text-align: center;
  font: 500 clamp(4rem, 9vw, 5.4rem)/.9 var(--display); letter-spacing: -.04em;
  font-variation-settings: "opsz" 11; /* low optical size = sturdier hairlines */
}
.tag__cur, .tag__unit { font-size: .45em; vertical-align: .9em; letter-spacing: 0; margin: 0 .04em; }
.tag__unit { font-style: italic; }
.tag__pricecap { text-align: center; font: 400 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: .55rem; }
.tag__spec { margin: 1.4rem 0 0; border-top: 1px solid var(--rule-ink); }
.tag__spec div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--rule-ink); }
.tag__spec dt { font: 500 .68rem/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tag__spec dd { margin: 0; font-size: .9rem; line-height: 1.35; font-weight: 500; }
.tag__barcode {
  height: 38px; margin-top: 1.2rem;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px,
    var(--ink) 17px 18px, transparent 18px 20px, var(--ink) 20px 23px, transparent 23px 26px);
}
.tag__sku { text-align: center; font: 400 .68rem/1 var(--mono); letter-spacing: .3em; margin-top: .45rem; }

@keyframes swing {
  0%   { transform: rotate(9deg); }
  35%  { transform: rotate(-6deg); }
  60%  { transform: rotate(-1deg); }
  80%  { transform: rotate(-3.6deg); }
  100% { transform: rotate(-3deg); }
}

/* ---------- Results band ---------- */
.results {
  background: var(--roses-light) 0 0 / 735px auto, var(--infrared); color: var(--ink);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.results__title {
  max-width: var(--max); margin: 0 auto 2.5rem;
  font: 500 .78rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.results__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric { padding: 0 1.5rem; border-left: 1px solid var(--rule-ink); display: flex; flex-direction: column; gap: .9rem; }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric__value {
  font: 500 clamp(3rem, 6.4vw, 5.6rem)/.9 var(--display); letter-spacing: -.04em; color: var(--heading);
  font-variation-settings: "opsz" 11; /* low optical size = sturdier hairlines */
}
.metric__of { font-style: italic; color: var(--ink); font-size: .55em; letter-spacing: 0; }
.metric__label { max-width: 22ch; color: var(--ink); font-weight: 500; font-size: .98rem; line-height: 1.45; }

/* ---------- Generic section ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--gutter) 0; }
.section__head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__title {
  font: 500 clamp(2.2rem, 5vw, 3.9rem)/1 var(--display); letter-spacing: -.025em; color: var(--heading);
  font-variation-settings: "opsz" 11; /* low optical size = sturdier hairlines */ max-width: 18ch;
}
.section__title em { font-style: italic; color: var(--infrared); }
.section__lede { max-width: 60ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- Experience ---------- */
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.role {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem;
  padding: 2.2rem 0; border-bottom: 1px solid var(--rule);
}
.role__dates { font: 500 .8rem/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .55rem; }
.role__co { font: 500 clamp(1.8rem, 3.2vw, 2.5rem)/1.05 var(--display); letter-spacing: -.02em; color: var(--heading); }
.role__title { margin-top: .4rem; font-weight: 600; color: var(--infrared-hi); font-size: .98rem; }
.role__points { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; max-width: 70ch; }
.role__points li { position: relative; padding-left: 1.3rem; color: var(--text); }
.role__points li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: var(--infrared-hi); }
.role__points strong { color: var(--heading); }

/* ---------- Design work gallery ---------- */
.gallery {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
}
.piece { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.piece--wide { grid-column: span 2; }
.piece--tall { grid-row: span 2; }
.piece__frame {
  position: relative; flex: 1; min-height: 240px; aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(233,226,220,.07) 50%, transparent 50.4%),
    var(--surface);
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--rule);
}
.piece--wide .piece__frame { aspect-ratio: auto; } /* stretches to the square tile beside it */
.piece--tall .piece__frame { aspect-ratio: auto; }
.piece__frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .6s ease; }
.piece:hover .piece__frame img { transform: scale(1.03); }
.piece__ph {
  background: var(--bg); padding: .7rem 1rem; text-align: center;
  font: 400 .75rem/1.5 var(--mono); letter-spacing: .04em; color: var(--text);
  border: 1px dashed rgba(233, 226, 220, .25);
}
.piece__ph b { font-weight: 500; color: var(--infrared-hi); }
.piece figcaption { font-size: .95rem; color: var(--muted); }
.piece__kind { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--infrared-hi); margin-bottom: .15rem; }
.piece.is-loaded .piece__frame { background: var(--surface); }
.piece--art .piece__frame { background: var(--heading); border-color: transparent; }
.gallery .piece__frame img { object-fit: contain; padding: 4%; }
.piece--art .piece__frame img { padding: 6%; }
.piece--more { text-decoration: none; }
.piece--more .piece__frame { background: var(--surface); border: 1px solid var(--rule-strong); transition: border-color .2s, background-color .2s; }
.piece--more:hover .piece__frame { border-color: var(--infrared); background: rgba(229, 82, 95, .12); }
.more__body { display: grid; gap: .8rem; padding: 1.5rem; text-align: center; max-width: 18rem; }
.more__title { font: 500 clamp(1.4rem, 2.2vw, 1.8rem)/1.15 var(--display); color: var(--heading); }
.more__links { font-size: .95rem; color: var(--muted); }
.work__social { margin-top: 1.5rem; font: 500 .8rem/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.work__social a { color: var(--infrared-hi); }

/* ---------- Awards ---------- */
.awards__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.awards__list li {
  position: relative; padding: 1.6rem 1.25rem 1.4rem; min-height: 11rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  border: 1px solid var(--rule-strong); border-radius: 160px 160px 4px 4px; /* arched, like a boutique window */
  text-align: center;
}
.award__name { font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.1 var(--display); color: var(--heading); padding-top: 1.4rem; }
.award__from { font: 500 .7rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--infrared-hi); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__portrait { position: sticky; top: 6rem; }
.portrait-ph, .about__portrait img {
  aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover;
  border-radius: 999px 999px 4px 4px;
}
.portrait-ph {
  background: var(--surface); color: var(--heading); display: grid; place-items: center; text-align: center;
  font: 400 .8rem/1.6 var(--mono); letter-spacing: .08em;
}
.portrait-ph small { color: var(--infrared-hi); font-size: .72rem; }
.about__copy { display: grid; gap: 1rem; }
.about__lede { font-size: 1.15rem; line-height: 1.6; color: var(--text); max-width: 60ch; margin-top: .5rem; }
.skills { margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.skills div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.skills dt { font: 500 .75rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--infrared-hi); padding-top: .15rem; }
.skills dd { margin: 0; color: var(--text); }

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(4rem, 9vw, 7.5rem);
  background: var(--roses-light) 0 0 / 735px auto, var(--infrared); color: var(--ink);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  text-align: center; display: grid; justify-items: center; gap: 1.1rem;
}
.contact__title {
  font: 500 clamp(2.6rem, 7.5vw, 6.2rem)/.95 var(--display); letter-spacing: -.035em; color: var(--heading);
  font-variation-settings: "opsz" 11; /* low optical size = sturdier hairlines */ max-width: 14ch;
}
.contact__title em { color: var(--ink); }
.contact__sub { color: var(--ink); font-weight: 500; max-width: 46ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.4rem; }

.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem var(--gutter); background: var(--bg-deep); color: var(--muted);
  border-top: 1px solid var(--rule);
  font: 400 .75rem/1.4 var(--mono); letter-spacing: .06em;
}
.footer a { color: var(--infrared-hi); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .awards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .topbar li:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__name { font-size: clamp(3.6rem, 22vw, 7rem); }
  .hero__name em { padding-left: .35em; }
  .tagwrap { width: min(86%, 330px); }
  .tagwrap { padding-top: 80px; }
  .tagwrap__string { height: 140px; top: -30px; }
  .role { grid-template-columns: 1fr; gap: .5rem; }
  .role__dates { padding-top: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece--tall { grid-row: span 1; }
  .piece--tall .piece__frame { aspect-ratio: 4 / 3; }
  .piece--wide .piece__frame { aspect-ratio: 16 / 9; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 320px; }
  .skills div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero__actions .btn, .contact__actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
  .piece--wide { grid-column: span 1; }
  .piece--wide .piece__frame { aspect-ratio: 4 / 3; }
  .metric__value { font-size: 2.9rem; }
  .metric { padding: 0 1rem; }
  .awards__list { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .awards__list li { min-height: 9.5rem; padding: 1.2rem .8rem; }
  .award__name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .topbar, .hero__actions, .contact__actions, .gallery, .skip { display: none; }
  body, .results, .contact, .footer { background: none; color: #000; }
}

[hidden] { display: none !important; }
