/* ===== Reset & Base ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: #111;
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: #111; color: #fff; }

:root {
  --fg: #111;
  --bg: #fff;
  --muted: #666;
  --hairline: #e5e5e5;
  --hairline-strong: #d4d4d4;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

/* ===== Typography ===== */
.display, .display-md {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}
.display { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.display-md { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.05; }
em { font-style: italic; }
.muted { color: var(--muted); font-style: italic; }
.muted-dark { color: rgba(255,255,255,.6); font-style: italic; }
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: .25em; color: var(--muted);
}
.eyebrow .line { display:inline-block; height:1px; width:2.5rem; background: rgba(0,0,0,.4); }
.eyebrow .num { font-family: ui-monospace, 'SFMono-Regular', monospace; }
.section-head.dark .eyebrow { color: rgba(255,255,255,.6); }
.section-head.dark .eyebrow .line { background: rgba(255,255,255,.4); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  border: 1px solid transparent;
  transition: all .3s cubic-bezier(.22,1,.36,1);
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .8rem; }
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-outline { border-color: var(--hairline-strong); color: #111; }
.btn-outline:hover { background: #111; color: #fff; }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.arrow { display: inline-block; transition: transform .3s; }
.btn:hover .arrow { transform: translate(2px,-2px); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); background: rgba(255,255,255,.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.brand {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: 1.5rem; letter-spacing: -.02em;
}
.brand span { color: var(--muted); }
.nav-links { display: none; gap: 2.25rem; font-size: .85rem; }
.nav-links a { position: relative; color: var(--fg); transition: color .2s; }
.nav-links a:hover { color: #000; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 4px; padding: .5rem;
}
.nav-toggle span { display:block; width: 22px; height: 1.5px; background: #111; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column;
  border-top: 1px solid var(--hairline);
  background: #fff; padding: 1rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .85rem 0; border-bottom: 1px solid var(--hairline); font-size: .95rem; }
.mobile-menu a:last-child { border-bottom: 0; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
.nav .btn-sm { display: none; }
@media (min-width: 768px) { .nav .btn-sm { display: inline-flex; } }

/* ===== Hero ===== */
.hero { padding: 8rem 0 5rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 9.5rem 0 7rem; } }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: center; }
}
.hero-copy h1 { margin-top: 1.5rem; }
.lead { margin-top: 2rem; max-width: 32rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-portrait { position: relative; }
.hero-portrait img {
  aspect-ratio: 4/5; width: 100%; object-fit: cover;
  filter: grayscale(100%);
}
.hero-portrait .corner {
  position: absolute; width: 5rem; height: 5rem;
  pointer-events: none;
}
.corner.tl { top: -.75rem; left: -.75rem; border-top: 1px solid rgba(0,0,0,.3); border-left: 1px solid rgba(0,0,0,.3); }
.corner.br { bottom: -.75rem; right: -.75rem; border-bottom: 1px solid rgba(0,0,0,.3); border-right: 1px solid rgba(0,0,0,.3); }
.portrait-meta {
  display: flex; justify-content: space-between;
  margin-top: 1rem; font-size: .65rem;
  text-transform: uppercase; letter-spacing: .25em; color: var(--muted);
}

.marquee {
  margin-top: 5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.25rem 0;
}
.marquee-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 3rem; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .25em; color: var(--muted);
}
.marquee-inner .dot { display: none; }
@media (min-width: 768px) { .marquee-inner .dot { display: inline; } }

/* ===== Sections ===== */
.section { padding: 6rem 0; border-top: 1px solid var(--hairline); }
@media (min-width: 768px) { .section { padding: 9rem 0; } }
.section-head { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .section-head { grid-template-columns: 4fr 8fr; gap: 2rem; align-items: start; }
}
.section-head h2 { margin-top: .5rem; }

/* About */
.about-body {
  margin-top: 4rem; display: grid; gap: 1.5rem;
  font-size: 1rem; line-height: 1.75; color: rgba(17,17,17,.8);
}
@media (min-width: 768px) {
  .about-body { grid-template-columns: 4fr 8fr; font-size: 1.1rem; }
  .about-body p { grid-column: 2; }
}
.about-body p + p { margin-top: 0; }

.stats {
  margin-top: 5rem; display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--hairline); border: 1px solid var(--hairline);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3,1fr); } }
