:root {
  --bg: #f3e8d7;
  --bg-soft: #f8efdf;
  --paper: #fff8ef;
  --ink: #1f140f;
  --ink-soft: #5f4e45;
  --accent: #cb5f36;
  --accent-dark: #9f3d18;
  --line: #ddc8ad;
  --shadow: 0 20px 50px rgba(84, 50, 25, 0.16);
  --radius-xl: 28px;
  --radius-md: 16px;
  --shell: min(1140px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, #fce7cb 0, transparent 28%),
    radial-gradient(circle at 88% 8%, #f7d8b8 0, transparent 30%),
    radial-gradient(circle at 85% 85%, #ffe6cb 0, transparent 25%), var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(37, 16, 6, 0.05) 0.45px,
    transparent 0.45px
  );
  background-size: 4px 4px;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}

.preloader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, #f9d4a7 0, transparent 30%),
    radial-gradient(circle at 78% 14%, #efb07a 0, transparent 36%), #ead3b8;
  display: grid;
  place-items: center;
  z-index: 999;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-inner p {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.08em;
  color: #5f2f1b;
}

.preloader-inner span {
  display: block;
  width: min(220px, 46vw);
  height: 4px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, #d06235 0%, #ffbd86 100%);
  border-radius: 999px;
  transform-origin: left;
  animation: loadBar 1s ease-in-out infinite;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 1vw, 1.4rem);
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.4rem);
  margin-top: 0.4rem;
}

h1 span {
  color: var(--accent-dark);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(8px);
  background: rgba(243, 232, 215, 0.72);
  border-bottom: 1px solid rgba(175, 139, 111, 0.24);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.chip-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.8);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.28rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 20px rgba(32, 20, 14, 0.2);
}

.btn-light {
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, #f6e4cb, #edd2af);
  border: 1px solid rgba(174, 131, 100, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  min-height: 490px;
  overflow: hidden;
  isolation: isolate;
}

.sticker {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  color: #4d2512;
}

.sticker-star {
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.9rem;
  background: #ffe8cb;
  border: 1px solid #daae83;
  border-radius: 999px;
  transform: rotate(-12deg);
  box-shadow: 0 9px 16px rgba(70, 34, 16, 0.12);
}

.sticker-round {
  top: 1.2rem;
  right: 1rem;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fed6b3;
  border: 2px dashed #bd7343;
  font-size: 1.1rem;
}

.portrait {
  width: min(88%, 430px);
  margin: 2.1rem auto 0;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.04);
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.8;
}

.blob-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, #f8b07e, #e3723f);
  top: -40px;
  right: -20px;
  animation: floatOne 6s ease-in-out infinite;
}

.blob-2 {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle at 20% 30%, #ffe6b8, #f7c97f);
  left: -40px;
  bottom: -30px;
  animation: floatTwo 7s ease-in-out infinite;
}

.floating-tag {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.48rem 0.94rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 83, 48, 0.35);
  background: rgba(255, 248, 239, 0.9);
  backdrop-filter: blur(6px);
  font-weight: 700;
  font-size: 0.9rem;
}

.ticker {
  border-block: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.66);
  overflow: hidden;
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.9rem 1.2rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: #6d4836;
  letter-spacing: 0.06em;
  animation: marquee 18s linear infinite;
}

.ticker-track span {
  position: relative;
  padding-right: 2rem;
}

.ticker-track span::after {
  content: "+";
  position: absolute;
  right: 0.4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p:last-child {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 56ch;
}

.section-head {
  margin-bottom: 2rem;
}

.section-sticker {
  margin-bottom: 1rem;
}

.section-sticker span {
  display: inline-block;
  padding: 0.24rem 0.8rem;
  border-radius: 999px;
  background: #fee2c8;
  border: 1px solid #d29d73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
  color: #77452a;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  overflow: hidden;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -25%;
  width: 75%;
  height: 230%;
  background: linear-gradient(
    135deg,
    rgba(255, 224, 187, 0) 0%,
    rgba(255, 206, 158, 0.42) 48%,
    rgba(255, 221, 190, 0) 100%
  );
  transform: rotate(14deg);
  transition: top 0.5s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-7px) rotate(-0.35deg);
  box-shadow: var(--shadow);
  border-color: #cf9c74;
}

.project-card:hover::before {
  top: -45%;
}

.project-type {
  font-size: 0.84rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 0.4rem;
  font-size: 2rem;
}

.project-card p {
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

.text-link {
  margin-top: 1rem;
  display: inline-block;
  font-weight: 700;
  color: #673c26;
  position: relative;
  transition: transform 0.2s ease;
}

.text-link::after {
  content: " ->";
}

.project-card:hover .text-link {
  transform: translateX(3px);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.skill-pills span {
  background: #fff6ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: 0.93rem;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-lead {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  max-width: 45ch;
}

.contact-links {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
  color: #553c30;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d6baa1;
  border-radius: 12px;
  background: #fffdfa;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid #d78653;
  outline-offset: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
  color: #6a4f3f;
  font-size: 0.92rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .hero-copy {
  animation: introRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-ready .hero-card {
  animation: introScale 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, 10px);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -7px);
  }
}

@keyframes loadBar {
  0% {
    transform: scaleX(0.15);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.15);
    opacity: 0.7;
  }
}

@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 930px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-card {
    min-height: 430px;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .sticker-round {
    width: 58px;
    height: 58px;
    font-size: 0.95rem;
  }

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

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 4vw;
    width: min(240px, 90vw);
    background: rgba(255, 248, 239, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    display: grid;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .footer-shell {
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .preloader {
    display: none;
  }
}
