/* ============================================
   FR · idemas — styles
   ============================================ */

:root {
  --bg: #F2EFE6;
  --bg-cream: #EFEBDF;
  --card: #ECEAE0;
  --card-2: #E4E0D2;
  --ink: #1A1F1A;
  --ink-2: #2B2F2A;
  --muted: #6B7568;
  --line: rgba(26, 31, 26, .12);

  --green: #6B8E5A;
  --green-deep: #2E4A2B;
  --green-darker: #1F2E1D;
  --green-light: #C8D5B9;
  --green-mist: #A8BBA0;

  --dark-bg: #1B2A1A;
  --dark-card: #243524;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --max: 1240px;
  --gutter: 28px;

  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px -12px rgba(26,31,26,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea {
  font: inherit; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; outline: 0; width: 100%;
}
input:focus, textarea:focus { border-color: var(--green-deep); }

/* ============================================
   Typography
   ============================================ */
.kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker--light { color: rgba(255,255,255,.6); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .08em; color: rgba(255,255,255,.85);
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; backdrop-filter: blur(8px);
  background: rgba(255,255,255,.08);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--green-mist); border-radius: 50%; box-shadow: 0 0 0 4px rgba(168,187,160,.2); }

.title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
.title em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--green-deep);
}
.title--light { color: #F4F1E8; }
.title--light em { color: var(--green-light); }

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: .05em;
}
.arrow { display: inline-block; transition: transform .2s ease; }
a:hover .arrow, button:hover .arrow { transform: translate(2px, -2px); }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(242, 239, 230, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name {
  font-weight: 500; font-size: 16px; letter-spacing: -.01em;
  color: var(--ink);
}
.brand__name b { font-weight: 700; letter-spacing: .02em; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--ink-2);
  padding: 6px 0; position: relative;
}
.nav__links a:hover { color: var(--green-deep); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #F4F1E8; font-size: 14px;
  transition: background .2s;
}
.nav__cta:hover { background: var(--green-deep); }

@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 48px);
  overflow: hidden;
  color: #F4F1E8;
  background: linear-gradient(135deg, #14200F 0%, #1F2E1D 55%, #2E4A2B 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(16,26,14,.88) 0%,
      rgba(16,26,14,.82) 38%,
      rgba(16,26,14,.62) 64%,
      rgba(16,26,14,.34) 100%),
    linear-gradient(180deg,
      rgba(16,26,14,.58) 0%,
      rgba(16,26,14,.26) 45%,
      rgba(16,26,14,.74) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 6px; }
