/* ============================================================
   Weblak — Design tokens (inspired by Talaria)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;600;700&display=swap");

:root {
  /* Brand — deep slate + warm accents */
  --slate-50:  #eef2f7;
  --slate-100: #d4dce8;
  --slate-200: #a8b8cc;
  --slate-300: #7a92ad;
  --slate-400: #4f6d8f;
  --slate-500: #2d4f73;
  --slate-600: #1e3a5f;
  --slate-700: #152238;
  --slate-800: #0e1828;
  --slate-900: #080f18;

  --beige-50:  #faf4ea;
  --beige-100: #f2e6d2;
  --beige-200: #e6d1ae;
  --beige-300: #dabf93;
  --beige-400: #d3b488;
  --beige-500: #cdac81;
  --beige-600: #b8945f;

  --green-50:  #f2f6ec;
  --green-200: #cedebd;
  --green-600: #647e45;
  --green-800: #374823;

  --sugar:     #f5ede8;
  --cream:     #f7f1ed;
  --sand-0:    #ffffff;
  --sand-100:  #f3eae2;
  --sand-200:  #e7d9cd;
  --sand-300:  #d5c2b2;
  --sand-600:  #6b594b;
  --sand-800:  #2a2019;
  --ink:       #14100d;

  --surface-page:    var(--sugar);
  --surface-raised:  var(--sand-0);
  --surface-sunken:  var(--sand-100);
  --surface-brand:   var(--slate-600);
  --surface-brand-deep: var(--slate-700);
  --surface-accent:  var(--beige-500);
  --surface-mint:    var(--green-200);

  --text-strong:   var(--ink);
  --text-body:     var(--sand-800);
  --text-muted:    var(--sand-600);
  --text-subtle:   #8e7969;
  --text-inverse:  var(--sugar);
  --text-on-brand: var(--sugar);

  --border-soft:    var(--sand-200);
  --border-default: var(--sand-300);

  --font-display: "Readex Pro", "Geeza Pro", system-ui, sans-serif;
  --font-text:    var(--font-display);
  --font-ui:      var(--font-display);

  --skew: -22deg;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --shadow-xs: 0 1px 2px rgba(14, 24, 40, 0.06);
  --shadow-sm: 0 2px 6px rgba(14, 24, 40, 0.08);
  --shadow-md: 0 6px 18px rgba(14, 24, 40, 0.1);
  --shadow-lg: 0 16px 40px rgba(14, 24, 40, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 65px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-page);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

/* --- Layout helpers --- */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.container--narrow { max-width: 1000px; }
.container--mid { max-width: 1100px; }

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.eyebrow--light { color: var(--beige-300); }
.eyebrow--on-dark { color: var(--beige-400); }

.eyebrow__mark {
  width: 12px;
  height: 16px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s;
  text-decoration: none;
}

.btn--primary {
  background: var(--slate-600);
  color: var(--sugar);
  padding: 14px 28px;
  font-size: 15px;
}

.btn--primary:hover { background: var(--slate-500); }

.btn--secondary {
  background: transparent;
  color: var(--slate-600);
  border: 1.5px solid var(--slate-600);
  padding: 12px 24px;
}

.btn--secondary:hover {
  background: var(--slate-600);
  color: var(--sugar);
}

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(245, 237, 232, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.logo__mark {
  width: 14px;
  height: 20px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-ui);
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.14s;
}

.nav a:hover { color: var(--text-strong); }
.nav a.is-active { color: var(--text-strong); font-weight: 600; }

.tal-link { position: relative; }

.tal-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--slate-600);
  transform: skewX(var(--skew));
  transition: width 0.25s var(--ease-out);
}

[dir="rtl"] .tal-link::after {
  left: auto;
  right: 0;
}

