/* ============================================
   TECHNOLOGISM — STYLESHEET
   Editorial / Consultancy aesthetic
   Playfair Display + DM Sans
   ============================================ */

:root {
  --ink: #0f0f0d;
  --ink-mid: #3a3a36;
  --ink-light: #7a7a72;
  --paper: #f8f7f3;
  --paper-warm: #f0ede6;
  --accent: #b5460f;
  --accent-light: #d4602a;
  --white: #ffffff;
  --border: #e0ddd6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-width: 1200px;
  --section-gap: 7rem;
  --container-pad: 2rem;

  --radius: 2px;
  --transition: 0.25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transition), opacity var(--transition);
}
.text-link:hover { opacity: 0.75; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.btn--lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-mid);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--accent) !important; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 12rem 2rem 7rem;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
}
.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.hero__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(181,70,15,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 80%, rgba(181,70,15,0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: auto, auto, 200px 200px;
  pointer-events: none;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.75rem;
  max-width: 14ch;
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--ink-mid);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__rule {
  position: absolute;
  bottom: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: var(--border);
}

/* REVEAL STAGGER */
.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   STRIP
   ============================================ */
.strip {
  background: var(--ink);
  color: var(--white);
  padding: 1rem 2rem;
  overflow: hidden;
}
.strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}
.strip__dot { color: var(--accent); font-size: 1rem; line-height: 1; }

/* ============================================
   INTRO
   ============================================ */
.intro {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.intro__left .section-headline { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.intro__right p { color: var(--ink-mid); margin-bottom: 1.25rem; }
.intro__right .text-link { margin-top: 0.5rem; display: inline-block; }

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}
.services__header {
  margin-bottom: 4rem;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.service-card {
  display: block;
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6) { border-bottom: none; }
.service-card:hover { background: var(--paper-warm); }
.service-card__num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--ink);
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--ink-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.service-card__link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ============================================
   DIFFERENTIATOR
   ============================================ */
.diff {
  padding: var(--section-gap) 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}
.diff__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.diff__right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.diff__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.diff__icon {
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2rem;
  margin-top: 0.1rem;
  font-family: var(--font-display);
}
.diff__item h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.diff__item p { color: var(--ink-mid); font-size: 0.925rem; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}
.cta-section__inner {
  max-width: 600px;
}
.cta-section__inner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.cta-section__inner p {
  color: var(--ink-mid);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ============================================
   THANKS PAGE
   ============================================ */
.thanks {
  min-height: calc(100vh - 68px - 80px);
  display: flex;
  align-items: center;
  padding: 8rem 0;
}
.thanks__inner {
  max-width: 520px;
}
.thanks__mark {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}
.thanks__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--ink);
}
.thanks__sub {
  color: var(--ink-mid);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: var(--white);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}
.footer__nav {
  display: flex;
  gap: 2rem;
}
.footer__nav a {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }
.footer__copy {
  font-size: 0.775rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0.75rem 0 1.25rem;
  max-width: 18ch;
}
.page-hero__sub {
  font-size: 1.1rem;
  color: var(--ink-mid);
  max-width: 50ch;
  font-weight: 300;
}

/* ============================================
   SERVICE DETAIL (services page)
   ============================================ */
.service-detail {
  padding: 5rem 0;
}
.service-detail__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}
.service-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.35rem;
}
.service-detail__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  font-weight: 400;
}
.service-detail__body h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}
.service-detail__lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}
.service-detail__body p {
  color: var(--ink-mid);
  margin-bottom: 1rem;
}
.service-detail__list {
  margin-top: 2rem;
}
.service-detail__list h4 {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}
.service-detail__list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
}
.service-detail__list li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding-left: 1rem;
  position: relative;
}
.service-detail__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.1em;
}
.service-divider {
  height: 1px;
  background: var(--border);
  max-width: calc(var(--max-width) - 4rem);
  margin: 0 auto;
}

/* ============================================
   BIO (background page)
   ============================================ */
.bio {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}
.bio__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  align-items: start;
}
.bio__badge {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.bio__photo-wrap {
  margin-bottom: 1.5rem;
}
.bio__photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}
.bio__photo:hover { filter: grayscale(0%); }
.bio__links { margin-top: 1.5rem; }
.bio__lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.bio__right p { color: var(--ink-mid); margin-bottom: 1.25rem; }

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}
.timeline__items {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.timeline__item:first-child { border-top: 1px solid var(--border); }
.timeline__year {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  font-weight: 400;
  padding-top: 0.3rem;
  display: block;
}
.timeline__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.timeline__company {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}
.timeline__body p { color: var(--ink-mid); font-size: 0.925rem; }

/* ============================================
   SKILLS
   ============================================ */
.skills {
  padding: var(--section-gap) 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--border);
}
.skills__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.skill-group {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
}
.skill-group:last-child { border-right: none; }
.skill-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}
.skill-group li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.skill-group li:last-child { border-bottom: none; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  padding: var(--section-gap) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.contact__left h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.contact__left p { color: var(--ink-mid); margin-bottom: 1.5rem; font-size: 0.95rem; }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact__detail { display: flex; flex-direction: column; gap: 0.25rem; }
.contact__detail .label { margin: 0; }
.contact__detail span, .contact__detail a { font-size: 0.925rem; color: var(--ink-mid); }
.contact__note {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact__note p { font-size: 0.875rem; color: var(--ink-mid); margin: 0; }
.contact__note strong { color: var(--ink); }

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15,15,13,0.06);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { cursor: pointer; }
.form-success {
  display: none;
  padding: 1rem 1.5rem;
  background: #f0f7f0;
  border: 1px solid #c3ddc3;
  border-radius: var(--radius);
  color: #2d5a2d;
  font-size: 0.9rem;
}
.form-success.visible { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root { --section-gap: 5rem; }

  .intro__grid,
  .diff__grid,
  .contact__grid,
  .bio__grid { grid-template-columns: 1fr; gap: 3rem; }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n) { border-right: none; }
  .service-card:nth-child(5),
  .service-card:nth-child(6) { border-bottom: none; }
  .service-card:nth-child(3),
  .service-card:nth-child(4) { border-bottom: 1px solid var(--border); }

  .skills__grid { grid-template-columns: 1fr 1fr; }
  .skill-group:nth-child(2n) { border-right: none; }
  .skill-group:nth-child(1),
  .skill-group:nth-child(2) { border-bottom: 1px solid var(--border); }

  .service-detail__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-detail__meta { flex-direction: row; align-items: center; gap: 1rem; }
  .service-detail__num { font-size: 2rem; }
  .service-detail__list ul { grid-template-columns: 1fr; }

  .timeline__item { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 640px) {
  :root { --container-pad: 1.25rem; }

  .nav__links { 
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem var(--container-pad);
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__cta { display: inline-flex; }

  .hero { padding: 9rem 1.25rem 5rem; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .services__grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .service-card:last-child { border-bottom: none; }
  .service-card:nth-child(n) { border-bottom: 1px solid var(--border); border-right: none; }
  .service-card:last-child { border-bottom: none; }

  .skills__grid { grid-template-columns: 1fr; }
  .skill-group { border-right: none; border-bottom: 1px solid var(--border); }
  .skill-group:last-child { border-bottom: none; }

  .footer__inner { flex-direction: column; gap: 1.25rem; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }

  .contact__grid { gap: 3rem; }

  .strip__inner { gap: 0.4rem 1rem; }
}