.stat { background: #fff; padding: 1.75rem; transition: background .3s, color .3s; }
.stat:hover { background: #111; color: #fff; }
.stat-value { font-family: 'Fraunces', serif; font-weight: 300; font-size: 2.5rem; letter-spacing: -.02em; }
@media (min-width: 768px) { .stat-value { font-size: 3rem; } .stat { padding: 2rem; } }
.stat-label {
  margin-top: .75rem; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}
.stat:hover .stat-label { color: rgba(255,255,255,.7); }

/* Projects */
.projects { margin-top: 4rem; border-top: 1px solid var(--hairline); }
.project {
  display: grid; gap: 1rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 768px) {
  .project { grid-template-columns: 1fr 4fr 5fr 2fr; gap: 2rem; padding: 3.5rem 0; align-items: start; }
}
.p-num { font-family: ui-monospace, monospace; font-size: .75rem; color: var(--muted); }
.p-title h3 {
  font-family: 'Fraunces', serif; font-weight: 300;
  font-size: 1.85rem; letter-spacing: -.02em; line-height: 1.1;
}
@media (min-width: 768px) { .p-title h3 { font-size: 2.25rem; } }
.p-tag {
  margin-top: .5rem; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}
.p-desc { color: rgba(17,17,17,.75); line-height: 1.7; }
.p-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 500;
  position: relative;
}
@media (min-width: 768px) { .p-link { justify-content: flex-end; } }
.p-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 768px) { .p-link::after { left: auto; right: 0; width: auto; } }
.p-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Services (dark) */
.section-dark { background: #111; color: #fff; border-top-color: var(--hairline); }
.section-dark .eyebrow { color: rgba(255,255,255,.6); }
.section-dark .eyebrow .line { background: rgba(255,255,255,.4); }
.services-grid {
  margin-top: 4rem; display: grid; grid-template-columns: 1fr;
  gap: 1px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.15);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3,1fr); } }
.service {
  background: #111; color: #fff; padding: 2rem;
  transition: background .5s, color .5s;
}
.service:hover { background: #fff; color: #111; }
.s-head { display: flex; justify-content: space-between; align-items: flex-start; }
.s-icon { font-size: 1.4rem; }
.s-num { font-family: ui-monospace, monospace; font-size: .65rem; opacity: .6; }
.service h3 {
  margin-top: 2.5rem; font-family: 'Fraunces', serif; font-weight: 300;
  font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2;
}
.service p { margin-top: .75rem; font-size: .9rem; line-height: 1.65; opacity: .75; }
.services-cta {
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
.services-cta p { max-width: 28rem; font-size: .9rem; line-height: 1.7; opacity: .7; }

/* Contact */
.contact-grid { display: grid; gap: 4rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.contact-left h2 { margin-top: 1.5rem; }
.contact-meta { margin-top: 2.5rem; display: grid; gap: 0; }
.meta-row {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline); padding: 1rem 0;
  transition: border-color .3s;
}
.meta-row:hover { border-color: #111; }
.meta-row.static { cursor: default; }
.meta-row.static:hover { border-color: var(--hairline); }
.meta-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
.meta-value { margin-top: .25rem; font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.5rem; }

.contact-form {
  border: 1px solid var(--hairline); padding: 2rem;
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .contact-form { padding: 3rem; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--hairline);
  background: transparent; padding: 1.5rem 0 .5rem;
  font: inherit; color: var(--fg); outline: none;
  transition: border-color .3s;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input:focus, .field textarea:focus { border-bottom-color: #111; }
.field label {
  position: absolute; left: 0; top: .25rem; pointer-events: none;
  font-size: .65rem; text-transform: uppercase; letter-spacing: .25em;
  color: var(--muted); transition: all .25s;
}
.field input:placeholder-shown + label,
.field textarea:placeholder-shown + label {
  top: 1.5rem; font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--muted);
}
.field input:focus + label, .field textarea:focus + label {
  top: .25rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .25em; color: #111;
}
.form-foot {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start; padding-top: .5rem;
}
@media (min-width: 640px) {
  .form-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
.form-foot p { font-size: .75rem; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--hairline); background: #fff; }
.footer-grid {
  display: grid; gap: 3rem; padding: 4rem 1.5rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 6fr 3fr 3fr; padding: 5rem 2.5rem 0; }
}
.footer-brand p { margin-top: 1rem; max-width: 28rem; color: var(--muted); font-size: .95rem; }
.footer-logo { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.foot-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
.foot-links { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; font-size: .9rem; }
.foot-links a { position: relative; }
.foot-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.foot-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.socials { margin-top: 1rem; display: flex; gap: .75rem; }
.social {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  transition: all .3s;
}
.social:hover { background: #111; color: #fff; border-color: #111; }
.foot-wa { display: inline-block; margin-top: 1.5rem; font-size: .9rem; position: relative; }
.foot-wa::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.foot-wa:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-base {
  margin-top: 4rem; padding: 2rem 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: .75rem;
  font-size: .75rem; color: var(--muted);
}
@media (min-width: 768px) {
  .footer-base { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 2.5rem; }
}
.mono { font-family: ui-monospace, monospace; }

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.fade-in { animation: fadeIn .7s cubic-bezier(.22,1,.36,1) both; }
.fade-up { animation: fadeUp .8s cubic-bezier(.22,1,.36,1) both; }
.reveal { animation: reveal .9s cubic-bezier(.22,1,.36,1) both; }

.reveal-on-scroll {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

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