.tal-link:hover::after { width: 60%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  border: 1px solid var(--border-default);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.lang-toggle:hover {
  border-color: var(--slate-600);
  background: var(--sand-0);
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--border-default);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-strong);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 600px;
  max-height: 860px;
  overflow: hidden;
  background: var(--slate-700);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(205, 172, 129, 0.12), transparent),
    linear-gradient(135deg, var(--slate-800) 0%, var(--slate-700) 50%, #1a3050 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--beige-500) 1px, transparent 1px),
    linear-gradient(90deg, var(--beige-500) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: skewY(-6deg) scale(1.2);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 24, 40, 0.85) 0%,
    rgba(14, 24, 40, 0.35) 45%,
    rgba(14, 24, 40, 0.15) 100%
  );
  z-index: 1;
}

.hero-shape {
  position: absolute;
  inset-inline-end: 7%;
  top: 0;
  width: 120px;
  height: 150px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
  z-index: 2;
}

.hero-shape--2 {
  inset-inline-end: 13%;
  top: 40px;
  width: 150px;
  height: 300px;
  background: rgba(245, 237, 232, 0.08);
  border: 1px solid rgba(245, 237, 232, 0.4);
  backdrop-filter: blur(1px);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 3;
  padding-bottom: clamp(48px, 8vw, 84px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--sugar);
  margin: 20px 0 0;
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(8, 15, 24, 0.5);
}

.hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--beige-100);
  max-width: 52ch;
  margin: 24px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* --- Sections --- */
.section {
  padding-block: clamp(64px, 8vw, 96px);
}

.section--tight-top { padding-top: clamp(48px, 6vw, 72px); }

.idea-block {
  max-width: 900px;
}

.idea-block__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 22px 0 0;
}

/* --- Card grid --- */
.card-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
}

.card-panel--reverse .card-panel__visual { order: -1; }

.visual-block {
  position: relative;
  height: 340px;
  background: linear-gradient(145deg, var(--slate-600), var(--slate-800));
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-block--full {
  min-height: 440px;
  height: 100%;
  clip-path: none;
}

.visual-block__inner {
  text-align: center;
  padding: 24px;
}

.visual-block__code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--beige-200);
  opacity: 0.85;
  line-height: 1.8;
  text-align: start;
  direction: ltr;
}

.visual-block__tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  background: var(--beige-500);
  color: var(--slate-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewX(var(--skew));
}

.visual-block__tag span {
  display: inline-block;
  transform: skewX(calc(-1 * var(--skew)));
}

.card-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.18;
  color: var(--text-strong);
  margin: 18px 0 0;
}

.card-panel p {
  font-size: 17px;
  line-height: 1.65;
  margin: 18px 0 0;
}

.card-panel__cta { margin-top: 26px; }

/* --- Featured project --- */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-card__body {
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  color: var(--text-strong);
  margin: 14px 0 0;
}

.featured-card__meta {
  font-size: 15px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--beige-100);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

/* --- Services --- */
.services-section {
  background: var(--slate-700);
  color: var(--beige-100);
}

.services-section .eyebrow { color: var(--beige-400); }

.services-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  color: var(--sugar);
  margin: 16px 0 0;
  max-width: 30ch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: rgba(245, 237, 232, 0.16);
  border: 1px solid rgba(245, 237, 232, 0.16);
}

.service-card {
  background: var(--slate-700);
  padding: 34px 26px;
}

.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.svc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--beige-500);
  transform: skewX(var(--skew));
}

.svc-ico svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
  color: var(--slate-800);
  transform: skewX(calc(-1 * var(--skew)));
}

.service-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: rgba(245, 237, 232, 0.16);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--sugar);
  margin: 0;
}

.service-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--beige-200);
  margin: 10px 0 0;
}

/* --- About blocks --- */
.believe-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.believe-grid__line {
  display: block;
  width: 46px;
  height: 3px;
  background: var(--beige-500);
  transform: skewX(var(--skew));
  margin-top: 18px;
}

.believe-grid__body {
  font-size: 21px;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0;
}

.brand-band {
  background: var(--surface-brand);
  color: var(--text-on-brand);
  text-align: center;
}

