:root {
  --forest: #0d3228;
  --forest-light: #16483b;
  --cream: #f4ecda;
  --paper: #fffaf2;
  --terracotta: #cf7047;
  --terracotta-light: #df8a64;
  --sand: #e7d9bd;
  --line: rgba(231, 217, 189, 0.18);
  --display: "Italiana", Georgia, serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--cream);
  background: var(--forest);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 87% 8%, rgba(207, 112, 71, 0.18), transparent 29rem),
    linear-gradient(125deg, var(--forest) 0%, #113a2f 55%, #0b2c24 100%);
}
.page-shell::before {
  content: "S";
  position: fixed;
  right: -3vw;
  top: 4vh;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 217, 189, 0.055);
  font: min(68vw, 820px)/1 var(--display);
  pointer-events: none;
}
.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.nav, main, footer {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.nav {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { align-self: stretch; display: flex; align-items: center; }
.brand img { display: block; width: 88px; height: 88px; object-fit: contain; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c9d4cd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--terracotta-light); }
.back-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }

main { padding: 78px 0 72px; }
.intro { max-width: 910px; position: relative; }
.intro-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--terracotta-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.intro-label span { width: 40px; height: 1px; background: currentColor; }
.step {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  color: #8da198;
  font: 13px var(--display);
  letter-spacing: 0.12em;
}
h1 {
  margin: 24px 0 25px;
  font: clamp(58px, 7.2vw, 104px)/0.92 var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 em { color: var(--sand); font-family: Georgia, serif; font-weight: 400; }
.intro-copy {
  max-width: 680px;
  margin: 0;
  color: #c2cfc7;
  font-size: 15px;
  line-height: 1.75;
}

.profiles {
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.profile-card {
  min-height: 265px;
  padding: 32px 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.7s cubic-bezier(.2,.7,.2,1) forwards;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--terracotta);
  transition: height 0.35s ease;
}
.profile-card:hover {
  background: var(--paper);
  color: var(--forest);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.profile-card:hover::before { height: 100%; }
.card-number { position: absolute; right: 30px; top: 27px; color: #779087; font: 26px var(--display); }
.card-kicker {
  color: var(--terracotta-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.profile-card:hover .card-kicker { color: var(--terracotta); }
.profile-card h2 {
  max-width: 470px;
  margin: 29px 34px 32px 0;
  font: clamp(21px, 2.1vw, 29px)/1.25 var(--display);
  font-weight: 400;
}
.card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aebeb5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-card:hover .card-action { color: #53685f; }
.card-action i { color: var(--terracotta-light); font: 19px var(--body); font-style: normal; }
.profile-card-other { grid-column: 1 / -1; min-height: 190px; }
.profile-card-other h2 { font-size: 35px; margin-bottom: 20px; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.privacy-note { margin: 25px 0 0; color: #8fa299; font-size: 10px; line-height: 1.6; }
footer {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #91a49a;
  font-size: 9px;
  letter-spacing: 0.06em;
}
footer div { display: flex; gap: 18px; }
footer a { text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--cream); }

@media (max-width: 760px) {
  .nav, main, footer { width: min(100% - 40px, 620px); }
  .nav { height: 84px; }
  .brand img { width: 74px; height: 74px; }
  main { padding-top: 58px; }
  .step { display: none; }
  .profiles { grid-template-columns: 1fr; margin-top: 48px; }
  .profile-card, .profile-card-other { grid-column: auto; min-height: 235px; padding: 29px 27px 27px; }
  .profile-card-other { min-height: 180px; }
  .profile-card h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .back-link { font-size: 0; gap: 0; }
  .back-link svg { width: 22px; }
  h1 { font-size: clamp(54px, 16vw, 76px); }
  .intro-copy { font-size: 14px; }
  footer { flex-direction: column; justify-content: center; text-align: center; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
