/* ==========================================================================
   URAICO: Design tokens
   ========================================================================== */

:root {
  --ivory: #F8F7F3;
  --ivory-deep: #F0EEE6;
  --ink: #14201C;
  --ink-soft: #4B564F;
  --ink-faint: #8A9289;
  --teal: #1F6F5C;
  --teal-light: #3F8F73;
  --teal-pale: #DEE9E2;
  --line: rgba(20, 32, 28, 0.12);
  --line-soft: rgba(20, 32, 28, 0.08);
  --line-on-dark: rgba(248, 247, 243, 0.16);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --section-pad: clamp(72px, 9vw, 148px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: var(--section-pad); }

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.section-lead {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--teal); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.btn-text {
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn-text:hover { border-color: var(--ink); }

.btn-block { width: 100%; margin-top: 8px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 243, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

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

/* ==========================================================================
   Language switcher
   ========================================================================== */

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ivory);
}

.lang-switch-hero {
  display: inline-flex;
  margin-bottom: 28px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  width: 100%;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-viewport {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(64px, 11vw, 120px) 48px;
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.hero-sub-wrap { padding-bottom: clamp(56px, 8vw, 96px); }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 340;
  color: var(--teal);
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-mark {
  position: absolute;
  top: 50%;
  right: clamp(-140px, -4vw, -40px);
  transform: translateY(-50%) rotate(8deg);
  width: clamp(360px, 42vw, 620px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
.hero-mark img { width: 100%; opacity: 0.16; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 5vw, 48px);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
  61% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--ivory);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 18px;
}
.trust-strip-inner p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.trust-strip-inner a {
  font-size: 0.86rem;
  color: var(--teal);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.trust-strip-inner a:hover { border-color: var(--teal); }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--ink);
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--line-on-dark);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 440;
  font-size: 1.15rem;
  color: rgba(248, 247, 243, 0.5);
  white-space: nowrap;
  padding-inline: 28px;
  position: relative;
}
.marquee-track span::after {
  content: "•";
  position: absolute;
  right: -6px;
  color: var(--teal-light);
  opacity: 0.7;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .scroll-cue span { animation: none; }
}

/* ==========================================================================
   Philosophy
   ========================================================================== */

.philosophy {
  background: var(--ink);
  color: var(--ivory);
  padding-block: clamp(80px, 11vw, 140px);
  text-align: center;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-weight: 440;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.28;
  max-width: 18ch;
  margin-inline: auto;
}
.philosophy-quote span { color: var(--teal-light); }
.philosophy-sub {
  margin: 28px auto 0;
  max-width: 52ch;
  color: rgba(248, 247, 243, 0.68);
  font-size: 1.02rem;
}

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.service-card:hover { background: var(--ivory-deep); }
.service-index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ==========================================================================
   How We Work
   ========================================================================== */

.how-we-work { background: var(--ivory-deep); }

.process {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-step {
  position: relative;
  padding-top: 44px;
  padding-right: 24px;
}
.process-number {
  position: absolute;
  top: -8px;
  left: 0;
  background: var(--ivory-deep);
  padding-right: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
}
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ==========================================================================
   Solutions
   ========================================================================== */

.solutions-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.solution-card {
  background: var(--ivory);
  padding: 34px 30px;
  transition: background-color .3s var(--ease);
}
.solution-card:hover { background: var(--teal-pale); }
.solution-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.solution-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-copy p:not(.section-eyebrow) { margin-top: 20px; color: var(--ink-soft); font-size: 1.02rem; max-width: 58ch; }
.about-copy .section-title { margin-top: 0; margin-bottom: 4px; }

.about-audience { margin-top: 36px; }
.about-audience-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-radius: 999px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual img {
  width: 100%;
  max-width: 260px;
  opacity: 0.9;
  transform: rotate(-6deg);
}

/* ==========================================================================
   Selected Work (placeholder)
   ========================================================================== */

.selected-work {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
}
.selected-work .section-eyebrow { color: var(--teal-light); }
.selected-work .section-title { color: var(--ivory); margin-inline: auto; }
.selected-work .section-lead { color: rgba(248, 247, 243, 0.62); margin-inline: auto; }
.selected-work .wrap { position: relative; z-index: 1; }

.selected-work-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.selected-work-bg img { width: min(640px, 66vw); opacity: 0.07; }

.work-card {
  margin: 48px auto 0;
  max-width: 460px;
  padding: 52px 32px;
  background: var(--ivory);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.work-card-label {
  color: var(--ink-faint);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--ivory-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-intro .section-title { margin-bottom: 0; }
.contact-intro p:not(.section-eyebrow) {
  margin-top: 20px;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.02rem;
}
.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .3s var(--ease);
}
.contact-email:hover { border-color: var(--teal); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color .25s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-note {
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--teal);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
  padding-block: 56px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 40px;
}
.site-footer .brand-name { color: var(--ivory); }
.footer-tagline {
  color: rgba(248, 247, 243, 0.55);
  font-size: 0.88rem;
}
.footer-nav { display: flex; gap: 26px; justify-self: end; }
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(248, 247, 243, 0.72);
  transition: color .25s var(--ease);
}
.footer-nav a:hover { color: var(--ivory); }

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.8rem;
  color: rgba(248, 247, 243, 0.5);
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 180px; margin-inline: auto; }
  .about-visual img { max-width: 140px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px clamp(20px, 5vw, 48px) 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero-mark { opacity: 0.35; }
}

@media (max-width: 640px) {
  .process { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-nav { justify-self: start; flex-wrap: wrap; }
  .hero-actions { gap: 20px; }
}