.brand-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  color: var(--sugar);
  margin: 18px 0 0;
}

.brand-band p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--beige-100);
  margin: 20px auto 0;
  max-width: 54ch;
}

.standard-block {
  text-align: center;
}

.standard-block__mark {
  display: inline-block;
  width: 16px;
  height: 22px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
  margin-bottom: 22px;
}

.standard-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  color: var(--text-strong);
  margin: 0 auto;
  max-width: 22ch;
}

.standard-block p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 18px auto 0;
  max-width: 40ch;
}

/* --- Work list --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.work-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.work-card__visual {
  height: 200px;
  background: linear-gradient(160deg, var(--slate-600), var(--green-200));
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.work-card__visual--alt {
  background: linear-gradient(160deg, var(--beige-500), var(--slate-700));
}

.work-card__visual--mint {
  background: linear-gradient(160deg, var(--green-600), var(--slate-800));
}

.work-card__body { padding: 24px; }

.work-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-strong);
  margin: 0;
}

.work-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.work-card p {
  font-size: 15px;
  line-height: 1.55;
  margin: 12px 0 0;
}

/* --- Closing CTA --- */
.closing {
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0;
}

.closing p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 22px auto 0;
  max-width: 48ch;
}

.closing__cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 20px 0 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-strong);
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
}

.form-input:focus {
  border-color: var(--slate-600);
  box-shadow: 0 0 0 3px var(--beige-100);
}

textarea.form-input { resize: vertical; min-height: 120px; }

.contact-details {
  padding-top: 8px;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.contact-details li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.contact-details a {
  color: var(--slate-600);
  border-bottom: 1px solid var(--beige-500);
  transition: color 0.14s;
}

.contact-details a:hover { color: var(--slate-500); }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

.form-success.is-visible { display: block; }

.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-strong);
  margin: 0;
}

.form-success p {
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--slate-800);
  color: var(--beige-100);
  padding: 72px clamp(20px, 4vw, 48px) 32px;
  font-family: var(--font-ui);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--sugar);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-blurb {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.6;
  color: var(--beige-200);
  margin-top: 18px;
  max-width: 28ch;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beige-400);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--beige-300);
  cursor: pointer;
  transition: color 0.14s;
}

.footer-col a:hover { color: var(--sugar); }

.footer-bottom {
  max-width: 1320px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 237, 232, 0.12);
  font-size: 13px;
  color: var(--beige-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.soc-row { display: inline-flex; gap: 10px; margin-top: 20px; }

.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 237, 232, 0.32);
  color: var(--beige-100);
  transition: color 0.14s, border-color 0.14s, background 0.14s;
}

.soc:hover {
  color: var(--slate-800);
  background: var(--beige-500);
  border-color: var(--beige-500);
}

.soc svg { width: 18px; height: 18px; }

/* --- Marquee --- */
.marquee-section {
  background: var(--surface-sunken);
  padding: 28px 0;
  overflow: hidden;
}

.tal-marquee {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tal-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  will-change: transform;
}

.tal-mq-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tal-mq-dot {
  width: 11px;
  height: 15px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
  display: inline-block;
  flex: none;
}

