:root {
  color-scheme: light;
  --ink: #291d20;
  --muted: #716267;
  --paper: #fbf7ef;
  --paper-deep: #f3eadc;
  --wine: #6f2135;
  --wine-dark: #3d1721;
  --clove: #a84b3f;
  --saffron: #e2ad42;
  --green: #346552;
  --line: rgb(61 23 33 / 14%);
  --white: #fffdf9;
  --shadow: 0 24px 70px rgb(61 23 33 / 12%);
  --shell: min(75rem, calc(100% - 2.5rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 18rem;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans Arabic",
    "Noto Sans",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--wine-dark);
  border-radius: 0.6rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  min-height: 5.5rem;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.38rem;
  color: var(--paper);
  fill: currentcolor;
  background: var(--wine-dark);
  border-radius: 50%;
}

.brand-mark circle {
  color: var(--saffron);
}

.brand-name {
  color: var(--wine-dark);
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}

.brand-name span {
  color: var(--clove);
}

.header-actions,
.site-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 1.5rem;
}

.site-nav {
  gap: 1.7rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--wine);
}

.language-switch {
  min-width: 5.4rem;
  padding: 0.58rem 0.8rem;
  color: var(--wine-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  color: var(--white);
  background: var(--wine-dark);
  border-color: var(--wine-dark);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.hero::before {
  position: absolute;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  content: "";
  background: radial-gradient(circle, rgb(226 173 66 / 18%), transparent 67%);
  border-radius: 50%;
  inset-block-start: -18rem;
  inset-inline-start: -20rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--clove);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  color: var(--wine-dark);
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 6.7rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

[dir="rtl"] h1 {
  max-width: 15ch;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.hero-intro {
  max-width: 39rem;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.22rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-block-start: 2.2rem;
}

.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--wine-dark);
  box-shadow: 0 12px 26px rgb(61 23 33 / 18%);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--wine);
  box-shadow: 0 16px 32px rgb(61 23 33 / 24%);
}

.button-secondary {
  color: var(--wine-dark);
  background: rgb(255 253 249 / 65%);
  border-color: var(--line);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 31rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgb(111 33 53 / 96%), rgb(61 23 33 / 100%)),
    var(--wine-dark);
  border-radius: 48% 48% 42% 42% / 38% 38% 52% 52%;
  box-shadow: var(--shadow);
  isolation: isolate;
  place-items: center;
}

.hero-art::after {
  position: absolute;
  width: 18rem;
  height: 18rem;
  content: "";
  background: rgb(226 173 66 / 8%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 50%;
}

.orbit-one {
  width: 27rem;
  height: 27rem;
}

.orbit-two {
  width: 37rem;
  height: 37rem;
}

.clove-illustration {
  position: relative;
  z-index: 2;
  width: min(65%, 17rem);
  filter: drop-shadow(0 24px 24px rgb(22 8 12 / 28%));
  transform: rotate(-7deg);
}

.clove-shadow {
  fill: rgb(28 9 15 / 28%);
}

.clove-body {
  fill: #e8b956;
}

.clove-center {
  fill: #b85445;
}

.clove-highlight {
  fill: #f5d895;
}

.art-note {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: rgb(255 255 255 / 54%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  inset-block-end: 2rem;
}

.work-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  align-items: start;
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2,
.story-copy h2,
.contact-card h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

[dir="rtl"] .section-heading h2,
[dir="rtl"] .story-copy h2,
[dir="rtl"] .contact-card h2 {
  max-width: 17ch;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  min-height: 31rem;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
}

.product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.product-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.product-number {
  color: var(--clove);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.38rem 0.65rem;
  color: var(--green);
  background: rgb(52 101 82 / 8%);
  border: 1px solid rgb(52 101 82 / 16%);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
}

.status-dot {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgb(52 101 82 / 10%);
}

.product-copy h3 {
  margin: auto 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 850;
  letter-spacing: -0.055em;
}

[dir="rtl"] .product-copy h3 {
  letter-spacing: -0.03em;
}

.product-copy > p {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.product-preview {
  display: grid;
  min-height: 28rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgb(226 173 66 / 30%), transparent 40%),
    var(--wine-dark);
  place-items: center;
}

.preview-window {
  width: min(35rem, 100%);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 0.9rem;
  box-shadow: 0 28px 60px rgb(17 5 9 / 32%);
  transform: rotate(2.5deg);
}

.preview-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.85rem;
  background: #f6efe5;
  border-block-end: 1px solid var(--line);
}

.preview-bar span {
  width: 0.48rem;
  height: 0.48rem;
  background: var(--line);
  border-radius: 50%;
}

.preview-bar span:first-child {
  background: var(--clove);
}

.preview-content {
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
}

.preview-label,
.preview-title,
.preview-row div {
  border-radius: 999px;
}

.preview-label {
  width: 4.3rem;
  height: 0.5rem;
  margin-block-end: 1.4rem;
  background: var(--saffron);
}

.preview-title {
  width: 85%;
  height: 1.25rem;
  margin-block-end: 0.75rem;
  background: var(--wine-dark);
}

.preview-title-short {
  width: 58%;
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-block-start: 3rem;
}

.preview-row div {
  height: 4.6rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}

.approach-section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.principle-card {
  min-height: 19rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
}

.principle-index {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--clove);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  place-items: center;
}

