/*
Theme Name: Oryn AI
Theme URI: https://orynai.uk
Description: Editorial one-page theme for Oryn AI — vision, product and contact.
Author: Oryn Growth Ltd
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: oryn-ai
*/

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

:root {
  --cream: #faf6f0;
  --linen: #f5efe6;
  --terra: #c4561a;
  --ink: #1c1917;
  --mid: #78716c;
  --rule: #e5ddd4;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

.oryn-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 72px;
}

.logo-lockup { display: flex; align-items: center; gap: 16px; }
.logo-text { display: flex; flex-direction: column; gap: 4px; }

.logo-word {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-word em { font-style: italic; color: var(--terra); }

.logo-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
}

.header-right {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--mid);
  text-align: right;
  line-height: 1.8;
}

/* DIVIDER */
.divider {
  width: 48px;
  height: 1px;
  background: var(--terra);
  margin: 64px 0;
}

.divider-full {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin: 64px 0;
}

/* SECTION LABEL */
.kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kicker::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--terra);
}

/* HEADINGS */
.oryn-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.oryn-wrap h1 em { font-style: italic; color: var(--terra); }

.oryn-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.oryn-wrap h2 em { font-style: italic; color: var(--terra); }

.oryn-wrap p {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 16px;
  max-width: 660px;
}

.oryn-wrap p:last-child { margin-bottom: 0; }
.oryn-wrap p strong { color: var(--ink); font-weight: 600; }

.lead {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  max-width: 640px;
  border-left: 2px solid var(--terra);
  padding-left: 20px;
  font-style: italic;
  margin-bottom: 0;
}

.pull {
  background: var(--linen);
  border-left: 3px solid var(--terra);
  padding: 18px 22px;
  margin: 28px 0;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  max-width: 660px;
}

/* SECTION */
.section { margin-bottom: 64px; }

/* PRINCIPLES */
.principles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 24px;
}

.principle {
  background: var(--linen);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}

.principle:last-child { border-bottom: none; }

.principle-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--terra);
}

.principle-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* PROCESS FLOW */
.flow-wrap {
  margin: 40px 0;
  overflow-x: auto;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 700px;
}

.flow-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  padding: 8px 12px;
  background: var(--linen);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.flow-step {
  background: var(--ink);
  color: white;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.flow-step.light {
  background: var(--linen);
  color: var(--ink);
}

.flow-step.terra {
  background: var(--terra);
  color: white;
}

.step-icon {
  font-size: 18px;
  line-height: 1;
}

.step-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.step-desc {
  font-size: 10px;
  opacity: 0.65;
  line-height: 1.4;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--terra);
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
  padding-top: 32px;
}

/* VERTICAL FLOW FOR MOBILE */
.flow-vertical {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 32px 0;
}

.fv-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}

.fv-marker {
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.fv-content {
  background: var(--linen);
  padding: 16px 18px;
}

.fv-layer {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 4px;
}

.fv-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.fv-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
}

/* TABLES */
.oryn-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.oryn-wrap thead tr { background: var(--ink); color: white; }

.oryn-wrap thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oryn-wrap tbody tr { border-bottom: 1px solid var(--rule); }
.oryn-wrap tbody tr:nth-child(even) { background: var(--linen); }

.oryn-wrap tbody td {
  padding: 14px 16px;
  vertical-align: top;
  line-height: 1.65;
  color: #333;
  font-size: 14px;
}

.oryn-wrap tbody td:first-child {
  font-weight: 600;
  color: var(--terra);
  white-space: nowrap;
}

.comparison td:first-child {
  color: var(--mid) !important;
  font-weight: 300 !important;
  white-space: normal !important;
}

/* FEATURE LIST */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: #444;
  line-height: 1.65;
}

.feature-list li::before {
  content: '→';
  color: var(--terra);
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 2px;
}

.feature-list li strong { color: var(--ink); font-weight: 600; }

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: var(--linen);
  border: 1px solid var(--rule);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* TWO COL */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 24px;
}

.col-block { padding: 28px; background: var(--linen); }
.col-block.dark { background: var(--ink); color: white; }

.col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 16px;
}

.col-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.col-list li {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  display: flex;
  gap: 10px;
}

.col-block.dark .col-list li { color: #aaa; }

.col-list li::before {
  content: '→';
  color: var(--terra);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}

/* CONTACT */
.contact-form {
  margin-top: 24px;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}

.contact-form input,
.contact-form textarea {
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--terra);
  outline-offset: -1px;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-submit {
  background: var(--terra);
  color: white;
  border: none;
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}

.contact-submit:hover { background: var(--ink); }

.contact-notice {
  border-left: 3px solid var(--terra);
  background: var(--linen);
  padding: 14px 18px;
  font-size: 14px;
  max-width: 660px;
  margin-bottom: 8px;
}

/* FOOTER */
.footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-left {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.3;
}

.footer-right { text-align: right; font-size: 12px; color: var(--mid); line-height: 1.9; }
.footer-right strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-domain { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--terra); text-transform: uppercase; margin-top: 4px; }
.footer-legal { font-size: 10px; color: var(--mid); margin-top: 4px; }

@media (max-width: 640px) {
  .oryn-wrap { padding: 40px 24px 80px; }
  .header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .flow { display: none; }
  .flow-vertical { display: flex; }
  .principle { grid-template-columns: 1fr; gap: 8px; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 24px; }
  .footer-right { text-align: left; }
}