/* --- Motion --- */
@media (prefers-reduced-motion: no-preference) {
  .tal-reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    filter: blur(9px);
    transition: opacity 0.72s var(--ease-out), transform 0.82s var(--ease-out), filter 0.72s var(--ease-out);
  }

  .tal-reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .tal-wipe {
    clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%);
    transition: clip-path 1.05s var(--ease-out);
  }

  .tal-wipe.is-in {
    clip-path: polygon(0 0, 125% 0, 100% 100%, -25% 100%);
  }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(34px); filter: blur(11px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }

  @keyframes shape-fade {
    from { opacity: 0; transform: skewX(var(--skew)) translateY(22px); }
    to { opacity: 1; }
  }

  @keyframes drift {
    0%, 100% { transform: skewX(var(--skew)) translateY(0); }
    50% { transform: skewX(var(--skew)) translateY(-12px); }
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .hero-rise { animation: hero-rise 0.9s var(--ease-out) both; }
  .hero-rise-1 { animation-delay: 0.1s; }
  .hero-rise-2 { animation-delay: 0.24s; }
  .hero-rise-3 { animation-delay: 0.4s; }
  .hero-rise-4 { animation-delay: 0.55s; }

  .hero-shape {
    animation: shape-fade 1s var(--ease-out) 0.3s both, drift 10s ease-in-out 1.3s infinite;
  }

  .hero-shape--2 {
    animation: shape-fade 1s var(--ease-out) 0.45s both, drift 13s ease-in-out 1.7s infinite;
  }

  .tal-marquee-track { animation: marquee 35s linear infinite; }
  .tal-marquee:hover .tal-marquee-track { animation-play-state: paused; }

  [dir="rtl"] .tal-marquee-track {
    animation-name: marquee-rtl;
  }

  @keyframes marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .believe-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 237, 232, 0.98);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 20px 20px;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .menu-toggle { display: block; }

  .header-actions .btn--primary { display: none; }

  .card-panel,
  .featured-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-panel--reverse .card-panel__visual { order: 0; }

  .visual-block { height: 260px; }

  .services-grid { grid-template-columns: 1fr; }

  .work-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Page headers (inner pages) --- */
.page-hero {
  padding-block: clamp(72px, 10vw, 96px) clamp(40px, 6vw, 56px);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 20px 0 0;
}

.page-hero__lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 24px 0 0;
  max-width: 62ch;
}

.page-hero__lead--narrow { max-width: 20ch; font-size: clamp(30px, 4.4vw, 52px); font-family: var(--font-display); font-weight: 700; line-height: 1.16; letter-spacing: -0.01em; color: var(--text-strong); }

/* --- About hero visual --- */
.about-hero-visual {
  height: clamp(280px, 40vw, 480px);
  background: linear-gradient(135deg, var(--slate-700), var(--slate-500) 50%, var(--beige-500));
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.about-hero-visual::after {
  content: "";
  position: absolute;
  inset-inline-end: 8%;
  top: 10%;
  width: 100px;
  height: 140px;
  transform: skewX(var(--skew));
  background: rgba(245, 237, 232, 0.15);
  border: 1px solid rgba(245, 237, 232, 0.35);
}

/* --- Project links (Talaria style) --- */
.proj-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: padding 0.16s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.proj-link:last-child { border-bottom: none; }
.proj-link:hover { padding-inline-start: 10px; }

.proj-link__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-strong);
}

.proj-link__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.proj-link-arrow {
  font-size: 18px;
  color: var(--slate-600);
  opacity: 0.55;
  transition: opacity 0.16s var(--ease-out);
}

.proj-link:hover .proj-link-arrow { opacity: 1; }
[dir="rtl"] .proj-link-arrow { display: inline-block; transform: scaleX(-1); }

/* --- Series / category cards --- */
.series-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.series-card__visual {
  height: 220px;
  background: linear-gradient(145deg, var(--slate-700), var(--slate-500));
}

.series-card__visual--commerce { background: linear-gradient(145deg, var(--slate-700), #2a4a6e); }
.series-card__visual--health { background: linear-gradient(145deg, var(--green-600), var(--slate-700)); }
.series-card__visual--ops { background: linear-gradient(145deg, var(--slate-800), var(--beige-600)); }
.series-card__visual--finance { background: linear-gradient(145deg, #3d2e1a, var(--slate-700)); }

.series-card__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: clamp(32px, 4vw, 52px);
}

.series-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.series-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--text-strong);
  margin: 0;
}

.series-card__meaning {
  font-size: 15px;
  color: var(--slate-600);
  letter-spacing: 0.02em;
}

.series-card__desc {
  font-size: 18px;
  line-height: 1.7;
  margin: 24px 0 0;
}

.series-card__aside {
  border-inline-start: 1px solid var(--border-soft);
  padding-inline-start: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.series-card__aside-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.series-card__aside h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--text-strong);
  margin: 12px 0 0;
}

