:root {
  --paper: #f8f2ea;
  --paper-2: #f1e8dc;
  --card: #fffdf9;
  --ink: #2a2420;
  --soft: #74685d;
  --rule: #e3d7c7;
  --accent: #b4532a;
  --accent-2: #e6b89c;
  --night: #241c18;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill:hover { background: var(--accent); color: #fff; }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.kicker--light { color: var(--accent-2); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 242, 234, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.mono { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.mono__badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--paper);
  font: 600 15px var(--serif);
}
.mono__name { font: 600 20px var(--serif); }
.top__nav { display: flex; align-items: center; gap: 26px; font-size: 16px; }
.top__nav a { color: var(--soft); text-decoration: none; }
.top__nav a:hover { color: var(--ink); }
.top__nav .top__cta { padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.top__nav .top__cta:hover { background: var(--accent); color: #fff; }

/* Intro */
.intro { padding: 72px 0 80px; }
.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.intro h1 { margin-top: 18px; font-size: clamp(42px, 5.4vw, 72px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; }
.intro h1 em { font-weight: 400; color: var(--accent); }
.intro__lead { margin-top: 26px; max-width: 54ch; font-size: 19px; color: #4a3f37; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.intro__visual { position: relative; padding: 0 24px 24px 0; }
.arch {
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 18px 18px 0 var(--accent-2);
}
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%; }
.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 36px rgba(42, 36, 32, 0.14);
  font-size: 14px;
  line-height: 1.3;
  color: var(--soft);
}
.badge strong { font: 600 30px var(--serif); color: var(--accent); }
.badge--a { left: -36px; top: 22%; }
.badge--b { right: -12px; bottom: 16%; }

/* Ribbon */
.ribbon { overflow: hidden; background: var(--night); color: var(--paper); padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -8px; }
.ribbon__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ribbon 50s linear infinite; font: 400 26px var(--serif); font-style: italic; white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--accent-2); font-size: 18px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 112px 0; }
.section--soft { background: var(--paper-2); }
.sec-head { display: flex; gap: 28px; align-items: baseline; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.sec-head__no { font: 400 18px var(--serif); font-style: italic; color: var(--accent); }
.sec-head h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.02em; }
.sec-head p { margin-top: 10px; color: var(--soft); }

/* Feature project */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.feature__shots { position: relative; padding: 0 60px 70px 0; }
.shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: #fff; transition: transform 0.6s var(--ease); }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot--main { box-shadow: 0 30px 60px -30px rgba(42, 36, 32, 0.35); }
.shot--float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  box-shadow: 0 24px 50px -16px rgba(42, 36, 32, 0.45);
  border: 4px solid var(--paper);
}
.shot:hover { transform: translateY(-6px); }
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.feature__text h3 { margin-top: 10px; font-size: clamp(32px, 3.4vw, 46px); }
.feature__text > p:not(.label):not(.links) { margin-top: 16px; color: #4a3f37; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); font-size: 14px; }
.links { display: flex; gap: 24px; margin-top: 24px; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; margin-top: 112px; }
.card { display: block; text-decoration: none; color: var(--ink); }
.card img {
  border-radius: 14px;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover img { transform: translateY(-5px) rotate(-0.4deg); box-shadow: 0 26px 44px -24px rgba(42, 36, 32, 0.4); }
.card__label { display: block; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card__title { display: block; margin-top: 4px; font: 600 26px var(--serif); }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card__text { display: block; margin-top: 6px; color: var(--soft); font-size: 17px; }

.nordic { margin-top: 112px; padding: 48px; border-radius: 28px; background: var(--night); color: var(--paper); }
.nordic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.nordic__head h3 { font-size: clamp(26px, 2.8vw, 36px); }
.nordic__head p { color: #c4b6a8; }
.nordic__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.nordic__grid a { display: block; text-decoration: none; color: var(--paper); }
.nordic__grid img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform 0.5s var(--ease); }
.nordic__grid a:hover img { transform: translateY(-4px); }
.nordic__grid span { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 600; }
.nordic__grid em { font-style: normal; font-size: 13px; color: var(--accent-2); }
.nordic__more { margin-top: 28px; color: #c4b6a8; font-size: 16px; }
.nordic__more a { color: var(--paper); }

.others { margin-top: 80px; }
.others h3 { font-size: 26px; }
.others ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 18px; }
.others li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.others li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.others li a:hover { color: var(--accent); }
.others li span { color: var(--soft); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill { padding: 34px 30px; border-radius: 22px; background: var(--card); border: 1px solid var(--rule); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.skill:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -26px rgba(42, 36, 32, 0.35); }
.skill__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper-2); color: var(--accent); font: 600 20px var(--serif); }
.skill h3 { margin-top: 22px; font-size: 26px; }
.skill p { margin-top: 10px; color: var(--soft); font-size: 17px; }

/* Experience */
.exp { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.jobs li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.jobs li:first-child { padding-top: 0; }
.jobs__when { font: 400 17px var(--serif); font-style: italic; color: var(--accent); }
.jobs h3 { font-size: 24px; }
.jobs__where { margin-top: 2px; font-weight: 600; font-size: 16px; color: var(--soft); }
.jobs p:last-child { margin-top: 8px; color: #4a3f37; font-size: 17px; }
.edu { padding: 32px; border-radius: 22px; background: var(--paper-2); }
.edu h3 { font-size: 22px; margin-bottom: 8px; }
.edu div { padding: 16px 0; border-top: 1px solid var(--rule); }
.edu strong { display: block; }
.edu span { color: var(--soft); font-size: 16px; }

/* Contact */
.contact { margin: 0 14px; padding: 112px 0 0; border-radius: 32px; background: var(--night); color: var(--paper); overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: end; }
.contact h2 { margin-top: 16px; font-size: clamp(44px, 5.6vw, 76px); letter-spacing: -0.02em; line-height: 1.02; }
.contact h2 em { font-weight: 400; color: var(--accent-2); }
.contact__lead { margin-top: 24px; max-width: 46ch; color: #c4b6a8; }
.contact__lead a { color: var(--paper); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(248, 242, 234, 0.14); }
.contact__list span { color: #a8998b; font-size: 15px; padding-top: 3px; }
.contact__list a { color: var(--paper); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--accent-2); }
.contact__sign {
  margin-top: 72px;
  font: 600 clamp(64px, 14vw, 200px) / 0.8 var(--serif);
  letter-spacing: -0.03em;
  color: rgba(248, 242, 234, 0.08);
  white-space: nowrap;
  transform: translateY(14%);
}
.contact__sign em { font-weight: 400; color: rgba(230, 184, 156, 0.22); }

.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px 0 40px; font-size: 15px; color: var(--soft); }
.foot a { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .intro__grid, .feature, .exp, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .intro__visual { max-width: 400px; margin-inline: auto; }
  .skills { grid-template-columns: 1fr; }
  .nordic__grid { grid-template-columns: repeat(2, 1fr); }
  .others ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .top__nav a:not(.top__cta) { display: none; }
  .mono__name { font-size: 18px; }
  .intro { padding: 40px 0 64px; }
  .badge--a { left: -8px; }
  .badge--b { right: 0; }
  .section { padding: 80px 0; }
  .sec-head { gap: 16px; }
  .feature__shots { padding: 0 28px 48px 0; }
  .cards { grid-template-columns: 1fr; margin-top: 80px; }
  .nordic { padding: 28px 22px; margin-top: 80px; }
  .others ul { grid-template-columns: 1fr; }
  .jobs li { grid-template-columns: 1fr; gap: 4px; }
  .contact { margin: 0 8px; padding-top: 80px; border-radius: 24px; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