.hero__media {
  position: relative;
  min-height: 560px;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero__fan {
  position: relative;
  width: 100%;
  min-height: 560px;
  transform: perspective(1400px)
             rotateY(calc(var(--mx, 0) * 9deg))
             rotateX(calc(var(--my, 0) * -6deg));
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
.hero__fan img {
  position: absolute;
  left: 50%; bottom: 46px;
  width: 44%; max-width: 250px;
  margin-left: -22%;
  transform-origin: 50% 200%;
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow:
    0 34px 64px -32px rgba(0,0,0,.8),
    0 8px 20px -10px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .45s cubic-bezier(.22,.9,.3,1),
              box-shadow .45s ease,
              filter .45s ease;
  will-change: transform;
  filter: saturate(.9) brightness(.92);
}
.hero__fan img:nth-child(1) { transform: rotate(-34deg); z-index: 1; }
.hero__fan img:nth-child(2) { transform: rotate(-17deg); z-index: 2; }
.hero__fan img:nth-child(3) { transform: rotate(0deg);   z-index: 3; filter: none; }
.hero__fan img:nth-child(4) { transform: rotate(17deg);  z-index: 2; }
.hero__fan img:nth-child(5) { transform: rotate(34deg);  z-index: 1; }

.hero__fan:hover img:nth-child(1) { transform: translateY(-6px)  rotate(-43deg); }
.hero__fan:hover img:nth-child(2) { transform: translateY(-11px) rotate(-22deg); }
.hero__fan:hover img:nth-child(3) { transform: translateY(-15px) rotate(0deg); }
.hero__fan:hover img:nth-child(4) { transform: translateY(-11px) rotate(22deg); }
.hero__fan:hover img:nth-child(5) { transform: translateY(-6px)  rotate(43deg); }

.hero__fan img:hover {
  z-index: 20 !important;
  transform: translateY(-38px) rotate(0deg) scale(1.09) !important;
  box-shadow:
    0 60px 96px -34px rgba(0,0,0,.9),
    0 10px 26px -12px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(255,255,255,.1);
  filter: none;
}

.display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(56px, 10vw, 132px);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 24px 0 24px;
  color: #F4F1E8;
  text-shadow: 0 2px 32px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.35);
}
.display span { display: block; }
.display--italic {
  font-style: italic;
  font-weight: 300;
  color: var(--green-light);
}
.hero__sub {
  max-width: 52ch;
  font-size: 17px; line-height: 1.6;
  color: rgba(244,241,232,.94);
  margin-bottom: 28px;
  text-shadow: 0 1px 16px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.4);
}
.eyebrow { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--ink); color: #F4F1E8; }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #F4F1E8; border: 1px solid rgba(244,241,232,.35); }
.btn--ghost:hover { border-color: #F4F1E8; }
.btn--light { background: #F4F1E8; color: var(--ink); }
.btn--light:hover { background: var(--green-light); }

@media (max-width: 980px) {
  .hero { min-height: auto; padding: 36px clamp(20px, 4vw, 28px) 32px; }
  .hero__inner { grid-template-columns: 1fr; gap: 4px; }
  .hero__veil {
    background: linear-gradient(180deg,
      rgba(16,26,14,.84) 0%,
      rgba(16,26,14,.74) 50%,
      rgba(16,26,14,.92) 100%);
  }
  .hero__content { text-align: center; align-items: center; }
  .hero__media { order: -1; min-height: 330px; }
  .hero__fan { min-height: 330px; transform: none; }
  .hero__fan img {
    width: 38%; max-width: 168px; margin-left: -19%;
    bottom: 20px;
    transform-origin: 50% 235%;
    box-shadow: 0 22px 40px -24px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.07);
  }
  .hero__fan img:nth-child(1) { transform: rotate(-27deg) !important; }
  .hero__fan img:nth-child(2) { transform: rotate(-13deg) !important; }
  .hero__fan img:nth-child(3) { transform: rotate(0deg) !important; }
  .hero__fan img:nth-child(4) { transform: rotate(13deg) !important; }
  .hero__fan img:nth-child(5) { transform: rotate(27deg) !important; }
  .display { font-size: clamp(44px, 12vw, 72px); }
  .hero__sub { font-size: 15.5px; margin-bottom: 22px; }
}

@media (max-width: 520px) {
  .hero__media { min-height: 290px; }
  .hero__fan { min-height: 290px; }
  .hero__fan img { width: 40%; max-width: 145px; margin-left: -20%; }
  .hero__actions { justify-content: center; width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================
   Generic section
   ============================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 48px);
}
.section__head { margin-bottom: 48px; max-width: 820px; }
.section__head .title { margin-top: 18px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .kicker { display: block; text-align: center; }
.section__head--center .title { text-align: center; }
.section__head--split {
  display: flex; gap: 40px; align-items: end; justify-content: space-between;
  max-width: 100%;
}
.section--dark {
  background: var(--dark-bg);
  color: #E8E4D7;
  max-width: none;
  margin: 0;
  padding-left: 0; padding-right: 0;
}
.section--dark .title { color: #F4F1E8; }
.section--dark .title em { color: var(--green-light); }
.section--dark .section__head { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); margin-left: auto; margin-right: auto; }
.section--dark .cards { padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.section--cream { background: var(--bg-cream); max-width: none; margin: 0; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.section--cream .title em { color: var(--green-deep); }

/* ============================================
   Cards grid
   ============================================ */
.cards { display: grid; gap: 18px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2-wide { grid-template-columns: 1.05fr 1fr; }

@media (max-width: 980px) {
  .cards--3, .cards--2-wide { grid-template-columns: 1fr; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
}

.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 280px;
  box-shadow: var(--shadow);
}
.card--text { justify-content: space-between; }
.card--text h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px; line-height: 1.15; letter-spacing: -.01em;
  color: var(--ink);
}
.card--text p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.card--text-lg h3 { font-size: 30px; }

.card--img { padding: 0; overflow: hidden; }
.card--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card--img:hover img { transform: scale(1.04); }
.card--img-tall { min-height: 360px; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; align-self: flex-start;
}
.link:hover { color: var(--green-deep); }

.section--dark .card { background: var(--dark-card); color: #E8E4D7; }
.section--dark .card--text h3 { color: #F4F1E8; }
.section--dark .card--text p { color: rgba(232,228,215,.72); }
.section--dark .link { color: #E8E4D7; }
.section--dark .kicker { color: rgba(232,228,215,.55); }

.ticks { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: rgba(232,228,215,.8); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--green-light);
  border-bottom: 2px solid var(--green-light);
  transform: rotate(-45deg);
}

/* category cards */
.card--cat { padding: 0; overflow: hidden; background: var(--card-2); }
.card--cat .num {
  position: absolute; top: 18px; left: 22px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #F4F1E8;
  background: rgba(27,42,26,.6); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card--cat { position: relative; }
.card--cat img { width: 100%; height: 220px; object-fit: cover; }
.card__cat-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card__cat-body h3 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.card__cat-body p { color: var(--muted); font-size: 14px; }

/* ============================================
   Image strip
   ============================================ */
.strip { width: 100%; }
.strip img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }

/* ============================================
   CTA
   ============================================ */
.cta {
  position: relative;
  padding: clamp(100px, 14vw, 160px) clamp(20px, 4vw, 48px);
  color: #F4F1E8;
  text-align: center;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,42,26,.5), rgba(27,42,26,.75));
}
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cta__inner .kicker { color: rgba(255,255,255,.7); }

/* ============================================
   Contact
   ============================================ */
.contact { background: var(--bg-cream); max-width: none; margin: 0; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.contact__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; gap: 36px; } }
.contact__intro .title { margin: 16px 0 18px; }
.meta { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.meta div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.meta dt { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.meta dd { color: var(--ink); }
.meta dd a { border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.meta dd a:hover { color: var(--green-deep); border-color: var(--green-deep); }
.foot__top .kicker { line-height: 1.7; }
.meta-en { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.contact__form {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px;
  box-shadow: var(--shadow);
}
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; text-transform: uppercase; }
.contact__form label:nth-child(4),
.contact__form .btn,
.contact__form .form__ok { grid-column: 1 / -1; }
.contact__form .btn { justify-self: start; margin-top: 8px; }
.form__ok { font-size: 13px; color: var(--green-deep); font-family: 'JetBrains Mono', monospace; }
@media (max-width: 600px) { .contact__form { grid-template-columns: 1fr; padding: 24px; } }

/* ============================================
   Footer
   ============================================ */
.foot { background: var(--bg); padding: 40px clamp(20px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.foot__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; }
.foot__wordmark {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 6vw, 60px) 0 clamp(20px, 4vw, 40px);
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(72px, 18vw, 260px);
  line-height: .9; letter-spacing: -.04em;
  color: var(--green-deep);
  opacity: .92;
}
.foot__wordmark .wm-leaf { width: clamp(48px, 9vw, 110px); height: auto; flex-shrink: 0; }
.wm-dot { color: var(--green); padding: 0 .04em; }