.vertical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vertical-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.vertical-card__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.vertical-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--text-strong);
  margin: 0;
}

/* --- Project detail page --- */
.proj-hero {
  position: relative;
  min-height: 480px;
  background: var(--slate-800);
  display: flex;
  align-items: flex-end;
}

.proj-hero__visual {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-600) 60%, rgba(205, 172, 129, 0.2));
}

.proj-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 15, 24, 0.88), rgba(8, 15, 24, 0.2) 50%, transparent 75%);
}

.proj-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 48px;
}

.proj-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--sugar);
  margin: 12px 0 0;
}

.proj-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  font-size: 16px;
  color: var(--beige-100);
}

.proj-hero__meta .status { color: var(--beige-300); font-weight: 600; }

.tagline-band {
  background: var(--surface-brand);
  color: var(--text-on-brand);
  text-align: center;
  padding: clamp(64px, 8vw, 80px) clamp(20px, 4vw, 48px);
}

.tagline-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.18;
  color: var(--sugar);
  margin: 0 auto;
  max-width: 24ch;
}

.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.proj-gallery__item {
  height: 280px;
  background: linear-gradient(160deg, var(--slate-600), var(--sand-300));
  border-radius: var(--radius-md);
}

.proj-gallery__item:nth-child(2) { background: linear-gradient(160deg, var(--beige-500), var(--slate-700)); }
.proj-gallery__item:nth-child(3) { background: linear-gradient(160deg, var(--green-200), var(--slate-800)); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 32px;
}

.feature-row {
  display: flex;
  gap: 18px;
}

.feature-row__mark {
  flex: none;
  width: 16px;
  height: 22px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
  margin-top: 6px;
}

.feature-row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  color: var(--text-strong);
  margin: 0;
}

.feature-row p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.deliverables-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-body);
}

.list-mark {
  flex: none;
  width: 11px;
  height: 15px;
  transform: skewX(var(--skew));
  background: var(--slate-600);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.metric-card__ico {
  display: inline-flex;
  color: var(--slate-600);
  margin-bottom: 14px;
}

.metric-card__ico svg { width: 22px; height: 22px; stroke-width: 1.6; }

.metric-card__val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--slate-600);
}

.metric-card__lbl {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.proj-cta-band {
  background: var(--slate-700);
  color: var(--beige-100);
  text-align: center;
  padding: clamp(64px, 8vw, 80px) clamp(20px, 4vw, 48px);
}

.proj-cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.2;
  color: var(--sugar);
  margin: 0;
}

.proj-cta-band p {
  font-size: 17px;
  color: var(--beige-200);
  margin: 18px auto 0;
}

.proj-cta-band__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* --- Contact split page --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

.contact-split__brand {
  background: var(--surface-brand);
  color: var(--text-on-brand);
  padding: clamp(48px, 8vw, 88px) clamp(32px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-split__brand h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--sugar);
  margin: 18px 0 0;
  max-width: 16ch;
}

.contact-split__brand p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--beige-100);
  margin: 24px 0 0;
  max-width: 46ch;
}

.contact-split__brand ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  font-size: 16px;
  color: var(--beige-100);
}

.contact-split__brand .soc { border-color: rgba(245, 237, 232, 0.32); color: var(--beige-100); }
.contact-split__brand .soc:hover { color: var(--slate-800); background: var(--beige-500); border-color: var(--beige-500); }

.contact-split__shape {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -60px;
  width: 200px;
  height: 320px;
  transform: skewX(var(--skew));
  background: rgba(245, 237, 232, 0.06);
  border: 1px solid rgba(245, 237, 232, 0.28);
  pointer-events: none;
}

.contact-split__form {
  padding: clamp(48px, 8vw, 88px) clamp(32px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-page);
}

