/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #f7f3ec;
  --bg-alt: #f0e9dd;
  --panel: #ffffff;
  --ink: #211d18;
  --ink-soft: #5c564c;
  --line: #ddd3c2;
  --accent: #a85a3a;
  --accent-dark: #8a4a2f;
  --accent-soft: #efd9c8;
  --sage: #6b7461;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 4px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-sub { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

section { padding: 108px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: #f7f3ec;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #f7f3ec; }
.btn-small { padding: 10px 18px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 243, 236, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.wordmark-label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--ink); }

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

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.lang-btn { font-weight: 600; color: var(--ink-soft); padding: 4px 2px; }
.lang-btn.is-active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---------- Hero ---------- */
.hero { padding-top: 176px; padding-bottom: 100px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-tags { display: flex; flex-direction: column; gap: 10px; }
.hero-tags li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.hero-tags li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 1px;
  background: var(--accent);
}

.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; }
.art-frame { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.art-line { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.art-line-thin { fill: none; stroke: var(--accent); stroke-width: 1; }
.art-line-thick { fill: none; stroke: var(--ink); stroke-width: 3; }
.art-fill { fill: var(--sage); opacity: 0.5; }

/* ---------- About ---------- */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--line);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 560px; }
.about-copy h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 20px; }

.edu-block { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; }
.edu-title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; font-weight: 600; }
.edu-item { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.edu-item:last-child { border-bottom: none; }
.edu-school { font-weight: 600; font-size: 14.5px; }
.edu-course { color: var(--ink-soft); font-size: 14px; }

.expertise-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.expertise-tag {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--panel);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 36px 30px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--panel); }
.service-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 22px; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; font-family: var(--font-body); }
.service-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  opacity: 0.55;
}
.process-item h3 { font-size: 19px; margin-bottom: 8px; font-weight: 600; font-family: var(--font-body); }
.process-item p { color: var(--ink-soft); font-size: 15px; max-width: 520px; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: #f2ece1; }
.why .eyebrow { color: var(--accent-soft); }
.why-title, .why h2 { color: #f2ece1; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.why-mark {
  display: block;
  width: 34px; height: 1px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.why-card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; font-family: var(--font-body); color: #f2ece1; }
.why-card p { font-size: 14.5px; color: #cfc6b6; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.portfolio-card { display: flex; flex-direction: column; }
.portfolio-art {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s ease;
}
.portfolio-card:hover .portfolio-art { background: var(--accent-soft); }
.portfolio-art svg { width: 68px; height: 68px; color: var(--accent); }
.portfolio-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.portfolio-card h3 { font-size: 18px; font-weight: 600; font-family: var(--font-body); }
.portfolio-note { margin-top: 40px; color: var(--ink-soft); font-size: 14px; text-align: center; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-card-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; font-weight: 600; }
.contact-card-email {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  transition: color 0.2s ease;
}
.contact-card-email:hover { color: var(--accent); }
.contact-card-divider { width: 100%; height: 1px; background: var(--line); margin: 28px 0 22px; }
.contact-card-row { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink-soft); }
.contact-card-row svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-socials { display: flex; gap: 16px; margin-top: 28px; }
.contact-socials a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s ease, color 0.2s ease; }
.contact-socials svg { width: 16px; height: 16px; }
.contact-socials a:hover { border-color: var(--accent); color: var(--accent); }
.contact-card-btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc6b6; padding-top: 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid #3a352c;
}
.site-footer .wordmark-name { color: #f2ece1; }
.site-footer .wordmark-label { color: #a89f8f; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 260px; color: #a89f8f; }
.footer-col-title { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #a89f8f; margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; padding: 6px 0; color: #cfc6b6; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom { padding: 24px 28px; font-size: 13px; color: #8b8272; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #f7f3ec;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  section { padding: 76px 0; }
  .main-nav {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }
  .contact-card { padding: 32px; }
  .process-item { grid-template-columns: 56px 1fr; gap: 18px; }
  .process-num { font-size: 24px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px; }
}