.principle-card h3 {
  margin: 4.5rem 0 1rem;
  font-size: 1.45rem;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.story-section {
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--white);
  background: var(--wine-dark);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 9vw, 9rem);
  align-items: center;
}

.story-symbol {
  color: var(--saffron);
  font-size: clamp(9rem, 23vw, 18rem);
  line-height: 0.8;
  text-align: center;
  text-shadow: 0 20px 50px rgb(0 0 0 / 20%);
}

.story-copy .eyebrow {
  color: var(--saffron);
}

.story-copy h2 {
  color: var(--white);
}

.story-copy > p:last-child {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 1.05rem;
  line-height: 1.9;
}

.contact-section {
  padding-block: clamp(5rem, 11vw, 10rem);
}

.contact-card {
  position: relative;
  padding: clamp(2.5rem, 8vw, 7rem);
  overflow: hidden;
  background: var(--saffron);
  border-radius: 1.6rem;
}

.contact-card::after {
  position: absolute;
  width: 24rem;
  height: 24rem;
  content: "";
  border: 1px solid rgb(61 23 33 / 12%);
  border-radius: 50%;
  inset-block-start: -8rem;
  inset-inline-end: -8rem;
  box-shadow:
    0 0 0 4rem rgb(61 23 33 / 4%),
    0 0 0 8rem rgb(61 23 33 / 3%);
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(24rem, 1.22fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.contact-card .eyebrow {
  color: var(--wine-dark);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 40rem;
  margin: 1.6rem 0 0;
  color: rgb(41 29 32 / 75%);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-email {
  display: inline-block;
  margin-block-start: 2rem;
  color: var(--wine-dark);
  font-size: clamp(1.35rem, 4vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.contact-note {
  margin: 0;
  color: rgb(41 29 32 / 62%);
  font-size: 0.78rem;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: rgb(255 253 249 / 72%);
  border: 1px solid rgb(61 23 33 / 12%);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgb(61 23 33 / 10%);
  backdrop-filter: blur(0.4rem);
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--wine-dark);
  font-size: 0.79rem;
  font-weight: 850;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgb(61 23 33 / 20%);
  border-radius: 0.6rem;
  font: inherit;
  line-height: 1.5;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 0.2rem rgb(111 33 53 / 10%);
  outline: none;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.form-actions .button {
  flex: 0 0 auto;
  font-family: inherit;
  cursor: pointer;
}

.form-actions .button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  margin: 0;
  color: var(--wine-dark);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.6;
}

.form-status[data-state="success"] {
  color: var(--green);
}

.form-status[data-state="error"] {
  color: #8c1d28;
}

.site-footer {
  color: rgb(255 255 255 / 66%);
  background: #241318;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  width: var(--shell);
  min-height: 10rem;
  margin-inline: auto;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-inner > p {
  margin: 0;
  font-size: 0.82rem;
  text-align: center;
}

.footer-inner .copyright {
  text-align: end;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 1.5rem;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgb(226 173 66 / 24%),
      transparent 30rem
    ),
    var(--paper);
  place-items: center;
}

.error-card {
  width: min(36rem, 100%);
  padding: clamp(2rem, 7vw, 5rem);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.error-card .brand {
  justify-content: center;
}

.error-code {
  margin: 3rem 0 0.5rem;
  color: var(--clove);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.error-card h1 {
  max-width: none;
  margin-inline: auto;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}

.error-card > p:not(.error-code) {
  margin: 1.2rem auto 2rem;
  color: var(--muted);
  line-height: 1.8;
}

.error-language-switch {
  display: block;
  margin: 2rem auto 0;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

@media (max-width: 58rem) {
  .site-header {
    align-items: flex-start;
    padding-block: 1.1rem;
  }

  .header-actions {
    gap: 0.8rem;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-art {
    width: min(32rem, 100%);
    min-height: 28rem;
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-copy h3 {
    margin-block-start: 5rem;
  }

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

  .principle-card {
    min-height: auto;
  }

  .principle-card h3 {
    margin-block-start: 3rem;
  }

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

  .story-symbol {
    font-size: 9rem;
    text-align: start;
  }

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

@media (max-width: 40rem) {
  :root {
    --shell: min(100% - 1.5rem, 75rem);
  }

  .site-header {
    min-height: 4.75rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .hero {
    padding-block: 3.5rem 5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-art {
    min-height: 23rem;
  }

  .product-card,
  .contact-card {
    border-radius: 1rem;
  }

  .product-copy h3 {
    margin-block-start: 4rem;
  }

  .product-preview {
    min-height: 20rem;
  }

  .preview-row {
    gap: 0.35rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-block: 2.5rem;
    text-align: center;
  }

  .footer-inner .brand {
    justify-content: center;
  }

  .footer-inner .copyright {
    text-align: center;
  }
}

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