/* calia — portfolio
   Design: Figma "Random Designs" / December '26
   Type: self-hosted Google Sans Flex (variable: wdth, wght) */

@font-face {
  font-family: "Google Sans Flex";
  src: url("../fonts/google-sans-flex-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffb5d9;
  --pink: #df7ead;
  --plum: #973062;
  --plum-80: rgba(151, 48, 98, 0.8);
  --pressed: #bc276f;
  --cream: #ffe6f2;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);

  --card-gap: min(2.78vw, 4.94vh);
  --card-w: min(28.4vw, 50.5vh);
  --card-h: calc(var(--card-w) * 230 / 409);
  --card-radius: 32px;
  --row-gap: min(2.78vw, 4.94vh);

  --btn-h: 80px;
  --btn-grow: 104px;
  --btn-shrink: 72px;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--plum);
  font-family: "Google Sans Flex", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-variation-settings: "wdth" 75, "wght" 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--pink);
  color: var(--cream);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- viewport / sections ---------- */

.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.sections {
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.sections.is-init { transition: none; }

.section {
  position: relative;
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

/* ---------- shared type ---------- */

.section-title {
  margin: 0;
  color: var(--pink);
  font-size: min(100px, 12.35vh);
  font-weight: 400;
  font-variation-settings: "wdth" 25, "wght" 456;
  line-height: 0.72;
  letter-spacing: -0.012em;
  text-align: center;
}

.section-sub {
  margin: 0;
  color: var(--plum);
  font-size: min(30px, 3.7vh);
  font-weight: 400;
  font-variation-settings: "wdth" 75, "wght" 400;
  line-height: 1.252;
  text-align: center;
}

/* ---------- scroll cue ---------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  color: var(--pink);
  opacity: 0.8;
  font-size: 15px;
  line-height: 1;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.scroll-cue:hover { opacity: 1; }

.scroll-cue .chev {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}

.scroll-cue span {
  display: block;
  transform: translateY(1px);
  white-space: nowrap;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue .chev { animation: cue-bob 1.8s ease-in-out infinite; }
  .scroll-cue .chev:last-child { animation-delay: 0.18s; }
}

/* ---------- hero ---------- */

.hero {
  align-items: center;
  justify-content: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(3.4vh);
}

.logo-wrap {
  position: relative;
  width: min(322px, 55.7vw);
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.hey {
  position: absolute;
  top: -6%;
  left: -26.85%;
  z-index: 2;
  width: 44.4%;
  height: auto;
  pointer-events: none;
}

.hero-sub {
  margin: 37px 0 0;
  color: var(--plum-80);
  font-size: min(30px, 3.7vh);
  font-variation-settings: "wdth" 75, "wght" 400;
  line-height: 1.252;
  text-align: center;
}

/* ---------- work ---------- */

.work {
  flex-direction: column;
}

.work-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: auto 0;
}

.work-head { width: 100%; }

.work-sub { margin-top: min(40px, 4.94vh); }

.work-rows-wrap {
  position: relative;
  width: 100%;
  margin-top: min(24px, 2.96vh);
}

.work-rows {
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
  width: 100%;
  overflow: hidden;
}

.work-row {
  position: relative;
  width: 100%;
  height: var(--card-h);
  overflow: hidden;
  touch-action: pan-y;
}

.work-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.work-set {
  display: flex;
  flex: 0 0 auto;
  gap: var(--card-gap);
  padding-right: var(--card-gap);
}

.work-card {
  flex: 0 0 auto;
  width: var(--card-w);
  height: var(--card-h);
  margin: 0;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: rgba(151, 48, 98, 0.08);
}

.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ---------- contact ---------- */

.contact {
  align-items: center;
  justify-content: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-sub {
  max-width: min(686px, calc(100vw - 32px));
  margin-top: min(40px, 4.94vh);
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: min(500px, calc(100vw - 32px));
  margin-top: min(24px, 2.96vh);
}

.contact-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--btn-h);
  padding: 0 min(26px, 5.7vw);
  border-radius: 10px;
  background: var(--plum);
  color: var(--cream);
  text-align: left;
  transition: height 0.3s var(--ease), background-color 0.3s var(--ease),
    border-radius 0.3s var(--ease);
}

.contact-button:first-child { border-radius: 25px 25px 10px 10px; }
.contact-button:last-child { border-radius: 10px 10px 25px 25px; }

.contact-button:focus-visible {
  background: var(--pressed);
}

/* Hover tint only on devices with a real pointer: touch browsers keep :hover
   stuck after a tap, which would leave the fill changed. */
@media (hover: hover) and (pointer: fine) {
  .contact-button:hover {
    background: var(--pressed);
  }
}

.contact-button.is-shrunk {
  height: var(--btn-shrink);
}

.contact-button.is-pressed {
  height: var(--btn-grow);
  border-radius: 118px;
  background: var(--pressed);
}

.icon {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.icon svg { display: block; }

.contact-button[data-copy] .icon svg { width: 28px; height: 21px; }
.contact-button[href*="x.com"] .icon svg { width: 28px; height: 23px; }
.contact-button[href^="mailto"] .icon svg { width: 23px; height: 19px; }

.btn-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin-left: 13px;
}

.btn-main {
  max-width: 100%;
  overflow: hidden;
  color: var(--cream);
  font-size: 26px;
  font-variation-settings: "wdth" 75, "wght" 400;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sub {
  margin-top: 3px;
  color: var(--cream);
  font-size: 15px;
  font-variation-settings: "wdth" 75, "wght" 400;
  line-height: 0.85;
  opacity: 0.5;
  white-space: nowrap;
}

.badge {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 33px;
  margin-left: 13px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--plum);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.btn-arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 13px;
}

.btn-arrow svg {
  display: block;
  width: 16px;
  height: 15px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--cream);
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.24s ease, transform 0.24s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  :root {
    --btn-h: 70px;
    --btn-grow: 85px;
    --btn-shrink: 65px;
  }

  .hero-copy { transform: translateY(1.8vh); }

  .logo-wrap { width: min(55.7vw, 300px); }

  .hero-sub {
    margin-top: 24px;
    font-size: min(22px, 2.52vh);
  }

  .section-title { font-size: min(80px, 9.15vh); }

  .section-sub { font-size: min(22px, 2.52vh); }

  .work {
    --card-w: min(69.65vw, 32vh, 280px);
    --card-h: calc(var(--card-w) * 158 / 280);
    --card-gap: min(16px, 1.83vh);
    --card-radius: 26px;
    --row-gap: min(16px, 1.83vh);
  }

  .work-sub { margin-top: min(32px, 3.66vh); }

  .work-rows-wrap { margin-top: min(21px, 2.4vh); }

  .contact-sub { margin-top: min(28px, 3.2vh); }

  .contact-buttons { margin-top: min(26px, 2.97vh); }

  .contact-button { padding: 0 min(23px, 5.7vw); }

  .icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .contact-button[data-copy] .icon svg { width: 24px; height: 18px; }
  .contact-button[href*="x.com"] .icon svg { width: 24px; height: 19px; }
  .contact-button[href^="mailto"] .icon svg { width: 20px; height: 16px; }

  .btn-main { font-size: clamp(18px, 5.47vw, 22px); }

  .btn-sub { font-size: clamp(12px, 3.48vw, 14px); }

  .badge {
    height: 30px;
    padding: 0 12px;
    font-size: clamp(12px, 3.48vw, 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sections { transition: none; }
  .scroll-cue .chev { animation: none; }
  .contact-button { transition: none; }
}
