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

:root {
  color-scheme: light;
  --bg: #f5f0e8;
  --ink: #1a1410;
  --rust: #c44b2b;
  --sand: #e8e0d0;
  --muted: #8a7f72;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "Courier Prime", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg: #f5f0e8;
    --ink: #1a1410;
    --rust: #c44b2b;
    --sand: #e8e0d0;
    --muted: #8a7f72;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f0e8 !important;
  color: #1a1410 !important;
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  width: 20px;
  height: 20px;
  position: fixed;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  top: -100px;
  left: -100px;
}
.cursor::before,
.cursor::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  background: #000000;
  border-radius: 1px;
  transition: width 0.25s;
}
.cursor::before {
  transform: translate(-50%, -50%) rotate(0deg);
}
.cursor::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.cursor.expanded::before,
.cursor.expanded::after {
  width: 26px;
}
.cursor.expanded::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.cursor.expanded::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cursor-ring {
  width: 48px;
  height: 48px;
  border: 1.5px solid #000000;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 199;
  transform: translate(-50%, -50%);
  top: -100px;
  left: -100px;
  transition:
    width 0.3s,
    height 0.3s,
    opacity 0.3s;
  opacity: 0.4;
}
.cursor-ring.expanded {
  width: 60px;
  height: 60px;
  opacity: 0.15;
  border: 1.5px dotted #000000;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero {
  min-height: 350px;
  height: 80svh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 40px 18px;
  position: relative;
  overflow: hidden;
  background: #f5f0e8;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: #c44b2b;
  top: -100px;
  right: -100px;
  animation-duration: 20s;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: #d4a853;
  bottom: -80px;
  left: -80px;
  animation-duration: 15s;
  animation-delay: -5s;
}
.blob-3 {
  width: 300px;
  height: 300px;
  background: #8b6b4a;
  top: 40%;
  left: 30%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  100% {
    transform: translate(15px, 35px) scale(1.02);
  }
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a7f72;
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.hero-links {
  display: flex;
  gap: 24px;
}
.hero-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a7f72;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.hero-links a:hover {
  color: #c44b2b;
}

.hero-name {
  position: relative;
  z-index: 2;
  line-height: 1;
}
.hero-name-line {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  color: #1a1410;
  display: block;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.hero-name-line span {
  display: block;
  transform: translateY(110%);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-name-line:nth-child(1) span {
  animation-delay: 0.1s;
}
.hero-name-line:nth-child(2) span {
  animation-delay: 0.22s;
}
@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

.hero-descriptor {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-role {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  color: #8a7f72;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
  line-height: 1.6;
}
.hero-role strong {
  color: #1a1410;
  font-style: normal;
  font-weight: 600;
}
.scroll-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a7f72;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 0.6s ease 1.1s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-hint::before {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: #8a7f72;
  animation: growLine 1s ease 1.3s both;
  transform-origin: top;
}
@keyframes growLine {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.marquee-wrap {
  background: #1a1410;
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #f5f0e8;
  padding: 0 32px;
  white-space: nowrap;
  opacity: 0.7;
}
.marquee-track span.accent {
  color: #c44b2b;
  opacity: 1;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

main {
  padding: 0 40px;
  position: relative;
  z-index: 2;
  background: #f5f0e8;
}

.about-block {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  border-bottom: 1px solid #e8e0d0;
  align-items: start;
}
.block-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c44b2b;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 6px;
}
.about-text p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  color: #1a1410;
}
.about-text p + p {
  margin-top: 20px;
}
.about-text em {
  font-style: italic;
  color: #8a7f72;
}

.accordion-section {
  border-bottom: 1px solid #e8e0d0;
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: none;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
}
.accordion-trigger:hover .trigger-title {
  color: #c44b2b;
}
.trigger-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.trigger-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a7f72;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.trigger-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  color: #1a1410;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.trigger-arrow {
  font-size: 24px;
  color: #8a7f72;
  transform: rotate(0deg);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.accordion-section.open .trigger-arrow {
  transform: rotate(45deg);
  color: #c44b2b;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-inner {
  padding-bottom: 48px;
}

.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px 40px;
  padding: 28px 0;
  border-top: 1px solid #e8e0d0;
  align-items: start;
}
.exp-item:first-child {
  border-top: none;
}
.exp-company {
  font-size: 14px;
  font-weight: 600;
  color: #1a1410;
  margin-bottom: 4px;
}
.exp-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a7f72;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.exp-type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #c44b2b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.exp-role {
  font-size: 14px;
  font-weight: 600;
  color: #1a1410;
  margin-bottom: 10px;
}
.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.exp-bullets li {
  font-size: 13px;
  color: #8a7f72;
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.exp-bullets li::before {
  content: "x";
  position: absolute;
  left: 0;
  color: #c44b2b;
  font-size: 11px;
  font-family: var(--font-mono);
}
.exp-bullets li strong {
  color: #1a1410;
  font-weight: 600;
}
.exp-role-block + .exp-role-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #e8e0d0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.skill-cat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c44b2b;
  margin-bottom: 16px;
}
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skill-list li {
  font-size: 13px;
  color: #8a7f72;
  position: relative;
  padding-left: 14px;
  transition:
    color 0.2s,
    transform 0.2s;
  cursor: default;
}
.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: #e8e0d0;
  transition:
    background 0.2s,
    width 0.2s;
}
.skill-list li:hover {
  color: #1a1410;
  transform: translateX(4px);
}
.skill-list li:hover::before {
  background: #c44b2b;
  width: 10px;
}

.contact-strip {
  padding: 80px 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  color: #1a1410;
  line-height: 1;
  letter-spacing: 0.02em;
}
.contact-headline span {
  color: #c44b2b;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.contact-link {
  font-size: 14px;
  color: #1a1410;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    gap 0.3s,
    color 0.2s;
}
.contact-link:hover {
  gap: 18px;
  color: #c44b2b;
}
.contact-link::after {
  content: "→";
  font-size: 13px;
  color: #c44b2b;
}

footer {
  border-top: 1px solid #e8e0d0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f0e8;
}
.footer-copy,
.footer-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8a7f72;
  letter-spacing: 0.05em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 24px 28px;
  }
  main {
    padding: 0 24px;
  }
  .about-block {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 60px 0;
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-links {
    display: none;
  }
  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-links {
    align-items: flex-start;
  }
  .cursor,
  .cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto;
  }
  .accordion-trigger {
    cursor: pointer;
  }
}
