/* ============================================================
   Studio Hugo - hugo.studio
   Warm, calm dark theme. Shared across EN / DE / HR.
   ============================================================ */

:root {
  --bg:        #0F1216;
  --bg-2:      #161A20;
  --panel:     #1A1F27;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.13);
  --text:      #ECEDEF;
  --muted:     #9BA3AD;
  --muted-2:   #69727D;
  --accent:    #6BD6BB;
  --accent-2:  #84B4F0;
  --accent-soft: rgba(107, 214, 187, 0.13);
  --maxw:      1060px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* soft warm glow from the top, no hard grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 50% at 50% -8%, rgba(107, 214, 187, 0.06), transparent 70%);
  z-index: 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(15, 18, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-mark { width: 24px; height: 24px; flex: none; display: block; }
.logo-mark .lm-edges line { stroke: var(--accent); stroke-width: 1.4; opacity: 0.55; }
.logo-mark .lm-nodes circle { fill: var(--accent); opacity: 0.85; }
.logo-mark .lm-hub { fill: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.lang {
  font-size: 13px;
  letter-spacing: 0.01em;
  display: inline-flex;
  gap: 3px;
  color: var(--muted);
}
.lang a { text-decoration: none; padding: 2px 5px; border-radius: 4px; }
.lang a[aria-current="true"] { color: var(--accent); }
.lang a:not([aria-current="true"]):hover { color: var(--text); }
.lang span { color: var(--muted-2); }
.btn-contact {
  font-size: 14px;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-contact:hover { opacity: 0.92; transform: translateY(-1px); }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
}
.eyebrow .num { color: var(--muted-2); font-weight: 500; }
.hero-kicker { margin-bottom: 18px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  font-weight: 700;
}
.hero h1 .hl { color: var(--accent); }
.hero .lede {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 32px;
  line-height: 1.58;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  font-size: 15px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* hero diagram - smaller, lower, calm */
.diagram-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  align-self: center;
}
/* radial grid that spreads out behind the graph and fades to the edges */
.diagram-wrap::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at center, #000 8%, rgba(0,0,0,0.45) 42%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 8%, rgba(0,0,0,0.45) 42%, transparent 72%);
}
.diagram { width: 100%; height: auto; display: block; position: relative; z-index: 1; opacity: 0.96; }
.diagram .edge { stroke: var(--line-2); stroke-width: 1.1; fill: none; }
.diagram .flow {
  stroke: var(--accent);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 4 14;
  stroke-linecap: round;
  opacity: 0.7;
  animation: flow 5s linear infinite;
}
.diagram .flow.b { stroke: var(--accent-2); animation-duration: 6.5s; opacity: 0.55; }
.diagram .node-c { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1; }
.diagram .node-hub { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; filter: drop-shadow(0 0 7px rgba(107, 214, 187, 0.35)); }
.diagram .node-label { fill: var(--muted); font-family: var(--sans); font-size: 12px; }
.diagram .hub-label { fill: var(--accent); font-family: var(--sans); font-size: 12px; font-weight: 600; }
.diagram .ping { fill: var(--accent); }
@keyframes flow { to { stroke-dashoffset: -36; } }

/* ---------- sections ---------- */
section { padding: 64px 0; position: relative; }
.section-line { border-top: 1px solid var(--line); }
.section-head { max-width: 58ch; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 14px;
  font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- what we do (cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ico {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.cards-more {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.cards-more strong { color: var(--text); font-weight: 600; }

/* ---------- selected work ---------- */
.work-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.work-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.work-item:hover { background: rgba(255,255,255,0.018); }
.work-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  padding-top: 3px;
}
.work-body h3 { margin: 0 0 8px; font-size: 1.16rem; letter-spacing: -0.01em; }
.work-body p { margin: 0 0 12px; color: var(--muted); font-size: 0.99rem; }
.work-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ---------- the studio ---------- */
.howiwork .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.founder { margin-bottom: 24px; }
.founder-photo {
  width: 120px; height: 148px;
  border-radius: 14px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--line-2);
  display: block;
}
.howiwork blockquote {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.52;
  letter-spacing: -0.01em;
}
.howiwork blockquote .hl { color: var(--accent); }
.signoff {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.industries { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.industries .industries-label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-2);
  margin: 0 0 10px;
}
.industries .industries-text { margin: 0 0 14px; color: var(--muted); font-size: 1rem; }
.industries .industries-text strong { color: var(--text); font-weight: 600; }

.principles { display: grid; gap: 18px; }
.principle { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.principle .k { color: var(--accent); font-size: 14px; font-weight: 600; padding-top: 2px; }
.principle h4 { margin: 0 0 4px; font-size: 1.02rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- stack ---------- */
.stack-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-grid .chip { font-size: 13.5px; padding: 7px 14px; color: var(--text); }
.stack-grid .chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- booking (Cal.com) ---------- */
.booking .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.cal-shell {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-height: 560px;
  overflow: hidden;
}
#cal-booking { width: 100%; min-height: 540px; }
.cal-frame { width: 100%; height: 660px; border: 0; background: transparent; display: block; border-radius: 10px; }
.cal-fallback {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 40px 16px;
}
.cal-fallback a { color: var(--accent); }
.cal-alt { text-align: center; margin: 18px 0 0; color: var(--muted-2); font-size: 14px; }
.cal-alt a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.cal-alt a:hover { border-color: var(--accent); }

/* ---------- contact ---------- */
.contact { text-align: center; padding: 88px 0; }
.contact h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.contact p { color: var(--muted); margin: 0 0 28px; font-size: 1.08rem; }
.contact .mail {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 3px;
}
.contact .mail:hover { border-color: var(--accent); }
.contact-form {
  max-width: 520px;
  margin: 4px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { justify-content: center; cursor: pointer; border: none; width: 100%; }
.form-status { margin: 2px 0 0; font-size: 14px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff9a8b; }
.contact-or { margin: 18px 0 0; color: var(--muted-2); font-size: 14px; }
.contact-or a { color: var(--accent); text-decoration: none; }
.contact-or a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
  color: var(--muted-2);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
}
.site-footer .legal { max-width: 56ch; line-height: 1.7; }
.site-footer .legal strong { color: var(--muted); font-weight: 600; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-links svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero .lede { max-width: none; }
  .diagram-wrap { max-width: 360px; margin: 0 auto; align-self: center; }
  .cards { grid-template-columns: 1fr; }
  .howiwork .wrap { grid-template-columns: 1fr; gap: 34px; }
  .work-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-meta { align-items: flex-start; }
  .btn-contact { display: none; }
}
@media (max-width: 520px) {
  section { padding: 52px 0; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diagram .flow { animation: none; }
  .diagram .ping { display: none; }
  * { transition: none !important; }
}
