/* ============================================================
   OPEN AGENT — Design System
   Theme: Black + White + Anthropic Orange (#CC785C)
   Fonts: Playfair Display (headings) + Poppins (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --grey: #9a9a9a;
  --line: #e2e2e2;
  --orange: #cc785c;       /* Anthropic cloud orange */
  --orange-deep: #b3654b;
  --orange-soft: #f6e9e3;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--paper);
  color: var(--black);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Buttons (orange = CTA only) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 14px 30px; border: none; border-radius: 2px;
  cursor: pointer; transition: all 0.35s var(--ease);
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(204,120,92,0.35); }
.btn.ghost {
  background: transparent; color: var(--black);
  border: 1.5px solid var(--black);
}
.btn.ghost:hover { background: var(--black); color: #fff; box-shadow: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { font-size: 0.9rem; font-weight: 500; position: relative; padding: 4px 0; transition: color 0.3s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--orange); transition: width 0.3s var(--ease); }
.nav a:hover { color: var(--orange); }
.nav a:hover::after { width: 100%; }
.nav .btn { padding: 10px 22px; }
.menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(204,120,92,0.22), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(204,120,92,0.10), transparent 40%);
}
.hero .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--orange); font-weight: 600; margin-bottom: 22px;
  border: 1px solid rgba(204,120,92,0.4); padding: 7px 16px; border-radius: 40px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 24px; font-weight: 800; }
.hero h1 em { color: var(--orange); font-style: italic; }
.hero p { font-size: 1.12rem; color: #c9c9c9; max-width: 620px; margin-bottom: 38px; font-weight: 300; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn.ghost:hover { background: #fff; color: var(--black); }

.hero-stats { display: flex; gap: 50px; margin-top: 70px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 800; color: #fff; }
.hero-stats .stat .n b { color: var(--orange); }
.hero-stats .stat .l { font-size: 0.82rem; color: #9a9a9a; letter-spacing: 0.05em; }

/* ---------- Section base ---------- */
.section { padding: 105px 0; }
.section.alt { background: var(--mist); }
.section-head { margin-bottom: 60px; max-width: 720px; }
.section-head .tag { font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--orange); font-weight: 600; display: block; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 16px; }
.section-head p { color: #555; font-weight: 300; font-size: 1.05rem; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  border: 1px solid var(--line); background: #fff; padding: 38px 32px;
  transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.svc::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,0.08); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc .ic { font-size: 1.9rem; margin-bottom: 20px; filter: grayscale(1); }
.svc h3 { font-size: 1.35rem; margin-bottom: 12px; }
.svc p { font-size: 0.92rem; color: #666; font-weight: 300; }

/* ---------- Portfolio ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pf {
  position: relative; overflow: hidden; border-radius: 3px; background: var(--black);
  aspect-ratio: 4/3; cursor: pointer;
}
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.4s; opacity: 0.92; }
.pf:hover img { transform: scale(1.07); opacity: 1; }
.pf .ov {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px;
  background: linear-gradient(to top, rgba(10,10,10,0.85), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.pf:hover .ov { opacity: 1; }
.pf .ov span { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 600; }
.pf .ov b { color: var(--orange); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid .lead { font-family: 'Playfair Display', serif; font-size: 1.7rem; line-height: 1.4; margin-bottom: 24px; }
.about-grid .lead em { color: var(--orange); font-style: italic; }
.about-grid p { color: #555; font-weight: 300; margin-bottom: 18px; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.skills span { border: 1px solid var(--line); padding: 8px 16px; font-size: 0.82rem; border-radius: 40px; font-weight: 500; }
.about-visual { background: var(--black); color: #fff; padding: 50px 44px; border-radius: 4px; position: relative; overflow: hidden; }
.about-visual::after { content: 'OA'; position: absolute; right: -10px; bottom: -30px; font-family: 'Playfair Display', serif; font-size: 11rem; font-weight: 900; color: rgba(204,120,92,0.12); }
.about-visual h3 { color: #fff; font-size: 1.5rem; margin-bottom: 22px; }
.about-visual ul { list-style: none; }
.about-visual li { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; font-weight: 300; display: flex; justify-content: space-between; }
.about-visual li b { color: var(--orange); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.03em; }
.form-row input, .form-row textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px;
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; background: #fff; transition: border 0.3s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); }
.form-row textarea { resize: vertical; min-height: 130px; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 18px; }
.contact-info p { color: #555; font-weight: 300; margin-bottom: 26px; }
.ci-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ci-item .d { width: 42px; height: 42px; background: var(--black); color: var(--orange); display: flex; align-items: center; justify-content: center; border-radius: 2px; font-size: 1.1rem; }
.ci-item a, .ci-item span { font-weight: 500; font-size: 0.95rem; }
.form-note { font-size: 0.8rem; color: #888; margin-top: 12px; font-weight: 300; }
.form-ok { display: none; background: var(--orange-soft); border: 1px solid var(--orange); color: var(--orange-deep); padding: 14px 18px; border-radius: 2px; margin-top: 16px; font-weight: 500; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #fff; padding: 70px 0 30px; }
.footer .top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .brand { color: #fff; font-size: 1.7rem; margin-bottom: 16px; }
.footer .brand span { color: var(--orange); }
.footer p.desc { color: #9a9a9a; font-weight: 300; font-size: 0.92rem; max-width: 340px; }
.footer h4 { font-family: 'Poppins', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: #c9c9c9; font-weight: 300; font-size: 0.92rem; transition: color 0.3s; }
.footer ul li a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; border-radius: 2px; font-size: 1.05rem; transition: all 0.3s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer .bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 12px; }
.footer .bottom p { color: #777; font-size: 0.82rem; font-weight: 300; }
.footer .bottom .eb { display: flex; gap: 16px; }
.footer .bottom .eb a { color: #c9c9c9; font-size: 0.82rem; border-bottom: 1px solid var(--orange); padding-bottom: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .svc-grid, .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .footer .top { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 74px; right: 0; width: 260px; height: calc(100vh - 74px); background: #fff; flex-direction: column; align-items: flex-start; padding: 30px; gap: 22px; transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,0.1); }
  .nav.open { transform: translateX(0); }
  .menu-btn { display: block; }
}
@media (max-width: 560px) {
  .svc-grid, .pf-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
  .wrap { padding: 0 20px; }
  .section { padding: 70px 0; }
}