.contact-split__form .contact-form { max-width: 460px; }

.contact-success-mark {
  display: inline-block;
  width: 18px;
  height: 24px;
  transform: skewX(var(--skew));
  background: var(--beige-500);
  margin-bottom: 22px;
}

.contact-success h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--text-strong);
  margin: 0;
}

.contact-success p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 16px 0 0;
  max-width: 42ch;
}

@media (max-width: 1024px) {
  .series-card__body { grid-template-columns: 1fr; }
  .series-card__aside { border-inline-start: none; padding-inline-start: 0; border-top: 1px solid var(--border-soft); padding-top: 32px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .deliverables-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .proj-gallery { grid-template-columns: 1fr; }
  .vertical-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-split { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
}

/* --- Portfolio grid --- */
.portfolio-count {
  font-size: 15px;
  color: var(--text-subtle);
  margin: 28px 0 0;
  letter-spacing: 0.02em;
}

.portfolio-count span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--slate-600);
  margin-inline-end: 6px;
}

.portfolio-section + .portfolio-section {
  margin-top: clamp(56px, 8vw, 80px);
  padding-top: clamp(56px, 8vw, 80px);
  border-top: 1px solid var(--border-soft);
}

.portfolio-section__head {
  margin-bottom: 36px;
  max-width: 72ch;
}

.portfolio-section__title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.portfolio-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  color: var(--text-strong);
  margin: 14px 0 0;
}

.portfolio-section__meaning {
  font-size: 15px;
  color: var(--slate-600);
  letter-spacing: 0.02em;
}

.portfolio-section__desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 18px 0 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--sand-300);
}

.portfolio-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.portfolio-card__accent {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
}

.portfolio-card__accent--slate { background: linear-gradient(180deg, var(--slate-600), var(--slate-400)); }
.portfolio-card__accent--beige { background: linear-gradient(180deg, var(--beige-600), var(--beige-400)); }
.portfolio-card__accent--mint { background: linear-gradient(180deg, var(--green-600), var(--green-200)); }
.portfolio-card__accent--ocean { background: linear-gradient(180deg, #2a4a6e, var(--slate-400)); }
.portfolio-card__accent--forest { background: linear-gradient(180deg, var(--green-800), var(--green-600)); }
.portfolio-card__accent--warm { background: linear-gradient(180deg, #8b5e3c, var(--beige-500)); }

.portfolio-card__url {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--slate-600);
  line-height: 1.25;
  word-break: break-all;
  transition: color 0.14s;
}

.portfolio-card:hover .portfolio-card__url { color: var(--slate-500); }

.portfolio-card__arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--beige-100);
  color: var(--slate-600);
  opacity: 0.7;
  transition: opacity 0.14s, background 0.14s;
}

.portfolio-card__arrow svg { width: 16px; height: 16px; stroke-width: 2; }

.portfolio-card:hover .portfolio-card__arrow {
  opacity: 1;
  background: var(--beige-200);
}

.portfolio-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--beige-50);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.featured-card__url {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.12;
  color: var(--slate-600);
  margin: 14px 0 0;
}

.featured-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.featured-card__visual {
  position: relative;
  min-height: 320px;
  background: var(--slate-800);
  overflow: hidden;
}

.featured-card__visual-link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  text-decoration: none;
}

.featured-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s var(--ease-out);
}

.featured-card__visual-link:hover .featured-card__image {
  transform: scale(1.03);
}

.featured-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14, 24, 40, 0.18), transparent 40%);
}

.portfolio-preview-section {
  background: var(--surface-sunken);
}

.portfolio-preview__head {
  margin-bottom: 40px;
}

.portfolio-preview__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.portfolio-preview__title-row h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  color: var(--text-strong);
  margin: 0;
}

.portfolio-preview__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 16px 0 0;
  max-width: 56ch;
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-preview__title-row { align-items: flex-start; flex-direction: column; }
}
