/* ==========================================================================
   Orientivo — independent software studio
   Warm editorial theme. Fraunces (display) + Instrument Sans (text).
   ========================================================================== */

:root {
  --paper:      #f4efe6;   /* warm bone background */
  --paper-2:    #fbf8f2;   /* card surface */
  --paper-3:    #ece4d5;   /* deeper band */
  --ink:        #221d15;   /* near-black warm */
  --ink-soft:   #5f5648;   /* muted brown-grey */
  --ink-faint:  #8a7f6d;
  --line:       #ddd2bf;   /* hairline */
  --clay:       #bf5630;   /* terracotta accent */
  --clay-deep:  #9c4020;
  --pine:       #3b5a4a;   /* subtle secondary */
  --espresso:   #1b1610;   /* dark footer band */
  --radius:     16px;
  --maxw:       1120px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { width: 26px; height: 26px; color: var(--clay); display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--clay);
  transition: width .28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-sep { color: var(--ink-faint); }
.lang-btn {
  border: 0;
  background: none;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--ink-faint);
  font: inherit;
  transition: color .2s var(--ease);
}
.lang-btn[aria-pressed="true"] { color: var(--clay); }
.lang-btn:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 13vw, 150px) 0 clamp(56px, 9vw, 104px);
}
.hero-glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--clay) 26%, transparent), transparent 62%);
  opacity: 0.22;
  pointer-events: none;
  filter: blur(8px);
}
.hero-inner { position: relative; max-width: 860px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 22px;
}

.hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  max-width: 14ch;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 38px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { margin-bottom: 48px; }
.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 30px 28px 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--clay) 55%, var(--line));
  box-shadow: 0 18px 40px -24px rgba(60, 40, 20, 0.4);
}
.card-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  margin: 0;
}
.card-desc { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card .arrow { transition: transform .22s var(--ease); }
.card:hover .arrow { transform: translateX(4px); }

.subhead-mini {
  margin: 64px 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card-sm { padding: 24px 24px 22px; }
.card-sm .card-name { font-size: 1.35rem; }

/* ---------- Studio ---------- */
.studio { background: var(--paper-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.prose { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.62; margin: 18px 0 0; max-width: 46ch; }

.values { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.values li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.values li:last-child { border-bottom: 1px solid var(--line); }
.value-k {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--pine);
}
.value-v { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.contact-sub { color: var(--ink-soft); font-size: 1.12rem; margin: 0 0 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--paper); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 28px;
  flex-wrap: wrap;
}
.brand-footer { color: var(--paper); }
.brand-footer .brand-mark { color: var(--clay); }
.footer-note { margin: 0; color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: 15px; }
.footer-copy { margin: 0 0 0 auto; color: color-mix(in srgb, var(--paper) 52%, transparent); font-size: 14px; letter-spacing: 0.02em; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-inner { gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; width: 100%; }
}
